|
|
!(function(){var Sv=Object.defineProperty;var D1=Object.getOwnPropertySymbols;var Ev=Object.prototype.hasOwnProperty,_v=Object.prototype.propertyIsEnumerable;var Ch=Math.pow,v1=(An,Tt,x)=>Tt in An?Sv(An,Tt,{enumerable:!0,configurable:!0,writable:!0,value:x}):An[Tt]=x,b1=(An,Tt)=>{for(var x in Tt||(Tt={}))Ev.call(Tt,x)&&v1(An,x,Tt[x]);if(D1)for(var x of D1(Tt))_v.call(Tt,x)&&v1(An,x,Tt[x]);return An};var zs=(An,Tt,x)=>v1(An,typeof Tt!="symbol"?Tt+"":Tt,x);var dp=(An,Tt,x)=>new Promise((pe,Ae)=>{var P=V=>{try{te(x.next(V))}catch(S){Ae(S)}},Ne=V=>{try{te(x.throw(V))}catch(S){Ae(S)}},te=V=>V.done?pe(V.value):Promise.resolve(V.value).then(P,Ne);te((x=x.apply(An,Tt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},59477:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},40001:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},49198:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},84105:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},18785:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},73331:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},15277:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},52671:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},8657:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},56082:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},33853:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},15075:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},62772:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},43531:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},38819:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},47472:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},87395:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},41835:function(An,Tt){"use strict";Tt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},11436:function(An,Tt,x){"use strict";var pe=x(59301),Ae=Object.defineProperty,P=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,V=(F,v,$)=>v in F?Ae(F,v,{enumerable:!0,configurable:!0,writable:!0,value:$}):F[v]=$,S=(F,v)=>{for(var $ in v||(v={}))Ne.call(v,$)&&V(F,$,v[$]);if(P)for(var $ of P(v))te.call(v,$)&&V(F,$,v[$]);return F};const g=F=>React.createElement("svg",S({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},F),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Tt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},66752:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return O}});var pe=x(3113),Ae=x(59301),P=Object.defineProperty,Ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,F=(T,L,Y)=>L in T?P(T,L,{enumerable:!0,configurable:!0,writable:!0,value:Y}):T[L]=Y,v=(T,L)=>{for(var Y in L||(L={}))S.call(L,Y)&&F(T,Y,L[Y]);if(V)for(var Y of V(L))g.call(L,Y)&&F(T,Y,L[Y]);return T},$=(T,L)=>Ne(T,te(L)),_=(T,L)=>{var Y={};for(var R in T)S.call(T,R)&&L.indexOf(R)<0&&(Y[R]=T[R]);if(T!=null&&V)for(var R of V(T))L.indexOf(R)<0&&g.call(T,R)&&(Y[R]=T[R]);return Y},M=(T,L,Y)=>new Promise((R,se)=>{var ne=K=>{try{W(Y.next(K))}catch(le){se(le)}},J=K=>{try{W(Y.throw(K))}catch(le){se(le)}},W=K=>K.done?R(K.value):Promise.resolve(K.value).then(ne,J);W((Y=Y.apply(T,L)).next())});const O=T=>{var L=T,{children:Y}=L,R=_(L,["children"]);const[se,ne]=(0,Ae.useState)(!1);return Ae.createElement(pe.ZP,$(v({},R),{loading:se,onClick:J=>M(void 0,null,function*(){try{ne(!0),yield R.onClick(J),ne(!1)}catch(W){console.error(W),ne(!1)}})}),Y)}},95021:function(An,Tt,x){"use strict";var pe=x(59301),Ae=x(41835),P=x(48136),Ne=x(6590),te=x(43418),V=x(59301);const S=(0,pe.forwardRef)(({callback:g,width:F,onChange:v,disabled:$,readOnly:_,type:M="",value:O="",style:T={}},L)=>{const Y=(0,pe.useRef)(),R=(0,pe.useRef)(),[se,ne]=(0,pe.useState)(0),[J,W]=(0,pe.useState)(0),[K,le]=(0,pe.useState)(!1),me=()=>{var ee=document.createElement("div");ee.innerHTML=Y.current.getValue();var fe=ee.innerText;return g&&g(fe),fe};(0,pe.useImperativeHandle)(L,()=>({getData:me}));const Oe=ee=>{ee.preventDefault();const fe=ee.clientX-se,D=ee.clientY-J;document.body.onmousemove=Ye=>{let Le=Ye.clientX-fe,Ce=Ye.clientY-D;const Te=document.getElementsByClassName("markdown-popup-form")[0],be=window.innerWidth-Te.offsetWidth,ke=window.innerHeight-Te.offsetHeight;Le=Math.max(0,Math.min(Le,be)),Ce=Math.max(0,Math.min(Ce,ke)),Be(Ye.clientX,Ye.clientY,fe,D)&&(ne(Le),W(Ce))},document.body.onmouseup=function(){document.body.onmousemove=null}},Be=(ee,fe,D,Ye)=>{const Le=document.body.clientHeight,Ce=document.body.clientWidth;return ee<20&&D>ee||ee>Ce-20&&D<ee||fe<20&&Ye>fe||fe>Le-20&&Ye<fe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,pe.useEffect)(()=>{K&&setTimeout(()=>{const ee=document.getElementsByClassName("markdown-popup-form")[0],fe=window.innerWidth/2-ee.offsetWidth/2,D=window.innerHeight/2-ee.offsetHeight/2;ne(fe),W(D)},0)},[K]);const Ue=()=>{$||_||le(!0)};return V.createElement("div",{style:T},V.createElement("div",{style:{width:F||"100%",position:"relative"},className:`${Ae.Z.mathFillWrap} ${$||_?"cursorDefault":""}`,onClick:()=>Ue()},V.createElement("math-field",{disabled:$,locale:"zh_cn",class:`${Ae.Z.mathField} ${M}`,readOnly:_,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Y,style:{width:"100%",fontSize:O?18:14},value:O||""})),V.createElement(te.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:se,top:J},title:V.createElement("div",{style:{cursor:"move"},onMouseDown:Oe},"\u8F93\u5165\u516C\u5F0F"),open:K,onOk:()=>{const ee=R.current.getData();Y.current.setValue(ee),v(ee),le(!1)},onCancel:()=>{le(!1)},destroyOnClose:!0,className:"markdown-popup-form"},V.createElement(Ne.Z,{value:O,ref:R,onChange:v,showSaveButton:!1})))});Tt.Z=S},6590:function(An,Tt,x){"use strict";var pe=x(59301),Ae=x(95237),P=x(43604),Ne=x(99313),te=x(3113),V=x(99950),S=x(41835),g=x(48136),F=x(59301);const v=(0,pe.forwardRef)(({callback:$,showSaveButton:_,value:M=""},O)=>{const T=(0,pe.useRef)(),L=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Y=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],R=J=>{T.current.setValue(T.current.getValue()+" "+J.value+" ")},se=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:F.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},L.map((J,W)=>F.createElement(P.Z,{flex:"110px",className:S.Z.item},F.createElement("div",null,F.createElement(V.Z,{value:`$$${J.value}$$`}),J.name),F.createElement("div",{className:S.Z.children},J.children.map((K,le)=>F.createElement("div",{key:le},F.createElement("h1",null,K.name),F.createElement(Ae.Z,{gutter:[10,10]},K.data.map((me,Oe)=>F.createElement(P.Z,{key:Oe,onClick:()=>R(me),className:S.Z.diamond},F.createElement(V.Z,{value:"`$$"+me.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:F.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},Y.map((J,W)=>F.createElement(P.Z,{flex:"110px",className:S.Z.item},F.createElement("div",null,F.createElement(V.Z,{value:"`$$"+J.value+"$$`"}),J.name),F.createElement("div",{className:S.Z.children},J.children.map((K,le)=>F.createElement("div",{key:le},K.name&&F.createElement("h1",null,K.name),F.createElement(Ae.Z,{gutter:[10,10]},K.data.map((me,Oe)=>F.createElement(P.Z,{key:Oe,onClick:()=>R(me),className:S.Z.diamond},F.createElement(V.Z,{value:"`$$"+me.value+"$$`"}))))))))))}],ne=()=>{var J=document.createElement("div");J.innerHTML=T.current.getValue();var W=J.innerText;return $&&$(W),W};return(0,pe.useImperativeHandle)(O,()=>({getData:ne})),F.createElement("div",{className:S.Z.mathWrap},F.createElement(Ne.default,{defaultActiveKey:"1",items:se}),F.createElement("math-field",{locale:"zh_cn",className:S.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:T,style:{width:800,marginTop:30,fontSize:18}},M||""),_&&F.createElement("div",{className:S.Z.button},F.createElement(te.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Tt.Z=v},99415:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(59301),Ae={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},P=x(43418),Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",V=(F,v,$)=>new Promise((_,M)=>{var O=Y=>{try{L($.next(Y))}catch(R){M(R)}},T=Y=>{try{L($.throw(Y))}catch(R){M(R)}},L=Y=>Y.done?_(Y.value):Promise.resolve(Y.value).then(O,T);L(($=$.apply(F,v)).next())}),g=({type:F,resdata:v,onok:$,oktext:_,okloading:M})=>{const[O,T]=(0,pe.useState)(!1),{can_copy_list:L,can_copy_num:Y,challenge_type:R,course_data_list:se,no_copy_list:ne,no_copy_num:J,no_use_list:W,no_use_num:K,repeat_shixun_num:le,student_count:me,total_num:Oe,use_num:Be}=v;let Ue=Y>0||F==="exercise";(0,pe.useEffect)(()=>{(v==null?void 0:v.student_count)>0&&T(!0)},[v]),console.log("---11",M),(0,pe.useEffect)(()=>{M||T(!1)},[M]);const ee=()=>{if(F==="exercise"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(F==="exercise"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixun"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixun"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="subject"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="subject"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",pe.createElement("span",{className:Ae.orangeColor},me)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",pe.createElement("span",{className:Ae.orangeColor},Be)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="exercisepush")return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(F==="shixunpush"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixunpush"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},fe=()=>{if(F==="exercise"||F==="subject"||F==="exercisepush"||F==="shixunpush")return pe.createElement("div",{style:{marginTop:20}},J>0&&pe.createElement("div",null,pe.createElement("span",{className:Ae.flex},pe.createElement("img",{src:te,style:{width:14}}),pe.createElement("span",{className:Ae.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:Ae.statusbody},F==="exercise"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(F==="subject"||F==="exercisepush")&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&pe.createElement("span",{className:Ae.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),F==="shixunpush"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&pe.createElement("span",{className:Ae.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),pe.createElement("div",null,ne==null?void 0:ne.map((D,Ye)=>pe.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Ye+1!==J&&"\u3001"))))),Y>0&&pe.createElement("div",{style:{marginTop:20}},pe.createElement("span",{className:Ae.flex},pe.createElement("img",{src:Ne,style:{width:14}}),pe.createElement("span",{className:Ae.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:Ae.statusbody},F==="exercise"&&pe.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(F==="subject"||F==="exercisepush")&&pe.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),F==="shixunpush"&&pe.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),pe.createElement("div",null,L==null?void 0:L.map((D,Ye)=>pe.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Ye+1!==Y&&"\u3001"))))));if(F==="shixun")return pe.createElement("div",{style:{marginTop:20}},Y>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return pe.createElement(P.default,{open:O,onCancel:()=>{T(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ue&&"none"}},zIndex:1003,confirmLoading:M,okText:Ue?_:"\u6211\u77E5\u9053\u4E86",onOk:()=>V(void 0,null,function*(){Ue?yield $([...L,...W]):T(!1)})},pe.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ee(),fe()))}},36994:function(An,Tt,x){"use strict";var pe=x(59301),Ae=x(43418),P=x(1710);const Ne=({dataSource:te,visible:V,onClose:S=()=>{},onSuccess:g=()=>{},text:F,okText:v})=>{var $;return pe.createElement(Ae.default,{centered:!0,destroyOnClose:!0,open:!!V,title:"\u63D0\u793A",width:"600px",okText:v,cancelText:"\u53D6\u6D88",onCancel:S,onOk:g},V==="single"&&pe.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",pe.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},($=te==null?void 0:te[0])==null?void 0:$.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",F),V==="multiple"&&pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",F),pe.createElement(P.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:te,scroll:(te==null?void 0:te.length)>7?{y:300}:{},pagination:!1})))};Tt.Z=Ne},80464:function(An,Tt,x){"use strict";x.d(Tt,{B:function(){return F},F:function(){return g}});var pe=x(44164),Ae=x.n(pe),P=x(86129),Ne=x.n(P),te=(v,$,_)=>new Promise((M,O)=>{var T=R=>{try{Y(_.next(R))}catch(se){O(se)}},L=R=>{try{Y(_.throw(R))}catch(se){O(se)}},Y=R=>R.done?M(R.value):Promise.resolve(R.value).then(T,L);Y((_=_.apply(v,$)).next())});const V=()=>{document.body.scrollIntoView()},S=()=>{document.querySelectorAll("canvas").forEach(v=>{(!v.clientWidth||!v.clientHeight)&&v.remove()})},g=(v,$)=>te(void 0,null,function*(){V(),S();const _={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let M=Ae()();for(let T=0;T<v.length;T++)yield M.set(_).from(v[T]).toContainer().toCanvas().toPdf().get("pdf").then(L=>te(void 0,null,function*(){T<v.length-1&&(yield L.addPage())}));const O=new(Ne());O.file(`${$}.pdf`,M.output("blob"),{base64:!1}),O.generateAsync({type:"blob"}).then(function(T){const L=document.createElement("a");L.href=window.URL.createObjectURL(T),L.download=`${$}.zip`,document.body.appendChild(L);const Y=new MouseEvent("click");L.dispatchEvent(Y),document.body.removeChild(L)})}),F=(v,$)=>te(void 0,null,function*(){V(),S();const _={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let M=Ae()();for(let O=0;O<v.length;O++)yield M.set(_).from(v[O]).toContainer().toCanvas().toPdf().get("pdf").then(T=>te(void 0,null,function*(){O<v.length-1&&(yield T.addPage())}));M.save(`${$}.pdf`)})},80461:function(An,Tt,x){"use strict";x.r(Tt),x.d(Tt,{default:function(){return ze}});var pe=x(59301),Ae=x(73815),P=x(92832),Ne=x(8591),te=x(1710),V=x(6848),S=x(95237),g=x(43604),F=x(5112),v=x(28103),$=x(71418),_=x(66104),M=x(3113),O=x(38854),T=x(43418),L={flex_box_center:"flex_box_center___maKAy",flex_space_between:"flex_space_between___vD_VZ",flex_box_vertical_center:"flex_box_vertical_center___kwkiV",flex_box_center_end:"flex_box_center_end___BdkbU",flex_box_column:"flex_box_column___meEQB",bg:"bg___vBzoO",wrap:"wrap___rrSkg",programTitle:"programTitle___kPWjL",btnWrapper:"btnWrapper___F_tyj",btn:"btn___ToWSe",titleForExport:"titleForExport___lhBnq",flexRow:"flexRow___cvXQo",flexColumn:"flexColumn___cTDFf",flexJustifyBetween:"flexJustifyBetween___vy_7r",relative:"relative____B_F8",questionNumber:"questionNumber___V4g28",score:"score___dNKpj",selectTopicButton:"selectTopicButton___NO9DO",line:"line___j553x",dragTip:"dragTip___AaESI",typeActive:"typeActive___dLHVW",mouseTypeActive:"mouseTypeActive___N_Yv8",typeName:"typeName___bdcw3",typeNumber:"typeNumber___B6Fic",typeAction:"typeAction___O3dpz",setScore:"setScore___GA5cK",delete:"delete___O2OvN",modal:"modal___0ENtb",table:"table___ZRr4b",glassSeal:"glassSeal___C7Vpa",export_type_modal:"export_type_modal___ldAtg",export_type_modal_con:"export_type_modal_con___Y9iST",type_item:"type_item___cWirW",img_warp:"img_warp___G7xtB",img_warp_active:"img_warp_active___rw33a",divname:"divname___RLHHc"},Y=x(25344),R=x(80464),se=x(53244),ne=x(7074),J=x(86374),W=x(74483),K=x(76023),le=x(99950),me=x(24334),Oe=x(68065),Be=x(95021),Ue=x(66752),ee=x(39499),fe=x(59301),D=Object.defineProperty,Ye=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Te=(qe,_t,Lt)=>_t in qe?D(qe,_t,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):qe[_t]=Lt,be=(qe,_t)=>{for(var Lt in _t||(_t={}))Le.call(_t,Lt)&&Te(qe,Lt,_t[Lt]);if(Ye)for(var Lt of Ye(_t))Ce.call(_t,Lt)&&Te(qe,Lt,_t[Lt]);return qe},ke=(qe,_t,Lt)=>new Promise((Nt,sr)=>{var er=G=>{try{lr(Lt.next(G))}catch(dt){sr(dt)}},yr=G=>{try{lr(Lt.throw(G))}catch(dt){sr(dt)}},lr=G=>G.done?Nt(G.value):Promise.resolve(G.value).then(er,yr);lr((Lt=Lt.apply(qe,_t)).next())});const{TextArea:he}=P.default,Ee={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},Xe=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],et=({newExercisePaper:qe,isExportBlank:_t=!1,paperlibrary:Lt,user:Nt,globalSetting:sr,loading:er,dispatch:yr})=>{var lr,G,dt,I,m,u,C,q,Se,H,ie,Qe,we;const ye=(0,Ae.useLocation)(),je=(0,Ae.useParams)(),[Ct]=(0,Ae.useSearchParams)(),[de,st]=(0,pe.useState)(),tt=(0,pe.useRef)(),[Ie,De]=(0,pe.useState)(),[lt,Ut]=(0,pe.useState)(),[kt,rr]=(0,pe.useState)([]),[Fr,kr]=(0,pe.useState)(!1),[Dr,Nr]=(0,pe.useState)(""),[xr,ur]=(0,pe.useState)(!1),[Qr,hn]=(0,pe.useState)(!1),Ln=Ct.get("isIntelligentAssistant");(0,pe.useEffect)(()=>(yr({type:"globalSetting/footerToggle",payload:!1}),()=>{yr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,pe.useEffect)(()=>{tt.current=je==null?void 0:je.id,st(Ct.get("defaultActiveKey")||"0"),hr(),kn(),pn()},[je==null?void 0:je.id]),(0,pe.useEffect)(()=>{var ge;if((ge=qe.exerciseExportHeadData)!=null&&ge.title){const Me=qe.exerciseExportHeadData;De(be({},Me||{}));const{table:Fe}=Me||{};let Ge,Pt;(Fe!=null&&Fe.total_singles_scores||Fe!=null&&Fe.total_doubles_scores||Fe!=null&&Fe.total_nulls_scores||Fe!=null&&Fe.total_judges_scores||Fe!=null&&Fe.total_pros_scores||Fe!=null&&Fe.total_shixuns_scores||Fe!=null&&Fe.total_mains_scores||Fe!=null&&Fe.total_combination_scores||Fe!=null&&Fe.total_bpros_scores)&&(Ge=Number(Fe==null?void 0:Fe.total_singles_scores)+Number(Fe==null?void 0:Fe.total_doubles_scores)+Number(Fe==null?void 0:Fe.total_nulls_scores)+Number(Fe==null?void 0:Fe.total_judges_scores)+Number(Fe==null?void 0:Fe.total_pros_scores)+Number(Fe==null?void 0:Fe.total_shixuns_scores)+Number(Fe==null?void 0:Fe.total_mains_scores)+Number(Fe==null?void 0:Fe.total_combination_scores)+Number(Fe==null?void 0:Fe.total_bpros_scores)),(Fe!=null&&Fe.singles_scores||Fe!=null&&Fe.doubles_scores||Fe!=null&&Fe.nulls_scores||Fe!=null&&Fe.judges_scores||Fe!=null&&Fe.pros_scores||Fe!=null&&Fe.bpros_scores||Fe!=null&&Fe.shixuns_scores||Fe!=null&&Fe.mains_scores||Fe!=null&&Fe.combination_scores)&&(Pt=Number(Fe==null?void 0:Fe.singles_scores)+Number(Fe==null?void 0:Fe.doubles_scores)+Number(Fe==null?void 0:Fe.nulls_scores)+Number(Fe==null?void 0:Fe.judges_scores)+Number(Fe==null?void 0:Fe.pros_scores)+Number(Fe==null?void 0:Fe.bpros_scores)+Number(Fe==null?void 0:Fe.shixuns_scores)+Number(Fe==null?void 0:Fe.mains_scores)+Number(Fe==null?void 0:Fe.combination_scores));const Dt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Fe==null?void 0:Fe.total_singles_scores,doubles_score:Fe==null?void 0:Fe.total_doubles_scores,nulls_score:Fe==null?void 0:Fe.total_nulls_scores,judges_score:Fe==null?void 0:Fe.total_judges_scores,pros_score:Fe==null?void 0:Fe.total_pros_scores,bpros_score:Fe==null?void 0:Fe.total_bpros_scores,shixuns_score:Fe==null?void 0:Fe.total_shixuns_scores,mains_score:Fe==null?void 0:Fe.total_mains_scores,combinations_score:Fe==null?void 0:Fe.total_combination_scores,total_score:Ge},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Fe==null?void 0:Fe.singles_scores,doubles_score:Fe==null?void 0:Fe.doubles_scores,nulls_score:Fe==null?void 0:Fe.nulls_scores,judges_score:Fe==null?void 0:Fe.judges_scores,pros_score:Fe==null?void 0:Fe.pros_scores,bpros_score:Fe==null?void 0:Fe.bpros_scores,shixuns_score:Fe==null?void 0:Fe.shixuns_scores,mains_score:Fe==null?void 0:Fe.mains_scores,combinations_score:Fe==null?void 0:Fe.combination_scores,total_score:Pt},{key:"3",name:"\u8BC4\u5377\u4EBA"}],_r=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Fe==null?void 0:Fe.total_singles_scores,doubles_score:Fe==null?void 0:Fe.total_doubles_scores,nulls_score:Fe==null?void 0:Fe.total_nulls_scores,judges_score:Fe==null?void 0:Fe.total_judges_scores,pros_score:Fe==null?void 0:Fe.total_pros_scores,bpros_score:Fe==null?void 0:Fe.total_bpros_scores,shixuns_score:Fe==null?void 0:Fe.total_shixuns_scores,mains_score:Fe==null?void 0:Fe.total_mains_scores,combinations_score:Fe==null?void 0:Fe.combination_scores,total_score:Ge},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Ut([..._t?_r:Dt])}},[qe.exerciseExportHeadData]);const pn=()=>ke(void 0,null,function*(){var ge;const Me=yield(0,se.cV)({id:je.id});Me.status==0&&rr(Me.data),yield kn(),Ct.get("exportPDF")&&((ge=Lt.paperData)!=null&&ge.questionList)&&(Ne.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,R.F)(ui.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),kn=()=>ke(void 0,null,function*(){const ge=yield(0,se.Dq)(je.id);De(ge||{});const{table:Me}=ge||{};let Fe,Ge;(Me!=null&&Me.total_singles_scores||Me!=null&&Me.total_doubles_scores||Me!=null&&Me.total_nulls_scores||Me!=null&&Me.total_judges_scores||Me!=null&&Me.total_pros_scores||Me!=null&&Me.total_shixuns_scores||Me!=null&&Me.total_mains_scores||Me!=null&&Me.total_combination_scores||Me!=null&&Me.total_bpros_scores)&&(Fe=Number(Me==null?void 0:Me.total_singles_scores)+Number(Me==null?void 0:Me.total_doubles_scores)+Number(Me==null?void 0:Me.total_nulls_scores)+Number(Me==null?void 0:Me.total_judges_scores)+Number(Me==null?void 0:Me.total_pros_scores)+Number(Me==null?void 0:Me.total_shixuns_scores)+Number(Me==null?void 0:Me.total_mains_scores)+Number(Me==null?void 0:Me.total_combination_scores)+Number(Me==null?void 0:Me.total_bpros_scores)),(Me!=null&&Me.singles_scores||Me!=null&&Me.doubles_scores||Me!=null&&Me.nulls_scores||Me!=null&&Me.judges_scores||Me!=null&&Me.pros_scores||Me!=null&&Me.bpros_scores||Me!=null&&Me.shixuns_scores||Me!=null&&Me.mains_scores||Me!=null&&Me.combinations_score)&&(Ge=Number(Me==null?void 0:Me.singles_scores)+Number(Me==null?void 0:Me.doubles_scores)+Number(Me==null?void 0:Me.nulls_scores)+Number(Me==null?void 0:Me.judges_scores)+Number(Me==null?void 0:Me.pros_scores)+Number(Me==null?void 0:Me.bpros_scores)+Number(Me==null?void 0:Me.shixuns_scores)+Number(Me==null?void 0:Me.mains_scores)+Number(Me==null?void 0:Me.combinations_score));const Pt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Me==null?void 0:Me.total_singles_scores,doubles_score:Me==null?void 0:Me.total_doubles_scores,nulls_score:Me==null?void 0:Me.total_nulls_scores,judges_score:Me==null?void 0:Me.total_judges_scores,pros_score:Me==null?void 0:Me.total_pros_scores,bpros_score:Me==null?void 0:Me.total_bpros_scores,shixuns_score:Me==null?void 0:Me.total_shixuns_scores,combinations_score:Me==null?void 0:Me.total_combination_scores,mains_score:Me==null?void 0:Me.total_mains_scores,total_score:Fe},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Me==null?void 0:Me.singles_scores,doubles_score:Me==null?void 0:Me.doubles_scores,nulls_score:Me==null?void 0:Me.nulls_scores,judges_score:Me==null?void 0:Me.judges_scores,pros_score:Me==null?void 0:Me.pros_scores,bpros_score:Me==null?void 0:Me.bpros_scores,shixuns_score:Me==null?void 0:Me.shixuns_scores,mains_score:Me==null?void 0:Me.mains_scores,combinations_score:Me==null?void 0:Me.combination_scores,total_score:Ge},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return Ut(_t?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Pt),ge}),Ki=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:ge=>fe.createElement("a",null,ge)},{width:"9%",title:((lr=kt.find(ge=>ge.value==ne.fw[0].nameType))==null?void 0:lr.name)||ne.fw[0].name,align:"center",dataIndex:"singles_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((G=kt.find(ge=>ge.value==ne.fw[1].nameType))==null?void 0:G.name)||ne.fw[1].name,align:"center",dataIndex:"doubles_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((dt=kt.find(ge=>ge.value==ne.fw[3].nameType))==null?void 0:dt.name)||ne.fw[3].name,align:"center",dataIndex:"nulls_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((I=kt.find(ge=>ge.value==ne.fw[2].nameType))==null?void 0:I.name)||ne.fw[2].name,align:"center",dataIndex:"judges_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((m=kt.find(ge=>ge.value==ne.fw[6].nameType))==null?void 0:m.name)||ne.fw[6].name,align:"center",dataIndex:"pros_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((u=kt.find(ge=>ge.value==ne.fw[5].nameType))==null?void 0:u.name)||ne.fw[5].name,align:"center",dataIndex:"shixuns_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((C=kt.find(ge=>ge.value==ne.fw[4].nameType))==null?void 0:C.name)||ne.fw[4].name,align:"center",dataIndex:"mains_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((q=kt.find(ge=>ge.value==ne.fw[7].nameType))==null?void 0:q.name)||ne.fw[7].name,align:"center",dataIndex:"combinations_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"10%",title:((Se=kt.find(ge=>ge.value==ne.fw[8].nameType))==null?void 0:Se.name)||ne.fw[8].name,align:"center",dataIndex:"bpros_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge?parseFloat(ge).toFixed(1):"")}],hr=ge=>{yr({type:"paperlibrary/getPaperData",payload:be({id:tt.current},ge)})},Wn=(ge,Me)=>ke(void 0,null,function*(){if(!ge.destination||!ge.source)return;const Fe=Me.questions[ge.source.index].id,Ge=ge.destination.index+1;(yield yr({type:"paperlibrary/adjustPosition",payload:{id:tt.current,itemId:Fe,position:Ge}})).status!==-1&&hr()}),Hi=()=>{var ge,Me,Fe,Ge;yr({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:tt.current,data:{is_random:!1},dataSource:[{name:(Me=(ge=Lt.paperData)==null?void 0:ge.exam)==null?void 0:Me.name,total_score:(Ge=(Fe=Lt.paperData)==null?void 0:Fe.exam)==null?void 0:Ge.all_score}],type:"single"}}})},ui=(0,pe.useRef)(),[$i,Ri]=(0,pe.useState)(!0),Zi=()=>ke(void 0,null,function*(){Ri(!1),Nr(""),kr(!0)}),Za=()=>ke(void 0,null,function*(){Ri(!0),Nr(""),kr(!0)}),_i=()=>ke(void 0,null,function*(){var ge;ur(!0);const Me=yield(0,K.Mb)({categoryId:tt.current});ur(!1),Me!=null&&Me.exercise_id&&(0,W.xg)(`/classrooms/coursesId/exercise/${Me.exercise_id}/${(ge=Nt.userInfo)==null?void 0:ge.login}/initate_answer`)}),Yn=(ge,Me,Fe)=>{var Ge,Pt,Dt,_r,nr,Or,Hr,an,jr,Rr,en,yn,on,Dn,Rn,di,Nn,Gn,Vt,Xt,Yt;return fe.createElement(fe.Fragment,null,!Fe&&fe.createElement("div",{style:{display:"flex"},className:L.programTitle},fe.createElement("span",{style:{flexShrink:0},className:"font18"},Me+1,"."),fe.createElement(le.Z,{style:{maxWidth:1100},value:ge.name||(ge==null?void 0:ge.shixun_name)}),fe.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(ge==null?void 0:ge.question_type)===7?`\u5171${ge==null?void 0:ge.sub_count}\u5C0F\u9898`:""," ",ge.score,"\u5206\uFF09")),(ge==null?void 0:ge.question_type)===8&&fe.createElement(le.Z,{showProgramFill:!0,disabledFill:!0,value:me.Base64.decode(((Ge=ge==null?void 0:ge.program_attr)==null?void 0:Ge.code)||"")}),(ge==null?void 0:ge.question_type)===5&&fe.createElement("div",null,(Pt=ge==null?void 0:ge.examination_bank_shixun_challenges)==null?void 0:Pt.map((tr,jt)=>fe.createElement("div",null,fe.createElement("div",{key:jt,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},fe.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",jt+1,"\u5173 ",fe.createElement("span",{className:"ml10"},tr.challenge_name))))),(ge==null?void 0:ge.question_type)===6&&fe.createElement("div",null,fe.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(_r=(Dt=ge==null?void 0:ge.program_attr)==null?void 0:Dt.languages)==null?void 0:_r.join("/")),((Or=(nr=Lt==null?void 0:Lt.paperData)==null?void 0:nr.exam)==null?void 0:Or.show_hack_sets)&&fe.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},fe.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},fe.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),fe.createElement(te.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(tr,jt,or)=>or+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(tr,jt,or)=>fe.createElement(V.Z,{title:fe.createElement("pre",null,tr)},fe.createElement("div",{className:L.divname},tr))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(tr,jt,or)=>fe.createElement(V.Z,{title:fe.createElement("pre",null,tr)}," ",fe.createElement("div",{className:L.divname},tr))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Hr=ge==null?void 0:ge.program_attr)==null?void 0:Hr.hack_sets})),((jr=(an=Lt==null?void 0:Lt.paperData)==null?void 0:an.exam)==null?void 0:jr.show_hack_description)&&fe.createElement("div",null,fe.createElement(le.Z,{className:L.content,value:((Rr=ge==null?void 0:ge.program_attr)==null?void 0:Rr.description)||"- -"}))),ge.question_type===Oe.c.Single&&fe.createElement(fe.Fragment,null,(en=ge.choices)==null?void 0:en.map(function(tr,jt){return fe.createElement(S.Z,{key:jt},fe.createElement(g.Z,{flex:"1"},fe.createElement("div",{style:{display:"flex"}},fe.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},Xe[jt]),fe.createElement(le.Z,{value:tr.choice_text||""}))))})),ge.question_type===Oe.c.Multiple&&fe.createElement(fe.Fragment,null,(yn=ge.choices)==null?void 0:yn.map(function(tr,jt){return fe.createElement(S.Z,{key:jt},fe.createElement(g.Z,{flex:"1"},fe.createElement("div",{style:{display:"flex"}},fe.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},Xe[jt]),fe.createElement(le.Z,{value:tr.choice_text||""}))))})),ge.question_type===Oe.c.Judge&&fe.createElement("div",{className:L.flexRow},(on=ge.choices)==null?void 0:on.map(function(tr,jt){return fe.createElement(S.Z,{key:jt},fe.createElement(g.Z,{flex:"25px"},fe.createElement("div",{style:{width:25,overflow:"hidden"}},fe.createElement(F.ZP,{disabled:!0,style:{width:25,marginLeft:jt===1&&10}}))),fe.createElement(g.Z,{flex:"1",style:{marginLeft:jt===1&&10}},tr.choice_text))})),ge.question_type===Oe.c.Combine&&fe.createElement(fe.Fragment,null,(Dn=ge.sub_questions)==null?void 0:Dn.map(function(tr,jt){return fe.createElement("div",{style:{marginLeft:10}},fe.createElement("div",{style:{display:"flex"},className:L.programTitle},fe.createElement("span",{style:{flexShrink:0},className:"font18"},Me+1,".",jt+1),fe.createElement(le.Z,{value:tr.name||(tr==null?void 0:tr.shixun_name)}),fe.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",tr.score,"\u5206\uFF09")),Yn(tr,jt,!0))})),$i&&fe.createElement("div",{style:{marginTop:10}},(ge==null?void 0:ge.question_type)<3&&(ge==null?void 0:ge.standard_answer_show)&&fe.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",ge==null?void 0:ge.standard_answer_show),!!((Rn=ge==null?void 0:ge.standard_answer)!=null&&Rn.length)&&$i&&(ge==null?void 0:ge.question_type)===3&&fe.createElement("div",null,(di=ge==null?void 0:ge.standard_answer)==null?void 0:di.map((tr,jt)=>fe.createElement("div",null,fe.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",jt+1,"\uFF09:"),fe.createElement("div",null,tr.answer_text.map(function(or,cr){return fe.createElement(g.Z,{span:24,key:cr},(tr==null?void 0:tr.model)===1?fe.createElement(he,{autoSize:!0,disabled:!0,value:or}):fe.createElement(Be.Z,{value:or,disabled:!0}))}))))),!!((Nn=ge==null?void 0:ge.standard_answer)!=null&&Nn.length)&&$i&&(ge==null?void 0:ge.question_type)===8&&fe.createElement("div",null,(Gn=ge==null?void 0:ge.standard_answer)==null?void 0:Gn.map((tr,jt)=>fe.createElement("div",null,fe.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",jt+1,"\uFF09:"),fe.createElement("div",null,fe.createElement(he,{autoSize:!0,disabled:!0,value:(tr==null?void 0:tr.answer_text)||""}))))),!!((Vt=ge==null?void 0:ge.answer_texts)!=null&&Vt.length)&&(ge==null?void 0:ge.question_type)===4&&fe.createElement("div",null,fe.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),fe.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},fe.createElement(le.Z,{value:(Xt=ge==null?void 0:ge.answer_texts)==null?void 0:Xt[0]}))),(ge==null?void 0:ge.question_type)===6&&fe.createElement("div",null,fe.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(ge!=null&&ge.answer_text)&&"\u6682\u65E0"),(ge==null?void 0:ge.answer_text)&&fe.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},fe.createElement(le.Z,{value:ge==null?void 0:ge.answer_text}))),(ge==null?void 0:ge.question_type)<=4&&((ge==null?void 0:ge.standard_answer_show)||((Yt=ge==null?void 0:ge.standard_answer)==null?void 0:Yt.length)>0)&&fe.createElement(S.Z,{style:{marginTop:14}},fe.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),fe.createElement(le.Z,{className:L.renderHtml,value:(ge==null?void 0:ge.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Fe&&fe.createElement(v.Z,null))},ii=(0,pe.useCallback)(()=>{var ge,Me;return fe.createElement("div",null,fe.createElement("div",{className:L.titleForExport},(Me=(ge=Lt.paperData)==null?void 0:ge.exam)==null?void 0:Me.name),fe.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Ie==null?void 0:Ie.large_counts,"\u5927\u9898\u3011\u3010",Ie==null?void 0:Ie.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Ie==null?void 0:Ie.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Ie==null?void 0:Ie.time)>-1?`${Ie==null?void 0:Ie.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(Ie!=null&&Ie.exercise_description)&&fe.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},fe.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),Ie==null?void 0:Ie.exercise_description),fe.createElement(te.default,{style:{margin:"20px auto"},className:L.table,columns:Ki,dataSource:[...lt||[]],bordered:!0,pagination:!1}))},[Lt.paperData]),vi=()=>ke(void 0,null,function*(){const ge=yield(0,ee.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:je==null?void 0:je.id}});(ge==null?void 0:ge.status)===0&&Ae.history.replace("/paperlibrary")});return fe.createElement("section",{className:L.bg},fe.createElement($.Z,{spinning:er["paperlibrary/getPaperData"]},fe.createElement(S.Z,{className:"pt20",justify:"space-between"},fe.createElement(_.Z,{separator:">"},fe.createElement(_.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),fe.createElement(_.Z.Item,{href:`/paperlibrary?defaultActiveKey=${de}`},de==="1"?"\u516C\u5F00":de==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),fe.createElement(_.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),fe.createElement("div",{className:L.btnWrapper},!Ln&&fe.createElement(M.ZP,{onClick:Hi,className:L.btn,icon:fe.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),fe.createElement(M.ZP,{onClick:()=>Ae.history.push(`/paperlibrary/add/${tt.current}?type=2${Ln?"&isIntelligentAssistant=true":""}`),className:L.btn,icon:fe.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),fe.createElement(M.ZP,{loading:xr,onClick:_i,className:L.btn,icon:fe.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!Ln&&fe.createElement(O.Z,{menu:{items:[{key:"1",label:fe.createElement("div",{onClick:Za},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:fe.createElement("div",{onClick:Zi},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},fe.createElement(M.ZP,{type:"primary",icon:fe.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),Ln&&fe.createElement(Ue.Z,{onClick:vi,type:"primary",icon:fe.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),fe.createElement("div",{className:`${L.wrap} pt20 pb20`,ref:ui,id:"paperDomRef"},!((ie=(H=Lt.paperData)==null?void 0:H.questionList)!=null&&ie.length)&&ii(),(we=(Qe=Lt.paperData)==null?void 0:Qe.questionList)==null?void 0:we.map((ge,Me)=>{var Fe;return fe.createElement(fe.Fragment,null,(Fe=ge.questions)==null?void 0:Fe.map((Ge,Pt)=>{const Dt=Math.floor(Pt/10);return Pt%10===0?fe.createElement("div",{className:"abc",key:`group-${Dt}`},Me===0&&Pt===0&&ii(),Pt===0&&fe.createElement("div",null,fe.createElement("span",{className:"font16 c-light-primary"},ge.number,"\u3001",ge.name),fe.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ge.questions_count,"\u9898\uFF0C",(ge==null?void 0:ge.question_type)===7?`\u5305\u542B${ge==null?void 0:ge.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",ge.questions_score,"\u5206\uFF09")),ge.questions.slice(Pt,Pt+10).map((_r,nr)=>fe.createElement("div",{key:_r.id},Yn(_r,Pt+nr)))):null}))}))),fe.createElement(Y.Z,null),fe.createElement(T.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Fr,onCancel:()=>{if(Qr){Ne.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}kr(!1)},okButtonProps:{loading:Qr},onOk:()=>ke(void 0,null,function*(){var ge,Me;if(hn(!0),Dr==""){hn(!1),Ne.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Dr=="pdf"?yield(0,R.F)(ui.current.children,(Me=(ge=Lt.paperData)==null?void 0:ge.exam)==null?void 0:Me.name):Dr=="word"&&(0,J.ON)({id:tt.current,middle_export:1,export_type:$i?1:0});hn(!1),kr(!1)})},fe.createElement("div",{className:L.export_type_modal},fe.createElement("div",{className:L.export_type_modal_con},fe.createElement("div",{className:L.type_item},fe.createElement("div",{className:`${L.img_warp} ${Dr=="pdf"?L.img_warp_active:""}`,onClick:()=>Nr("pdf")},fe.createElement("img",{src:x(45614),width:70,height:70})),"pdf\u683C\u5F0F"),fe.createElement("div",{className:L.type_item},fe.createElement("div",{className:`${L.img_warp} ${Dr=="word"?L.img_warp_active:""}`,onClick:()=>Nr("word")},fe.createElement("img",{src:x(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var ze=(0,Ae.connect)(({paperlibrary:qe,user:_t,loading:Lt,globalSetting:Nt,newExercisePaper:sr})=>({paperlibrary:qe,user:_t,globalSetting:Nt,loading:Lt.effects,newExercisePaper:sr}))(et)},25344:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ee}});var pe=x(59301),Ae=x(73815),P=x(92832),Ne=x(8591),te=x(43418),V=x(5871),S=x(61621),g=x(1710),F=x(3113),v=x(11436),$=Object.defineProperty,_=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,T=(Xe,et,ze)=>et in Xe?$(Xe,et,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Xe[et]=ze,L=(Xe,et)=>{for(var ze in et||(et={}))M.call(et,ze)&&T(Xe,ze,et[ze]);if(_)for(var ze of _(et))O.call(et,ze)&&T(Xe,ze,et[ze]);return Xe};const Y=Xe=>React.createElement("svg",L({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Xe),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));var R="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",se={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},ne=x(74483),J={sendToClass:"sendToClass___le_BX"},W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu19CXQcx3nmV90zwOAGCBAgeN8ST0k8JFkWLVGyfMqJN7EVO4eP2Ov1Rkle7mSz2fVq3yZ2Nptdx95sNo6zvvISW5aP+PmQLVuSL52ULIo6KJHiJZ7gAeLGzHTVv++vrmrU9MwAM8CAuKbf4+Ngpru6u+qrv/7j+/8SqB5zugeIyD/ZjzXLm3FOCDEwp1/mCj28uEL3qd5mGnqAiLyLw9md54a9jZs7/O8LIc5Nw23mXZNV0M/RISWiGgA7+jNYN5qVorPB/6kQ4ugcfZ0r+thV0F/R7q7MzYiokQEvgZX7zwDXdAM+MAjgG0IIVZm7zN9WqqCfY2PLEj4AdgtgDSSwr0diV7fPbyF94EtV0E88oFXQT9xHs+aMV4nqlgPXAFgrAe/ikEQqCTTURKD/ihAiM2seeJY+SBX0s3Rg4o/FRiuA10iW8OZ4+ozEtk4fSY15kA88K4Q4MNlXOnWJVi5bJE5M9vq5cl0V9HNkpIhoSwa41gf0mEkAPf1AZwPgh6AHBTiZTIqHy30lVpmePY01K1qxYVGD+Ga518+186ugnwMjRkRLJXADgAb7uKf6w0/Lms0MABAEOJdKiQfKeSUi4hZ2Hrggu9c0QzbW+I8IIV4tp425dm4V9LN8xIiIgX6TBLrcRz0zFP7VnRr7lgjnksnSQU9ErWwUBxKdvaNStKd8qvHxvBDimVneLVN6vCrop9R903sxEfH4XCuBzTBqjVZtpMTFIaAtFenzkJAg4FKt7z8khBiZ6MkM4K8XwOIz/RBZKbGy2Yfy8VIS2CeEoInamKu/V0E/zsgRUR2ADgDJ+GlPngPWN48EfefqetasEaPTAQAiWiaBm+P3H8pIHL4IXNPpa92eNXx2zpOUwyqbfaSxsfHseM9DRE0S2AOgTQKCJxC31N7gs7+/B8ATQojL0/FOs6HNKugLjAIRtbG6HARoFQLdAGrtaRZkPzsDbGhHti5JJ4loWKWTp5qacB6ojIQ03prbjFozNk4SGJIS/aNsxLIFGwKe0U9AOq38J9rqxPFi4CKiRBbY4QEbePWQEjjbL7Gk2bcG8agPPCaEODkbADodz1AFvdOr995L/jvfiV0AVkipgR71Twj2Mal65DKwvAlgFzn/lpR+OvAxBB/P1EOTv8YumcTIEdFGCeyEDrZGt9YfnusBruoEPCPnlQyfgYCsHAn2tbamXil0S6MubZbAdttuVgIvXZTY2hndhl2fjwohjkzisefEJVXQm2EiopYjfdhVI7Cku6EQ2I04BTAwGoKsmY1IAzhntCnh+T2DWbzQXoczk4mQElEyAF4noFcZO9fMlAP2nZLYsSz33lIBkiB9z9/XkhKHioB+tQRe607mi6Oh7qbfxbyi7+NxIQq3MSdQPcFDVkHPEpJYuOE2KdH10kVgbStswCfSmd1+PGq03VVNIfjdw/7tSYxmoE6219c8Vi5QiKhdAm/S4HRuwB+HshJDGaAjFd5b/zNsGymhMsp/almzeCl+T55IGeCtPsC8neh45KTEDd1al48O38fzAJ6Zr8ZsFfTav01vBrCIQcagOtELrG/34fn5GkoWQL82/ELpaM/IOZOlbggh6h+k04eODzx9x65FfaWCf5TobQmJlrHz2TcTHi9fBLoboOkH+jvFOk2I/gygSOSDnid1ALCnZm2uFwh4sUdiU6cFfXgfj/yTiQR+NJlVqtR3nMnzFjzoiahbSu3JYKquPs4MSbCe3NnMevPYwd9lFHC4F7iqPSbhrbTlr6XGoj56R3XQqK+52X9mWf3EQR8t5SXuAJAImwrhbo1VtiW6GsKViH+x+jwbpAEgs5ngqXWLUy+7T0dE6zPATj/mheL3bGbujp/rBRLw+2t9fFsIEcwkOKfr3gsa9MZDch2Aq6W04f0Q8KzmrG8PwWUBx4PAoD/RD6xpdeSwC3gDRIN9rYpwA6laDI8m/KfWjuNZ0e1naLfngY1YYdcLe/+hLHR7TTXhM+npwBNRArwCKYlglPx9WzvFYft0RJSS0JPIWTnC6168yL55XjVCL5CeXOHkCRprfCavcbMFj48QebcC3mLAaxnC1ZSVa+D5dTLIEOD1JShxYHk7zn35y6C77pqaUV9p8C900LdJib0A6q0r0nYwqwxHLwJr2g23xRisL/QA6zsA3y4BDuDdyaE1Dgn0Z4EaD0jV+JQNZCbh+c8ua8LLKBD8YUpAEOA1QsjFWoqbh+F2+O+Tl0NwL28wurwBu8xq1QbZLDIqnX3ymtV1UTJJmmizD+yIgGP0JG7z8qgMDVir0I8Z5bKhxr+vEOiP9lJr0kdnguQOBXGDBJJE8EiBifwCnkdKKShF/PgKwj+qCN9OeDizbpEoWcWrNNDd9hY06I+co65USt7BQZm4Scojdob5LQroNgYrG4z7e4AdS8b0aatrs4S00t1+0EAdArqMZ4SvJ4ERqvF/vL5JcBAo5yCi1VIyk1L6dgJZY5Wfo2ckXGk6jD7PwB1VRtLzBJAY8cl/dMdKcZobZuMVwJ3ScnYcw4O9Nv2ZUNJHKpLVowiyuS4X9ERU3zOE10qpNsHzNktSgp9J8b/QXRquFOaDAkHDXv8mZEDyBUh6cMuSmhdn2kBe0KDvG6UNFwflDRdGgKs6QonsWXWGVY0scLIfaGuA1n17hkJ1p9lo/wUB74B/VALHL4feIE1yD9FBWemfOzaAJ97yHaQRhGbD0n6Ib/0GNrYnJdMOclyhWpVRwPkhoCnFz+iTLyXVJqH4HnolkMCwQl+y0f/hje1C09GIaJOhMVilPZqYzMXvzQJr7YQ2oM1mtR0j2xpC0PPEOd6X3Vbr+XeAsFIKJBjMDPbolRjojCQKX9ECXp8yZtTzA10KAvnT3mW19++dQXthwYKeAzUDAW5MCrmOAcNuSNaX17cBDYZ0ELoIgQujYSCK1Z3u5jF3ph7TAhLeZnGMZoHDF8IJZdUdI7npiy9AfuaAv0UQOPprD+F7ObZzfDHQf3sCtKoZfXfvlkfWt2BEe28ApLPU87o1iQdYkrJkBrBbAity3Z5hBJcN7GZe4HjK8WrhGMUEyK4G/77zQC0Nql9RCtslIcHnWukdSXgKbZzuRkDw70bc299DST82ISQpKch7IDjtf3PXruI2Q8EXr9CXCxr0owFu84TUASAGKKsPLMQZEG0poLUu1N2Z58KenKFRoN3owMXUGVf6sypyshdY3jYGegbcwYtIfewxcZXw0Lyug8YiYYwNoy5I0l4fZBmB7JZh9UUBAUt1BqkStKoFPX94PR3yAQpBS+duXZvU1GIiWiGBGxFGlo2ED5+OJ8kLF4HN7Y6f33icuB2SkDUZ/4eZRPZNwvO3KwHmIEWADyK1BQgION4LrNJTN1RpigHeqkGkqEd56t5dS2onnfAyFfwvZNB7aYm3CEjth4l0aAWwyjAigRMchPKA7jpg/zlgZRuwpi2U7qNZ9unDi4xNxyrQE8IYsYmkr9qTkjQjzcyI+4+LtodPe1tuWCFFqsZxi7J6wH5343tPs4EqWYJrI1VPzHQApNljo38T6jevpyfb6pBhICuis2/6fOLh5S1I/ug92NaYAqs3jqCXYSCLQMf7obYylc5MAmssawM6QF0yKdZ6QFtgyERanXFVGqO/H+sDljQQksawdyfEmLoT3seuEvqzoN4aP/HxrZ1iXHLcVMBd7NpZDXrjUuSgEbvbvHQaorZWd3362DGcnwq7kdtOS7yVIFssKhw7L5SMRh8dzYS6PfNsmuvgfWq/33VmALUjAWoX1au8PrQTgcG5vhl9b9tAZyK6ggTuPyG6LijauKQpNixlgJ5Bng3YXpBn3rHFP5yWoKzyj9/9HXhtKWy+tlstTQpPT0r7PFbHTnpKrWzC0M5u9N+0nHSBqAxHtljdUaIt6WONMsavBWohMA9ngd4RoLM+tF7tfcKVRrs+9XFhOFw5jSYVnUhER+El/nnXsiubojjrQG+Bns1ivRDwhdCAZ3hYJyFdHJHZ+gRdTCWQzhCl65PJ51hgleMVYD/zfwjwBlJSy7s8wJtRdNWV/WeR+Nuf+atf6cOSq5dI0VoPtOTQ0vJB3JIU5966nHSwyErTE8Oi9eUR2mpT/6KrJgH6pmQw+IFrEz8LCOroqP/If/8hbl69SO5ptaE2Vo8cD4tWPUiDkhbX0dCmxRh4/3ZxXAhk4aE2JcQWCDToBcHMGAteVze33i3PI3TUhyuU68Gx158ZDB0EWi30cg1gPTc8/GR3t//FKxkImz2gJxKXgOZmqQlRnMLGcsdhOY7Bkmu9sK+cDU7ua80uzNJ5yo48+1RTU18pngE2ZEdHcTM8ucoFfPTZ9b+zOiMh/vgHYs2+897Sd10nBdMAvAl6j5uohzh3Sye9bAHPAL+URd3BAXFVmihX1k8C9Gvb5Mk3r/GPZgjy7570v/ZSH96xcbHcw9wcK3EZkFptMYC3XJ0QqIJ2d6n0u7fh5OJ6b6kSYANY2xH2iFySkfQOdff+NFCbMP0QuSqNk0oBDHjuok5uMRLzuSsCgz2g9EdvXF5/xajMswL0nJjc34+VZwO5c12Ln5OwEQ8a8UAcvhzyT+qM7HdAS8qj434i8Yqh97orbp6KN5CmLQKSI7LRYVWaaLk2jT98UjT+0YPe1jdulMnVRhcupjO6YElBnHtteyjpI/1fAafTqu3EiFgfkBhL+CsD9IECNdeIy2/bSC8IggoUgr/7gf+vxwTesbFT3lwq6Nlg5m785S0Cb1jnAN1dHRxAh+oOgVWbVweAda2h1HHVKD7n1CC0ns+Adw1bewc3LUsIcXj3Mv+vJurPSv0+W0C/UUpcc6Iftc11QKvjMgxfdAzW7EFhQ5MjifkhpfBMj13W0j/dXIcnx+O1XximZSlf7i0m3d07f+eIaPnzR7D9XTsIjRFLZ/xhYCDUKtGzu51eTnrh6m8nFd+zLy0ahoBUQikOETUqeIP1KW9IR1jZmDX/97NLxXhXWI8PsgrC87KLG2mo3tOnioRHJzZ1Jxr/7EG1ZzigtkUlSnoGPR/bOoC7dwP1voh08bg6QybyxCAeJWjgt3BfOPo7A/7MAFCTDFUa159fCPB8rVRIJ8n/6K7V4kylgD1eOzMOeiJaLCVuZ4KVTmi4LLGm2dcswnxNO/Sn83ku98W+oAavw3AcDvzTL2bx9B1Fwt8DA9SpauTreZ7YJd8li0WTQQLfOCJa/n4/tt+5hVCXlzxYvIsvDNDIsqT38u5l1B9RgI1+z1cxrSApVHutl2wdzarhzgbqCUinwWrpOaKAIXalGoKZDkaZwBn3Q0eTaFzVjMUrmtD16EnP/+C34G3ukmgJVb9QCo+j3ljQ+wL4y9uBRakQElZ6R6PAgGeXqXnVVy4Bq02EwervfJ+e4fCEzsYxwLu9E0l4szqEN2MPq3zwNatq7533oHd57PZlOTzOQaLuBqmjo/awLsULTOtlL4pTBcCC3Z0m7DZkj8ugxKWr2/39HfXiVLxDLxG1iLS8xSM0a523QKDJeB9x/xHR8qkD2P62TYTaMkDP+acnLoiLH9hCBxNJKOvFsaF/fqakJ9oF0JYFVEsSPb6gQQYQC3j2jnDSSquhMTPQ2V0pPJVY1+53rG/DqoSHGnZr/sFDwJNs77QTakV5oOf+/R+3Ae31womshj3GEj7H904hHWNbp0NBiOvwcW9ODPk5HqXwtyfSh/3P7d07/czOGZX0o0QbEkyGkmOJ1yz5OH1tjWb/hb1hAc/r+Eu9Y0GVHBBbCe/Qeo/0h6vC+lZ/hCR+1tWCo66Hhz1F/cPYKT15lQV8NHGMRLXS/tuHRcunny8f9CwgT18W9NSravB9W+iljnovA1Z1nPZrINoHA7Q2snEML12flKcDQLGPntW5y5kwUMZSnp+zpsav2dOtNtXVgJ2FHq9+f/kocPASsGERobFW+9rLkvTcx391G7CoLoSEy50pxK852QcsbTHBNBVGrT2PV4p8CZ9TVsFRhdzxU6QOEiU/u2eV6J1uaT9joNcJylns9DxsyHUXhtTeAyZi6BAAdXDm3CgQZSzFPCyupOfPXBuG/c9MHRCEtJT+CysX4QUX+JfStBUK27NSRtR5SxmIAlYAHjg6OdDbAeRE7seO67oy2ZSvonqTDAhfIBEE8Nnw478DBebnhh5DY1DadvjL1lqvzveUz79dGg394NxPazsosnMmA/q/3AssqhcmiBST7kb48CTOmAAZT1I+BrPAYBporwOEgygX7JaIZoUYvwfHMZJ6orOfTpwPyPvcLSumP01xxkD/s15qXeHjlqZ67YPP0981C9AFuPHaMCtQ03odwOuOLKCasPTh05gsxkdAGCH4T6xvH0vmuHSJWiiF1wdK1rnS17ZpDU8G/WdeLF/S50ozo19bIBtkW3Bbw5EDQZaOwGDRfna7kpm/dbDI8cFzl+jz+Lswqlq2pP/oXjY+Q+ZYIeluVZK+ESDhAfVsNyjg2ACwpD60O6LJ6b54zLvDz8nGLgestOtX2xBqSPn02detqH12Pkv6zpd6OblBCnY/shPA6vDcuTxwzFBkwGr93WQsMSHMHm7gKK6W2LQ+DvPzJLFGZCAxnB0dfGj7qtZoGT3ZT3cSydbIG2RUJNfT8v2jouVzUwS9i4hIpw1C6a6BbydBmOQdfsefHf96ZJSac/UEscZqRUCfO8GsZLbPy5Oxl/3zXgjyE30h2cwUkdWvmKfOmHfg8bo4HPKJeJK41yiiASXV525ZN/18nBmT9FyfMSPlbaxzM7itR0QXJDWgZ3WGjVHmvDCtl/3yTZr6FB5x6a4ngdGVuV1Wb5g3Y9UVLQH1lf45RXjkmiVCF8f7+mFasbZR7lEKHrMqUzrpw3hMTHvfPyFa/mmeg/4vbgkNZg1cRzqHzMmxfufEGJbOPD58cFSa1Zo42Jkn1JcJg1eaNsFFfJpC3V9z8e046uwTOksi8dlbVk//biozCfp1GSlfY8HLHclemxEmVrFLsi0EP4N9SIaf2X/fUDcG9rh0t6DnzrS5rNyOPs9Kb809l1Ced3TX0gTXd1H79lGyYz1+bmBY1vFz2Kwo1lUHRsIV6JnzouWbR6em3sx2Sf9f97D3xuXFmwkQC/ExIY5dk+wxWsJSnukF5uX4t0vDoQ+fjVqeF9yf2kgvEJW1fnwBdVB489yQTafTm+D7O6P+tP5n88XlEYCToNkIHR0JO29jRz7gGcwW/JHhabKJOGuJVSetLjnWMntFNA1E+fuvX4UX2Mw93U9XjwRyp1LQCZ2ayhtWGNBLxcOvipYvH14AoGeh4gj2iD/vSHtWvZ5ml2VHKKTYdhoNOMrGjMsxm4tBzhx7vXKY6935YwGvTxB4/NwT/ueuRD7tjEn6NNEmJeXOogxH00kMQJb2/I8DUpGxZEBs3SCR39sYfDaKWVMzRvSKmI5WhwaGvKz/yI1rxbmT/dQ+NCpvIMIiblqv3DZn1ID+i/Mc9PfsYZflGHdmTKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALeD163Stzn3nO6Ps8Y6EeJ1lNG3hipKHH/jeuO5CDNUKj2cGjb6vyuIauls71GAof7wwRqe7B0t4c1lFmkCc9/Nb0cP70VkC/1YpvMyK1ZEVXM03x2PhaCpP/IHqCNbaaYOuO6TQcyoerCzMqIcFfE9z4R4O0KQAIZTwafuGVdqmBltkqDf8ZAPzw8vEz5NVyJIDrikdV4wIiN2pQfurpyIqhGulsmI4/ZEc5YMhsWRJPDQb1dISSHwFWw77a1tS/v2/dUQnRvfRNEQnPsxwxf4EeTVG86kgFaE5SXA6hxZfQI672xEjNyVzqZVK57UnsrjcuSaQE5nHfjxjwxKHBqOFEyDYGb+083Gwqw6ad4jIDVmnODobHLjodC0j1e3zvi3sQmUkRD1qoNnbttdfI/VxrcxdqbMdAPDg52IZnieiz6sIB3A1V53hlDLWBpxBxtlxHpAn4kE1YJaOBz7ADa+ziJyvYa4SO9/5T/zd+7SYw81TO6HunEje51/PnHr4qWr5Sp3nTXBtjbMoqOZG74bTKDG8PMuE0w0F4Z8PGVY7V4/nKyJO6NC3o7IeP3vMyFq2AmRsz3bh9oIumeE7Cyol7R529bn/zpZPplMtfMGOgHiBaLjHy9ccwUDDZFUHFC9hy04kwmdm26BC6bHM3XHO0F2OneYNxvUcUiuyLYCWDC+uwqP3DJf+mPrsdTzwPJwdPBrZ4Sne51D58QLV8v03vza9396ErGZd9khmly13zxaA2+erQuEg6F+PSWcGZBz6uomxYYCSUCDl4Arl485t2JP5WbDlhMf3evCTls1EeU+PM71l25mjgzBnreAHgoHbxWktCFjSLNIx5ZdTKOrLF6kqmrHsDZQVYFiXz07J83mf5sbOlVxJXuMYajVmOkVoeG13f4T7xlgzj5kxO01IO8ngiN2lYA8MgkQP/r3f1YNIOg//qJGnzxlTrthdL9VCCJxAX9n9005qd3JTeDk9UadkEmdbHBXLU/mtYx37sL8DglIZwUahQQ971+bfLHk5vWk7tqJkHv9WVxnZByU45+HokWE1RyCGcWwKyPc5WBDrOzXpSVxAQt9vdLoE2HeHP564UYjvZaLuy0uJmOPnsm8fh/uRXy8ZPYFsgxo/Ynp0TLN8qU9FfXpfHmjlHm1lzx4+SQwKcP1eH5S6WrNy7oXZCy4do3Cixm49XxybtgtxMhslXMGxdSZ8bUJjUqyHvG8/x/2TtNu7kU6vgZGI6xx7iYTm8R8K9RnJ1pVQ5HEo/nneFAFhu2bKwy1dh6WVjv5N+4ZIfDrY8KIkWeG+uLN/9zdLGuFqq3d+j+D97UcumhhyhB6+RbVYAmXmEePS1avnm8fD99ylM6ZD+2lOV+1Cl7lltuy3+YF48oB9agNUaq5bUTq2dKs5VDmzjcjURL9N6Mh9HAC+kMJfDp+fo/vSmU5ny4hibTuTlxpsZIeXcViKtC1nDNM2hNo3nuTIISRJeGgssf+/mrF+sk9ek+ZhT0fX20KCPkzcrTObHRYQEc9727xip/5gpdWabdmoHiDue8TE5g4MMGliIVyKpOzkYKmnc/BHQauoJSdOZXr0n+gK+/9xAtzozKmxs8NDx1QbR8dxKgLziATgIFE8NmC/eGQa91enOwWmMrHnCQMAfs9hyDYjfQlAd4N2Ekzs0xE11BHPbgfe6N6/PLHVZ6Eswo6PllLozQ7VLK7oIMx5jvPQ5enhynDGA51M3JFVywiUEf6fhGArp2A18XSXxTodjWs1Ee0qj3f/ie9aLnnfeS/4tXYVNtjdz20HGx6NGe8iX9XAL9n9zkuCwNUI/2hdXdLDVjIu9MfJWwtW/cfohctHbCaK8lm170pbdsSP6w0iCPtzfjoO8ZpQ0DA3J3woenWZYOILUBGvOX61XAMXZZwnBiCZPSWC9n2gEfOS5HY6za7y0tgdtnI4+jt8zp4YvI80llsocbdyb33cX7RhGJb7yc3fX4GX/3907gmnIzp+Ya6NuiemjApZGQV1PvfKffx0rn8XzvBv32lBzpb6jSnGfL9k5EFRc0eDaR+I/vn2b9fsZBz2Qv6pbvqE/At+5IphJzppAbIIo4Nq5qYhDF/A9mVOr6KlZNcc7T88RmVFn3p9FzOZ1P1640XHC9CpA/SCk8dvfWsPrWRz5C3qs34I0HLqi3z2fQv3cbsJn5TUzDCMIEFVZ3tMfGkcoa9w7gxzdWw0Gy0n04HZZNZBuB1Sfm5CccFA7W+b9z14qJ98Gdymow46Dn+jMnh7BNZeR2ZjWyjs0Sn1PkuGDqIKfHcaIxVw7m2pIxukL/SFhAlBOo1zcBDWbDAivVNXHM9lAM8DxunIPKUV5uWE8sPsf3iSSe+c3rBe+9pI+lH6erli1SvzefQf9bO0KKMOvvA2mu1gAsMw4BI+BDQV8E8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgwvBNBzRx3ppVVCyRsDQtLlw7PU5cgqqx/skWG6sBbIhqJqA1JcvpqJaL28AZnx3WvQu6qRLXxqQMwTgVMJmc+jQW9rOho7goTfe3kY373HJCov+9+0cWmz+v35DPrf3x32Ma+yA1mgLRmm802kzrhgZy8YMy45UaTeD1MCua2mZCjV2dNmVaS8FULQqeF04mN3bRVROuVUJHqxa2dc0vODnSVqGLiAXVJI3r81AqALXFfS5JTSMCKdL7tsuPc6WusAXn820sllTzJdYcjQFazw4kHntkhABr7/7T/ZFUYKFwLo//jGUJXpGQz1bC7UxGoOAzgqKuukMkZiWoSAZmCzIBo2FZaba8cESrQ4mA95gA8Lgdx351WJH1RqA+pZDXp+uINnaU0AeUMgkIgM1Zj+HufnRLq6Y9hyXi13vKYgOPQFnXJnzjO1k/QkcWvRW8NZ+7w9rsVCR//kpuQjCwn0LXXAsV5gGdebN9lQVmWxRDgXTNxX/D1LT86btRGXeJBqPP89nyuEOE0I7vu5DTU6v2E6JLxtc1ZIevswB85l75BSdLl1HyMJ7/BmctyRjhrDIGfAs6Gkc2NNw1HWlLEH+G+O2nIFMQa9ngTWUDMbl4VLtn8pUPjRPXvF4EKQ9H/Ikt4LM6JaHH+9HZ+4dHZZlnxOzu9uFYfi0j1iapprsz7oS3deNb20hFkF+ud6BpdkgxTnzeoYpl0S42xKq/YUiq7yb0xFYAOVPTnWPWm0oChfVnttDLnK+v/5Rz0BzApB5GezKrP/o3trD04W9FzfiYGU19Gmyq9+Rycia5PAGQQ66dvEGXTk1vJn+BlNpJWU0hsjsLS1NGP+uy/tQaryIrK/f0PYDqs2vIOhe0zkoYn73l1hlTchTMPupInaJxqWQfqzv7C1cf90SftZBXr25Dx1GtcpJTfrTnOIYhH/3TAj+Xf7nd08OPrObKyg/e/O/lDWO8OGlZ5V8biAVU4H024AAB1FSURBVIecWIGAfyxxHk98ugeryzVkV9ZmcWfHcLjsl3jEXN/hVQW/HGuw0M+nhwU+f6gOL5ZBLf7t3eGK16XrFscSvc3teELFD5eyECV8O6W73fOjYsjmopxrdUK6IAHVo1Twj7+4ue54id1W1mmzCvT85I+82rfIFw2vCXgvJlelccBuA08RXcFKZ2eS2KAT4zppUgbt5sfs5qzjyWBAbyW72x5/1iqPQIZG/Qe/eByLygX9B7v70TqDLMuvHK/Bl4+UzrL84LUAB6dYyheS7PH5Fwf7RNLdrmoWoXnqUq4r9KmLQ/5n/t007Es160DPHfLYq7QhyMjdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ//NUjqC8b9Mv60epPq002roT7MoP+ldL59D+/Htipd+DKB30x/d0arDmrTUzKa8eA02ghMlpOknhIwpNeyv8/v7Be8IYbFT1mJej5DR88nr1dSaGHwC12OpHvPfLYOK5PZgna0iGs6zczN8foRpbVYFUk/bfDdgzLj/jD3z2KFxa3qN8tx0/P6s3r20bQ6FNUFaCio1fAQLTS9sywwFeO1eHx86VTi397pykBYh7SBaoFdR6dwNW+Ys9jr7ETpiDY3eUjtpsJCTokKPGJSvvtZy3ov7ufGgZ9eXt97RgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1e0f9Z7ua1W+XA3q+N+fIdiXl2A7jZpBzVAM3iunuzscGqmO82s+6CacamgWndemmFfD8ZR89I+XlyP7O7jGWpRtZjUt+ff+Yd6YQoO1zFlo5bBuREHABbycd0SAR/cu7t9Xsq6SwmLWg55e8d//oVUMycV3fCBIccOJk5MhXbxJErApiJbY1Vvl7u2Exf8d1dPgcdmXaw1WDtAcnlmBuy2InPNDxQR/9Ur2uXNAXHKxZSi22oC8G+Dzfe2wCx4R2jo4UN1gjv72ZPIVSDvTEBr717q2JbywY0POLfvOF9NZA+NuDAB7v7K0TvjmcbXzuHPaOpLajCvF32k9vWJQs4a2k5w52I7P6s2nHTh5WqXhbTes5OTXiN/cHal6zLBn0TTFGZVHf+3iAj3lm3MlgvTt8ClMU9HahKsbjNwjn5BrPE68MjQ5/5td3NJ2vFPBntaTXyyKR+OrL2V0UeFdZfz1LHKYQaEls6MG2Q2yU1k4EK9j5bzZ+2V3JtSotuHkQGPRuQEx7eYzPnieOLmM3JFr61fzm07PLUu+WaEFnP0SJHlbvCP/P877EvizmneG+5UKuvHIzAJnC4G5aZyS8lTiZNKmPv29b6pUFA3p+0W8fotrBEezIQK6BMh4do7646owGtolY2cBVVOTJeGdYenMklivmWrCbBUELdcvX1+2Ybud2ewZEyxDmN+h/a6ehdMfSBV3fe96E4CBa7MtCYGcBxd9zZltDLfT2QGFd+jEo5xq8So+HEOy6T/71r2yuXN36WS/pbZd8/rtnGxJdXddlSK5SwtSb5A1/LbXA5oEaBI/ne9crBFOWObfWCi/Hfam3nNeVR8dWgPPDomVkAYCeuTeROuJMfKvmlSrd+VLmzjNdnIu3Mk2ZJbrdyCEeUOO/WZ2x+qT7exCov37vtSm9Q2MljjkDen7Zz/yMWqGCG7OeaOdCq9aVGXczWsBHjM2Y753bYvWIO5a5+7odW6zVqEuR+mOuvTAiWtLe/Jf0DPo833sB12iO792hVLC3i/eXZTHO1GIWLmyDJZ1S3i6g49J9DPZm8inFDoaFC3ruhk88Rs11SWzOKKzJkvR11NRJFLHqibVBNXjZWDIiwtX5uWiUPdyJY1Uil6h2aUS0BPMc9HfvdHR6xyUZl+7M+7GUY7Z52EXKSSesrvCkYYBrgVLAJRMBPpZswlfkSf+QvZlNiOT/etc2sbB0+viS9olvH6oN2pduI6q9OqILu+mBdhIYQ9e6NbmdOF+HM67skeP+dOvZc4ZVRrSoBQD6yHvj+M1DAluYeM9esPpEmCiSJqCWK8nZ2vNOVpWjqYypS1aV5P9NDMIlFkXBrJyVRZwSmcw//NquhortMTun1BsX/FyXZl8dNpOSW7IBfCvBIx3fqeoV9+ho/7wNaFnvj5su6BiwVlXqHxEtKjk59Savkx2XnvZX2wiwkX6at2624OF3DoKx7Xg0m9KplcPb2esmuCaOsSh10sck9pz68LUhpZjLfpwdCiPTnBTOu4/rJHoK7U4GuivFC4I1Jrajc3LcmeG3OeqOC3h+T0EPHLn0yNfv2bs3spenqtfPWdCHL07iv/0UK4VMb83IBO/DOrb9jlFrzFe5O5EY41efbyKwLtksohhbyaSAvhHRImrLA32Np7CtPotmn3f4jg1VXE+ObzVvni0Ci4MOHZmNuLxO5QdtDYYAPTLo4cAlH+dHEyUXe3rHxnCbzJziVHxfVlfG8b3n8WZciR777BqrLuBzkkysAS0wrFTw5V+/rl4n8lTqmOOgD7vhL56mxYOD2C4zUnN1LHdGMyVtpzvJIVpqme/1OeYkd5Xgn9k/r9vjiG7Gb0nWqrI2T97bNoydTVFaeqXGrKR2OGj3mVdSePB0bcmg//c7YhstTEQUK7Ddp324HOmt5ZP1608g3Z3JroiOjST7Pnn31s7Bkl66xJPmBej5Xd95L9Ws7MA2mZVrAgWd92ON2ci4ddyaGufORIhWiQLn8LkM+lSZoP+3y/rRMoMsy++cTOILh+p15NPSLOwWnRpbjgrFUPzwDqDFRPMm8r3b6w2ec3SU8bwzhYzVeBv6HAEpZPCF9+6of7RELJd82rwBvX3jD9xPi1ICO1UgF2cJXuS+tIMcSxSxkjyiMjgMy9Btycq+juS2pOrKk/S3tQ1jxwxJevawfO5QCt85WbqkZ9Azl16DroA6Y4RwTgkQPjnOq7Hn6WaK+N5tJli0MsRmgwAOHHn55U/dc9fWildGmHeg50780APUkkhjaRq4JitlwiaFx33vOd4aM1JjdoGfQ00YzKKlvkzQs06/oymNZbUxlqWrA8R1+7hhFweg1XdNGxFWnHbYUH/iQhIHen2cHipdp/+QAX0hwMeNVX378QDvqDMlS3fzTgTqlZI+/cGdqcMli+8yTpyXoLfv/56vUrsS2KY8uSRQSLjlRax6kxPYMiqPlu6QJlElTC9n0DeWCXr7HFGtHhfsDj04qivjUImtXZKzY7hTgVhfY4xWm1drpSd7d1in13ZtGVWLP8jqjanp78w1i+9Iwkd++9gEtJPF2NN6VsQBb7PhokadSc7nevCyStBX37898ZAQ01MVYV6D3mLsXV+j1UGAdYpkV+CoPBrj1hizSeHacA2B7kNqgzcjfeb0TBr0eUJollKLOV2Qa9XE5mbp6kypxmqR1YonE5H6xgevS32rDMFd9qkLAvTcK++8l+rSEm0K8iYF1LC+HyWeaz2fIT7m8rSeHC65ls34GFRoaWksT6cvOhpzAPSF1JlC2+u4VYm5/zwj2+O+92Krgz2Pu8TzvO++b5v/Dd7Qumwkl3HBggF91CcfIe9Nq7Eymwg2gBLtGZJ6qwGW5kZNHQO/MXpraiRGRv2WxnkO+g9wcKrWBLtiPsdCxqrur6j6mdKJOl1OHfu8mpcxF6ftb9LUevWtU1+rfeCee6YX8HzPhQd6g36uPX8ui7UygyUKWKFY8jvFoGyurR2YYAFIegY9l+Zz8V5Qups+ZHLZYJrVQKXVeaYM20ht3DsT0ZPNtWMSXlwCgu994Nq6h8oQ1lM6dcGC3pH8ic2dSDWmsC1DWOMpCMn/HANL8/QDtHQ0l6/eFFynjdjUBp9xiPNnvX2OQ0nQP7Ev3TFarW/dNVrZWNXUBHseX8Y0BDZ0jas2yrW1W/hYe8Z5lvduB5odQ1b3kfO7FQCca9AzADSmmC4cRptzuGWuR6qI/s6kS07lralJ3vdrm3AW02S0FpodVdCbXtn8EapJrcDKIINu8rGECLWhNyE8RgO0tE0C9L3DwMnL+V0f15mtRHXrRlqQRSF6S1Vwi6i6SeIuwA1gXYlrk7lD3/lYyW37LK9dBtgdGR28m5PH1B6uW89JOKwKbWhTWGSKQ9k2Xf09z10ZJobwa76YUeo7H77uyuwS7o5AFfQxPN76ECUuH8NyZNE6KrEuQbKOkT8U+JOS9M+dAU5cFuhuitcLKL5Cx0ETqQKOYu1OmoiLY1cn139uVo440KPanXZymBlmVwQ74fTPMWlvVRUWCNs6FW5fM6YnFwO8A/4hgB6HyjxYybzXcvSdKuiL9haJ5f8TqcYa1GcFtrPqs6RZ3VBONQQOEn3voMC6DsLVXSUOi+vZcepX8tW2fqXr67Z1LF0prlUgq1ZYFcewLvW+sY7KpFUsW3bEUYf0/Zw2rNqlv7KTioCuBuANG1TuBgvufrJjr817xp5P1iT+cfkmnN8rRMVYkyX2bHRaFfQl9thkCrhydbWHDgm84WoCbylU0jHHQH/DUoWrO82bFfLOKMXlKZ8iofa9ek39/num2R1ZSh9XQR/1Eglexr8MeIsfhsCtQNNTEAMp1NZ0oP7/PoFNBy+rXy5V0rPSev9BgeYa4Ka1lJPtP+7AzCHQMzfttSsVVrZEar/+QB5vsAAJIV71FB4PBi/v+8DNV2aP2Croi/TAvtNUn0qjWdahjgIkUauX+MXCR5cPLCeFpZwUxJfzxgTsznzmLPy/fUYlSwI9AS/1AE+eEPilayncwqbUYw6BnvX5a7ui3ZA0e1iA+kiI0wmo+2v92qOVLslXajeOd968l/S8M+Db78Y6X2GVJNR6CXhE6ABhuSewSBE4/3/Cfnj2PPDJpxVKAT1vKX//CwLbugmbTUHUkgdrjoCea9a8ca3SuwRq6Q46J4S/PxuMHmp5peH5u+7SXt9ZeUw42LPyqWMPxQWhDgM150/Ca66FrwjbILBDEVKCAS3QpgitZkO7Sb1zqaDnVLtvPS/Q0QjsWUNI2O1QSu3IOQB6DmHvWaHUsmZkhEfDmSz+xRM1F070ocduTFfq687EeZMCwEw8qHtPIvKePYcOobBC+kglPLSSwg0QWKSljoAnlI6wVuz9DpwHPjGBpGef/A8PC13fZc960hW8yj5mOeh5X9nbVgPLmqi/rT7xnWQNXri+E+eme5+osvtxnAsqBopKPlShtlhNeeeHsBwCm5FAIwHdAsyc1OrJtB/7zwN/s0/hzi2Fwcy7nvzkkNBJ1Xs3EtqdgE1ZDzeLQc+R1/dsE9jU4emgnRDoV8BRkjibSKI3Abx09WJxuqz3nYGTZy3onyOq6T8Jv6kOq32FN5BCF0dJ4WmQl6s0TLlreUfyjz8B7FgtdfjdHuy35iKkX3tG6MoBe9YR2hpyw/Jl3XwWgp4tVK5M9t7tAiubC2ygxb5/gUAAI8LHCBFOEeHr/Wn0vWY5smIGffKF+n5WgZ6Bjou4hiSSno9bBLCC6MoDvFBHcXDmgeMKB/sJazvCMzgwdLoXePyYQHcLsHMFhdv6TOWYZaDnTdduXg7cvEKghSvflnEIgUBJ8K7r+8nHpdZ2HFshxEgZTUzLqbMC9Af76aogjet8oBkC2xXvHD7LjkxW6dLdT/cAFyTvpE145BWBVy4Ca9qBmydjtBacXWMsR3dHQT71SkdkVzQBNywT2NHtTdk4EgLMQDomgHMDCo/MpB0wI6A/dIhqR5vR6nvYJQRu9jw0EulqcDPyPOPNLwZeWqqwHIgpssRl7E6lCSd0QSSBpE+5JeymMmENU5KbiNLuLPPS/mb5NIY0ps8zFdksrcDuAsgsTh3vN1lNzMbUNARDkokyx5zvmEz2xjXA5g6BZCLU3yt1EEHx5nUgjArgvnQChw+exNCV9OdfUZAdGaQuCrCNFNYpT6sxV1w3L2vwuD6O2afV4EZfblmPzCe3XJQIoI6yX4hhaH+OiFlxMpdBu5NRFKpS7oPHGtZ5sEVerNj3+n0K/LgoBXTUA7Xl7ANaVqfmniwE0orwjO/hlcDHc5uaxcUpNFfSpdMOeiLyj13GikDh9R6wjASWOIzdkh5ypk5iCe9m/Fvpq7ES5YOOleWzv4czI3xqpxBZDjc9zrnMoRo7YMy5PtYRxTYwm2x/8VK7tNkrnTIx2RsVuI4LtZLAWQGcHkzjS1/9O4xMVxbVtIH+0EVqTiSxNEjj3b6PDg4MmVKIFeyq6WsqoDAbyJXkLpAdgT6243eB3TlyMoYKbDWp54czA/LS8uJVxHJmVvgUrsCOPhdoc7ze8gWwvNlDYtoQUdpYaSqDQOB5eNQHHvebcXqpEMOlXV3aWRV/xVeJ6rK92CU8bIHCNXNFqrvdJZ11P0fNsFRbB/FxtcYF8HjX5tRuNO0VvdZBdh7Ai+zMnaO5jKP+cNOss3MiSHPN1A3W0mBX4lkCXFT6WXg4sLYZ+ypVEqRioH/uOappXIOtvsTtirAchFRFLaAS+2nKp2lLb0x6umpIHuDMljLFpG00dwqk3OW160youK6dd19Xiheg8xZ8/viEdTqKffAdjV7utp9T7sjKNSCAQVJ4mQL8aFU7DgshplQgdMqgZ9966wB2gnADgA1ESMxFsAvezMpKXKumOEDJqcxrzssBbt4mA0b1cMHm6Pk56hH/EZPGVrWKVwQ2p0aIMs6Y8G/XznAwZ1W0+D35HkkPWNrgIaFrQszeQ+fUEpTv4cVsGt+/cAyHd+2aHPinBPqjg7SkRuJWz8MeyWCfowfXatG72xXwpEQqSgFPR2R82kng6DN5vzniN0dyx9q1rsQ8aV1AUhdUkWKzIq5+xVelznreVKGSTsnpB4EncAEKz8tmfG0ywa5Jgf4sUYMYwmsBvB4Ezv6cW73mjIvwlJ6tLkgLufLcoXQ3F84xPJ1GXCzHPTCu7m7b1e04W1fGVSNXSru2Qs6cKWBz5N3buWFbDdBWPzeHTkt+hR7eavhiM57ZKkTJhV7LBv25y7TOq8HbFWHj9M/p6b1DguMkZszz0rYLAChP+roqhNNA3IDNUUEclObp9TZglDPD8nfqyPPwxNSj8ewF64JNJoCuet5OZ26C3naRx94eD494KTy8SIgTpSCmZNCzv/1iFjuFxBsBLKskbbeUB630OVygaLzhLqDN6EeIMiOcejXxZ4sHiyIVI9ZosdUlOs1Rt+xK4E68uK5uNZsc9SkWT9DP6gEchKrP23Kk0r18Zdpj4BPhWKDwra4GPDeRl6ck0BNR6vIofgmEXSQwVUrVlemJce6i6y2KiXWyOHgKNRlJVefkCMzFpHoBozcCcIF24quQpRXkqEbmD130ydWF3NXIfGZvTWvd3JbweWMhOI0C2VGFLyypw9PjMTsnBH0/UQel8W4ibCklrW7GET3uA4QG64QvbdrIU3msKDW/x1eDSK0pJNFjYI7aLuJDz6lL41Af8oDusjKddy9Ujo8N39oEwIkgfs5+l7N71Mp6Og5sCTyANH7cXITSMO74E1HdQAa/BcK6sm48K08usNnZZJ+zgO6jDcaCsySfF+MarfEaj8VUFP19gVUgUnfMb8WMZv6eB5sBXzvH9fiJho3CnVMPZmrx+cVCDMTPLwr6gQFajCTe7XnYPNf1d+2SnKinpvC7q5vHmV9xEBZyi+YsIPFCSQ6Yc7SWAn59dwLlVQwGkEoATWVy4qfQLTN9KfkChzJD+H+traLXfZiCoO/pocb6NnzIF9jI29HP9NNP7f4haqYT9PHniwRy3AMU4+bEA1KR1B5HqltgxwNj7rXxVYH/Zlf8AgJ8JB88YF8qia8JwdWRw6MgoAcH6XY/hbumBrbZcvXMzFrXmMzThopQB3JckUV0/ajQq+nevJLY9vtYoI2T1evmWBCqEggihQAC/1yfFD8tCvpRoo0I8GEINFTipjPXRjGn48w9Uamenhx1pwiIo3MKxBNy4gQAahJAne/lb+A8c11xZe9MGKYEPlknxJE8SU9EazIKv0rA8iv7VBW+20Qh1QrfbjLNFXMrRmpKIUqxMxsKeY6KBaUaaz1dqW0BH+QBLyU9fJJdmVFXcC0ZKfF2CLxhLrsm9X52Rbwos3XQi61JxVaGOPltPLWIVRpODlnwB6cp+vimD3w76o6REVpVU4M/IMzl4NPsU2lKBlsRHd59o5y57K4ERWIAnIup0/6qoNfDQMCr6RH8gyvpP6wUrp27Uj7MdJpvR54a47xkwZXAXMCxJ07wFlfUbzX7e9/z8GkNeiJaBuB3wCU45uih1PwEfd5wxGZ2TozAOTkpvMpVaJijmCjy2BkL+jcB+LmZqBw21f5ksC+0o9CK5kaDmWoxb2kGFRhswexJ3lsYwN4KtDcvm8iZVhPOsQlPqFgfFeMGiaqUH7ePGfStAN4HYFPFRqPa0LT1QDzaG94od6J585VMVqFeZdCvAHA3c5Eq1Ga1mWoPzOoeYNBvAPB7V5ieMqs7pfpw87sHGPTrAfwuMHcTu+f3EFXfrtI9wKBnysFvAGivdOPV9qo9MBt7gEHfCOBXAVw3Gx+w+kzVHqh0DzDomWr+i7qcR/Wo9sAC6AEbnLodwC9U9foFMOLVVwypSETEez7/KQD22VePag/M5x7ocQln7wdwfdV1OZ/Hu/puAP7eBT1L+Y8AmOxmkNUerfbAbO+B5wB83gU9f7bEsyuZRz3bO6r6fPOjB9IAviCEeDInvYCIeGucXwZw1fx4z+pbVHtA9wBz854F8KmcdEHbOUTEQSrm1ndWO6zaA/OkB84D+Gshwvo3BRPJiIgzqN4DzPWKCPNkyKqvMZUeeBXAPwkhjtlGioGeNy++E8CtXBhrKnesXlvtgRnsgX4A/yCEeNl9hqIpwya5hEHPGVVV4M/gyFVvPakeuADgH4WpdVMS6LX2T1z9GG8GcEs1cDWpjq9eNDM9wCrNl4QQhwrdfsLiEETE9ei5TDfTFKrG7cwMYvWupfUAe2lYpfkbIcSpYpdMCHrHq8PBqw8BWD0XE8hL67PqWXO4B9gPz8GnfxVCnBvvPUoGvVF3mKPD5DTW9WvncAdVH31+9QAD/isAnhBCjEz0amWB3gCfqycwT4d3A2cvT9ltTPRQ1d+rPVBiD7A6wxswMOB/NNFeU7bNSQOWiLYDuAPA2iolucQhqp5WyR5gwO8D8GAhD03F1Jt4Q0TUAehSgP+mCvxKjme1rQl64CyAn/C/UtSZeFuTlvSOgcttcMrh2wDsMizNKbdbHfZqD8R6gIv7DAHYD+BeVmtKVWcqDnq3QSLiDdluNNJ/ztbFrMJt1vXARQCPAnhGCME++CkdFZfIvCOhYWnuNOCvGrtTGqIFezFL9mEATwI4AOCFyUr2aZX0MamfMFWQ345wZ5Ouqt6/YAFczovz3tC83f3PjHQfFkJEG7WX01Cxcysu6QvdiIgY8Ozt4Wpq26opiZUYunnXRtbo60eNgTo6XW94RUDvGL2s53Oiyg6Tj8sUB14RruhzTFdnVtstqwesj53BzTv/cTT1nBBisKxWJnHyjIDN1NrhiC5zeq4GsMZMBp4A1WN+9wAHk1iac2LHY+azEkJcsRrnMwL6mO7Pz8Cg5+rJrAbt4V0g5/e4L8i3Yw8Mp+ydBMD89vOVMkzL7c0ZB30B47fJgJ6rrrEBzBOA97StJquXO7ozcz6rLSy1me3I/z8D4IcAmBPDRikbqjN6zCrQFzGClwJg9ycDf6X5x27Q6jG7eoB1c07JY0nOevmPr4R+PpkumPWgd4xglvQ8AbpN1JftAa7aUM3qmszIV+aaAQAvsQ/dSPLTQgimCMzqY86APt6LRMTSnhmfrP6wK5TpzlzJgScHTwT+N2ffbxahhtUVDhIxfZfVFZbk7G3hLedZVQlmg8pSTn/NO1AQEVdoYzoEJ7uwN4gnBq8IbCjPu/ctZ7BLPNcGhw4bkDPQn+eAkRCCPS9z/pj3IDB5vpzmyAkwfPBKsNFQJJglyivFvO+HAkhlCc7Sm7OM2HXI6XXWCL0shODE6nl5/H+Nzk1bCdOMdwAAAABJRU5ErkJggg==",K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu29C5hdR3Um+tfe5/T7qW6p1Xq/ZcmSbOthG2NhZAM2ARJuAh5ICCSBZJg4yeQxyZDc3CG+38yQTGAmCZnhJiEXDJkAxgbCxWDHYJuXjW3ZSJYty9b7rW6p1er3eeyqdb9Vu2p3nd3ndJ/TD/Xp1tn+/On0OXvX3rvqr1Xr8a9VApVjTvcAEfln+rF6WRO6hBADc/plrtLDi6t0n8ptZqAHiMjrGc7u6Br2Nmxu978rhOiagdvMuyYroJ+jQ0pEVQC292ewNpWVYlG9/2MhxPE5+jpX9bEroL+q3T09NyOiBga8BFbsPw/c0An4wCCAbwoh1PTcZf62UgH9HBtblvABsEsAqyGBvd0SOzt9fgvpA1+pgH7iAa2AfuI+KpszThPVLgNuALBGAl7PkERNEqivikD/sBAiUzYPXKYPUgF9mQ5M/LHYaAXwBskS3hwvnpfYushHUmMe5AMvCSEOTPaVzl6mFUsXiFOTvX6uXFcB/RwZKSK6PgPc6AN6zCSA7n5gUT3gh6AHBTiTTIqnSn0lVpleOofVy1uwfkG9+Fap18+18yugnwMjRkRLJHALgHr7uGf7w09Lm8wMABAE6KqpEY+X8kpExC3sOHBJdq5ugmyo8p8WQpwupY25dm4F9GU+YkTEQL9NAh3uo54fCv/qrBn9lghdyWTxoCeiFjaKA4lFvSkp2mp8qvLxihBiX5l3y5QerwL6KXXfzF5MRDw+N0pgM4xao1UbKdEzBLTWRPo8JCQIuFzt+08KIUYmejID+JsFsPB8P0RWSqxo8qF8vJYE9gohaKI25urvFdCPM3JEVAugHUAyftrzXcC6ppGgr6u2e/VqkZoJABDRUgncHr//UEbiSA9wwyJf6/as4bNznqQcVtns0w0NDRfGex4iapTAbgCtEhA8gbiltnqf/f3dAJ4TQlyZiXcqhzYroM8zCkTUyupyEKBFCHQCqLanWZD99Dywvg3Z2iSdIaJhlU6ebWzERWB6JKTx1txp1JrRcZLAkJToT7ERyxZsCHhGPwHptPKfa60VJwuBi4gSWWC7B6zn1UNK4EK/xOIm3xrEKR/4iRDiTDkAdCaeoQJ6p1cffJD8974XOwEsl1IDPeqfEOyjUvXYFWBZI8Aucv4tKf104GMIPvbVQZO/Ri+ZxMgR0QYJ7IAOtka31h9e7gY2LgI8I+eVDJ+BgKwcCfa2tNQczXdLoy5tlsA2225WAq/1SGxZFN2GXZ/PCCGOTeKx58QlFdCbYSKi5mN92FklsLizPh/YjTgFMJAKQdbERqQBnDPalPD87sEsDrbV4vxkIqRElAyANwnoVcbONTPlgL1nJbYvzb23VIAkSN/z9zbXiMMFQL9KAm90J3NPKtTd9LuYV/R9PCtE/jbmBKoneMgK6FlCEgs33CklOl7rAda0wAZ8Ip3Z7cfjRttd2RiC3z3s355EKgN1pq2u6ielAoWI2iRwjwancwP+OJSVGMoA7TXhvfX/hm0jJVRG+S8sbRKvxe/JEykDvMMHmLcTHU+fkbilU+vy0eH7eAXAvvlqzFZAr/3b9HYACxhkDKpTvcC6Nh+eP1ZDyQLo14ZfKB3tGTlnstQNIUT9g3Tu8MmBF9+6c0FfseBPEb0rIdE8ej77ZsLj9R6gsx6afqC/U6zThOjPAIrEWNDzpA4A9tSsyfUCAa92S2xaZEEf3scj/0wigR9MZpUq9h1n87xrHvRE1Cml9mQwVVcf54ckWE9e1MR68+jB32UUcKQX2NgWk/BW2vLXUmNRH70pHTTqa2ry9y2tmzjoo6W8xFsBJMKmQrhbY5VtiY76cCXiX6w+zwZpAMhsJnhh7cKa192nI6J1GWCHH/NC8Xs2MXfHz/UCCfj91T6+LYQIZhOcM3Xvaxr0xkNyE4DrpLTh/RDwrOasawvBZQHHg8CgP9UPrG5x5LALeANEg32tinADNdUYTiX8F9aM41nR7Wdol+eBjVhh1wt7/6EsdHuNVeEz6enAE1ECvAIpiSBF/t4ti8QR+3REVCOhJ5GzcoTXvdrDvnleNUIvkJ5c4eQJGqp8Jq9xs3mPjxN5bwa8hYDXPITrKCtXw/NrZZAhwOtLUOLAsjZ0ffWroHvvnZpRP93gv9ZB3yol9gCos65I28GsMhzvAVa3GW6LMVgPdgPr2gHfLgEO4N3JoTUOCfRngSoPqKnyKRvITMLzX1raiNeRJ/jDlIAgwBuEkAu1FDcPw+3w32euhOBeVm90eQN2mdWqDbJZZFQ6+/wNq2qjZJI00WYf2B4Bx+hJ3OaVlAwNWKvQjxrlsr7Kfygf6I/3UkvSx6IEye0K4hYJJIngkQIT+QU8j5RSUIr48RWEf1wRvp3wcH7tAlG0ijfdQHfbu6ZBf6yLOmpq5Fs5KBM3SXnEzjO/RQGdxmBlg3F/N7B98ag+bXVtlpBWutsPGqhDQIfxjPD1JDBCVf4P1zUKDgLlHES0SkpmUkrfTiBrrPJzdI+EK0270ecZuCllJD1PAIkRn/xntq8Q57hhNl4BvFNazo5jeLDXpj8TSvpIRbJ6FEE21eaCnojquofwRinVJnjeZklK8DMp/j90l4YrhfmgQNCw178JGZA8CElPXL+46tXZNpCvadD3pWh9z6C85dIIsLE9lMieVWdY1cgCZ/qB1npo3bd7KFR3moz2nxfwDvhTEjh5JfQGaZJ7iA7KSr/rxACe+5nvII0gNBuW9EM88pvY0JaUTDvIcYVqVUYBF4eAxhp+Rp98Kak6CcX30CuBBIYV+pIN/vdvbROajkZEmwyNwSrt0cRkLn5vFlhjJ7QBbTar7RjZWh+CnifOyb7s1mrPfysIK6RAgsHMYI9eiYHOSKLwFS3g9SmjRj0/0OUgkD/uXVr96J5ZtBeuWdBzoGYgwK1JIdcyYNgNyfryulag3pAOQhchcCkVBqJY3elsGnVn6jHNI+FtFkcqCxy5FE4oq+4YyU1fPgj5uQP+9YLA0V97CN/LsZ3ji4H+2xOglU3ou2+XPLauGSPaewMgnaXuN61OPM6SlCUzgF0SWJ7r9gwjuGxgN/ECx1OOVwvHKCZAdtT7D10EqmlQ/ZJS2CYJCT7XSu9IwlNo43Q2AIJ/N+Le/h5K+tEJIUlJQd7jwTn/Wzt3FrYZ8r74NH15TYM+FeBOT0gdAGKAsvrAQpwB0VoDtNSGujvzXNiTM5QC2owOXEidcaU/qyJneoFlraOgZ8Ad6kHNn/9EbBQemta202gkjLFh1AVJ2uuDLCOQ3TKsviggYKnOIFWCVjaj+w9vpsM+QCFoqevNa5KaWkxEyyVwK8LIspHw4dPxJDnYA2xuc/z8xuPE7ZCErMr4388ksvcIz9+mBJiDFAE+iNQWICDgZC+wUk/dUKUpBHirBpGibuWpB3curp50wstU8H8tg95LS/yMgNR+mEiHVgCrDCMSOMVBKA/orAX2dwErWoHVraF0T2XZpw8vMjYdq0BPCGPEJpK+aktK0ow0MyMePSlanzrnXX/Lcilqqhy3KKsH7Hc3vvc0G6iSJbg2UvXETAdAmj02+jehfutmer61FhkGsiK6cM8XEk8ta0byBx/E1oYasHrjCHoZBrIIdLIfagtT6cwksMayNqAD1CaTYo0HtAaGTKTVGVelMfr7iT5gcT0haQx7d0KMqjvhfewqoT8L6q3yE3+1ZZEYlxw3FXAXurasQW9cihw0Ynebl05DVFfrrk+fOIGLU2E3cttpiXcQZLNFhWPnhZLR6KOpTKjbM8+mqRbe3+/3O84PoHokQPWCOjWmD+1EYHCua0Lfu9bT+YiuIIFHT4mOS4o2LG6MDUsJoGeQZwO2F+T591zvH0lLUFb5J+/7DrzWGmy+sVMtSQpPT0r7PFbHTnpKrWjE0I5O9N+2jHSBqAxHtljdUaI16WO1MsavBWo+MA9ngd4RYFFdaL3a+4QrjXZ96uPScLhyGk0qOpGIjsNL/PPOpVc3RbHsQG+Bns1inRDwhdCAZ3hYJyH1jMhsXYJ6ahJIZ4jSdcnkyyywSvEKsJ/5jwO8jZTU8m4M4M0ouurK/gtI/M+f+quO9mHxdYulaKkDmnNoaWNB3JwUXe9YRjpYZKXpqWHR8voIbbGpf9FVkwB9YzIY/PCNiZ8GBHU85T/9376P21ctkLtbbKiN1SPHw6JVD9KgpIW1NLRpIQZ+dZs4KQSy8FBdI8T1EKjXC4KZMRa8rm5uvVueR2ivC1co14Njrz8/GDoItFro5RrAem54+NGuTv/LVzMQVj6gJxKXgaYmqQlRnMLGcsdhOY7Ckmu9sK+cDU7ua80uzNJFyo689EJjY18xngE2ZFMp3A5PrnQBH312/e+szkiI//g9sXrvRW/J+26SgmkA3gS9x03UQXTdsYhet4BngF/OovbQgNiYJsqV9ZMA/ZpWeebtq/3jGYL8zPP+11/rw3s2LJS7mZtjJS4DUqstBvCWqxMCVdCuDpV+/1acWVjnLVECbABrO8IekUsykt6h7t6fBqoTph8iV6VxUimAAc9dtIhbjMR87orAYA8o/Ylbl9VdNSpzWYCeE5P7+7HiQiB3rG32cxI24kEjHogjV0L+Sa2R/Q5oSXl00k8kjhp6r7vijlHxBtJ0vYDkiGx0WJUmWq5N40+dEQ1/9IS35e4NMrnK6MKFdEYXLDUQXW9sCyV9pP8r4FxatZ4aEesCEqMJfyWAPlCgpipx5V0b6KAgqEAh+Mz3/H85IfCeDYvk7cWCng1m7sZfvF7gbWsdoLurgwPoUN0hsGpzegBY2xJKHVeN4nPODkLr+Qx417C1d3DTsoQQR3Yt9f9yov6crt/LBfQbpMQNp/pR3VQLtDguw/BFR2HNHhQ2NDmSODakFJ7pscta+ueaavH8eLz2S8O0tMaXewpJd/fO3zkmmv/L09j2vu2EhoilM/4wMBCqleje1UavJ71w9beTiu/Zlxb1Q0BNQikOETUoeIN1Nd6QjrCyMWv+7WeXivGusB4fZBWE52UXNtBQnadPFQmPTm3qTDT86RNq93BArQuKlPQMej62tgP37QLqfBHp4nF1hkzkiUGcImjgN3NfOPo7A/78AFCVDFUa15+fD/B8rVRIJ8n/xM5V4vx0AXu8dmYd9ES0UErcxQQrndBwRWJ1k69ZhGM17dCfzue53Bf7ghq8DsNxOPDPvZrFi28tEP4eGKBFqkq+heeJXfJdslg0GSTwzWOi+e/2Y9s7ryfUjkkeLNzFlwZoZGnSe33XUuqPKMBGv+ermFaQFKqt2ku2pLJqeFE9dQek02C19BxRwBC7Ug3BTAejTOCM+6G9UTSsbMLC5Y3oeOaM53/kEXibOySaQ9UvlMLjqDcW9L4A/uIuYEFNCAkrvaNRYMCzy9S86tHLwCoTYbD6O9+nezg8YVHDKODd3okkvFkdwpuxh1U+8YaV1Q/Oe9C7PHb7shwe5yBRZ73U0VF7WJfiJab1shfFqQJgwe5OE3YbssdlUOLydW3+/vY6cTbeoZeJmkVa3uERmrTOmyfQZLyPePSYaP77A9j2rk2E6hJAz/mnpy6Jng9fT4cSSSjrxbGhf36mpCfaBNCaBVRzEt2+oEEGEAt49o5w0kqLoTEz0NldKTyVWNvmt69rxcqEhyp2a/6HJ4Hn2d5pI1SL0kDP/fvJO4G2OuFEVsMeYwmf43unkI6xdZFDQYjr8HFvTgz5OR6l8Lfn0kf8B/bsmXlm56xK+hTR+gSToeRo4jVLPk5fW63Zf2FvWMDzOv5a72hQJQfEVsI7tN5j/eGqsK7FHyGJn3Y047jr4WFPUf8wdkhPbrSAjyaOkahW2n/7iGj+7Culg54F5Lkrgl44rQZ/5Xp6rb3Oy4BVHaf9Koi2wQAtDWwcw0vXJeW5AFDso2d17komDJSxlOfnrKryq3Z3qk21VWBnocer3188Axy6DKxfQGio1r72kiQ99/Ff3gksqA0h4XJn8vFrzvQBS5pNME2FUWvP45VirITPKavgqELu+ClSh4iSn9+9UvTOtLSfNdDrBOUsdnge1ue6C0Nq7wETMXQIgDo405UCooylmIfFlfT8mWvDsP+ZqQOCkJbSP7hiAQ66wL+cpi1Q2JaVMqLOW8pAFLAC8PjxyYHeDiAncv/kpK4rk63xVVRvkgHhCySCAD4bfvx3oMD83NBjaAxK2w5/2VLt1fqe8vm3y6nQD879tKadIjtnMqD/iz3Agjphgkgx6W6ED0/ijAmQ8STlYzALDKaBtlpAOIhywW6JaFaI8XtwHCOpJzr76cTFgLwH7lg+82mKswb6n/ZSy3IfdzTWaR/8GP1dswBdgBuvDbMCNa3XAbzuyDyqCUsfPo3JYnwEhBGC/9y6ttFkjsuXqZlq8JZAyVpX+to2reHJoP/cq6VL+lxpZvRrC2SDbAtuazhyIMjSERgs2s9uVzLztw4WOT547hJ9Hn8XRlVLlvSf2MPGZ8gcyyfdrUrSNwIkPKCO7QYFnBgAFteFdkc0Od0Xj3l3+DnZ2OWAlXb9ahtCDSmfPv+m5dUvzWdJv+i1Xk5ukILdj+wEsDo8dy4PHDMUGbBafzcZS0wIs4cbOIqrJTatj8P8PEmsERlIDGdTg09uW9kSLaNn+umdRLIl8gYZFcn1tHz3uGh+YIqgdxER6bRBKN018O0kCJO8w+/4s+Nfj4xSc66eINZYnRbQ504wK5nt8/Jk7GX/vBeC/FRfSDYzRWT1K45RZ8w78Hj1DId8Ip4k7jWKaEBJ9cAda2eejzNrkp7rM2akvJN1bga39YjogqQG9KzOsDHKnBem9bJfvlFTn8IjLt31JDC6MrfL6g3zZqy6oiWgvtLvUoSnb1gsdHG8bxyh5Wsa5G6l4DGrskYnfRiPiWnvu6dE8z/Nc9D/1ztCg1kD15HOIXNytN85MYalM48PHxyVZrUmDnbmCfVlwuCVpk1wEZ/GUPfXXHw7jjr7hC6QSHz+jlUzv5vKbIJ+bUbKN1jwckey12aEiVXskmwNwc9gH5LhZ/bf19eOgj0u3S3ouTNtLiu3o8+z0ltzzyWU5x3fuSTB9V3U3r2UbF+Hnx0YlrX8HDYrinXVgZFwBdp3UTR/6/jU1Jtyl/T/92723ri8eDMBYiE+JsSxa5I9RotZyjO9wLwc/3Z5OPThs1HL84L7UxvpeaKy1o8voA4Jb54bsul0ehN8f0fUn9b/bL64MgJwEjQboamRsPM2tI8FPIPZgj8yPE02EWctseqk1SXHWmaviKaBKH//zStxkM3cc/103UggdygFndCpqbxhhQG9VDx1WjR/9cg1AHoWKo5gj/jzjrRn1etFdlm2h0KKbadUwFE2ZlyO2lwMcubY65XDXO/OHwt4fYLAs13P+Q9cjXzaWZP0aaJNSsodBRmOppMYgCzt+X8OSEXGkgGxdYNEfm9j8NkoZlXVKNErYjpaHRoY8rL+07euEV1n+qltKCVvIcICblqv3DZn1ID+y/Mc9PfvZpflKHdmVKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALe9960Ujzk3nOmPs8a6FNE6ygjb41UlLj/xnVHcpBmKFR7OLRtdX7XkNXS2V4jgSP9YQK1PVi628MayizShOefTi/Dj98MyNd6sVVm5JasiCrmaT47H9eCpP/4bqCVbaaYOuO6TQcyoerCzMqIcFfA9z4R4O0KQAIZTwZ/c8famryV2aYb/LMG+uHh4aXKr+JKBNERj6zGA0Zs1Nb4oasrJ4JqpLtlMvKYHeOMJbNhQTQ5HNTbFUJyCFwFe+9cU/363r0vJETnlnsgEppjP2r4Aj+YpHrTngzQkqAxOYAaV0aPsN4bKzEjd6WTSeW6J7W30rgsmRaQw3k3bsxTgwJnhxNF0xC4uf/rdkMBNv0UjxGwWtM1GBq77HjIJ93j9b0j7k1sIkU0ZK3aUNedq5L/abrBXai9WQP94OBgB5I1XI9FHxbwbqBqjHfGUAtYGjFH22VEuoAfyYRVAur5HDuA9j5OorK9RvhI7z/rf+v3bxMjL3Sn1iGduNW9jj//8LRofrhE9aazOsCe5hTak7nht8kMbgwz4zbBQDs64OPhE9V45UqyKO6NC3o7IeP3vMKFq2AmRsz3bh9oIumeE7Cyol7RF+5cl/zxZPplMtfMGugHiBaKjHyLcczkDTZFUHFC9hy04kwmdm26BC6bHM3XHO8F2Oleb9xvUcUiuyLYCWDC+uwqP3DZf+2PbsYLrwDJwXPBmz0lFrnXPXVKNH+jRO/NL3f2oyMZl32TGabJXfPl41X42vHaSDjk49NbwpkFPa+iblpgJJQIOHQJuG7hqHcn/lRuOmAh/d29JuSwUR9R4r+8de3Vq4kza6DnDYCH0sEbJQld2CjSPOKRVSfjyBqrZ5i66gGcHWRVkMhHz/55k+nPxpZeRVzpHmM4ajVGanVoeF27/9zPrBdnfnSKlniQNxOhQdsKAJ6eBOh/rbMfC2YR9N84VYUvH63VXijdT3mSSFzQ/+lto356V3IzOFmtYRdkUhcbzFX7o2kd8727AI9TEsJJoVKAeOgta5I/nNy0ntxVswl6ry+Lm4SUm3L080i0mKCSQzizAGZ9nKsMtJud9aKsJCZosb9fAq06xJvLX8/HcLTXcmGnhU10/KXziWf/7M2Qz57B1kCOGrU/Oiuav1mipL+uNo23t6eYW3PVjzNDAp89XItXLhev3rigd0HKhmtfCljIxqvjk3fBbidCZKuYN86nzoyqTSolyNvnef6X9szQbi75On4WhmP0MXrS6esF/BsUZ2dalcORxON5ZziQxYYtG6tMNbZeFtY7+Tcu2eFw66OCSJHnxvrizb8cXaythurtHXr0I7c1X37ySUrQWvkOFaCRV5hnzonmb50s3U9f4ykdsh9dynI/6pQ9yy235T/Mi0eUA2vQGiPV8tqJ1TOl2cqhTRzuRqIlem/GQyrwQjpDEXx6vv5PbgulOR+uocl0bk6cqTJS3l0F4qqQNVzHGLSm0THuTIISRJeHgit//nPXLdRJ6jN9zCro+/poQUbI25Wnc2KjwwI47nt3jVX+zBW6sky7NQPFHc55mZzAwIcNLEUqkFWdnI0UNO9+CFhk6ApK0fkP3JD8Hl//4GFamEnJ2+s91L9wSTQ/NgnQ5x1AJ4GCiWHlwr1h0Gud3hys1tiKBxwkzAG7Pceg2A00jQG8mzAS5+aYia4gjnjwHrh73dhyh9M9CWYV9Pwyl0boLillZ16GY8z3HgcvT46zBrAc6ubkCi7YxKCPdHwjAV27ga+LJL6pUGzr2SgPadT53//gOtH93gfJ/4WN2FRdJbc+eVIseKa7dEk/l0D/sdscl6UB6vG+sLqbpWZM5J2JrxK29o3bD5GL1k4Y7bVk04u+8jPrk9+fbpDH25t10HenaP3AgNyV8OFplqUDSG2AxvzlehVwjF2WMJxYwqQ01suZdsBHjsvRGKv2e0tL4PbZyOPoLXN6+CLyfFKZ7JGGHcm99/K+UUTim69ndz573t/1r6dwQ6mZU3MN9K1RPTTg8kjIq6lzvtPvY6XzeL53g357So70N1RpzrNleyeiigsavJBI/J+/OsP6/ayDnsle1CnfU5eAb92RTCXmTCE3QBRxbFzVxCCK+R/MqNT1Vaya4pyn54nNqLLuT6Pncjqfrl1puOB6FSB/kGrwk/u2hNW3Pv5x8k7fgrsPXFLvns+g/9BWYDPzm5iGEYQJKqzuaI+NI5U17h3Aj2+shoNkpftwOiybyDYCq0/MyU84KBys9X/33uUT74M7ldVg1kHP9WfODGGryshtzGpkHZslPqfIccHUQU6P40RjrhzMtSVjdIX+kbCAKCdQr2sE6s2GBVaqa+KY7aEY4HncOAeVo7zcsJ5YfI7vE0ns+62bBe+9pI8lf0Ubly5Qvz+fQf/b20OKMOvvA2mu1gAsNQ4BI+BDQV8A8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgxfC6DnjjrWSyuFkrcGhKTLh2epy5FVVj/YI8N0YS2QDUXVBqS4fDUT0Xp5AzLju9egd1UjW/jUgJgnAqcSMp9Hg97WdDR2BAm/98owHrvfJCov/VvasKRJ/cF8Bv0f7Ar7mFfZgSzQmgzT+SZSZ1ywsxeMGZecKFLnhymB3FZjMpTq7GmzKtKYFULQ2eF04s/v3SKidMqpSPRC1866pOcHu0BUP3AJO6WQvH9rBEAXuK6kySmlYUQ6X3bFcO91tNYBvP5spJPLnmS6wpChK1jhxYPObZGADHz/2x/bGUYKrwXQ/8dbQ1WmezDUs7lQE6s5DOCoqKyTyhiJaRECmoHNgmjYVFhuqh4VKNHiYD6MAXxYCOShd25MfG+6NqAua9Dzwx26QKsDyFsCgURkqMb09zg/J9LVHcOW82q54zUFwaEv6JQ7c56pnaQniVuL3hrO2uftcS0WOv6x25JPX0ugb64FTvQCS7nevMmGsiqLJcK5YOK+4u9ZenLerI24xINU4/nv+VwhxDlC8NDPrq/S+Q0zIeFtm2Uh6e3DHOjKvlVK0eHWfYwkvMObyXFHOmoMg5wBz4aSzo01DUdZU8Ye4L85assVxBj0ehJYQ81sXBYu2f7lQOEH9+8Rg9eCpP9DlvRemBHV7Pjr7fjEpbPLsuRzcn53qzgUlu4RU9Ncm/VBX3nnxpmlJZQV6F/uHlycDWo4b1bHMO2SGGdTWrUnX3SVf2MqAhuo7Mmx7kmjBUX5stprY8hV1v/PP+oJYFYIIj+bVZn9n9hTfWiyoOf6TgykMR1tqvzqd3QisjYJnEGgk75NnEFHbi1/hp/RRFpJKb0xAktbSzPmv/vSHqQqLSL7B7eE7bBqwzsYusdEHpq4790VVmMmhGnYnTRR+0TDMkh//ue3NOyfKWlfVqBnT84L53CTUnKz7jSHKBbx3w0zkn+339nNg6PvzMYK2v/u7A9lvTNsWGw6QYsAACAASURBVOlZFY8LWHXIiRUI+CcSF/HcZ7uxqlRDdkV1Fu9sHw6X/SKPmOs7vCrvl6MN5vv53LDAFw7X4tUSqMW/sytc8Tp03eJYore5HU+o+OFSFqKEb6d0t3t+VAzZXJRzrU5IFySgupUK/vEXNteeLLLbSjqtrEDPT/706b4Fvqh/Q8B7MbkqjQN2G3iK6ApWOjuTxAadGNdJkzJoNz9mN2ctTwYDeivZ3fb4s1Z5BDKU8p/48kksKBX0H+nsR8sssiwfPlmFrx4rnmX5kRsBDk6xlM8n2ePzLw72iaS7XdUsQseoS7mu0Bd6hvzP/dsZ2Jeq7EDPHfKT07Q+yMhdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ/9bVjqCsZ9Ev70eLPqE02roT7KoP+aPF8+p9bB+zQO3CNBX0h/d0arDmrTUzKa8eA02g+MlpOknhIwpNejf+/fn6d4A03pvUoS9DzGz5xMnuXkkIPgVvsdCLfe+SxcVyfzBK0pUNY129ibo7RjSyrwapI+m+H7RiWH/GHHzuOgwub1e+V4qdn9eYtrSNo8CmqCjCto5fHQLTS9vywwMMnavHsxeKpxb+zw5QAMQ/pAtWCegydwNW+Ys9jr7ETJi/Y3eUjtpsJCTosKPE30+23L1vQP7af6gd9eVdd9SgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1X4/7L3U0qd8pBfR8b86R7UjK0R3GzSDnqAZuFNPdnY8NVMd4tZ91E041NAtO69JNK+CVKz66R0rLkf3dXaMsSzeyGpf8+v4x70w+QNvnzLdy2DYiIeAC3k46okEi+tL7t1btnU5hUbag55d8cH9q45BM3NQ3ggQHnDgZOfLVmwQRq4JYiW2NVf7ebljM33EdHT6HXZn2cNUg7cGJJZjbstgJD3Ry0Ee/VG8qFfR5B6tMqcUW9IUAP8b3HpvAMaGdoyPFDdbIb28mT76UAz2xgUfevyXxzWsG9Pyi3zqY3hIIf1sQwOOdvXXCN4ezjc+dw96R1HZUIf5O++kNi5IlvJX03MFuZFZ/Nu3YycMqFW+raT0nZ0f8pv5AzWuWJYO+McaoLOh7Hw/wMc+MOxmsd4dPYYqC3i5UxXj8BuGcXON54uhQavhzv7a98eJ0Ab+sJb1eFonE117P7qTA22j99SxxmEKgJbGhB9sOsVFaOxGsYOe/2fhldyXXqrTg5kFg0LsBMe3lMT57nji6jN2QaO5X85tPzy5LvVuiBZ39ECV6WL0j/HeM9yX2ZSHvDPctF3LllZsByBQGd9M6I+GtxMmkSf3Vr2ytOXrNgJ5f9NuHqXpwBNszkKuhjEfHqC+uOqOBbSJWNnAVFXky3hmW3hyJ5Yq5FuxmQdBC3fL1dTum27nd7gHRPIT5Dfrf3mEo3bF0Qdf3PmZCcBAt9mU+sLOA4u85s62+Gnp7oLAu/SiUcw1epcdDCHbdJz/1S5unr2592Ut62yVfeOxCfaKj46YMyZVKgP+rEQIfALydQUBfGsrQ993I6ni+d71CMGWZc2ut8HLcl3rLeV15dHQFuDgsmkeuAdAz9yZSR5yJb9W8YqU7X8rceaaLc/FWpimzRLcbOcQDavw3qzNWn3R/DwL1qQ/dWKN3aJyOY86Anl/2cz+lFqjgVj/p3ez7+E1S6AhdjGJf74j6VGTUOpFVvi5SXxyPA6tHfD5z97VL1BZrNepSpP4Y1efSiGhOe/Nf0jPox/je87hGc3zvDqWCvV28vyyLcaYWs3BhGyzplPJ2AR2X7qOwN5NPKXYwXLugf/BB8sU2/BlIfUwSEtrLoGmvYn/XgPokd5NVT6zU1+BlY8mICFfn56JR9nD981Ylcolql0dEczDPQX/fDkendwREXLoz78dSjtnmYRcpJ52wusKThgGuBUoel0wE+FiyCV8xRvqH7M1sQiT/x/u2imtLp2dgPnJsZKVS1V/MStrNy6AkgmKWBhcPVWL/6V71yXy+d9bN7QqgJ4VBuQ1GccaVPXLcn249e86wyohmdQ2APvLeOH7zkMAWJt6zF6wuESaKpAmo5kpytva8k1XlaCqj6pJVJflfE4NwiUVRMCtnZRFnRSbzD7+8s37a9pidE+rNY6fofUGgPqMkWvSyahiGen+l8PNIQDgnlRjIKlxMBXR6KIXXe9J0Nu571+qOkygeeX/cdEHHgLW2Qf+IaFbJyak3YzrZcelpf7WdmEb6ad662YKHnzcIRrfj0WxKp1YOb2dv+8Ruba+TPiax59RHbwwpxVz248JQGJnmpHDefVwn0VNodzLQXSmeF6wxsR2dk+PODL/NUXdcwPN7Cnr82OWnv3H/nj2RvTxVvb6sQf+ji9SYGVF/G0j6YKjKiBDkGugEhVDS689G6vPv4UqgwXE5FYhnu4foyZ5BOp8jya2v3kRgXbJZRDG2kkkBfSOiWVSXBvoqT2FrXRZNPu/wHRuquJ4c32reoCECi4MOHZmNuLxO5QdtDYYAPTbo4cBlHxdTiaKLPb1nQ7hNZk5xKr4vqyvj+N7H8GZciR777BqrLuBzkkysAS0wrFTw1V+7qU4n8kzXUbag/9EZulWS+t9SYY2WZKYOo3LUGq3iKBFKOvd3ngy2bmM4CWgkEPvO9tOD3YN0Rkst04OaTWn0Ij0pnApr7J/nQ0d0M35zslqVtHnyntZh7GiM0tKna8yKaoeDdp87WoMnzlUXDfp/tz220cJERLE82326qmLO55g6U1C6O5NdEZ0YSfZ9+r4tiwaLeukiTypL0P/kAv17qdQnlQqNVQY3WSkfgdtIfCv5zb82CcMaubF/1ZW0eOzgJfXVkQBZLdEtMU2je7T2pZ0AlsDGoK8pEfS/vrQfzbPIsvzOmSS+eLhORz4tzUL3p5WkjgrFX310O9BsonkT+d41NmOqSF7Ax9SZfMYqX+faAPocASlk8MUPba97pkgsF31a2YF+30XakJHqkCSIUFqPqi72Mw8ad1II8Dy/GxUnHGD393CipCXOvNyN/35hkHRo243GugzL0G3Jyr6O5DbX1JYm6e9sHcb2WZL0rN49cLgG3zlTvKRn0DOXXoMujzpj1ZHJqjNx6R6nOLioFcCBY6+//vf337tl2isjlB3oD/TQ8rRUR6WiJEt3x1gN9ffo/1w93hZCjXT+nMkwygq0K0Gg0H+oB395rIdOxCkJoXT3cybDYBbNdSWCnnX67Y1pLK2OsSxdkRjX7eOGXRyAVkrH9WanHTbUn7uUxIFeH+eGitfpf8OAPh/g48aqvn0eZqSdGK53pmjpbt6JQL1S0mc/sqPmSNHiu4QTyw70/Ow/vRD8nPK8z0tFLaEkN0asIhCveznS25Hk1gtiVKC4azOaMIZNGSgM7uvCfz5xmc7mqjMhnS1MVAnTyxn0DSWC3o5DVKsntv5benBUV8ahEtsVx6oj1psTpVA6teYjlc6AkL07rNNru7aEqsUfYfXG1PR35prFd646E6Hb8b4Y0W3saT0r4oC32XBRo84k53M9eFkl6Gu/ui3xpBAzUxWhLEHPHfJiL62kLP2TVHR7CNaYmmK8N6M6fP7fRw1axy5wvD9ZiZ4nTuBPrwzRoC0NImUIdB9SG7wZ6TOnZ9KgHyOEypRazOmCXKsmNjdzKpoVK92dORHiO4/+n+OZMhoVkfrmR26qeaQEwV3yqWULen6TB4n8Nd3qTwj4T2zUjqouedScmIE75tw8BrA9ZyCD/d845IXBLbdIFOfXMvAzPgYVmpsbStPpC47GHAB9PnUm3/Y6blVi7j/PyPaC+nsB9Yy7xPO8x35lq/9N3tC6ZCSXcEFZg96+xwsX6FYF9b8VsGbUJx9K9jA4xT77UAXK69rM8enn8/oQjvT6f/fUCfwoR80xE6CqSmIk5Tc3zHPQf5iDU9Um2JWD2txNGlx8hTQQDvgpnajT4dSxH1PzMubitKtB6FtQj5z9evXj998/s4Dne84J0PODHrpIjYNK/a1U9MGxQSn6sQz83+QdeDkyHhCalJILSPirSal1ksQtiuh6vRt43NvDfv5w4PoeOuj94eUMRqJCrmZ0efyDa0DSM+i5NJ+L97zS3fQLk8sG06wGKm37MmXYRmptnR5XV4rNI/0TQVwGgn/98I21T5YgrKd06pwBvX3L5y/S+0iqz0hCi6UjkBCPvmmp9/bxeuLhE9QpMrgnUPRrKrITQqlvjcZTfeLh/++Q+LrkyeEYWJqnH6C5val09SbvOu0afMYhrlcq5pw7lAT9ExvdjtHqGrTcjKUk6H/teXwZ0xD43Yw+HeXaOn56266VuB/aBjQ5hqxBZaiTOwKAqRvdA0BDDdOFw2hzDresCP2dSZecyltVlXzolzfhAmbIaM2HiVkD/aPH5b+/Z7X/15OZsi+eG1kZ+NVfVIp2h4Er79HbJwC9e5+vvkq3KaK/kMRG8qgBnFXiygP7xXv7UmglQnXoTQiPVIDm1kmAvncYOHNl7FvGdWYrUfVEdjZE1pPBgshSFdwiqm6SuAvwUIzqa6P8VDOhQirAaLv2Wd64FLA7MprLRx/c2YiB69ZzEg6rQutbFRaY4lC2zcj/XkCdEeHi+mpGqe989Kars0u4OwKzBvrHjst9Qnj3v22V+PpkgM8041VvUn9EJN4rhfjkbYvFP5fUDpF48BB+XSr1PyShzrozA6Jf/9sX/e8ii5aUxNoEyVpG/lDgT0rSv3weOHVFoLMxXi+g8NPGQWNBacEaZTK5IHdWjxwPSwGgR1FZOzmMOLcrgivdo0liH9lJ5t66SOGu1aN6ciHAOyveEEDPQmWemM6811LGftZA//hJ+RmlcC8lvFvuWS5mJAhRTEd8+SBtIVKPKMIKvacqiUc/uI1VJRLL/jtqGqpQlxXYliGsXtykbimlGgIHif71kMDadsJ1HcU8Te7GxG79Sr7a1q90fd22jqUtyRH55a2XxKo4hnWp39FRmeyqErl2nRUgmhi23IhVc+zqQUBHPfC29WE0Ix/gHbDznrEXk1WJf1y2CRf3CDFtrMkiezY6bdZA/8TJ4IOS8ADBe1X54vZ7lrNBMzvHlw7REij1pFLYoAhZj7yOX9omet2nmUwBV66u9uRhgbddR+AthYo6XHemU7S1XEF/yxKF6xaZN8unzijF5SlfIKH2nr6hbv/9M+yOLKaPZw30jx2hRckqdU4SuP7XC0kl3rJntcij/RbzGlM/50sHaDk8xS7LFT68D3RsxlcaX4AYqEF1VTvq/p/nsOnQFfWLxUp6VpcePSTQVAXctoZysv3Hfdo5BHrmpr1xhcKK5vCNIjXM4w0WICHEaU/h2WDwyt4P33519ogtBgmzBnp+uKfOqCeUoj16aRXiFV+Kd9y1Rky6Ui2XCykmdL33HNXVpNEka1FLAZKo1q6EhX0Z3NY1qP5zbUK8srJZ6K0deWMCRfD2XYD/P/epZFGgJ+C1buD5UwL/5kYKt7Ap9phDoGd9/saOaDckTbcRoD4S4lwC6tFqv/r4dJfkK7YbxztvVkH/gzPyo4roMzYBRBF6yPM+cvcK8Y1SX+4f9tHHFNGfKaKHU8K77/duClcN3hnw3fdhra+wUhKqvQQ8IrSDsMwTWKAInP8f9UPPMG3sy2DzmpZcA/uli8CnX1QoBvS8pfyjBwW2dhI2m4KoRb/PHAE916y5e43SuwTyQaAuIfz92SB1uPlo/Sv33qu9vmV5zCro91+g+v5AnVaE1iiySoLF69elEn/89jXitWJ6jSX8516i70hFd2sSF+HCyhbv850NuMStQaBVEVrMhnYTvvOFYdq5uE7k1E8sFvScavfIKwLtDcDu1YSE3Q6lmBcJ0TPqEy9TnZ532Ny9XKmlTcgIj4YzWXzJE1WXTvWh225MV+zrzsZ5EwJgph/q6XP0XyWpP7b0ApswovMbSPyLVOJzqhZPvGuJGLbPQkTeS11oFwrLpY+ahIeWAxfVp0Yy2BgxKYVQbTVi38YFeCFK2pnCyxy4CPzNBJKeffLfPyJ0fZfd60hX8Cr5KHPQ876yd64CljZSf2td4jvJKhy8eRG6ZnqfqJL7cZwLZh30e89Re5rU6yzt82U7mUmQlkRPC4i9PuFKbZU3XO2hNeFhuRBIegJ09ArdOZShpTaYY9uq9kX3xgX0RGO11z+Vjtt/EfjrvQrvvD4/mHnXkx8dFjqpes8GQpsTsCnpvmUMeo68fnCrwKZ2TwfthEC/Ao6TxIVEEr0J4LXrFopzJb3vLJw866Dnd372vPwtSfg0S3up81tHOfQ5tOIYX75ASmAUtre/cw748ibvx6uaMOkqWbwj+V89B2xfJXX43R48ybgI6df3CV05YPdaQmt9bli+pHEtQ9CzysWVyT60TWBFU54NtNhBLxAIYET4GCHCWSJ8oz+NvjcsQ1bMok8+X9+XBeiJyH+um56UknZHtIBQv9G5sVH2VJxXH6uCMJZ3bxLHTXWEphpxdMtC8cMqLyp/UzQemSbw+EmFQ/2ENe3hZRwYOtcLPHtCoLMZ2LGcwm19pnKUGeh507XblwG3Lxdo5sq3JRxCIFASvOv6fvJxuaUNJ5YLMVJCEzNyalmA/lA/bcymcM+wUp+QCrV51RzOmnJLgMQSwkcpxSZyWeB3z8PgdW3eEwvrcKGUHs1klS7d/WI3cEnyTtqEp48KHO0BVrcBt0/GaM33AGUE+uWNwC1LBbZ3elOm4woB9qadEEDXgMLTs2kHzAroDx+m6lQTWnwPO4XA7Z6HBiIkJaFjMFDvsPmxY2jAmi/v5saOTQp3wW8nT5gsYs4NPSK0tFE8t6ldTLhtI7eXlkpzxjWnhcnfCjibJpzSBZEEkj7llrArZTbFzzVMSf5aUwTMB83zt79ZPo0tfcLnmYpsllZgdwGkwFQVNtY8szE1DcFwBizD1P2OyWR3rwY2twskE6H+Pl0HDwNvXgdCSgAPpRM4cugMhq6mP/+qgv7YIHVQgK2ksFZ5uIF0qYHcIyB0DgXqbqmoKvTfO8kirvSOwJ+bJphTDMqoRvGVw3JYdi3xHmyp0RIo/8HJEWafVj7BZSvy38wn11FIB4RRQwUYhvb3iKfiEsXsj8619rwcokqMr6z5NoVfoeDruVx5e9KCGqC9DqguZR/QKcwIIZBWhH2+h6OBj5c3NYmeKTRX1KUzDnrW109cwfJA4S0esJQEFjuM3bwPGQCtA1li7nuj5czH9fWcdMACtXDGO4d3r7tlqfflxioMFeoplvAuY9FKXw0w1w/qgDQCn8Mpj74bkzg9euccqrGDYMMPy/uI3CfuZCxqxMc5iQuvLmnyiqdMTPWGzvVcqJUELgjg3GAaX/naZzAyU1lUMwb6wz3UlEhiSZDG+30f7RwYMqUQi+oqRagalHRbShKTwJwKCGPr2ISGrjVa8//OK4Y06YSeJ1LrWsSTSxtwutDDBBRmA7mS3IrTnHotBnUR78RpMOdaM2PGXGtL9JnrotUkj9SPAB4T6+6f8QlW7KTwBbCsyUNixhBR1LCHVAaBwPPwjA886zfh3BIxGqMprpXxz5r2VzxNVJvtxU7h4Xoo3DCRVJ/oJVKKOgcD3JyV1KHVUZvplKf+TY4O75b5c9Sc2qQ4e12reKohWVjCS2fdzwGzpevGAJkDZOeP8a7NqQ5g2rOS264oOYCN3ztO8411ZM68GEf94ctYZ+dEkKaqqRusE41nSb8LcFHpl+DhwJom7C2GV1VM+9MG+pdfpqqG1djiS9ylCMtAqJlOCygj0TGQpU2pLK0KiKpC/jjXwMlTHsTNgzWuTwhPLqoVe9cuwPjGq7b0HMZgXHJbgPK/ZksZ9/yca2PiP1Jh8uzXZFcRa4i6gzdGkjsTy6YXxgd7zMqTZ9LYa9gH397g5W77WQx6rtI5AhgkhdcpwA9WtuGIEGJKBUKnDPqXiapaBrADhFsArCdCYjrBnqdfvaEMOkYULc5ILMgoNEqJmiyhTkpK5PP4+J64srZJPNFSi0uFxonLwFovhes1sSDOKWUXU0X0OY40zZH8LtgcPd9ZLMKPMWlsVat4Cb0c6W8mp6vS5MvPsmpW/J58btIDltR7SDChpowPnVNLUL6HV7NpfPfSCRzZuXNy4J8S6I8P0uIqiTd7HnbzziCz2WfH+9XbR7JYrlUgx7BtrBKvrm0Wz3je6H5g8efkWi16d7s8npRIYsb0aFeijznH9bW7EySfihJr17oSx6w241ybz8ZwAR6fCO4tF9XxpgrT6ZSceRR4Apeg8IpswtcnE+yaFOgvENWLIbwRwFtA4OzPWe81Bv1wgOW65J8mViLVWe/9YFEtTow3DMJTerbmqB55AJ6jbuSR6jnSNOaujHtgXN3dtuv643NUnBhi9aR2JlLOo+axOcbc27lhaxXQWjfrQzepWaIlv0I3bzXc04R9W4QoutBryaDvukJrvSq8WxE2TOppZ+iik/10z1CWVjCgqn1xdnmjeKomUdhY5cdI8PQwYz5GLcgDoDHS13mXgkaorSIwRp8Zuw+rXWlyiOixCZRT3cDty0LqlfPQdmJqtSYBdNTxdjpzE/T21T329nh42qvBUwuEOFUMvIoGPfvbe7LYISTuBsBsxqKvLeZBpnpO1xBtuZLGTU3V2N9ZL16aqD0uUDTecBcS9hEgnXo18XvFg0VxGyGO/7jx6uroFrN2JRijVsUeNN+qEk1oe64HcBCqbsyWIxP1Wnn+zsAnwolA4ZGOerw8kZenKOASUc2VFP4NCDtJYKqUqlnvOV1vUUysk+V4TfJZiLEKAGPA7DQQd2u6KkoEZFd3KeBB4nP1fHM9OE6P6qJPeVYVd7Kwt6aldm5L+DEgEpyqiGxK4YuLa/HieMzOCUHfT9ROabyfCNfPpTKA+WdWaLBO+NKOzjymnTx++DjG4uH9fN6TqJkCPvScujROWQ57r3zXu5M0Xzk+Vo2qEwAngvg5+13OuhyavgfgwJbA40jjh00FKA3jjj8R1Q5k8NsgrJ2+p5qtlvJsdjbZR8mj+2i1osBqED/dNVrdwk0uoPOtMoXqSrqTqpDRzN/zYDPgq+e4Hj/RsFG4c+qhTDW+sFCIgfj5BUE/MEALkcT7PQ+by01/n+il479rl2SpF5Vwvuv5iTO/4iDM5xbN0VbiPB7TeD63ZI5kN/pL9Cx5VKuaBNBYIie+hG4ot1PJFzicGcL/29KSW8MoL+i7u6mhrhW/4Qts4Eq/5fY2pT1POPozCfr480R4i3uAYpHYeEDK1bsLVgvOw+i0K0wh9YbbZVf8NQT4SOP0gL01SXxdiNFiYnkBPThId/k1uLc0cJXr2bMza11jcow2lId27Ep7fX4BXT8q9Gq6e0xJbPt9LNDGyeq1cywINR2IIoUAAv9clxQ/tu2NAX2KaAMCfBQC9dNx09lro5DTcfaeKJ9XJZ86kqPuFABxdE6eeELcM1SVAGp9b+wGzrPXFVf3zoRhSuDTtUIc4xvngJ6IVmcUPkDAsqv7VNN8t3zZEdN8i6k2V8itGKk4eaK6+p55qBL2mjF6v0F/Q7WnK7Vdwwd5wGtJD59mV2bUFVxLRkq8GwJvm8uuSb2fXQEvSrkOeqE1qdDKECe/2fPyqUWs0nByyDV/MDvFx7d84NtRd4yM0MqqKvwHwlwOPpWfSlM02Aro8GM8NLZBdyVwTuKPdhJwLqZO+6uA3i6Sp9Mj+AdX0n9UKdw4d6V8mOk03474NHZjAXlXAnMBx544wVtcVb9V+fe+5+GzGvREtBTA7wJw9oYr/xdwn1Cp+Qn6MaMQm9k5MQLn5KTwpq9Cw9yCwkRPm7GgvwfAz+r9gufYwWC/1o58K5q7AjDVYt7SDKZhsAWzJwG8F8CeaWhvXjaRM60mnGMTnjBtfZRXnePs+4qUH7ePGfQtAH4FwKZpG41KQzPWA/Fob3ij3InmzVcy2TT1KoN+OYD7mIs0TW1Wmqn0QFn3AIN+PYDfv8r0lLLulMrDze8eYNCvA/B7OnuuclR64BroAQY9Uw5+E0DbNfC+lVes9AAY9A0APgDgpkp/VHrgWugBBj1TzX9Bl/OoHJUeuAZ6wAan7gLw8xW9/hoY8corhlQkIuI9n/8EAPvsK0elB+ZzD3S7hLNfBXBzxXU5n8e78m4A/s4FPUv5jwOY7GaQlR6t9EC598DLAL7ggp4/W+LZ1cyjLveOqjzf/OiBNIAvCiGej6cL8tY4vwhg4/x4z8pbVHpA9wBz87jU49/npAvaziEiDlIxt35RpcMqPTBPeuAigE8JEda/yZtIRkScQfVBYK5XRJgnQ1Z5jan0AO8r9k9CiKhkeyHQJwG8E8CbATibwk/l3pVrKz1w1XugH8A/CCFed+9cMGXYJJcw6DmjqgL8qz5elRtOsQd4q6V/FKbWTVGg19o/70sPvB3AHZXA1RSHoHL51ewBVmm+IoQ4nO+mExaHICKuR89lupmmUDFur+bQVe5Vag+wl4ZVmr8WQpwtdPGEoHe8Ohy8+g0Aq+ZiAnmpvVc5f871APvhOfj0L0KIrvGevmjQG3WHOTpMTmNdv3rOdUvlgedrDzDgHwbwnBBiZKKXLAn0BvhcPYF5OrwbOHt5Sm5jooeq/F7pgSJ7gNUZ3oCBAf+Difaasm1OGrBEtA3AWwGsqVCSixyiymnT2QMM+L0AnsjnoZk29SbeEBG1A7oU4P9RAf50jmelrQl64AKAH/H/xagz8bYmLekdA5fb4JTDdwHYaViaU263MuyVHoj1ABf3GQKwH8CDrNYUq85MO+jdBomIN2S71Uj/OVsXswK3suuBHgDPANgnhGAf/JSOaZfIvCOhYWnuMOCvGLtTGqJr9mKW7MMAngdwAMDByUr2GZX0ManPdXRY2r8b4c4mHRW9/5oFcCkvzntD83b3PzXSfVgIEW3UXkpDhc6ddkmf70ZEyZkHzQAAAcRJREFUxIBnbw9XU9taSUmcjqGbd21kjb5+3BioqZl6w6sCesfoZcnPiSrbTT4uUxx4RbiqzzFTnVlpt6QesD52Bjfv/MfR1C4hxGBJrUzi5FkBm6m1wxFd5vRcB2C1mQyV0oKTGMQ5dgkHk1iac2LHT8xnJYS4ajXOZwX0Md2fn4FBz9WTWQ3ajTm979Ucg+DVe1z2wHDK3hkAzG+/OF2GaamvMOugz2P8NhrQc9U1NoBZBeI9bSvJ6qWO7uycz2oLS21mO/K/+wB8HwBzYtgoZUN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",me=({createState:Xe,refreshLoading:et,onRefresh:ze=()=>{},onCreate:qe=()=>{}})=>pe.createElement("div",{className:J.sendToClass},Xe?pe.createElement(pe.Fragment,null,pe.createElement("img",{src:W,alt:"\u7A7A"}),pe.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),pe.createElement(F.ZP,{onClick:qe,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):pe.createElement(pe.Fragment,null,pe.createElement("img",{src:K,alt:"\u7A7A"}),pe.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),pe.createElement(F.ZP,{loading:et,onClick:ze,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Oe=x(74589),Be=x(66752),Ue=x(89392),ee=x(99415),fe=x(36994),D=x(59301),Ye=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Te=(Xe,et)=>{var ze={};for(var qe in Xe)Le.call(Xe,qe)&&et.indexOf(qe)<0&&(ze[qe]=Xe[qe]);if(Xe!=null&&Ye)for(var qe of Ye(Xe))et.indexOf(qe)<0&&Ce.call(Xe,qe)&&(ze[qe]=Xe[qe]);return ze},be=(Xe,et,ze)=>new Promise((qe,_t)=>{var Lt=er=>{try{sr(ze.next(er))}catch(yr){_t(yr)}},Nt=er=>{try{sr(ze.throw(er))}catch(yr){_t(yr)}},sr=er=>er.done?qe(er.value):Promise.resolve(er.value).then(Lt,Nt);sr((ze=ze.apply(Xe,et)).next())});const ke=P.default.Search,he=Xe=>{var et=Xe,{paperlibrary:ze,globalSetting:qe,loading:_t,dispatch:Lt}=et,Nt=Te(et,["paperlibrary","globalSetting","loading","dispatch"]),sr,er,yr,lr;const[G,dt]=(0,pe.useState)(""),[I,m]=(0,pe.useState)([]),[u,C]=(0,pe.useState)([]),[q,Se]=(0,pe.useState)(!1),[H,ie]=(0,pe.useState)(!0),[Qe,we]=(0,pe.useState)(!0),[ye,je]=(0,pe.useState)(!0),[Ct,de]=(0,pe.useState)(!1),[st,tt]=(0,pe.useState)(!1),Ie=(yr=(er=(sr=ze.actionTabs)==null?void 0:sr.params)==null?void 0:er.data)==null?void 0:yr.is_random,[De,lt]=(0,pe.useState)(!1),[Ut,kt]=(0,pe.useState)({}),[rr,Fr]=(0,pe.useState)(!1),[kr,Dr]=(0,pe.useState)(!1),[Nr,xr]=(0,pe.useState)([]);(0,pe.useEffect)(()=>{var hr;if(ze.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:Wn=[],type:Hi}=((hr=ze.actionTabs)==null?void 0:hr.params)||{},ui=Wn.filter($i=>![100,120,150].includes($i.total_score));ui.length?(Dr(Hi),xr(ui)):Fr(!0)}},[(lr=ze==null?void 0:ze.actionTabs)==null?void 0:lr.key]),(0,pe.useEffect)(()=>{Qr()},[]);const ur=()=>{C([]),dt(""),Qr(!0),Fr(!1),Dr(!1),Lt({type:"paperlibrary/setActionTabs",payload:{}})},Qr=hr=>be(void 0,null,function*(){we(!0);const Wn=yield Lt({type:"paperlibrary/getCourseList",payload:{search:hr?"":G}});Wn&&(m((Wn==null?void 0:Wn.courses)||[]),ie(!0),de(!1)),we(!1),je(!1)}),hn=hr=>{const Wn=parseInt(hr);return(0,Ue.isNaN)(Wn)?"":Wn},Ln=()=>be(void 0,null,function*(){var hr,Wn,Hi,ui,$i,Ri,Zi;if(!u.length){Ne.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),Se(!0);return}const Za=yield Lt({type:"paperlibrary/postExistCourse",payload:{course_id:Ie?u==null?void 0:u[0]:u,examination_bank_ids:((Wn=(hr=ze.actionTabs)==null?void 0:hr.params)==null?void 0:Wn.examination_bank_ids)||((ui=(Hi=ze.actionTabs)==null?void 0:Hi.params)==null?void 0:ui.id)}}),_i=()=>be(void 0,null,function*(){var Yn,ii,vi,ge,Me,Fe;tt(!0);let Ge=yield(0,Oe.Tr)({id:(ii=(Yn=ze.actionTabs)==null?void 0:Yn.params)==null?void 0:ii.id,course_id:Ie?u==null?void 0:u[0]:u,type:(ge=(vi=ze.actionTabs)==null?void 0:vi.params)!=null&&ge.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(Fe=(Me=ze.actionTabs)==null?void 0:Me.params)==null?void 0:Fe.examination_bank_ids});tt(!1),(Ge==null?void 0:Ge.student_count)===0?yield pn([]):kt(Ge),yield new Promise(Pt=>setTimeout(()=>Pt(),1e3))});if(Za.status==0&&(($i=Za.data)==null?void 0:$i.count)>0){te.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:D.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(Zi=(Ri=Za.data)==null?void 0:Ri.list)==null?void 0:Zi.map((Yn,ii)=>{var vi;return D.createElement(D.Fragment,null,D.createElement("span",{style:{color:"#FA6400"}},"\u300A",Yn==null?void 0:Yn.name,"\u300B"),ii!==((vi=Za.data)==null?void 0:vi.count)-1&&D.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>be(void 0,null,function*(){yield _i()})}),yield new Promise(Yn=>setTimeout(()=>Yn(),1e3));return}yield _i()}),pn=hr=>be(void 0,null,function*(){var Wn,Hi,ui,$i,Ri,Zi;if(!Ie){lt(!0);const ii=yield Lt({type:(Hi=(Wn=ze.actionTabs)==null?void 0:Wn.params)!=null&&Hi.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:Ie?u==null?void 0:u[0]:u,id:($i=(ui=ze.actionTabs)==null?void 0:ui.params)==null?void 0:$i.id,examination_bank_ids:(Zi=(Ri=ze.actionTabs)==null?void 0:Ri.params)==null?void 0:Zi.examination_bank_ids,shixuns_info:hr.map(vi=>({shixun_id:vi.id,is_copy:vi.is_copy,is_use:vi.is_use,course_id:vi.course_id}))}});lt(!1),ii&&ii.status===0&&(Fr(!1),Lt({type:"paperlibrary/setActionTabs",payload:{}}),C([]),te.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${ii.data[0].first_category_url}`},content:D.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),Ne.ZP.success("\u53D1\u9001\u6210\u529F"));return}lt(!0),setTimeout(()=>{lt(!1)},500);const Za=I.find(ii=>ii.course_id===(u==null?void 0:u[0]));let _i=1,Yn=te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:D.createElement("div",{className:se.modalColumn},D.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},D.createElement("img",{style:{marginRight:5},src:v.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),D.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",Za==null?void 0:Za.course_name),D.createElement("div",{style:{paddingLeft:9},className:se.modalRow},D.createElement("sup",{className:se.sup},"*"),D.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),D.createElement(V.Z,{parser:hn,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:_i,onChange:ii=>{_i=ii;const vi=document.getElementById("model_error");_i<1||_i>50?vi.style.display="block":vi.style.display="none"}})),D.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:ur,onOk:()=>be(void 0,null,function*(){var ii,vi;if(_i<1||_i>50){const Me=document.getElementById("model_error");return Me.style.display="block",Promise.reject()}Yn.update({cancelButtonProps:{disabled:!0}});const ge=yield Lt({type:"paperlibrary/sendToClass",payload:{course_id:u==null?void 0:u[0],id:(vi=(ii=ze.actionTabs)==null?void 0:ii.params)==null?void 0:vi.id,num:_i,shixuns_info:hr.map(Me=>({shixun_id:Me.id,is_copy:Me.is_copy,is_use:Me.is_use}))}});Yn.update({cancelButtonProps:{disabled:!1}}),ge&&ge.status===0&&(te.default.destroyAll(),te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:D.createElement("div",{className:se.modalColumn},D.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},D.createElement("img",{style:{marginRight:5},src:R}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{ur()},onOk:()=>{ur(),setTimeout(()=>{var Me,Fe;const Ge=(Fe=(Me=ge==null?void 0:ge.first_category_url)==null?void 0:Me.split("/"))==null?void 0:Fe[2];(0,ne.xg)(`/classrooms/${Ge}/exercise`)},1e3)}}))})})}),kn=()=>be(void 0,null,function*(){de(!0),yield Qr()}),Ki=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return D.createElement("div",null,D.createElement(te.default,{centered:!0,keyboard:!1,closable:!1,open:rr,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:_t["paperlibrary/sendToClass"]||st||!!_t["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:Ln,destroyOnClose:!0,onCancel:ur},D.createElement("div",{className:se.wrap},D.createElement("div",{className:"mb10"},D.createElement(ke,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:G,className:se.search,onChange:hr=>{dt(hr.target.value),hr.target.value||Qr(!0)},onSearch:hr=>{dt(hr),Qr(),C([])}})),D.createElement(S.Z,{loading:ye},I.length?D.createElement("div",{className:se.radioWrap},D.createElement(g.default,{bordered:!1,scroll:(I==null?void 0:I.length)<=7?{}:{y:350},loading:Qe,rowKey:"course_id",pagination:!1,dataSource:I,columns:Ki,onRow:hr=>({onClick:Wn=>{if(Ie)C([hr==null?void 0:hr.course_id]);else{if(!Ie&&!u.includes(hr.course_id)&&u.length>0)return;u!=null&&u.includes(hr==null?void 0:hr.course_id)?C(u==null?void 0:u.filter(Hi=>Hi!==(hr==null?void 0:hr.course_id))):C([...u,hr==null?void 0:hr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:u,onChange:hr=>{C(hr),Se(!1)}}})):!G&&!Qe&&D.createElement(me,{createState:H,refreshLoading:Ct,onRefresh:kn,onCreate:()=>{ie(!1),(0,ne.xg)("/classrooms/new")}})),q&&D.createElement("div",{className:se.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),D.createElement("div",{className:se.bottom,style:{display:"flex",alignItems:"center"}},D.createElement("div",{style:{flex:1}},D.createElement("div",{className:se.title},D.createElement("img",{src:v.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),D.createElement("div",null,D.createElement(F.ZP,{onClick:ur,className:se.no,style:{marginRight:20}},"\u53D6\u6D88"),D.createElement(Be.Z,{onClick:Ln,className:se.yes},"\u786E\u8BA4"))))),D.createElement(ee.Z,{resdata:Ut,type:"exercise",okloading:De,oktext:(Ut==null?void 0:Ut.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:hr=>{pn(hr)}}),D.createElement(fe.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:kr,dataSource:Nr,onSuccess:()=>{Dr(!1),Fr(!0)},onClose:ur}))};var Ee=(0,Ae.connect)(({paperlibrary:Xe,loading:et,globalSetting:ze})=>({paperlibrary:Xe,globalSetting:ze,loading:et.effects}))(he)},68065:function(An,Tt,x){"use strict";x.d(Tt,{c:function(){return Ae}});var pe=(P=>(P.FirstPage="firstPage",P.PrevPage="prevPage",P.NextPage="nextPage",P))(pe||{}),Ae=(P=>(P[P.Single=0]="Single",P[P.Multiple=1]="Multiple",P[P.Judge=2]="Judge",P[P.Fill=3]="Fill",P[P.Subjective=4]="Subjective",P[P.Shixun=5]="Shixun",P[P.Program=6]="Program",P[P.Combine=7]="Combine",P))(Ae||{})},86374:function(An,Tt,x){"use strict";x.d(Tt,{AD:function(){return Ye},BA:function(){return dt},D9:function(){return he},Hp:function(){return K},IM:function(){return Xe},Iy:function(){return le},KM:function(){return G},KU:function(){return _t},MJ:function(){return me},Ne:function(){return Ee},ON:function(){return Nt},Uj:function(){return yr},VY:function(){return qe},YO:function(){return er},YX:function(){return sr},Zn:function(){return T},_g:function(){return ne},_k:function(){return be},c6:function(){return fe},cr:function(){return L},eV:function(){return D},fi:function(){return Y},gh:function(){return Ue},hS:function(){return et},iA:function(){return R},j6:function(){return J},je:function(){return Te},jj:function(){return W},kS:function(){return Lt},o6:function(){return ee},pO:function(){return lr},rQ:function(){return Le},sA:function(){return Be},xm:function(){return ke},xo:function(){return ze},y8:function(){return Ce},yd:function(){return se}});var pe=x(28190),Ae=x(73815),P=x(74483),Ne=x(8591),te=x(33185),V=Object.defineProperty,S=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,v=(I,m,u)=>m in I?V(I,m,{enumerable:!0,configurable:!0,writable:!0,value:u}):I[m]=u,$=(I,m)=>{for(var u in m||(m={}))g.call(m,u)&&v(I,u,m[u]);if(S)for(var u of S(m))F.call(m,u)&&v(I,u,m[u]);return I},_=(I,m,u)=>new Promise((C,q)=>{var Se=Qe=>{try{ie(u.next(Qe))}catch(we){q(we)}},H=Qe=>{try{ie(u.throw(Qe))}catch(we){q(we)}},ie=Qe=>Qe.done?C(Qe.value):Promise.resolve(Qe.value).then(Se,H);ie((u=u.apply(I,m)).next())});const M=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},O=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},T=I=>_(void 0,null,function*(){M(),(yield(0,pe.YR)($({},I))).status===0&&(yield(0,P.QH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_couser_info.json`,query:I}))),O()}),L=I=>_(void 0,null,function*(){const m=yield(0,pe.yS)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_member_act_score`);else{if(m.status===-2)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_member_act_score`))}}),Y=I=>_(void 0,null,function*(){const m=yield(0,pe.W0)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_score`);else{if(m.status===-4)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_score`))}}),R=I=>_(void 0,null,function*(){const m=yield(0,pe.Nl)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_exercise_and_other`);else{if(m.status===-4)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_exercise_and_other`))}}),se=I=>_(void 0,null,function*(){const m=yield(0,pe.IU)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/export_star_user`);else{if(m.status===-4)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/export_star_user`))}}),ne=I=>_(void 0,null,function*(){const m=yield(0,pe.td)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_exercise_and_other`);else{if(m.status===-2)return m;if(m.status===-3)(0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_exercise_and_other`);else if(m.status===-4)return m}}),J=I=>_(void 0,null,function*(){const m=yield(0,pe.QX)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_homework`);else{if(m.status===-4)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_homework`))}}),W=(I,m)=>_(void 0,null,function*(){const u=yield(0,pe.o_)($({},I));u.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`)):u.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),K=(I,m)=>_(void 0,null,function*(){const u=yield(0,pe.ZL)($({},I));u.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`)):u.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),le=(I,m)=>_(void 0,null,function*(){const u=yield(0,pe.aP)($({},I));u.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`)):u.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),me=(I,m)=>_(void 0,null,function*(){const u=yield(0,pe.vV)($({},I));u.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`)):u.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),Oe=I=>_(void 0,null,function*(){M(),(yield exportCourseWorkListAppendix($({},I))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${I.categoryId}/works_list.zip`,query:I}))),O()}),Be=I=>_(void 0,null,function*(){M(),yield(0,P.QH)("",te.Z.API_SERVER+`/api/polls/${I.categoryId}/commit_result.xlsx`),O()}),Ue=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/attendances/export_xlsx_data.xlsx`,query:I}))}),ee=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/video_study_statics.xlsx`,query:I}))}),fe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_video_study.xlsx`,query:I}))}),D=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_course_students_info.xlsx`,query:I}))}),Ye=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/school_manages/students.xlsx",query:I}))}),Le=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/item_banks/export.xlsx",query:I}))}),Ce=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:I}))}),Te=I=>_(void 0,null,function*(){const m=yield(0,pe.Uy)($({},I));m.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/exercise_score,export_exercise_users`)):m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/exercise_score,export_exercise_users`))}),be=I=>_(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/export_records/${I.id}.xlsx`,query:I}))}),ke=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:I}))}),he=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I==null?void 0:I.coursesId}/${I.menuKey}_statistic.xlsx?${I.checkedList.map(m=>`course_group_id[]=${m}`).join("&")}`,query:I}))}),Ee=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_training_objectives.xlsx`,query:I}))}),Xe=I=>_(void 0,null,function*(){yield(0,P.FH)(I==null?void 0:I.name,(0,P.NY)({url:te.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:I}))}),et=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_courses.xlsx`,query:I}))}),ze=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_graduation_requirements.xlsx`,query:I}))}),qe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:I}))}),_t=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I.categoryId}/rank_list.xlsx`,query:I}))}),Lt=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:I}))}),Nt=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/examination_banks/${I.id}.json`,query:I}))}),sr=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I.categoryId}.json`,query:I}))}),er=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/polls/${I==null?void 0:I.id}/commit_result.json`,query:I}))}),yr=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/paths/get_task_pass.json",query:I}))}),lr=(I,m)=>_(void 0,null,function*(){yield(0,P.FH)(m||"",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I==null?void 0:I.exercise_id}/consult_exercise.json`,query:I}))}),G=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/competitions/${I==null?void 0:I.identifier}/competition_commit_records/member_works.xlsx`,query:I}))}),dt=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I==null?void 0:I.coursesId}/group_homeworks/import_group_template.xlsx`,query:I}))})},50371:function(An,Tt){"use strict";function x(){const pe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ae=1;Ae<arguments.length;Ae++){const P=Ae<0||arguments.length<=Ae?void 0:arguments[Ae];P&&Object.keys(P).forEach(Ne=>{const te=P[Ne];te!==void 0&&(pe[Ne]=te)})}return pe}Tt.Z=x},13845:function(An,Tt,x){"use strict";x.d(Tt,{F:function(){return pe},Z:function(){return Ae}});function pe(P){return P!=null&&P===P.window}function Ae(P,Ne){var te,V;if(typeof window=="undefined")return 0;const S=Ne?"scrollTop":"scrollLeft";let g=0;return pe(P)?g=P[Ne?"pageYOffset":"pageXOffset"]:P instanceof Document?g=P.documentElement[S]:(P instanceof HTMLElement||P)&&(g=P[S]),P&&!pe(P)&&typeof g!="number"&&(g=(V=((te=P.ownerDocument)!==null&&te!==void 0?te:P).documentElement)===null||V===void 0?void 0:V[S]),g}},56762:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});var pe=x(59301);function Ae(){const[,P]=pe.useReducer(Ne=>Ne+1,0);return P}},68031:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ne}});var pe=x(16089);function Ae(te,V,S,g){const F=S-V;return te/=g/2,te<1?F/2*te*te*te+V:F/2*((te-=2)*te*te+2)+V}var P=x(13845);function Ne(te){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:S=()=>window,callback:g,duration:F=450}=V,v=S(),$=(0,P.Z)(v,!0),_=Date.now(),M=()=>{const T=Date.now()-_,L=Ae(T>F?F:T,$,te,F);(0,P.F)(v)?v.scrollTo(window.pageXOffset,L):v instanceof Document||v.constructor.name==="HTMLDocument"?v.documentElement.scrollTop=L:v.scrollTop=L,T<F?(0,pe.Z)(M):typeof g=="function"&&g()};(0,pe.Z)(M)}},19080:function(An,Tt,x){"use strict";x.d(Tt,{F:function(){return te},Z:function(){return Ne}});var pe=x(92310),Ae=x.n(pe);const P=null;function Ne(V,S,g){return Ae()({[`${V}-status-success`]:S==="success",[`${V}-status-warning`]:S==="warning",[`${V}-status-error`]:S==="error",[`${V}-status-validating`]:S==="validating",[`${V}-has-feedback`]:g})}const te=(V,S)=>S||V},66104:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ye}});var pe=x(92310),Ae=x.n(pe),P=x(11592),Ne=x(26112),te=x(59301),V=x(92343),S=x(36355),g=x(84105),F=x(91857);const v=Le=>{let{children:Ce}=Le;const{getPrefixCls:Te}=te.useContext(S.E_),be=Te("breadcrumb");return te.createElement("li",{className:`${be}-separator`,"aria-hidden":"true"},Ce===""?Ce:Ce||"/")};v.__ANT_BREADCRUMB_SEPARATOR=!0;var $=v,_=function(Le,Ce){var Te={};for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&Ce.indexOf(be)<0&&(Te[be]=Le[be]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,be=Object.getOwnPropertySymbols(Le);ke<be.length;ke++)Ce.indexOf(be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,be[ke])&&(Te[be[ke]]=Le[be[ke]]);return Te};function M(Le,Ce){if(Le.title===void 0||Le.title===null)return null;const Te=Object.keys(Ce).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Te})`,"g"),(be,ke)=>Ce[ke]||be)}function O(Le,Ce,Te,be){if(Te==null)return null;const{className:ke,onClick:he}=Ce,Ee=_(Ce,["className","onClick"]),Xe=Object.assign(Object.assign({},(0,Ne.Z)(Ee,{data:!0,aria:!0})),{onClick:he});return be!==void 0?te.createElement("a",Object.assign({},Xe,{className:Ae()(`${Le}-link`,ke),href:be}),Te):te.createElement("span",Object.assign({},Xe,{className:Ae()(`${Le}-link`,ke)}),Te)}function T(Le,Ce){return(be,ke,he,Ee,Xe)=>{if(Ce)return Ce(be,ke,he,Ee);const et=M(be,ke);return O(Le,be,et,Xe)}}var L=function(Le,Ce){var Te={};for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&Ce.indexOf(be)<0&&(Te[be]=Le[be]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,be=Object.getOwnPropertySymbols(Le);ke<be.length;ke++)Ce.indexOf(be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,be[ke])&&(Te[be[ke]]=Le[be[ke]]);return Te};const Y=Le=>{const{prefixCls:Ce,separator:Te="/",children:be,menu:ke,overlay:he,dropdownProps:Ee,href:Xe}=Le,ze=(qe=>{if(ke||he){const _t=Object.assign({},Ee);if(ke){const Lt=ke||{},{items:Nt}=Lt,sr=L(Lt,["items"]);_t.menu=Object.assign(Object.assign({},sr),{items:Nt==null?void 0:Nt.map((er,yr)=>{var{key:lr,title:G,label:dt,path:I}=er,m=L(er,["key","title","label","path"]);let u=dt!=null?dt:G;return I&&(u=te.createElement("a",{href:`${Xe}${I}`},u)),Object.assign(Object.assign({},m),{key:lr!=null?lr:yr,label:u})})})}else he&&(_t.overlay=he);return te.createElement(F.Z,Object.assign({placement:"bottom"},_t),te.createElement("span",{className:`${Ce}-overlay-link`},qe,te.createElement(g.Z,null)))}return qe})(be);return ze!=null?te.createElement(te.Fragment,null,te.createElement("li",null,ze),Te&&te.createElement($,null,Te)):null},R=Le=>{const{prefixCls:Ce,children:Te,href:be}=Le,ke=L(Le,["prefixCls","children","href"]),{getPrefixCls:he}=te.useContext(S.E_),Ee=he("breadcrumb",Ce);return te.createElement(Y,Object.assign({},ke,{prefixCls:Ee}),O(Ee,ke,Te,be))};R.__ANT_BREADCRUMB_ITEM=!0;var se=R,ne=x(17313),J=x(83116),W=x(37613);const K=Le=>{const{componentCls:Ce,iconCls:Te}=Le;return{[Ce]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[Te]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,ne.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ce}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ce}-link`]:{[`
|
|
|
> ${Te} + span,
|
|
|
> ${Te} + a
|
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Ce}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${Te}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,J.Z)("Breadcrumb",Le=>{const Ce=(0,W.TS)(Le,{});return[K(Ce)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),me=function(Le,Ce){var Te={};for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&Ce.indexOf(be)<0&&(Te[be]=Le[be]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,be=Object.getOwnPropertySymbols(Le);ke<be.length;ke++)Ce.indexOf(be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,be[ke])&&(Te[be[ke]]=Le[be[ke]]);return Te};function Oe(Le){const{breadcrumbName:Ce,children:Te}=Le,be=me(Le,["breadcrumbName","children"]),ke=Object.assign({title:Ce},be);return Te&&(ke.menu={items:Te.map(he=>{var{breadcrumbName:Ee}=he,Xe=me(he,["breadcrumbName"]);return Object.assign(Object.assign({},Xe),{title:Ee})})}),ke}function Be(Le,Ce){return(0,te.useMemo)(()=>Le||(Ce?Ce.map(Oe):null),[Le,Ce])}var Ue=function(Le,Ce){var Te={};for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&Ce.indexOf(be)<0&&(Te[be]=Le[be]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,be=Object.getOwnPropertySymbols(Le);ke<be.length;ke++)Ce.indexOf(be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,be[ke])&&(Te[be[ke]]=Le[be[ke]]);return Te};const ee=(Le,Ce)=>{if(Ce===void 0)return Ce;let Te=(Ce||"").replace(/^\//,"");return Object.keys(Le).forEach(be=>{Te=Te.replace(`:${be}`,Le[be])}),Te},fe=Le=>{const{prefixCls:Ce,separator:Te="/",style:be,className:ke,rootClassName:he,routes:Ee,items:Xe,children:et,itemRender:ze,params:qe={}}=Le,_t=Ue(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Lt,direction:Nt,breadcrumb:sr}=te.useContext(S.E_);let er;const yr=Lt("breadcrumb",Ce),[lr,G]=le(yr),dt=Be(Xe,Ee),I=T(yr,ze);if(dt&&dt.length>0){const C=[],q=Xe||Ee;er=dt.map((Se,H)=>{const{path:ie,key:Qe,type:we,menu:ye,overlay:je,onClick:Ct,className:de,separator:st,dropdownProps:tt}=Se,Ie=ee(qe,ie);Ie!==void 0&&C.push(Ie);const De=Qe!=null?Qe:H;if(we==="separator")return te.createElement($,{key:De},st);const lt={},Ut=H===dt.length-1;ye?lt.menu=ye:je&&(lt.overlay=je);let{href:kt}=Se;return C.length&&Ie!==void 0&&(kt=`#/${C.join("/")}`),te.createElement(Y,Object.assign({key:De},lt,(0,Ne.Z)(Se,{data:!0,aria:!0}),{className:de,dropdownProps:tt,href:kt,separator:Ut?"":Te,onClick:Ct,prefixCls:yr}),I(Se,qe,q,C,kt))})}else if(et){const C=(0,P.Z)(et).length;er=(0,P.Z)(et).map((q,Se)=>{if(!q)return q;const H=Se===C-1;return(0,V.Tm)(q,{separator:H?"":Te,key:Se})})}const m=Ae()(yr,sr==null?void 0:sr.className,{[`${yr}-rtl`]:Nt==="rtl"},ke,he,G),u=Object.assign(Object.assign({},sr==null?void 0:sr.style),be);return lr(te.createElement("nav",Object.assign({className:m,style:u},_t),te.createElement("ol",null,er)))};fe.Item=se,fe.Separator=$;var D=fe,Ye=D},24905:function(An,Tt,x){"use strict";x.d(Tt,{default:function(){return le}});var pe=x(92310),Ae=x.n(pe),P=x(5630),Ne=x(59301),te=x(36355),V=x(1684),S=x(32441),F=Ne.createContext(null),v=x(98447),$=x(14088),_=x(4572),M=function(me,Oe){var Be={};for(var Ue in me)Object.prototype.hasOwnProperty.call(me,Ue)&&Oe.indexOf(Ue)<0&&(Be[Ue]=me[Ue]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Ue=Object.getOwnPropertySymbols(me);ee<Ue.length;ee++)Oe.indexOf(Ue[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,Ue[ee])&&(Be[Ue[ee]]=me[Ue[ee]]);return Be};const O=(me,Oe)=>{var Be;const{prefixCls:Ue,className:ee,rootClassName:fe,children:D,indeterminate:Ye=!1,style:Le,onMouseEnter:Ce,onMouseLeave:Te,skipGroup:be=!1,disabled:ke}=me,he=M(me,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ee,direction:Xe,checkbox:et}=Ne.useContext(te.E_),ze=Ne.useContext(F),{isFormItemInput:qe}=Ne.useContext(S.aM),_t=Ne.useContext(V.Z),Lt=(Be=(ze==null?void 0:ze.disabled)||ke)!==null&&Be!==void 0?Be:_t,Nt=Ne.useRef(he.value);Ne.useEffect(()=>{ze==null||ze.registerValue(he.value)},[]),Ne.useEffect(()=>{if(!be)return he.value!==Nt.current&&(ze==null||ze.cancelValue(Nt.current),ze==null||ze.registerValue(he.value),Nt.current=he.value),()=>ze==null?void 0:ze.cancelValue(he.value)},[he.value]);const sr=Ee("checkbox",Ue),[er,yr]=(0,v.ZP)(sr),lr=Object.assign({},he);ze&&!be&&(lr.onChange=function(){he.onChange&&he.onChange.apply(he,arguments),ze.toggleOption&&ze.toggleOption({label:D,value:he.value})},lr.name=ze.name,lr.checked=ze.value.includes(he.value));const G=Ae()(`${sr}-wrapper`,{[`${sr}-rtl`]:Xe==="rtl",[`${sr}-wrapper-checked`]:lr.checked,[`${sr}-wrapper-disabled`]:Lt,[`${sr}-wrapper-in-form-item`]:qe},et==null?void 0:et.className,ee,fe,yr),dt=Ae()({[`${sr}-indeterminate`]:Ye},_.A,yr),I=Ye?"mixed":void 0;return er(Ne.createElement($.Z,{component:"Checkbox",disabled:Lt},Ne.createElement("label",{className:G,style:Object.assign(Object.assign({},et==null?void 0:et.style),Le),onMouseEnter:Ce,onMouseLeave:Te},Ne.createElement(P.Z,Object.assign({"aria-checked":I},lr,{prefixCls:sr,className:dt,disabled:Lt,ref:Oe})),D!==void 0&&Ne.createElement("span",null,D))))};var L=Ne.forwardRef(O),Y=x(94480),R=x(2738),se=function(me,Oe){var Be={};for(var Ue in me)Object.prototype.hasOwnProperty.call(me,Ue)&&Oe.indexOf(Ue)<0&&(Be[Ue]=me[Ue]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Ue=Object.getOwnPropertySymbols(me);ee<Ue.length;ee++)Oe.indexOf(Ue[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,Ue[ee])&&(Be[Ue[ee]]=me[Ue[ee]]);return Be};const ne=(me,Oe)=>{const{defaultValue:Be,children:Ue,options:ee=[],prefixCls:fe,className:D,rootClassName:Ye,style:Le,onChange:Ce}=me,Te=se(me,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:be,direction:ke}=Ne.useContext(te.E_),[he,Ee]=Ne.useState(Te.value||Be||[]),[Xe,et]=Ne.useState([]);Ne.useEffect(()=>{"value"in Te&&Ee(Te.value||[])},[Te.value]);const ze=Ne.useMemo(()=>ee.map(m=>typeof m=="string"||typeof m=="number"?{label:m,value:m}:m),[ee]),qe=m=>{et(u=>u.filter(C=>C!==m))},_t=m=>{et(u=>[].concat((0,Y.Z)(u),[m]))},Lt=m=>{const u=he.indexOf(m.value),C=(0,Y.Z)(he);u===-1?C.push(m.value):C.splice(u,1),"value"in Te||Ee(C),Ce==null||Ce(C.filter(q=>Xe.includes(q)).sort((q,Se)=>{const H=ze.findIndex(Qe=>Qe.value===q),ie=ze.findIndex(Qe=>Qe.value===Se);return H-ie}))},Nt=be("checkbox",fe),sr=`${Nt}-group`,[er,yr]=(0,v.ZP)(Nt),lr=(0,R.Z)(Te,["value","disabled"]),G=ee.length?ze.map(m=>Ne.createElement(L,{prefixCls:Nt,key:m.value.toString(),disabled:"disabled"in m?m.disabled:Te.disabled,value:m.value,checked:he.includes(m.value),onChange:m.onChange,className:`${sr}-item`,style:m.style,title:m.title},m.label)):Ue,dt={toggleOption:Lt,value:he,disabled:Te.disabled,name:Te.name,registerValue:_t,cancelValue:qe},I=Ae()(sr,{[`${sr}-rtl`]:ke==="rtl"},D,Ye,yr);return er(Ne.createElement("div",Object.assign({className:I,style:Le},lr,{ref:Oe}),Ne.createElement(F.Provider,{value:dt},G)))},J=Ne.forwardRef(ne);var W=Ne.memo(J);const K=L;K.Group=W,K.__ANT_CHECKBOX=!0;var le=K},98447:function(An,Tt,x){"use strict";x.d(Tt,{C2:function(){return te}});var pe=x(17313),Ae=x(37613),P=x(83116);const Ne=V=>{const{checkboxCls:S}=V,g=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,pe.Wf)(V)),{display:"inline-flex",flexWrap:"wrap",columnGap:V.marginXS,[`> ${V.antCls}-row`]:{flex:1}}),[g]:Object.assign(Object.assign({},(0,pe.Wf)(V)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${g}`]:{marginInlineStart:0},[`&${g}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[S]:Object.assign(Object.assign({},(0,pe.Wf)(V)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:V.borderRadiusSM,alignSelf:"center",[`${S}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${S}-inner`]:Object.assign({},(0,pe.oN)(V))},[`${S}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:V.checkboxSize,height:V.checkboxSize,direction:"ltr",backgroundColor:V.colorBgContainer,border:`${V.lineWidth}px ${V.lineType} ${V.colorBorder}`,borderRadius:V.borderRadiusSM,borderCollapse:"separate",transition:`all ${V.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:V.checkboxSize/14*5,height:V.checkboxSize/14*8,border:`${V.lineWidthBold}px solid ${V.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${V.motionDurationFast} ${V.motionEaseInBack}, opacity ${V.motionDurationFast}`}},"& + span":{paddingInlineStart:V.paddingXS,paddingInlineEnd:V.paddingXS}})},{[`
|
|
|
${g}:not(${g}-disabled),
|
|
|
${S}:not(${S}-disabled)
|
|
|
`]:{[`&:hover ${S}-inner`]:{borderColor:V.colorPrimary}},[`${g}:not(${g}-disabled)`]:{[`&:hover ${S}-checked:not(${S}-disabled) ${S}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${S}-checked:not(${S}-disabled):after`]:{borderColor:V.colorPrimaryHover}}},{[`${S}-checked`]:{[`${S}-inner`]:{backgroundColor:V.colorPrimary,borderColor:V.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${V.motionDurationMid} ${V.motionEaseOutBack} ${V.motionDurationFast}`}}},[`
|
|
|
${g}-checked:not(${g}-disabled),
|
|
|
${S}-checked:not(${S}-disabled)
|
|
|
`]:{[`&:hover ${S}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"}}},{[S]:{"&-indeterminate":{[`${S}-inner`]:{backgroundColor:V.colorBgContainer,borderColor:V.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:V.fontSizeLG/2,height:V.fontSizeLG/2,backgroundColor:V.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${g}-disabled`]:{cursor:"not-allowed"},[`${S}-disabled`]:{[`&, ${S}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${S}-inner`]:{background:V.colorBgContainerDisabled,borderColor:V.colorBorder,"&:after":{borderColor:V.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:V.colorTextDisabled},[`&${S}-indeterminate ${S}-inner::after`]:{background:V.colorTextDisabled}}}]};function te(V,S){const g=(0,Ae.TS)(S,{checkboxCls:`.${V}`,checkboxSize:S.controlInteractiveSize});return[Ne(g)]}Tt.ZP=(0,P.Z)("Checkbox",(V,S)=>{let{prefixCls:g}=S;return[te(g,V)]})},93891:function(An,Tt,x){"use strict";var pe=x(59301),Ae=x(36355),P=x(64165);const Ne=te=>{const{componentName:V}=te,{getPrefixCls:S}=(0,pe.useContext)(Ae.E_),g=S("empty");switch(V){case"Table":case"List":return pe.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE,className:`${g}-small`});default:return pe.createElement(P.Z,null)}};Tt.Z=Ne},28103:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return _}});var pe=x(92310),Ae=x.n(pe),P=x(59301),Ne=x(36355),te=x(17313),V=x(83116),S=x(37613);const g=M=>{const{componentCls:O,sizePaddingEdgeHorizontal:T,colorSplit:L,lineWidth:Y,textPaddingInline:R,orientationMargin:se,verticalMarginInline:ne}=M;return{[O]:Object.assign(Object.assign({},(0,te.Wf)(M)),{borderBlockStart:`${Y}px solid ${L}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ne,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Y}px solid ${L}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${M.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${O}-with-text`]:{display:"flex",alignItems:"center",margin:`${M.dividerHorizontalWithTextGutterMargin}px 0`,color:M.colorTextHeading,fontWeight:500,fontSize:M.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${L}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Y}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${O}-with-text-left`]:{"&::before":{width:`${se*100}%`},"&::after":{width:`${100-se*100}%`}},[`&-horizontal${O}-with-text-right`]:{"&::before":{width:`${100-se*100}%`},"&::after":{width:`${se*100}%`}},[`${O}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:R},"&-dashed":{background:"none",borderColor:L,borderStyle:"dashed",borderWidth:`${Y}px 0 0`},[`&-horizontal${O}-with-text${O}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${O}-dashed`]:{borderInlineStartWidth:Y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${O}-with-text`]:{color:M.colorText,fontWeight:"normal",fontSize:M.fontSize},[`&-horizontal${O}-with-text-left${O}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${O}-inner-text`]:{paddingInlineStart:T}},[`&-horizontal${O}-with-text-right${O}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${O}-inner-text`]:{paddingInlineEnd:T}}})}};var F=(0,V.Z)("Divider",M=>{const O=(0,S.TS)(M,{dividerHorizontalWithTextGutterMargin:M.margin,dividerHorizontalGutterMargin:M.marginLG,sizePaddingEdgeHorizontal:0});return[g(O)]},M=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:M.marginXS})),v=function(M,O){var T={};for(var L in M)Object.prototype.hasOwnProperty.call(M,L)&&O.indexOf(L)<0&&(T[L]=M[L]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,L=Object.getOwnPropertySymbols(M);Y<L.length;Y++)O.indexOf(L[Y])<0&&Object.prototype.propertyIsEnumerable.call(M,L[Y])&&(T[L[Y]]=M[L[Y]]);return T},_=M=>{const{getPrefixCls:O,direction:T,divider:L}=P.useContext(Ne.E_),{prefixCls:Y,type:R="horizontal",orientation:se="center",orientationMargin:ne,className:J,rootClassName:W,children:K,dashed:le,plain:me,style:Oe}=M,Be=v(M,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ue=O("divider",Y),[ee,fe]=F(Ue),D=se.length>0?`-${se}`:se,Ye=!!K,Le=se==="left"&&ne!=null,Ce=se==="right"&&ne!=null,Te=Ae()(Ue,L==null?void 0:L.className,fe,`${Ue}-${R}`,{[`${Ue}-with-text`]:Ye,[`${Ue}-with-text${D}`]:Ye,[`${Ue}-dashed`]:!!le,[`${Ue}-plain`]:!!me,[`${Ue}-rtl`]:T==="rtl",[`${Ue}-no-default-orientation-margin-left`]:Le,[`${Ue}-no-default-orientation-margin-right`]:Ce},J,W),be=P.useMemo(()=>typeof ne=="number"?ne:/^\d+$/.test(ne)?Number(ne):ne,[ne]),ke=Object.assign(Object.assign({},Le&&{marginLeft:be}),Ce&&{marginRight:be});return ee(P.createElement("div",Object.assign({className:Te,style:Object.assign(Object.assign({},L==null?void 0:L.style),Oe)},Be,{role:"separator"}),K&&R!=="vertical"&&P.createElement("span",{className:`${Ue}-inner-text`,style:ke},K)))}},91857:function(An,Tt,x){"use strict";var pe=x(59301),Ae=x(38819),P=x(92310),Ne=x.n(P),te=x(31561),V=x(70425),S=x(18929),g=x(2738),F=x(79676),v=x(53487),$=x(92343),_=x(36355),M=x(20834),O=x(40875),T=x(88088),L=x(47211);const Y=null,R=W=>{const{menu:K,arrow:le,prefixCls:me,children:Oe,trigger:Be,disabled:Ue,dropdownRender:ee,getPopupContainer:fe,overlayClassName:D,rootClassName:Ye,open:Le,onOpenChange:Ce,visible:Te,onVisibleChange:be,mouseEnterDelay:ke=.15,mouseLeaveDelay:he=.1,autoAdjustOverflow:Ee=!0,placement:Xe="",overlay:et,transitionName:ze}=W,{getPopupContainer:qe,getPrefixCls:_t,direction:Lt}=pe.useContext(_.E_),Nt=pe.useMemo(()=>{const ye=_t();return ze!==void 0?ze:Xe.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[_t,Xe,ze]),sr=pe.useMemo(()=>Xe?Xe.includes("Center")?Xe.slice(0,Xe.indexOf("Center")):Xe:Lt==="rtl"?"bottomRight":"bottomLeft",[Xe,Lt]),er=_t("dropdown",me),[yr,lr]=(0,L.Z)(er),[,G]=(0,T.Z)(),dt=pe.Children.only(Oe),I=(0,$.Tm)(dt,{className:Ne()(`${er}-trigger`,{[`${er}-rtl`]:Lt==="rtl"},dt.props.className),disabled:Ue}),m=Ue?[]:Be;let u;m&&m.includes("contextMenu")&&(u=!0);const[C,q]=(0,S.Z)(!1,{value:Le!=null?Le:Te}),Se=(0,V.useEvent)(ye=>{Ce==null||Ce(ye),be==null||be(ye),q(ye)}),H=Ne()(D,Ye,lr,{[`${er}-rtl`]:Lt==="rtl"}),ie=(0,F.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:Ee,offset:G.marginXXS,arrowWidth:le?G.sizePopupArrow:0,borderRadius:G.borderRadius}),Qe=pe.useCallback(()=>{q(!1)},[]),we=()=>{let ye;return K!=null&&K.items?ye=pe.createElement(M.default,Object.assign({},K)):typeof et=="function"?ye=et():ye=et,ee&&(ye=ee(ye)),ye=pe.Children.only(typeof ye=="string"?pe.createElement("span",null,ye):ye),pe.createElement(O.J,{prefixCls:`${er}-menu`,expandIcon:pe.createElement("span",{className:`${er}-menu-submenu-arrow`},pe.createElement(Ae.Z,{className:`${er}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qe,validator:je=>{let{mode:Ct}=je}},ye)};return yr(pe.createElement(te.Z,Object.assign({alignPoint:u},(0,g.Z)(W,["rootClassName"]),{mouseEnterDelay:ke,mouseLeaveDelay:he,visible:C,builtinPlacements:ie,arrow:!!le,overlayClassName:H,prefixCls:er,getPopupContainer:fe||qe,transitionName:Nt,trigger:m,overlay:we,placement:sr,onVisibleChange:Se}),I))};function se(W){return Object.assign(Object.assign({},W),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ne=(0,v.Z)(R,"dropdown",W=>W,se),J=W=>pe.createElement(ne,Object.assign({},W),pe.createElement("span",null));R._InternalPanelDoNotUseOrYouWillBeFired=J,Tt.Z=R},38854:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return T}});var pe=x(91857),Ae=x(92310),P=x.n(Ae),Ne=x(59301),te=x(18785),V=x(3113),S=x(36355),g=x(81327),F=x(33234),v=x(47211),$=function(L,Y){var R={};for(var se in L)Object.prototype.hasOwnProperty.call(L,se)&&Y.indexOf(se)<0&&(R[se]=L[se]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,se=Object.getOwnPropertySymbols(L);ne<se.length;ne++)Y.indexOf(se[ne])<0&&Object.prototype.propertyIsEnumerable.call(L,se[ne])&&(R[se[ne]]=L[se[ne]]);return R};const _=L=>{const{getPopupContainer:Y,getPrefixCls:R,direction:se}=Ne.useContext(S.E_),{prefixCls:ne,type:J="default",danger:W,disabled:K,loading:le,onClick:me,htmlType:Oe,children:Be,className:Ue,menu:ee,arrow:fe,autoFocus:D,overlay:Ye,trigger:Le,align:Ce,open:Te,onOpenChange:be,placement:ke,getPopupContainer:he,href:Ee,icon:Xe=Ne.createElement(te.Z,null),title:et,buttonsRender:ze=we=>we,mouseEnterDelay:qe,mouseLeaveDelay:_t,overlayClassName:Lt,overlayStyle:Nt,destroyPopupOnHide:sr,dropdownRender:er}=L,yr=$(L,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),lr=R("dropdown",ne),G=`${lr}-button`,[dt,I]=(0,v.Z)(lr),m={menu:ee,arrow:fe,autoFocus:D,align:Ce,disabled:K,trigger:K?[]:Le,onOpenChange:be,getPopupContainer:he||Y,mouseEnterDelay:qe,mouseLeaveDelay:_t,overlayClassName:Lt,overlayStyle:Nt,destroyPopupOnHide:sr,dropdownRender:er},{compactSize:u,compactItemClassnames:C}=(0,F.ri)(lr,se),q=P()(G,C,Ue,I);"overlay"in L&&(m.overlay=Ye),"open"in L&&(m.open=Te),"placement"in L?m.placement=ke:m.placement=se==="rtl"?"bottomLeft":"bottomRight";const Se=Ne.createElement(V.ZP,{type:J,danger:W,disabled:K,loading:le,onClick:me,htmlType:Oe,href:Ee,title:et},Be),H=Ne.createElement(V.ZP,{type:J,danger:W,icon:Xe}),[ie,Qe]=ze([Se,H]);return dt(Ne.createElement(g.Z.Compact,Object.assign({className:q,size:u,block:!0},yr),ie,Ne.createElement(pe.Z,Object.assign({},m),Qe)))};_.__ANT_BUTTON=!0;var M=_;const O=pe.Z;O.Button=M;var T=O},47211:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return $}});var pe=x(17313),Ae=x(13826),P=x(92899),Ne=x(29878),te=x(19447),V=x(83116),S=x(37613),F=_=>{const{componentCls:M,menuCls:O,colorError:T,colorTextLightSolid:L}=_,Y=`${O}-item`;return{[`${M}, ${M}-menu-submenu`]:{[`${O} ${Y}`]:{[`&${Y}-danger:not(${Y}-disabled)`]:{color:T,"&:hover":{color:L,backgroundColor:T}}}}}};const v=_=>{const{componentCls:M,menuCls:O,zIndexPopup:T,dropdownArrowDistance:L,sizePopupArrow:Y,antCls:R,iconCls:se,motionDurationMid:ne,dropdownPaddingVertical:J,fontSize:W,dropdownEdgeChildPadding:K,colorTextDisabled:le,fontSizeIcon:me,controlPaddingHorizontal:Oe,colorBgElevated:Be}=_;return[{[M]:Object.assign(Object.assign({},(0,pe.Wf)(_)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,display:"block","&::before":{position:"absolute",insetBlock:-L+Y/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${R}-btn`]:{[`& > ${se}-down, & > ${R}-btn-icon > ${se}-down`]:{fontSize:me}},[`${M}-wrap`]:{position:"relative",[`${R}-btn > ${se}-down`]:{fontSize:me},[`${se}-down::before`]:{transition:`transform ${ne}`}},[`${M}-wrap-open`]:{[`${se}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottomLeft,
|
|
|
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottomLeft,
|
|
|
&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottom,
|
|
|
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottom,
|
|
|
&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottomRight,
|
|
|
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottomRight`]:{animationName:Ae.fJ},[`&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-topLeft,
|
|
|
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-topLeft,
|
|
|
&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-top,
|
|
|
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-top,
|
|
|
&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-topRight,
|
|
|
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-topRight`]:{animationName:Ae.Qt},[`&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottomLeft,
|
|
|
&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottom,
|
|
|
&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottomRight`]:{animationName:Ae.Uw},[`&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-topLeft,
|
|
|
&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-top,
|
|
|
&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-topRight`]:{animationName:Ae.ly}})},(0,te.ZP)(_,{colorBg:Be,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${M} ${O}`]:{position:"relative",margin:0},[`${O}-submenu-popup`]:{position:"absolute",zIndex:T,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${M}, ${M}-menu-submenu`]:{[O]:Object.assign(Object.assign({padding:K,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:_.borderRadiusLG,outline:"none",boxShadow:_.boxShadowSecondary},(0,pe.Qy)(_)),{[`${O}-item-group-title`]:{padding:`${J}px ${Oe}px`,color:_.colorTextDescription,transition:`all ${ne}`},[`${O}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${O}-item-icon`]:{minWidth:W,marginInlineEnd:_.marginXS,fontSize:_.fontSizeSM},[`${O}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ne}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${O}-item, ${O}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${J}px ${Oe}px`,color:_.colorText,fontWeight:"normal",fontSize:W,lineHeight:_.lineHeight,cursor:"pointer",transition:`all ${ne}`,borderRadius:_.borderRadiusSM,"&:hover, &-active":{backgroundColor:_.controlItemBgHover}},(0,pe.Qy)(_)),{"&-selected":{color:_.colorPrimary,backgroundColor:_.controlItemBgActive,"&:hover, &-active":{backgroundColor:_.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Be,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_.colorSplit},[`${M}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_.paddingXS,[`${M}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_.colorTextDescription,fontSize:me,fontStyle:"normal"}}}),[`${O}-item-group-list`]:{margin:`0 ${_.marginXS}px`,padding:0,listStyle:"none"},[`${O}-submenu-title`]:{paddingInlineEnd:Oe+_.fontSizeSM},[`${O}-submenu-vertical`]:{position:"relative"},[`${O}-submenu${O}-submenu-disabled ${M}-menu-submenu-title`]:{[`&, ${M}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Be,cursor:"not-allowed"}},[`${O}-submenu-selected ${M}-menu-submenu-title`]:{color:_.colorPrimary}})}},[(0,Ae.oN)(_,"slide-up"),(0,Ae.oN)(_,"slide-down"),(0,P.Fm)(_,"move-up"),(0,P.Fm)(_,"move-down"),(0,Ne._y)(_,"zoom-big")]]};var $=(0,V.Z)("Dropdown",(_,M)=>{let{rootPrefixCls:O}=M;const{marginXXS:T,sizePopupArrow:L,controlHeight:Y,fontSize:R,lineHeight:se,paddingXXS:ne,componentCls:J,borderRadiusLG:W}=_,K=(Y-R*se)/2,{dropdownArrowOffset:le}=(0,te.fS)({contentRadius:W}),me=(0,S.TS)(_,{menuCls:`${J}-menu`,rootPrefixCls:O,dropdownArrowDistance:L/2+T,dropdownArrowOffset:le,dropdownPaddingVertical:K,dropdownEdgeChildPadding:ne});return[v(me),F(me)]},_=>({zIndexPopup:_.zIndexPopupBase+50}))},64165:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return ne}});var pe=x(92310),Ae=x.n(pe),P=x(59301),Ne=x(36355),te=x(9763),V=x(64993),S=x(88088),F=()=>{const[,J]=(0,S.Z)(),K=new V.C(J.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return P.createElement("svg",{style:K,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},P.createElement("g",{fill:"none",fillRule:"evenodd"},P.createElement("g",{transform:"translate(24 31.67)"},P.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),P.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),P.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),P.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),P.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),P.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),P.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},P.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),P.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},$=()=>{const[,J]=(0,S.Z)(),{colorFill:W,colorFillTertiary:K,colorFillQuaternary:le,colorBgContainer:me}=J,{borderColor:Oe,shadowColor:Be,contentColor:Ue}=(0,P.useMemo)(()=>({borderColor:new V.C(W).onBackground(me).toHexShortString(),shadowColor:new V.C(K).onBackground(me).toHexShortString(),contentColor:new V.C(le).onBackground(me).toHexShortString()}),[W,K,le,me]);return P.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},P.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},P.createElement("ellipse",{fill:Be,cx:"32",cy:"33",rx:"32",ry:"7"}),P.createElement("g",{fillRule:"nonzero",stroke:Oe},P.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),P.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ue}))))},_=x(83116),M=x(37613);const O=J=>{const{componentCls:W,margin:K,marginXS:le,marginXL:me,fontSize:Oe,lineHeight:Be}=J;return{[W]:{marginInline:le,fontSize:Oe,lineHeight:Be,textAlign:"center",[`${W}-image`]:{height:J.emptyImgHeight,marginBottom:le,opacity:J.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${W}-description`]:{color:J.colorText},[`${W}-footer`]:{marginTop:K},"&-normal":{marginBlock:me,color:J.colorTextDisabled,[`${W}-description`]:{color:J.colorTextDisabled},[`${W}-image`]:{height:J.emptyImgHeightMD}},"&-small":{marginBlock:le,color:J.colorTextDisabled,[`${W}-image`]:{height:J.emptyImgHeightSM}}}}};var T=(0,_.Z)("Empty",J=>{const{componentCls:W,controlHeightLG:K}=J,le=(0,M.TS)(J,{emptyImgCls:`${W}-img`,emptyImgHeight:K*2.5,emptyImgHeightMD:K,emptyImgHeightSM:K*.875});return[O(le)]}),L=function(J,W){var K={};for(var le in J)Object.prototype.hasOwnProperty.call(J,le)&&W.indexOf(le)<0&&(K[le]=J[le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,le=Object.getOwnPropertySymbols(J);me<le.length;me++)W.indexOf(le[me])<0&&Object.prototype.propertyIsEnumerable.call(J,le[me])&&(K[le[me]]=J[le[me]]);return K};const Y=P.createElement(F,null),R=P.createElement($,null),se=J=>{var{className:W,rootClassName:K,prefixCls:le,image:me=Y,description:Oe,children:Be,imageStyle:Ue,style:ee}=J,fe=L(J,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:Ye,empty:Le}=P.useContext(Ne.E_),Ce=D("empty",le),[Te,be]=T(Ce),[ke]=(0,te.Z)("Empty"),he=typeof Oe!="undefined"?Oe:ke==null?void 0:ke.description,Ee=typeof he=="string"?he:"empty";let Xe=null;return typeof me=="string"?Xe=P.createElement("img",{alt:Ee,src:me}):Xe=me,Te(P.createElement("div",Object.assign({className:Ae()(be,Ce,Le==null?void 0:Le.className,{[`${Ce}-normal`]:me===R,[`${Ce}-rtl`]:Ye==="rtl"},W,K),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),ee)},fe),P.createElement("div",{className:`${Ce}-image`,style:Ue},Xe),he&&P.createElement("div",{className:`${Ce}-description`},he),Be&&P.createElement("div",{className:`${Ce}-footer`},Be)))};se.PRESENTED_IMAGE_DEFAULT=Y,se.PRESENTED_IMAGE_SIMPLE=R;var ne=se},8628:function(An,Tt,x){"use strict";var pe=x(59301),Ae=x(34280),P=x(56762),Ne=x(69507);function te(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const S=(0,pe.useRef)({}),g=(0,P.Z)(),F=(0,Ne.ZP)();return(0,Ae.Z)(()=>{const v=F.subscribe($=>{S.current=$,V&&g()});return()=>F.unsubscribe(v)},[]),S.current}Tt.Z=te},5871:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return tt}});var pe=x(84105),Ae=x(87395),P=x(92310),Ne=x.n(P),te=x(54476),V=x(20068),S=x(76190),g=x(42978),F=x(75931),v=x(67732),$=x(83652);function _(){return typeof BigInt=="function"}function M(Ie){return!Ie&&Ie!==0&&!Number.isNaN(Ie)||!String(Ie).trim()}function O(Ie){var De=Ie.trim(),lt=De.startsWith("-");lt&&(De=De.slice(1)),De=De.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),De.startsWith(".")&&(De="0".concat(De));var Ut=De||"0",kt=Ut.split("."),rr=kt[0]||"0",Fr=kt[1]||"0";rr==="0"&&Fr==="0"&&(lt=!1);var kr=lt?"-":"";return{negative:lt,negativeStr:kr,trimStr:Ut,integerStr:rr,decimalStr:Fr,fullStr:"".concat(kr).concat(Ut)}}function T(Ie){var De=String(Ie);return!Number.isNaN(Number(De))&&De.includes("e")}function L(Ie){var De=String(Ie);if(T(Ie)){var lt=Number(De.slice(De.indexOf("e-")+2)),Ut=De.match(/\.(\d+)/);return Ut!=null&&Ut[1]&&(lt+=Ut[1].length),lt}return De.includes(".")&&R(De)?De.length-De.indexOf(".")-1:0}function Y(Ie){var De=String(Ie);if(T(Ie)){if(Ie>Number.MAX_SAFE_INTEGER)return String(_()?BigInt(Ie).toString():Number.MAX_SAFE_INTEGER);if(Ie<Number.MIN_SAFE_INTEGER)return String(_()?BigInt(Ie).toString():Number.MIN_SAFE_INTEGER);De=Ie.toFixed(L(De))}return O(De).fullStr}function R(Ie){return typeof Ie=="number"?!Number.isNaN(Ie):Ie?/^\s*-?\d+(\.\d+)?\s*$/.test(Ie)||/^\s*-?\d+\.\s*$/.test(Ie)||/^\s*-?\.\d+\s*$/.test(Ie):!1}var se=function(){function Ie(De){if((0,v.Z)(this,Ie),(0,V.Z)(this,"origin",""),(0,V.Z)(this,"negative",void 0),(0,V.Z)(this,"integer",void 0),(0,V.Z)(this,"decimal",void 0),(0,V.Z)(this,"decimalLen",void 0),(0,V.Z)(this,"empty",void 0),(0,V.Z)(this,"nan",void 0),M(De)){this.empty=!0;return}if(this.origin=String(De),De==="-"||Number.isNaN(De)){this.nan=!0;return}var lt=De;if(T(lt)&&(lt=Number(lt)),lt=typeof lt=="string"?lt:Y(lt),R(lt)){var Ut=O(lt);this.negative=Ut.negative;var kt=Ut.trimStr.split(".");this.integer=BigInt(kt[0]);var rr=kt[1]||"0";this.decimal=BigInt(rr),this.decimalLen=rr.length}else this.nan=!0}return(0,$.Z)(Ie,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(lt){var Ut="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(lt,"0"));return BigInt(Ut)}},{key:"negate",value:function(){var lt=new Ie(this.toString());return lt.negative=!lt.negative,lt}},{key:"cal",value:function(lt,Ut,kt){var rr=Math.max(this.getDecimalStr().length,lt.getDecimalStr().length),Fr=this.alignDecimal(rr),kr=lt.alignDecimal(rr),Dr=Ut(Fr,kr).toString(),Nr=kt(rr),xr=O(Dr),ur=xr.negativeStr,Qr=xr.trimStr,hn="".concat(ur).concat(Qr.padStart(Nr+1,"0"));return new Ie("".concat(hn.slice(0,-Nr),".").concat(hn.slice(-Nr)))}},{key:"add",value:function(lt){if(this.isInvalidate())return new Ie(lt);var Ut=new Ie(lt);return Ut.isInvalidate()?this:this.cal(Ut,function(kt,rr){return kt+rr},function(kt){return kt})}},{key:"multi",value:function(lt){var Ut=new Ie(lt);return this.isInvalidate()||Ut.isInvalidate()?new Ie(NaN):this.cal(Ut,function(kt,rr){return kt*rr},function(kt){return kt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(lt){return this.toString()===(lt==null?void 0:lt.toString())}},{key:"lessEquals",value:function(lt){return this.add(lt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return lt?this.isInvalidate()?"":O("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ie}(),ne=function(){function Ie(De){if((0,v.Z)(this,Ie),(0,V.Z)(this,"origin",""),(0,V.Z)(this,"number",void 0),(0,V.Z)(this,"empty",void 0),M(De)){this.empty=!0;return}this.origin=String(De),this.number=Number(De)}return(0,$.Z)(Ie,[{key:"negate",value:function(){return new Ie(-this.toNumber())}},{key:"add",value:function(lt){if(this.isInvalidate())return new Ie(lt);var Ut=Number(lt);if(Number.isNaN(Ut))return this;var kt=this.number+Ut;if(kt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(kt<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var rr=Math.max(L(this.number),L(Ut));return new Ie(kt.toFixed(rr))}},{key:"multi",value:function(lt){var Ut=Number(lt);if(this.isInvalidate()||Number.isNaN(Ut))return new Ie(NaN);var kt=this.number*Ut;if(kt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(kt<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var rr=Math.max(L(this.number),L(Ut));return new Ie(kt.toFixed(rr))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(lt){return this.toNumber()===(lt==null?void 0:lt.toNumber())}},{key:"lessEquals",value:function(lt){return this.add(lt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return lt?this.isInvalidate()?"":Y(this.number):this.origin}}]),Ie}();function J(Ie){return _()?new se(Ie):new ne(Ie)}function W(Ie,De,lt){var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie==="")return"";var kt=O(Ie),rr=kt.negativeStr,Fr=kt.integerStr,kr=kt.decimalStr,Dr="".concat(De).concat(kr),Nr="".concat(rr).concat(Fr);if(lt>=0){var xr=Number(kr[lt]);if(xr>=5&&!Ut){var ur=J(Ie).add("".concat(rr,"0.").concat("0".repeat(lt)).concat(10-xr));return W(ur.toString(),De,lt,Ut)}return lt===0?Nr:"".concat(Nr).concat(De).concat(kr.padEnd(lt,"0").slice(0,lt))}return Dr===".0"?Nr:"".concat(Nr).concat(Dr)}var K=J,le=x(93681),me=x(34280),Oe=x(8654),Be=x(59301),Ue=x(48736);function ee(Ie,De){var lt=(0,Be.useRef)(null);function Ut(){try{var rr=Ie.selectionStart,Fr=Ie.selectionEnd,kr=Ie.value,Dr=kr.substring(0,rr),Nr=kr.substring(Fr);lt.current={start:rr,end:Fr,value:kr,beforeTxt:Dr,afterTxt:Nr}}catch(xr){}}function kt(){if(Ie&<.current&&De)try{var rr=Ie.value,Fr=lt.current,kr=Fr.beforeTxt,Dr=Fr.afterTxt,Nr=Fr.start,xr=rr.length;if(rr.endsWith(Dr))xr=rr.length-lt.current.afterTxt.length;else if(rr.startsWith(kr))xr=kr.length;else{var ur=kr[Nr-1],Qr=rr.indexOf(ur,Nr-1);Qr!==-1&&(xr=Qr+1)}Ie.setSelectionRange(xr,xr)}catch(hn){(0,Ue.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(hn.message))}}return[Ut,kt]}var fe=x(49658),D=function(){var De=(0,Be.useState)(!1),lt=(0,g.Z)(De,2),Ut=lt[0],kt=lt[1];return(0,me.Z)(function(){kt((0,fe.Z)())},[]),Ut},Ye=D,Le=x(16089),Ce=200,Te=600;function be(Ie){var De=Ie.prefixCls,lt=Ie.upNode,Ut=Ie.downNode,kt=Ie.upDisabled,rr=Ie.downDisabled,Fr=Ie.onStep,kr=Be.useRef(),Dr=Be.useRef([]),Nr=Be.useRef();Nr.current=Fr;var xr=function(){clearTimeout(kr.current)},ur=function(Wn,Hi){Wn.preventDefault(),xr(),Nr.current(Hi);function ui(){Nr.current(Hi),kr.current=setTimeout(ui,Ce)}kr.current=setTimeout(ui,Te)};Be.useEffect(function(){return function(){xr(),Dr.current.forEach(function(hr){return Le.Z.cancel(hr)})}},[]);var Qr=Ye();if(Qr)return null;var hn="".concat(De,"-handler"),Ln=Ne()(hn,"".concat(hn,"-up"),(0,V.Z)({},"".concat(hn,"-up-disabled"),kt)),pn=Ne()(hn,"".concat(hn,"-down"),(0,V.Z)({},"".concat(hn,"-down-disabled"),rr)),kn=function(){return Dr.current.push((0,Le.Z)(xr))},Ki={unselectable:"on",role:"button",onMouseUp:kn,onMouseLeave:kn};return Be.createElement("div",{className:"".concat(hn,"-wrap")},Be.createElement("span",(0,te.Z)({},Ki,{onMouseDown:function(Wn){ur(Wn,!0)},"aria-label":"Increase Value","aria-disabled":kt,className:Ln}),lt||Be.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-up-inner")})),Be.createElement("span",(0,te.Z)({},Ki,{onMouseDown:function(Wn){ur(Wn,!1)},"aria-label":"Decrease Value","aria-disabled":rr,className:pn}),Ut||Be.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-down-inner")})))}function ke(Ie){var De=typeof Ie=="number"?Y(Ie):O(Ie).fullStr,lt=De.includes(".");return lt?O(De.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ie+"0"}var he=x(5643),Ee=function(){var Ie=(0,Be.useRef)(0),De=function(){Le.Z.cancel(Ie.current)};return(0,Be.useEffect)(function(){return De},[]),function(lt){De(),Ie.current=(0,Le.Z)(function(){lt()})}},Xe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],et=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],ze=function(De,lt){return De||lt.isEmpty()?lt.toString():lt.toNumber()},qe=function(De){var lt=K(De);return lt.isInvalidate()?null:lt},_t=Be.forwardRef(function(Ie,De){var lt,Ut=Ie.prefixCls,kt=Ut===void 0?"rc-input-number":Ut,rr=Ie.className,Fr=Ie.style,kr=Ie.min,Dr=Ie.max,Nr=Ie.step,xr=Nr===void 0?1:Nr,ur=Ie.defaultValue,Qr=Ie.value,hn=Ie.disabled,Ln=Ie.readOnly,pn=Ie.upHandler,kn=Ie.downHandler,Ki=Ie.keyboard,hr=Ie.controls,Wn=hr===void 0?!0:hr,Hi=Ie.classNames,ui=Ie.stringMode,$i=Ie.parser,Ri=Ie.formatter,Zi=Ie.precision,Za=Ie.decimalSeparator,_i=Ie.onChange,Yn=Ie.onInput,ii=Ie.onPressEnter,vi=Ie.onStep,ge=(0,F.Z)(Ie,Xe),Me="".concat(kt,"-input"),Fe=Be.useRef(null),Ge=Be.useState(!1),Pt=(0,g.Z)(Ge,2),Dt=Pt[0],_r=Pt[1],nr=Be.useRef(!1),Or=Be.useRef(!1),Hr=Be.useRef(!1),an=Be.useState(function(){return K(Qr!=null?Qr:ur)}),jr=(0,g.Z)(an,2),Rr=jr[0],en=jr[1];function yn(un){Qr===void 0&&en(un)}var on=Be.useCallback(function(un,sn){if(!sn)return Zi>=0?Zi:Math.max(L(un),L(xr))},[Zi,xr]),Dn=Be.useCallback(function(un){var sn=String(un);if($i)return $i(sn);var Xn=sn;return Za&&(Xn=Xn.replace(Za,".")),Xn.replace(/[^\w.-]+/g,"")},[$i,Za]),Rn=Be.useRef(""),di=Be.useCallback(function(un,sn){if(Ri)return Ri(un,{userTyping:sn,input:String(Rn.current)});var Xn=typeof un=="number"?Y(un):un;if(!sn){var Qn=on(Xn,sn);if(R(Xn)&&(Za||Qn>=0)){var fi=Za||".";Xn=W(Xn,fi,Qn)}}return Xn},[Ri,on,Za]),Nn=Be.useState(function(){var un=ur!=null?ur:Qr;return Rr.isInvalidate()&&["string","number"].includes((0,S.Z)(un))?Number.isNaN(un)?"":un:di(Rr.toString(),!1)}),Gn=(0,g.Z)(Nn,2),Vt=Gn[0],Xt=Gn[1];Rn.current=Vt;function Yt(un,sn){Xt(di(un.isInvalidate()?un.toString(!1):un.toString(!sn),sn))}var tr=Be.useMemo(function(){return qe(Dr)},[Dr,Zi]),jt=Be.useMemo(function(){return qe(kr)},[kr,Zi]),or=Be.useMemo(function(){return!tr||!Rr||Rr.isInvalidate()?!1:tr.lessEquals(Rr)},[tr,Rr]),cr=Be.useMemo(function(){return!jt||!Rr||Rr.isInvalidate()?!1:Rr.lessEquals(jt)},[jt,Rr]),Pr=ee(Fe.current,Dt),bn=(0,g.Z)(Pr,2),xn=bn[0],ci=bn[1],ri=function(sn){return tr&&!sn.lessEquals(tr)?tr:jt&&!jt.lessEquals(sn)?jt:null},Si=function(sn){return!ri(sn)},qn=function(sn,Xn){var Qn=sn,fi=Si(Qn)||Qn.isEmpty();if(!Qn.isEmpty()&&!Xn&&(Qn=ri(Qn)||Qn,fi=!0),!Ln&&!hn&&fi){var qi=Qn.toString(),Ii=on(qi,Xn);return Ii>=0&&(Qn=K(W(qi,".",Ii)),Si(Qn)||(Qn=K(W(qi,".",Ii,!0)))),Qn.equals(Rr)||(yn(Qn),_i==null||_i(Qn.isEmpty()?null:ze(ui,Qn)),Qr===void 0&&Yt(Qn,Xn)),Qn}return Rr},jn=Ee(),yi=function un(sn){if(xn(),Rn.current=sn,Xt(sn),!Or.current){var Xn=Dn(sn),Qn=K(Xn);Qn.isNaN()||qn(Qn,!0)}Yn==null||Yn(sn),jn(function(){var fi=sn;$i||(fi=sn.replace(/。/g,".")),fi!==sn&&un(fi)})},bi=function(){Or.current=!0},wi=function(){Or.current=!1,yi(Fe.current.value)},Ai=function(sn){yi(sn.target.value)},xi=function(sn){var Xn;if(!(sn&&or||!sn&&cr)){nr.current=!1;var Qn=K(Hr.current?ke(xr):xr);sn||(Qn=Qn.negate());var fi=(Rr||K(0)).add(Qn.toString()),qi=qn(fi,!1);vi==null||vi(ze(ui,qi),{offset:Hr.current?ke(xr):xr,type:sn?"up":"down"}),(Xn=Fe.current)===null||Xn===void 0||Xn.focus()}},Xi=function(sn){var Xn=K(Dn(Vt)),Qn=Xn;Xn.isNaN()?Qn=qn(Rr,sn):Qn=qn(Xn,sn),Qr!==void 0?Yt(Rr,!1):Qn.isNaN()||Yt(Qn,!1)},ti=function(){nr.current=!0},Pi=function(sn){var Xn=sn.key,Qn=sn.shiftKey;nr.current=!0,Hr.current=Qn,Xn==="Enter"&&(Or.current||(nr.current=!1),Xi(!1),ii==null||ii(sn)),Ki!==!1&&!Or.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Xn)&&(xi(Xn==="Up"||Xn==="ArrowUp"),sn.preventDefault())},za=function(){nr.current=!1,Hr.current=!1},li=function(){Xi(!1),_r(!1),nr.current=!1};return(0,me.o)(function(){Rr.isInvalidate()||Yt(Rr,!1)},[Zi]),(0,me.o)(function(){var un=K(Qr);en(un);var sn=K(Dn(Vt));(!un.equals(sn)||!nr.current||Ri)&&Yt(un,nr.current)},[Qr]),(0,me.o)(function(){Ri&&ci()},[Vt]),Be.createElement("div",{className:Ne()(kt,Hi==null?void 0:Hi.input,rr,(lt={},(0,V.Z)(lt,"".concat(kt,"-focused"),Dt),(0,V.Z)(lt,"".concat(kt,"-disabled"),hn),(0,V.Z)(lt,"".concat(kt,"-readonly"),Ln),(0,V.Z)(lt,"".concat(kt,"-not-a-number"),Rr.isNaN()),(0,V.Z)(lt,"".concat(kt,"-out-of-range"),!Rr.isInvalidate()&&!Si(Rr)),lt)),style:Fr,onFocus:function(){_r(!0)},onBlur:li,onKeyDown:Pi,onKeyUp:za,onCompositionStart:bi,onCompositionEnd:wi,onBeforeInput:ti},Wn&&Be.createElement(be,{prefixCls:kt,upNode:pn,downNode:kn,upDisabled:or,downDisabled:cr,onStep:xi}),Be.createElement("div",{className:"".concat(Me,"-wrap")},Be.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":kr,"aria-valuemax":Dr,"aria-valuenow":Rr.isInvalidate()?null:Rr.toString(),step:xr},ge,{ref:(0,Oe.sQ)(Fe,De),className:Me,value:Vt,onChange:Ai,disabled:hn,readOnly:Ln}))))}),Lt=Be.forwardRef(function(Ie,De){var lt=Ie.disabled,Ut=Ie.style,kt=Ie.prefixCls,rr=Ie.value,Fr=Ie.prefix,kr=Ie.suffix,Dr=Ie.addonBefore,Nr=Ie.addonAfter,xr=Ie.classes,ur=Ie.className,Qr=Ie.classNames,hn=(0,F.Z)(Ie,et),Ln=Be.useRef(null),pn=function(Ki){Ln.current&&(0,he.nH)(Ln.current,Ki)};return Be.createElement(le.BaseInput,{inputElement:Be.createElement(_t,(0,te.Z)({prefixCls:kt,disabled:lt,classNames:Qr,ref:(0,Oe.sQ)(Ln,De)},hn)),className:ur,triggerFocus:pn,prefixCls:kt,value:rr,disabled:lt,style:Ut,prefix:Fr,suffix:kr,addonAfter:Nr,addonBefore:Dr,classes:xr,classNames:Qr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Lt.displayName="InputNumber";var Nt=Lt,sr=Nt,er=x(19080),yr=x(36355),lr=x(92736),G=x(1684),dt=x(19716),I=x(32441),m=x(33234),u=x(9937),C=x(17313),q=x(74207),Se=x(83116),H=x(37613);const ie=(Ie,De)=>{let{componentCls:lt,borderRadiusSM:Ut,borderRadiusLG:kt}=Ie;const rr=De==="lg"?kt:Ut;return{[`&-${De}`]:{[`${lt}-handler-wrap`]:{borderStartEndRadius:rr,borderEndEndRadius:rr},[`${lt}-handler-up`]:{borderStartEndRadius:rr},[`${lt}-handler-down`]:{borderEndEndRadius:rr}}}},Qe=Ie=>{const{componentCls:De,lineWidth:lt,lineType:Ut,colorBorder:kt,borderRadius:rr,fontSizeLG:Fr,controlHeightLG:kr,controlHeightSM:Dr,colorError:Nr,paddingInlineSM:xr,colorTextDescription:ur,motionDurationMid:Qr,handleHoverColor:hn,paddingInline:Ln,paddingBlock:pn,handleBg:kn,handleActiveBg:Ki,colorTextDisabled:hr,borderRadiusSM:Wn,borderRadiusLG:Hi,controlWidth:ui,handleVisible:$i,handleBorderColor:Ri}=Ie;return[{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),(0,u.ik)(Ie)),(0,u.bi)(Ie,De)),{display:"inline-block",width:ui,margin:0,padding:0,border:`${lt}px ${Ut} ${kt}`,borderRadius:rr,"&-rtl":{direction:"rtl",[`${De}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Fr,borderRadius:Hi,[`input${De}-input`]:{height:kr-2*lt}},"&-sm":{padding:0,borderRadius:Wn,[`input${De}-input`]:{height:Dr-2*lt,padding:`0 ${xr}px`}},"&:hover":Object.assign({},(0,u.pU)(Ie)),"&-focused":Object.assign({},(0,u.M1)(Ie)),"&-out-of-range":{[`${De}-input-wrap`]:{input:{color:Nr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),(0,u.s7)(Ie)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${De}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${De}-group-addon`]:{borderRadius:Hi,fontSize:Ie.fontSizeLG}},"&-sm":{[`${De}-group-addon`]:{borderRadius:Wn}},[`${De}-wrapper-disabled > ${De}-group-addon`]:Object.assign({},(0,u.Xy)(Ie))}}),[`&-disabled ${De}-input`]:{cursor:"not-allowed"},[De]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),{width:"100%",padding:`${pn}px ${Ln}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:rr,outline:0,transition:`all ${Qr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,u.nz)(Ie.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[De]:Object.assign(Object.assign(Object.assign({[`&:hover ${De}-handler-wrap, &-focused ${De}-handler-wrap`]:{opacity:1},[`${De}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ie.handleWidth,height:"100%",background:kn,borderStartStartRadius:0,borderStartEndRadius:rr,borderEndEndRadius:rr,borderEndStartRadius:0,opacity:$i===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Qr} linear ${Qr}`,[`${De}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${De}-handler-up-inner,
|
|
|
${De}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Ie.handleFontSize}}},[`${De}-handler`]:{height:"50%",overflow:"hidden",color:ur,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${lt}px ${Ut} ${Ri}`,transition:`all ${Qr} linear`,"&:active":{background:Ki},"&:hover":{height:"60%",[`
|
|
|
${De}-handler-up-inner,
|
|
|
${De}-handler-down-inner
|
|
|
`]:{color:hn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,C.Ro)()),{color:ur,transition:`all ${Qr} linear`,userSelect:"none"})},[`${De}-handler-up`]:{borderStartEndRadius:rr},[`${De}-handler-down`]:{borderBlockStart:`${lt}px ${Ut} ${Ri}`,borderEndEndRadius:rr}},ie(Ie,"lg")),ie(Ie,"sm")),{"&-disabled, &-readonly":{[`${De}-handler-wrap`]:{display:"none"},[`${De}-input`]:{color:"inherit"}},[`
|
|
|
${De}-handler-up-disabled,
|
|
|
${De}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${De}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${De}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:hr}})},{[`${De}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${De}-handler-down`]:{borderBlockStartWidth:0}}}]},we=Ie=>{const{componentCls:De,paddingBlock:lt,paddingInline:Ut,inputAffixPadding:kt,controlWidth:rr,borderRadiusLG:Fr,borderRadiusSM:kr}=Ie;return{[`${De}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,u.ik)(Ie)),(0,u.bi)(Ie,`${De}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:rr,padding:0,paddingInlineStart:Ut,"&-lg":{borderRadius:Fr},"&-sm":{borderRadius:kr},[`&:not(${De}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,u.pU)(Ie)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${De}-disabled`]:{background:"transparent"},[`> div${De}`]:{width:"100%",border:"none",outline:"none",[`&${De}-focused`]:{boxShadow:"none !important"}},[`input${De}-input`]:{padding:`${lt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${De}-handler-wrap`]:{zIndex:2},[De]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:kt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ut,marginInlineStart:kt}}})}};var ye=(0,Se.Z)("InputNumber",Ie=>{const De=(0,H.TS)(Ie,(0,u.e5)(Ie));return[Qe(De),we(De),(0,q.c)(De)]},Ie=>Object.assign(Object.assign({},(0,u.TM)(Ie)),{controlWidth:90,handleWidth:Ie.controlHeightSM-Ie.lineWidth*2,handleFontSize:Ie.fontSize/2,handleVisible:"auto",handleActiveBg:Ie.colorFillAlter,handleBg:Ie.colorBgContainer,handleHoverColor:Ie.colorPrimary,handleBorderColor:Ie.colorBorder})),je=function(Ie,De){var lt={};for(var Ut in Ie)Object.prototype.hasOwnProperty.call(Ie,Ut)&&De.indexOf(Ut)<0&&(lt[Ut]=Ie[Ut]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Ut=Object.getOwnPropertySymbols(Ie);kt<Ut.length;kt++)De.indexOf(Ut[kt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ut[kt])&&(lt[Ut[kt]]=Ie[Ut[kt]]);return lt};const Ct=Be.forwardRef((Ie,De)=>{const{getPrefixCls:lt,direction:Ut}=Be.useContext(yr.E_),kt=Be.useRef(null);Be.useImperativeHandle(De,()=>kt.current);const{className:rr,rootClassName:Fr,size:kr,disabled:Dr,prefixCls:Nr,addonBefore:xr,addonAfter:ur,prefix:Qr,bordered:hn=!0,readOnly:Ln,status:pn,controls:kn}=Ie,Ki=je(Ie,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),hr=lt("input-number",Nr),[Wn,Hi]=ye(hr),{compactSize:ui,compactItemClassnames:$i}=(0,m.ri)(hr,Ut);let Ri=Be.createElement(Ae.Z,{className:`${hr}-handler-up-inner`}),Zi=Be.createElement(pe.Z,{className:`${hr}-handler-down-inner`});const Za=typeof kn=="boolean"?kn:void 0;typeof kn=="object"&&(Ri=typeof kn.upIcon=="undefined"?Ri:Be.createElement("span",{className:`${hr}-handler-up-inner`},kn.upIcon),Zi=typeof kn.downIcon=="undefined"?Zi:Be.createElement("span",{className:`${hr}-handler-down-inner`},kn.downIcon));const{hasFeedback:_i,status:Yn,isFormItemInput:ii,feedbackIcon:vi}=Be.useContext(I.aM),ge=(0,er.F)(Yn,pn),Me=(0,dt.Z)(nr=>{var Or;return(Or=kr!=null?kr:ui)!==null&&Or!==void 0?Or:nr}),Fe=Be.useContext(G.Z),Ge=Dr!=null?Dr:Fe,Pt=Ne()({[`${hr}-lg`]:Me==="large",[`${hr}-sm`]:Me==="small",[`${hr}-rtl`]:Ut==="rtl",[`${hr}-borderless`]:!hn,[`${hr}-in-form-item`]:ii},(0,er.Z)(hr,ge),$i,Hi),Dt=`${hr}-group`,_r=Be.createElement(sr,Object.assign({ref:kt,disabled:Ge,className:Ne()(rr,Fr),upHandler:Ri,downHandler:Zi,prefixCls:hr,readOnly:Ln,controls:Za,prefix:Qr,suffix:_i&&vi,addonAfter:ur&&Be.createElement(m.BR,null,Be.createElement(I.Ux,{override:!0,status:!0},ur)),addonBefore:xr&&Be.createElement(m.BR,null,Be.createElement(I.Ux,{override:!0,status:!0},xr)),classNames:{input:Pt},classes:{affixWrapper:Ne()((0,er.Z)(`${hr}-affix-wrapper`,ge,_i),{[`${hr}-affix-wrapper-sm`]:Me==="small",[`${hr}-affix-wrapper-lg`]:Me==="large",[`${hr}-affix-wrapper-rtl`]:Ut==="rtl",[`${hr}-affix-wrapper-borderless`]:!hn},Hi),wrapper:Ne()({[`${Dt}-rtl`]:Ut==="rtl",[`${hr}-wrapper-disabled`]:Ge},Hi),group:Ne()({[`${hr}-group-wrapper-sm`]:Me==="small",[`${hr}-group-wrapper-lg`]:Me==="large",[`${hr}-group-wrapper-rtl`]:Ut==="rtl"},(0,er.Z)(`${hr}-group-wrapper`,ge,_i),Hi)}},Ki));return Wn(_r)}),de=Ct,st=Ie=>Be.createElement(lr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Be.createElement(Ct,Object.assign({},Ie)));de._InternalPanelDoNotUseOrYouWillBeFired=st;var tt=de},9432:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return se},n:function(){return Y}});var pe=x(19248),Ae=x(92310),P=x.n(Ae),Ne=x(93681),te=x(8654),V=x(59301),S=x(19080),g=x(36355),F=x(1684),v=x(19716),$=x(32441),_=x(33234),M=x(59412),O=x(9937);function T(ne){return!!(ne.prefix||ne.suffix||ne.allowClear)}var L=function(ne,J){var W={};for(var K in ne)Object.prototype.hasOwnProperty.call(ne,K)&&J.indexOf(K)<0&&(W[K]=ne[K]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,K=Object.getOwnPropertySymbols(ne);le<K.length;le++)J.indexOf(K[le])<0&&Object.prototype.propertyIsEnumerable.call(ne,K[le])&&(W[K[le]]=ne[K[le]]);return W};function Y(ne,J){if(!ne)return;ne.focus(J);const{cursor:W}=J||{};if(W){const K=ne.value.length;switch(W){case"start":ne.setSelectionRange(0,0);break;case"end":ne.setSelectionRange(K,K);break;default:ne.setSelectionRange(0,K);break}}}var se=(0,V.forwardRef)((ne,J)=>{var W;const{prefixCls:K,bordered:le=!0,status:me,size:Oe,disabled:Be,onBlur:Ue,onFocus:ee,suffix:fe,allowClear:D,addonAfter:Ye,addonBefore:Le,className:Ce,style:Te,styles:be,rootClassName:ke,onChange:he,classNames:Ee}=ne,Xe=L(ne,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:et,direction:ze,input:qe}=V.useContext(g.E_),_t=et("input",K),Lt=(0,V.useRef)(null),[Nt,sr]=(0,O.ZP)(_t),{compactSize:er,compactItemClassnames:yr}=(0,_.ri)(_t,ze),lr=(0,v.Z)(Ct=>{var de;return(de=Oe!=null?Oe:er)!==null&&de!==void 0?de:Ct}),G=V.useContext(F.Z),dt=Be!=null?Be:G,{status:I,hasFeedback:m,feedbackIcon:u}=(0,V.useContext)($.aM),C=(0,S.F)(I,me),q=T(ne)||!!m,Se=(0,V.useRef)(q);(0,V.useEffect)(()=>{var Ct;q&&Se.current,Se.current=q},[q]);const H=(0,M.Z)(Lt,!0),ie=Ct=>{H(),Ue==null||Ue(Ct)},Qe=Ct=>{H(),ee==null||ee(Ct)},we=Ct=>{H(),he==null||he(Ct)},ye=(m||fe)&&V.createElement(V.Fragment,null,fe,m&&u);let je;return typeof D=="object"&&(D!=null&&D.clearIcon)?je=D:D&&(je={clearIcon:V.createElement(pe.Z,null)}),Nt(V.createElement(Ne.default,Object.assign({ref:(0,te.sQ)(J,Lt),prefixCls:_t,autoComplete:qe==null?void 0:qe.autoComplete},Xe,{disabled:dt,onBlur:ie,onFocus:Qe,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Te),styles:Object.assign(Object.assign({},qe==null?void 0:qe.styles),be),suffix:ye,allowClear:je,className:P()(Ce,ke,yr,qe==null?void 0:qe.className),onChange:we,addonAfter:Ye&&V.createElement(_.BR,null,V.createElement($.Ux,{override:!0,status:!0},Ye)),addonBefore:Le&&V.createElement(_.BR,null,V.createElement($.Ux,{override:!0,status:!0},Le)),classNames:Object.assign(Object.assign(Object.assign({},Ee),qe==null?void 0:qe.classNames),{input:P()({[`${_t}-sm`]:lr==="small",[`${_t}-lg`]:lr==="large",[`${_t}-rtl`]:ze==="rtl",[`${_t}-borderless`]:!le},!q&&(0,S.Z)(_t,C),Ee==null?void 0:Ee.input,(W=qe==null?void 0:qe.classNames)===null||W===void 0?void 0:W.input,sr)}),classes:{affixWrapper:P()({[`${_t}-affix-wrapper-sm`]:lr==="small",[`${_t}-affix-wrapper-lg`]:lr==="large",[`${_t}-affix-wrapper-rtl`]:ze==="rtl",[`${_t}-affix-wrapper-borderless`]:!le},(0,S.Z)(`${_t}-affix-wrapper`,C,m),sr),wrapper:P()({[`${_t}-group-rtl`]:ze==="rtl"},sr),group:P()({[`${_t}-group-wrapper-sm`]:lr==="small",[`${_t}-group-wrapper-lg`]:lr==="large",[`${_t}-group-wrapper-rtl`]:ze==="rtl",[`${_t}-group-wrapper-disabled`]:dt},(0,S.Z)(`${_t}-group-wrapper`,C,m),sr)}})))})},1643:function(An,Tt,x){"use strict";var pe=x(19248),Ae=x(92310),P=x.n(Ae),Ne=x(9296),te=x(59301),V=x(19080),S=x(36355),g=x(1684),F=x(19716),v=x(32441),$=x(9432),_=x(9937),M=function(T,L){var Y={};for(var R in T)Object.prototype.hasOwnProperty.call(T,R)&&L.indexOf(R)<0&&(Y[R]=T[R]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,R=Object.getOwnPropertySymbols(T);se<R.length;se++)L.indexOf(R[se])<0&&Object.prototype.propertyIsEnumerable.call(T,R[se])&&(Y[R[se]]=T[R[se]]);return Y};const O=(0,te.forwardRef)((T,L)=>{const{prefixCls:Y,bordered:R=!0,size:se,disabled:ne,status:J,allowClear:W,showCount:K,classNames:le,rootClassName:me,className:Oe}=T,Be=M(T,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ue,direction:ee}=te.useContext(S.E_),fe=(0,F.Z)(se),D=te.useContext(g.Z),Ye=ne!=null?ne:D,{status:Le,hasFeedback:Ce,feedbackIcon:Te}=te.useContext(v.aM),be=(0,V.F)(Le,J),ke=te.useRef(null);te.useImperativeHandle(L,()=>{var ze;return{resizableTextArea:(ze=ke.current)===null||ze===void 0?void 0:ze.resizableTextArea,focus:qe=>{var _t,Lt;(0,$.n)((Lt=(_t=ke.current)===null||_t===void 0?void 0:_t.resizableTextArea)===null||Lt===void 0?void 0:Lt.textArea,qe)},blur:()=>{var qe;return(qe=ke.current)===null||qe===void 0?void 0:qe.blur()}}});const he=Ue("input",Y);let Ee;typeof W=="object"&&(W!=null&&W.clearIcon)?Ee=W:W&&(Ee={clearIcon:te.createElement(pe.Z,null)});const[Xe,et]=(0,_.ZP)(he);return Xe(te.createElement(Ne.default,Object.assign({},Be,{disabled:Ye,allowClear:Ee,className:P()(Oe,me),classes:{affixWrapper:P()(`${he}-textarea-affix-wrapper`,{[`${he}-affix-wrapper-rtl`]:ee==="rtl",[`${he}-affix-wrapper-borderless`]:!R,[`${he}-affix-wrapper-sm`]:fe==="small",[`${he}-affix-wrapper-lg`]:fe==="large",[`${he}-textarea-show-count`]:K},(0,V.Z)(`${he}-affix-wrapper`,be),et)},classNames:Object.assign(Object.assign({},le),{textarea:P()({[`${he}-borderless`]:!R,[`${he}-sm`]:fe==="small",[`${he}-lg`]:fe==="large"},(0,V.Z)(he,be),et,le==null?void 0:le.textarea)}),prefixCls:he,suffix:Ce&&te.createElement("span",{className:`${he}-textarea-suffix`},Te),showCount:K,ref:ke})))});Tt.Z=O},59412:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});var pe=x(59301);function Ae(P,Ne){const te=(0,pe.useRef)([]),V=()=>{te.current.push(setTimeout(()=>{var S,g,F,v;!((S=P.current)===null||S===void 0)&&S.input&&((g=P.current)===null||g===void 0?void 0:g.input.getAttribute("type"))==="password"&&(!((F=P.current)===null||F===void 0)&&F.input.hasAttribute("value"))&&((v=P.current)===null||v===void 0||v.input.removeAttribute("value"))}))};return(0,pe.useEffect)(()=>(Ne&&V(),()=>te.current.forEach(S=>{S&&clearTimeout(S)})),[]),V}},92832:function(An,Tt,x){"use strict";x.d(Tt,{default:function(){return fe}});var pe=x(92310),Ae=x.n(pe),P=x(59301),Ne=x(36355),te=x(32441),V=x(9937),g=D=>{const{getPrefixCls:Ye,direction:Le}=(0,P.useContext)(Ne.E_),{prefixCls:Ce,className:Te}=D,be=Ye("input-group",Ce),ke=Ye("input"),[he,Ee]=(0,V.ZP)(ke),Xe=Ae()(be,{[`${be}-lg`]:D.size==="large",[`${be}-sm`]:D.size==="small",[`${be}-compact`]:D.compact,[`${be}-rtl`]:Le==="rtl"},Ee,Te),et=(0,P.useContext)(te.aM),ze=(0,P.useMemo)(()=>Object.assign(Object.assign({},et),{isFormItemInput:!1}),[et]);return he(P.createElement("span",{className:Xe,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},P.createElement(te.aM.Provider,{value:ze},D.children)))},F=x(9432),v=x(73331),$=x(15277),_=x(2738),M=x(8654),O=x(59412),T=function(D,Ye){var Le={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&Ye.indexOf(Ce)<0&&(Le[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ce=Object.getOwnPropertySymbols(D);Te<Ce.length;Te++)Ye.indexOf(Ce[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Te])&&(Le[Ce[Te]]=D[Ce[Te]]);return Le};const L=D=>D?P.createElement($.Z,null):P.createElement(v.Z,null),Y={click:"onClick",hover:"onMouseOver"};var se=P.forwardRef((D,Ye)=>{const{visibilityToggle:Le=!0}=D,Ce=typeof Le=="object"&&Le.visible!==void 0,[Te,be]=(0,P.useState)(()=>Ce?Le.visible:!1),ke=(0,P.useRef)(null);P.useEffect(()=>{Ce&&be(Le.visible)},[Ce,Le]);const he=(0,O.Z)(ke),Ee=()=>{const{disabled:dt}=D;dt||(Te&&he(),be(I=>{var m;const u=!I;return typeof Le=="object"&&((m=Le.onVisibleChange)===null||m===void 0||m.call(Le,u)),u}))},Xe=dt=>{const{action:I="click",iconRender:m=L}=D,u=Y[I]||"",C=m(Te),q={[u]:Ee,className:`${dt}-icon`,key:"passwordIcon",onMouseDown:Se=>{Se.preventDefault()},onMouseUp:Se=>{Se.preventDefault()}};return P.cloneElement(P.isValidElement(C)?C:P.createElement("span",null,C),q)},{className:et,prefixCls:ze,inputPrefixCls:qe,size:_t}=D,Lt=T(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Nt}=P.useContext(Ne.E_),sr=Nt("input",qe),er=Nt("input-password",ze),yr=Le&&Xe(er),lr=Ae()(er,et,{[`${er}-${_t}`]:!!_t}),G=Object.assign(Object.assign({},(0,_.Z)(Lt,["suffix","iconRender","visibilityToggle"])),{type:Te?"text":"password",className:lr,prefixCls:sr,suffix:yr});return _t&&(G.size=_t),P.createElement(F.Z,Object.assign({ref:(0,M.sQ)(Ye,ke)},G))}),ne=x(47472),J=x(92343),W=x(3113),K=x(19716),le=x(33234),me=function(D,Ye){var Le={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&Ye.indexOf(Ce)<0&&(Le[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ce=Object.getOwnPropertySymbols(D);Te<Ce.length;Te++)Ye.indexOf(Ce[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Te])&&(Le[Ce[Te]]=D[Ce[Te]]);return Le},Be=P.forwardRef((D,Ye)=>{const{prefixCls:Le,inputPrefixCls:Ce,className:Te,size:be,suffix:ke,enterButton:he=!1,addonAfter:Ee,loading:Xe,disabled:et,onSearch:ze,onChange:qe,onCompositionStart:_t,onCompositionEnd:Lt}=D,Nt=me(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:sr,direction:er}=P.useContext(Ne.E_),yr=P.useRef(!1),lr=sr("input-search",Le),G=sr("input",Ce),{compactSize:dt}=(0,le.ri)(lr,er),I=(0,K.Z)(st=>{var tt;return(tt=be!=null?be:dt)!==null&&tt!==void 0?tt:st}),m=P.useRef(null),u=st=>{st&&st.target&&st.type==="click"&&ze&&ze(st.target.value,st,{source:"clear"}),qe&&qe(st)},C=st=>{var tt;document.activeElement===((tt=m.current)===null||tt===void 0?void 0:tt.input)&&st.preventDefault()},q=st=>{var tt,Ie;ze&&ze((Ie=(tt=m.current)===null||tt===void 0?void 0:tt.input)===null||Ie===void 0?void 0:Ie.value,st,{source:"input"})},Se=st=>{yr.current||Xe||q(st)},H=typeof he=="boolean"?P.createElement(ne.Z,null):null,ie=`${lr}-button`;let Qe;const we=he||{},ye=we.type&&we.type.__ANT_BUTTON===!0;ye||we.type==="button"?Qe=(0,J.Tm)(we,Object.assign({onMouseDown:C,onClick:st=>{var tt,Ie;(Ie=(tt=we==null?void 0:we.props)===null||tt===void 0?void 0:tt.onClick)===null||Ie===void 0||Ie.call(tt,st),q(st)},key:"enterButton"},ye?{className:ie,size:I}:{})):Qe=P.createElement(W.ZP,{className:ie,type:he?"primary":void 0,size:I,disabled:et,key:"enterButton",onMouseDown:C,onClick:q,loading:Xe,icon:H},he),Ee&&(Qe=[Qe,(0,J.Tm)(Ee,{key:"addonAfter"})]);const je=Ae()(lr,{[`${lr}-rtl`]:er==="rtl",[`${lr}-${I}`]:!!I,[`${lr}-with-button`]:!!he},Te),Ct=st=>{yr.current=!0,_t==null||_t(st)},de=st=>{yr.current=!1,Lt==null||Lt(st)};return P.createElement(F.Z,Object.assign({ref:(0,M.sQ)(m,Ye),onPressEnter:Se},Nt,{size:I,onCompositionStart:Ct,onCompositionEnd:de,prefixCls:G,addonAfter:Qe,suffix:ke,onChange:u,className:je,disabled:et}))}),Ue=x(1643);const ee=F.Z;ee.Group=g,ee.Search=Be,ee.TextArea=Ue.Z,ee.Password=se;var fe=ee},9937:function(An,Tt,x){"use strict";x.d(Tt,{M1:function(){return S},TM:function(){return J},Xy:function(){return g},bi:function(){return $},e5:function(){return ne},ik:function(){return _},nz:function(){return te},pU:function(){return V},s7:function(){return M},x0:function(){return v}});var pe=x(17313),Ae=x(74207),P=x(37613),Ne=x(83116);const te=W=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:W,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),V=W=>({borderColor:W.hoverBorderColor}),S=W=>({borderColor:W.activeBorderColor,boxShadow:W.activeShadow,outline:0}),g=W=>({color:W.colorTextDisabled,backgroundColor:W.colorBgContainerDisabled,borderColor:W.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},V((0,P.TS)(W,{hoverBorderColor:W.colorBorder})))}),F=W=>{const{paddingBlockLG:K,fontSizeLG:le,lineHeightLG:me,borderRadiusLG:Oe,paddingInlineLG:Be}=W;return{padding:`${K}px ${Be}px`,fontSize:le,lineHeight:me,borderRadius:Oe}},v=W=>({padding:`${W.paddingBlockSM}px ${W.paddingInlineSM}px`,borderRadius:W.borderRadiusSM}),$=(W,K)=>{const{componentCls:le,colorError:me,colorWarning:Oe,errorActiveShadow:Be,warningActiveShadow:Ue,colorErrorBorderHover:ee,colorWarningBorderHover:fe}=W;return{[`&-status-error:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:me,"&:hover":{borderColor:ee},"&:focus, &-focused":Object.assign({},S((0,P.TS)(W,{activeBorderColor:me,activeShadow:Be}))),[`${le}-prefix, ${le}-suffix`]:{color:me}},[`&-status-warning:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:Oe,"&:hover":{borderColor:fe},"&:focus, &-focused":Object.assign({},S((0,P.TS)(W,{activeBorderColor:Oe,activeShadow:Ue}))),[`${le}-prefix, ${le}-suffix`]:{color:Oe}}}},_=W=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${W.paddingBlock}px ${W.paddingInline}px`,color:W.colorText,fontSize:W.fontSize,lineHeight:W.lineHeight,backgroundColor:W.colorBgContainer,backgroundImage:"none",borderWidth:W.lineWidth,borderStyle:W.lineType,borderColor:W.colorBorder,borderRadius:W.borderRadius,transition:`all ${W.motionDurationMid}`},te(W.colorTextPlaceholder)),{"&:hover":Object.assign({},V(W)),"&:focus, &-focused":Object.assign({},S(W)),"&-disabled, &[disabled]":Object.assign({},g(W)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:W.controlHeight,lineHeight:W.lineHeight,verticalAlign:"bottom",transition:`all ${W.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},F(W)),"&-sm":Object.assign({},v(W)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),M=W=>{const{componentCls:K,antCls:le}=W;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:W.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${K}, &-lg > ${K}-group-addon`]:Object.assign({},F(W)),[`&-sm ${K}, &-sm > ${K}-group-addon`]:Object.assign({},v(W)),[`&-lg ${le}-select-single ${le}-select-selector`]:{height:W.controlHeightLG},[`&-sm ${le}-select-single ${le}-select-selector`]:{height:W.controlHeightSM},[`> ${K}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${K}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${W.paddingInline}px`,color:W.colorText,fontWeight:"normal",fontSize:W.fontSize,textAlign:"center",backgroundColor:W.colorFillAlter,border:`${W.lineWidth}px ${W.lineType} ${W.colorBorder}`,borderRadius:W.borderRadius,transition:`all ${W.motionDurationSlow}`,lineHeight:1,[`${le}-select`]:{margin:`-${W.paddingBlock+1}px -${W.paddingInline}px`,[`&${le}-select-single:not(${le}-select-customize-input)`]:{[`${le}-select-selector`]:{backgroundColor:"inherit",border:`${W.lineWidth}px ${W.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${le}-select-selector`]:{color:W.colorPrimary}}},[`${le}-cascader-picker`]:{margin:`-9px -${W.paddingInline}px`,backgroundColor:"transparent",[`${le}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${K}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${K}-search-with-button &`]:{zIndex:0}}},[`> ${K}:first-child, ${K}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}-affix-wrapper`]:{[`&:not(:first-child) ${K}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${K}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}:last-child, ${K}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${K}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${K}-search &`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius}},[`&:not(:first-child), ${K}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${K}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,pe.dF)()),{[`${K}-group-addon, ${K}-group-wrap, > ${K}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:W.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${K}-affix-wrapper,
|
|
|
& > ${K}-number-affix-wrapper,
|
|
|
& > ${le}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-W.lineWidth,borderInlineEndWidth:W.lineWidth},[`${K}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
|
|
|
& > ${le}-select-auto-complete ${K},
|
|
|
& > ${le}-cascader-picker ${K},
|
|
|
& > ${K}-group-wrapper ${K}`]:{borderInlineEndWidth:W.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${le}-select-focused`]:{zIndex:1},[`& > ${le}-select > ${le}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${le}-select:first-child > ${le}-select-selector,
|
|
|
& > ${le}-select-auto-complete:first-child ${K},
|
|
|
& > ${le}-cascader-picker:first-child ${K}`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius},[`& > *:last-child,
|
|
|
& > ${le}-select:last-child > ${le}-select-selector,
|
|
|
& > ${le}-cascader-picker:last-child ${K},
|
|
|
& > ${le}-cascader-picker-focused:last-child ${K}`]:{borderInlineEndWidth:W.lineWidth,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius},[`& > ${le}-select-auto-complete ${K}`]:{verticalAlign:"top"},[`${K}-group-wrapper + ${K}-group-wrapper`]:{marginInlineStart:-W.lineWidth,[`${K}-affix-wrapper`]:{borderRadius:0}},[`${K}-group-wrapper:not(:last-child)`]:{[`&${K}-search > ${K}-group`]:{[`& > ${K}-group-addon > ${K}-search-button`]:{borderRadius:0},[`& > ${K}`]:{borderStartStartRadius:W.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:W.borderRadius}}}})}},O=W=>{const{componentCls:K,controlHeightSM:le,lineWidth:me}=W,Be=(le-me*2-16)/2;return{[K]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(W)),_(W)),$(W,K)),{'&[type="color"]':{height:W.controlHeight,[`&${K}-lg`]:{height:W.controlHeightLG},[`&${K}-sm`]:{height:le,paddingTop:Be,paddingBottom:Be}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},T=W=>{const{componentCls:K}=W;return{[`${K}-clear-icon`]:{margin:0,color:W.colorTextQuaternary,fontSize:W.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${W.motionDurationSlow}`,"&:hover":{color:W.colorTextTertiary},"&:active":{color:W.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${W.inputAffixPadding}px`}}}},L=W=>{const{componentCls:K,inputAffixPadding:le,colorTextDescription:me,motionDurationSlow:Oe,colorIcon:Be,colorIconHover:Ue,iconCls:ee}=W;return{[`${K}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_(W)),{display:"inline-flex",[`&:not(${K}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},V(W)),{zIndex:1,[`${K}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${K}[disabled]`]:{background:"transparent"}},[`> input${K}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${K}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:W.paddingXS}},"&-show-count-suffix":{color:me},"&-show-count-has-suffix":{marginInlineEnd:W.paddingXXS},"&-prefix":{marginInlineEnd:le},"&-suffix":{marginInlineStart:le}}}),T(W)),{[`${ee}${K}-password-icon`]:{color:Be,cursor:"pointer",transition:`all ${Oe}`,"&:hover":{color:Ue}}}),$(W,`${K}-affix-wrapper`))}},Y=W=>{const{componentCls:K,colorError:le,colorWarning:me,borderRadiusLG:Oe,borderRadiusSM:Be}=W;return{[`${K}-group`]:Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(W)),M(W)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${K}-group-addon`]:{borderRadius:Oe,fontSize:W.fontSizeLG}},"&-sm":{[`${K}-group-addon`]:{borderRadius:Be}},"&-status-error":{[`${K}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${K}-group-addon`]:{color:me,borderColor:me}},"&-disabled":{[`${K}-group-addon`]:Object.assign({},g(W))},[`&:not(${K}-compact-first-item):not(${K}-compact-last-item)${K}-compact-item`]:{[`${K}, ${K}-group-addon`]:{borderRadius:0}},[`&:not(${K}-compact-last-item)${K}-compact-first-item`]:{[`${K}, ${K}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${K}-compact-first-item)${K}-compact-last-item`]:{[`${K}, ${K}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},R=W=>{const{componentCls:K,antCls:le}=W,me=`${K}-search`;return{[me]:{[`${K}`]:{"&:hover, &:focus":{borderColor:W.colorPrimaryHover,[`+ ${K}-group-addon ${me}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:W.colorPrimaryHover}}},[`${K}-affix-wrapper`]:{borderRadius:0},[`${K}-lg`]:{lineHeight:W.lineHeightLG-2e-4},[`> ${K}-group`]:{[`> ${K}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${me}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${me}-button:not(${le}-btn-primary)`]:{color:W.colorTextDescription,"&:hover":{color:W.colorPrimaryHover},"&:active":{color:W.colorPrimaryActive},[`&${le}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${me}-button`]:{height:W.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${me}-button`]:{height:W.controlHeightLG},[`&-small ${me}-button`]:{height:W.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${K}-compact-item`]:{[`&:not(${K}-compact-last-item)`]:{[`${K}-group-addon`]:{[`${K}-search-button`]:{marginInlineEnd:-W.lineWidth,borderRadius:0}}},[`&:not(${K}-compact-first-item)`]:{[`${K},${K}-affix-wrapper`]:{borderRadius:0}},[`> ${K}-group-addon ${K}-search-button,
|
|
|
> ${K},
|
|
|
${K}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${K}-affix-wrapper-focused`]:{zIndex:2}}}}},se=W=>{const{componentCls:K,paddingLG:le}=W,me=`${K}-textarea`;return{[me]:{position:"relative","&-show-count":{[`> ${K}`]:{height:"100%"},[`${K}-data-count`]:{position:"absolute",bottom:-W.fontSize*W.lineHeight,insetInlineEnd:0,color:W.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${K}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${me}-has-feedback`]:{[`${K}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${K}-affix-wrapper`]:{padding:0,[`> textarea${K}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${K}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${K}-clear-icon`]:{position:"absolute",insetInlineEnd:W.paddingXS,insetBlockStart:W.paddingXS},[`${me}-suffix`]:{position:"absolute",top:0,insetInlineEnd:W.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ne(W){return(0,P.TS)(W,{inputAffixPadding:W.paddingXXS})}const J=W=>{const{controlHeight:K,fontSize:le,lineHeight:me,lineWidth:Oe,controlHeightSM:Be,controlHeightLG:Ue,fontSizeLG:ee,lineHeightLG:fe,paddingSM:D,controlPaddingHorizontalSM:Ye,controlPaddingHorizontal:Le,colorFillAlter:Ce,colorPrimaryHover:Te,controlOutlineWidth:be,controlOutline:ke,colorErrorOutline:he,colorWarningOutline:Ee}=W;return{paddingBlock:Math.max(Math.round((K-le*me)/2*10)/10-Oe,3),paddingBlockSM:Math.max(Math.round((Be-le*me)/2*10)/10-Oe,0),paddingBlockLG:Math.ceil((Ue-ee*fe)/2*10)/10-Oe,paddingInline:D-Oe,paddingInlineSM:Ye-Oe,paddingInlineLG:Le-Oe,addonBg:Ce,activeBorderColor:Te,hoverBorderColor:Te,activeShadow:`0 0 0 ${be}px ${ke}`,errorActiveShadow:`0 0 0 ${be}px ${he}`,warningActiveShadow:`0 0 0 ${be}px ${Ee}`}};Tt.ZP=(0,Ne.Z)("Input",W=>{const K=(0,P.TS)(W,ne(W));return[O(K),se(K),L(K),Y(K),R(K),(0,Ae.c)(K)]},J)},45818:function(An,Tt,x){"use strict";x.d(Tt,{D:function(){return ne},Z:function(){return K}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ne=P,te=x(7657),V=function(me,Oe){return Ae.createElement(te.Z,(0,pe.Z)({},me,{ref:Oe,icon:Ne}))},S=Ae.forwardRef(V),g=S,F=x(33853),v=x(38819),$=x(92310),_=x.n($),M=x(2738),T=le=>!isNaN(parseFloat(le))&&isFinite(le),L=x(36355),Y=x(84966),R=function(le,me){var Oe={};for(var Be in le)Object.prototype.hasOwnProperty.call(le,Be)&&me.indexOf(Be)<0&&(Oe[Be]=le[Be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Be=Object.getOwnPropertySymbols(le);Ue<Be.length;Ue++)me.indexOf(Be[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Be[Ue])&&(Oe[Be[Ue]]=le[Be[Ue]]);return Oe};const se={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ne=Ae.createContext({}),J=(()=>{let le=0;return function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${me}${le}`}})();var K=Ae.forwardRef((le,me)=>{const{prefixCls:Oe,className:Be,trigger:Ue,children:ee,defaultCollapsed:fe=!1,theme:D="dark",style:Ye={},collapsible:Le=!1,reverseArrow:Ce=!1,width:Te=200,collapsedWidth:be=80,zeroWidthTriggerStyle:ke,breakpoint:he,onCollapse:Ee,onBreakpoint:Xe}=le,et=R(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ze}=(0,Ae.useContext)(Y.Gs),[qe,_t]=(0,Ae.useState)("collapsed"in le?le.collapsed:fe),[Lt,Nt]=(0,Ae.useState)(!1);(0,Ae.useEffect)(()=>{"collapsed"in le&&_t(le.collapsed)},[le.collapsed]);const sr=(I,m)=>{"collapsed"in le||_t(I),Ee==null||Ee(I,m)},er=(0,Ae.useRef)();er.current=I=>{Nt(I.matches),Xe==null||Xe(I.matches),qe!==I.matches&&sr(I.matches,"responsive")},(0,Ae.useEffect)(()=>{function I(u){return er.current(u)}let m;if(typeof window!="undefined"){const{matchMedia:u}=window;if(u&&he&&he in se){m=u(`(max-width: ${se[he]})`);try{m.addEventListener("change",I)}catch(C){m.addListener(I)}I(m)}}return()=>{try{m==null||m.removeEventListener("change",I)}catch(u){m==null||m.removeListener(I)}}},[he]),(0,Ae.useEffect)(()=>{const I=J("ant-sider-");return ze.addSider(I),()=>ze.removeSider(I)},[]);const yr=()=>{sr(!qe,"clickTrigger")},{getPrefixCls:lr}=(0,Ae.useContext)(L.E_),G=()=>{const I=lr("layout-sider",Oe),m=(0,M.Z)(et,["collapsed"]),u=qe?be:Te,C=T(u)?`${u}px`:String(u),q=parseFloat(String(be||0))===0?Ae.createElement("span",{onClick:yr,className:_()(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${Ce?"right":"left"}`),style:ke},Ue||Ae.createElement(g,null)):null,ie={expanded:Ce?Ae.createElement(v.Z,null):Ae.createElement(F.Z,null),collapsed:Ce?Ae.createElement(F.Z,null):Ae.createElement(v.Z,null)}[qe?"collapsed":"expanded"],Qe=Ue!==null?q||Ae.createElement("div",{className:`${I}-trigger`,onClick:yr,style:{width:C}},Ue||ie):null,we=Object.assign(Object.assign({},Ye),{flex:`0 0 ${C}`,maxWidth:C,minWidth:C,width:C}),ye=_()(I,`${I}-${D}`,{[`${I}-collapsed`]:!!qe,[`${I}-has-trigger`]:Le&&Ue!==null&&!q,[`${I}-below`]:!!Lt,[`${I}-zero-width`]:parseFloat(C)===0},Be);return Ae.createElement("aside",Object.assign({className:ye},m,{style:we,ref:me}),Ae.createElement("div",{className:`${I}-children`},ee),Le||Lt&&q?Qe:null)},dt=Ae.useMemo(()=>({siderCollapsed:qe}),[qe]);return Ae.createElement(ne.Provider,{value:dt},G())})},84966:function(An,Tt,x){"use strict";x.d(Tt,{VY:function(){return ne},$_:function(){return se},h4:function(){return R},Gs:function(){return M},ZP:function(){return J}});var pe=x(94480),Ae=x(92310),P=x.n(Ae),Ne=x(2738),te=x(59301),V=x(36355),S=x(83116),F=W=>{const{componentCls:K,bodyBg:le,lightSiderBg:me,lightTriggerBg:Oe,lightTriggerColor:Be}=W;return{[`${K}-sider-light`]:{background:me,[`${K}-sider-trigger`]:{color:Be,background:Oe},[`${K}-sider-zero-width-trigger`]:{color:Be,background:Oe,border:`1px solid ${le}`,borderInlineStart:0}}}};const v=W=>{const{antCls:K,componentCls:le,colorText:me,triggerColor:Oe,footerBg:Be,triggerBg:Ue,headerHeight:ee,headerPadding:fe,headerColor:D,footerPadding:Ye,triggerHeight:Le,zeroTriggerHeight:Ce,zeroTriggerWidth:Te,motionDurationMid:be,motionDurationSlow:ke,fontSize:he,borderRadius:Ee,bodyBg:Xe,headerBg:et,siderBg:ze}=W;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Xe,"&, *":{boxSizing:"border-box"},[`&${le}-has-sider`]:{flexDirection:"row",[`> ${le}, > ${le}-content`]:{width:0}},[`${le}-header, &${le}-footer`]:{flex:"0 0 auto"},[`${le}-sider`]:{position:"relative",minWidth:0,background:ze,transition:`all ${be}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${K}-menu${K}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:Oe,lineHeight:`${Le}px`,textAlign:"center",background:Ue,cursor:"pointer",transition:`all ${be}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ee,insetInlineEnd:-Te,zIndex:1,width:Te,height:Ce,color:Oe,fontSize:W.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ze,borderStartStartRadius:0,borderStartEndRadius:Ee,borderEndEndRadius:Ee,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Te,borderStartStartRadius:Ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ee}}}}},F(W)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:ee,padding:fe,color:D,lineHeight:`${ee}px`,background:et,[`${K}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:Ye,color:me,fontSize:he,background:Be},[`${le}-content`]:{flex:"auto",minHeight:0}}};var $=(0,S.Z)("Layout",W=>[v(W)],W=>{const{colorBgLayout:K,controlHeight:le,controlHeightLG:me,colorText:Oe,controlHeightSM:Be,marginXXS:Ue,colorTextLightSolid:ee,colorBgContainer:fe}=W,D=me*1.25;return{colorBgHeader:"#001529",colorBgBody:K,colorBgTrigger:"#002140",bodyBg:K,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${D}px`,headerColor:Oe,footerPadding:`${Be}px ${D}px`,footerBg:K,siderBg:"#001529",triggerHeight:me+Ue*2,triggerBg:"#002140",triggerColor:ee,zeroTriggerWidth:me,zeroTriggerHeight:me,lightSiderBg:fe,lightTriggerBg:fe,lightTriggerColor:Oe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_=function(W,K){var le={};for(var me in W)Object.prototype.hasOwnProperty.call(W,me)&&K.indexOf(me)<0&&(le[me]=W[me]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,me=Object.getOwnPropertySymbols(W);Oe<me.length;Oe++)K.indexOf(me[Oe])<0&&Object.prototype.propertyIsEnumerable.call(W,me[Oe])&&(le[me[Oe]]=W[me[Oe]]);return le};const M=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function O(W){let{suffixCls:K,tagName:le,displayName:me}=W;return Oe=>te.forwardRef((Ue,ee)=>te.createElement(Oe,Object.assign({ref:ee,suffixCls:K,tagName:le},Ue)))}const T=te.forwardRef((W,K)=>{const{prefixCls:le,suffixCls:me,className:Oe,tagName:Be}=W,Ue=_(W,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ee}=te.useContext(V.E_),fe=ee("layout",le),[D,Ye]=$(fe),Le=me?`${fe}-${me}`:fe;return D(te.createElement(Be,Object.assign({className:P()(le||Le,Oe,Ye),ref:K},Ue)))}),L=te.forwardRef((W,K)=>{const{direction:le}=te.useContext(V.E_),[me,Oe]=te.useState([]),{prefixCls:Be,className:Ue,rootClassName:ee,children:fe,hasSider:D,tagName:Ye,style:Le}=W,Ce=_(W,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Te=(0,Ne.Z)(Ce,["suffixCls"]),{getPrefixCls:be,layout:ke}=te.useContext(V.E_),he=be("layout",Be),[Ee,Xe]=$(he),et=P()(he,{[`${he}-has-sider`]:typeof D=="boolean"?D:me.length>0,[`${he}-rtl`]:le==="rtl"},ke==null?void 0:ke.className,Ue,ee,Xe),ze=te.useMemo(()=>({siderHook:{addSider:qe=>{Oe(_t=>[].concat((0,pe.Z)(_t),[qe]))},removeSider:qe=>{Oe(_t=>_t.filter(Lt=>Lt!==qe))}}}),[]);return Ee(te.createElement(M.Provider,{value:ze},te.createElement(Ye,Object.assign({ref:K,className:et,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Le)},Te),fe)))}),Y=O({tagName:"div",displayName:"Layout"})(L),R=O({suffixCls:"header",tagName:"header",displayName:"Header"})(T),se=O({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T),ne=O({suffixCls:"content",tagName:"main",displayName:"Content"})(T);var J=Y},40875:function(An,Tt,x){"use strict";x.d(Tt,{J:function(){return V}});var pe=x(59301),Ae=x(33234),P=x(70425),Ne=function(S,g){var F={};for(var v in S)Object.prototype.hasOwnProperty.call(S,v)&&g.indexOf(v)<0&&(F[v]=S[v]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,v=Object.getOwnPropertySymbols(S);$<v.length;$++)g.indexOf(v[$])<0&&Object.prototype.propertyIsEnumerable.call(S,v[$])&&(F[v[$]]=S[v[$]]);return F};const te=pe.createContext(null),V=pe.forwardRef((S,g)=>{const{children:F}=S,v=Ne(S,["children"]),$=pe.useContext(te),_=pe.useMemo(()=>Object.assign(Object.assign({},$),v),[$,v.prefixCls,v.mode,v.selectable]);return pe.createElement(te.Provider,{value:_},pe.createElement(Ae.BR,null,(0,P.supportNodeRef)(F)?pe.cloneElement(F,{ref:g}):F))});Tt.Z=te},20834:function(An,Tt,x){"use strict";x.d(Tt,{default:function(){return dt}});var pe=x(15285),Ae=x(59301),P=x(45818),Ne=x(92310),te=x.n(Ne),V=x(36355),S=function(I,m){var u={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(u[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,C=Object.getOwnPropertySymbols(I);q<C.length;q++)m.indexOf(C[q])<0&&Object.prototype.propertyIsEnumerable.call(I,C[q])&&(u[C[q]]=I[C[q]]);return u},F=I=>{const{prefixCls:m,className:u,dashed:C}=I,q=S(I,["prefixCls","className","dashed"]),{getPrefixCls:Se}=Ae.useContext(V.E_),H=Se("menu",m),ie=te()({[`${H}-item-divider-dashed`]:!!C},u);return Ae.createElement(pe.iz,Object.assign({className:ie},q))},v=x(11592),$=x(2738),_=x(6848),M=x(92343),T=(0,Ae.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Y=I=>{var m;const{className:u,children:C,icon:q,title:Se,danger:H}=I,{prefixCls:ie,firstLevel:Qe,direction:we,disableMenuItemTitleTooltip:ye,inlineCollapsed:je}=Ae.useContext(T),Ct=lt=>{const Ut=Ae.createElement("span",{className:`${ie}-title-content`},C);return(!q||(0,M.l$)(C)&&C.type==="span")&&C&<&&Qe&&typeof C=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},C.charAt(0)):Ut},{siderCollapsed:de}=Ae.useContext(P.D);let st=Se;typeof Se=="undefined"?st=Qe?C:"":Se===!1&&(st="");const tt={title:st};!de&&!je&&(tt.title=null,tt.open=!1);const Ie=(0,v.Z)(C).length;let De=Ae.createElement(pe.ck,Object.assign({},(0,$.Z)(I,["title","icon","danger"]),{className:te()({[`${ie}-item-danger`]:H,[`${ie}-item-only-child`]:(q?Ie+1:Ie)===1},u),title:typeof Se=="string"?Se:void 0}),(0,M.Tm)(q,{className:te()((0,M.l$)(q)?(m=q.props)===null||m===void 0?void 0:m.className:"",`${ie}-item-icon`)}),Ct(je));return ye||(De=Ae.createElement(_.Z,Object.assign({},tt,{placement:we==="rtl"?"left":"right",overlayClassName:`${ie}-inline-collapsed-tooltip`}),De)),De},se=I=>{var m;const{popupClassName:u,icon:C,title:q,theme:Se}=I,H=Ae.useContext(T),{prefixCls:ie,inlineCollapsed:Qe,theme:we}=H,ye=(0,pe.Xl)();let je;if(!C)je=Qe&&!ye.length&&q&&typeof q=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},q.charAt(0)):Ae.createElement("span",{className:`${ie}-title-content`},q);else{const de=(0,M.l$)(q)&&q.type==="span";je=Ae.createElement(Ae.Fragment,null,(0,M.Tm)(C,{className:te()((0,M.l$)(C)?(m=C.props)===null||m===void 0?void 0:m.className:"",`${ie}-item-icon`)}),de?q:Ae.createElement("span",{className:`${ie}-title-content`},q))}const Ct=Ae.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return Ae.createElement(T.Provider,{value:Ct},Ae.createElement(pe.Wd,Object.assign({},(0,$.Z)(I,["icon"]),{title:je,popupClassName:te()(ie,u,`${ie}-${Se||we}`)})))},ne=x(18785),J=x(70425),W=x(62892),K=x(40875),le=function(I,m){var u={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(u[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,C=Object.getOwnPropertySymbols(I);q<C.length;q++)m.indexOf(C[q])<0&&Object.prototype.propertyIsEnumerable.call(I,C[q])&&(u[C[q]]=I[C[q]]);return u};function me(I){return(I||[]).map((m,u)=>{if(m&&typeof m=="object"){const C=m,{label:q,children:Se,key:H,type:ie}=C,Qe=le(C,["label","children","key","type"]),we=H!=null?H:`tmp-${u}`;return Se||ie==="group"?ie==="group"?Ae.createElement(pe.BW,Object.assign({key:we},Qe,{title:q}),me(Se)):Ae.createElement(se,Object.assign({key:we},Qe,{title:q}),me(Se)):ie==="divider"?Ae.createElement(F,Object.assign({key:we},Qe)):Ae.createElement(Y,Object.assign({key:we},Qe),q)}return null}).filter(m=>m)}function Oe(I){return Ae.useMemo(()=>I&&me(I),[I])}var Be=x(64993),Ue=x(17313),ee=x(8378),fe=x(13826),D=x(29878),Ye=x(83116),Le=x(37613),Te=I=>{const{componentCls:m,motionDurationSlow:u,horizontalLineHeight:C,colorSplit:q,lineWidth:Se,lineType:H,itemPaddingInline:ie}=I;return{[`${m}-horizontal`]:{lineHeight:C,border:0,borderBottom:`${Se}px ${H} ${q}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${m}-item, ${m}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ie},[`> ${m}-item:hover,
|
|
|
> ${m}-item-active,
|
|
|
> ${m}-submenu ${m}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${m}-item, ${m}-submenu-title`]:{transition:[`border-color ${u}`,`background ${u}`].join(",")},[`${m}-submenu-arrow`]:{display:"none"}}}},ke=I=>{let{componentCls:m,menuArrowOffset:u}=I;return{[`${m}-rtl`]:{direction:"rtl"},[`${m}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${m}-rtl${m}-vertical,
|
|
|
${m}-submenu-rtl ${m}-vertical`]:{[`${m}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${u})`},"&::after":{transform:`rotate(45deg) translateY(${u})`}}}}};const he=I=>Object.assign({},(0,Ue.oN)(I));var Xe=(I,m)=>{const{componentCls:u,itemColor:C,itemSelectedColor:q,groupTitleColor:Se,itemBg:H,subMenuItemBg:ie,itemSelectedBg:Qe,activeBarHeight:we,activeBarWidth:ye,activeBarBorderWidth:je,motionDurationSlow:Ct,motionEaseInOut:de,motionEaseOut:st,itemPaddingInline:tt,motionDurationMid:Ie,itemHoverColor:De,lineType:lt,colorSplit:Ut,itemDisabledColor:kt,dangerItemColor:rr,dangerItemHoverColor:Fr,dangerItemSelectedColor:kr,dangerItemActiveBg:Dr,dangerItemSelectedBg:Nr,itemHoverBg:xr,itemActiveBg:ur,menuSubMenuBg:Qr,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:Ln,horizontalItemBorderRadius:pn,horizontalItemHoverBg:kn,popupBg:Ki}=I;return{[`${u}-${m}, ${u}-${m} > ${u}`]:{color:C,background:H,[`&${u}-root:focus-visible`]:Object.assign({},he(I)),[`${u}-item-group-title`]:{color:Se},[`${u}-submenu-selected`]:{[`> ${u}-submenu-title`]:{color:q}},[`${u}-item-disabled, ${u}-submenu-disabled`]:{color:`${kt} !important`},[`${u}-item:not(${u}-item-selected):not(${u}-submenu-selected)`]:{[`&:hover, > ${u}-submenu-title:hover`]:{color:De}},[`&:not(${u}-horizontal)`]:{[`${u}-item:not(${u}-item-selected)`]:{"&:hover":{backgroundColor:xr},"&:active":{backgroundColor:ur}},[`${u}-submenu-title`]:{"&:hover":{backgroundColor:xr},"&:active":{backgroundColor:ur}}},[`${u}-item-danger`]:{color:rr,[`&${u}-item:hover`]:{[`&:not(${u}-item-selected):not(${u}-submenu-selected)`]:{color:Fr}},[`&${u}-item:active`]:{background:Dr}},[`${u}-item a`]:{"&, &:hover":{color:"inherit"}},[`${u}-item-selected`]:{color:q,[`&${u}-item-danger`]:{color:kr},"a, a:hover":{color:"inherit"}},[`& ${u}-item-selected`]:{backgroundColor:Qe,[`&${u}-item-danger`]:{backgroundColor:Nr}},[`${u}-item, ${u}-submenu-title`]:{[`&:not(${u}-item-disabled):focus-visible`]:Object.assign({},he(I))},[`&${u}-submenu > ${u}`]:{backgroundColor:Qr},[`&${u}-popup > ${u}`]:{backgroundColor:Ki},[`&${u}-horizontal`]:Object.assign(Object.assign({},m==="dark"?{borderBottom:0}:{}),{[`> ${u}-item, > ${u}-submenu`]:{top:je,marginTop:-je,marginBottom:0,borderRadius:pn,"&::after":{position:"absolute",insetInline:tt,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${Ct} ${de}`,content:'""'},"&:hover, &-active, &-open":{background:kn,"&::after":{borderBottomWidth:we,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:Ln,"&:hover":{backgroundColor:Ln},"&::after":{borderBottomWidth:we,borderBottomColor:hn}}}}),[`&${u}-root`]:{[`&${u}-inline, &${u}-vertical`]:{borderInlineEnd:`${je}px ${lt} ${Ut}`}},[`&${u}-inline`]:{[`${u}-sub${u}-inline`]:{background:ie},[`${u}-item, ${u}-submenu-title`]:je&&ye?{width:`calc(100% + ${je}px)`}:{},[`${u}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ye}px solid ${q}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ie} ${st}`,`opacity ${Ie} ${st}`].join(","),content:'""'},[`&${u}-item-danger`]:{"&::after":{borderInlineEndColor:kr}}},[`${u}-selected, ${u}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ie} ${de}`,`opacity ${Ie} ${de}`].join(",")}}}}}};const et=I=>{const{componentCls:m,itemHeight:u,itemMarginInline:C,padding:q,menuArrowSize:Se,marginXS:H,itemMarginBlock:ie}=I,Qe=q+Se+H;return{[`${m}-item`]:{position:"relative",overflow:"hidden"},[`${m}-item, ${m}-submenu-title`]:{height:u,lineHeight:`${u}px`,paddingInline:q,overflow:"hidden",textOverflow:"ellipsis",marginInline:C,marginBlock:ie,width:`calc(100% - ${C*2}px)`},[`> ${m}-item,
|
|
|
> ${m}-submenu > ${m}-submenu-title`]:{height:u,lineHeight:`${u}px`},[`${m}-item-group-list ${m}-submenu-title,
|
|
|
${m}-submenu-title`]:{paddingInlineEnd:Qe}}};var qe=I=>{const{componentCls:m,iconCls:u,itemHeight:C,colorTextLightSolid:q,dropdownWidth:Se,controlHeightLG:H,motionDurationMid:ie,motionEaseOut:Qe,paddingXL:we,itemMarginInline:ye,fontSizeLG:je,motionDurationSlow:Ct,paddingXS:de,boxShadowSecondary:st,collapsedWidth:tt,collapsedIconSize:Ie}=I,De={height:C,lineHeight:`${C}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[m]:{"&-inline, &-vertical":Object.assign({[`&${m}-root`]:{boxShadow:"none"}},et(I))},[`${m}-submenu-popup`]:{[`${m}-vertical`]:Object.assign(Object.assign({},et(I)),{boxShadow:st})}},{[`${m}-submenu-popup ${m}-vertical${m}-sub`]:{minWidth:Se,maxHeight:`calc(100vh - ${H*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${m}-inline`]:{width:"100%",[`&${m}-root`]:{[`${m}-item, ${m}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ct}`,`background ${Ct}`,`padding ${ie} ${Qe}`].join(","),[`> ${m}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${m}-sub${m}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${m}-submenu > ${m}-submenu-title`]:De,[`& ${m}-item-group-title`]:{paddingInlineStart:we}},[`${m}-item`]:De}},{[`${m}-inline-collapsed`]:{width:tt,[`&${m}-root`]:{[`${m}-item, ${m}-submenu ${m}-submenu-title`]:{[`> ${m}-inline-collapsed-noicon`]:{fontSize:je,textAlign:"center"}}},[`> ${m}-item,
|
|
|
> ${m}-item-group > ${m}-item-group-list > ${m}-item,
|
|
|
> ${m}-item-group > ${m}-item-group-list > ${m}-submenu > ${m}-submenu-title,
|
|
|
> ${m}-submenu > ${m}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${je/2}px - ${ye}px)`,textOverflow:"clip",[`
|
|
|
${m}-submenu-arrow,
|
|
|
${m}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${m}-item-icon, ${u}`]:{margin:0,fontSize:Ie,lineHeight:`${C}px`,"+ span":{display:"inline-block",opacity:0}}},[`${m}-item-icon, ${u}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${m}-item-icon, ${u}`]:{display:"none"},"a, a:hover":{color:q}},[`${m}-item-group-title`]:Object.assign(Object.assign({},Ue.vS),{paddingInline:de})}}]};const _t=I=>{const{componentCls:m,motionDurationSlow:u,motionDurationMid:C,motionEaseInOut:q,motionEaseOut:Se,iconCls:H,iconSize:ie,iconMarginInlineEnd:Qe}=I;return{[`${m}-item, ${m}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${u}`,`background ${u}`,`padding ${u} ${q}`].join(","),[`${m}-item-icon, ${H}`]:{minWidth:ie,fontSize:ie,transition:[`font-size ${C} ${Se}`,`margin ${u} ${q}`,`color ${u}`].join(","),"+ span":{marginInlineStart:Qe,opacity:1,transition:[`opacity ${u} ${q}`,`margin ${u}`,`color ${u}`].join(",")}},[`${m}-item-icon`]:Object.assign({},(0,Ue.Ro)()),[`&${m}-item-only-child`]:{[`> ${H}, > ${m}-item-icon`]:{marginInlineEnd:0}}},[`${m}-item-disabled, ${m}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${m}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Lt=I=>{const{componentCls:m,motionDurationSlow:u,motionEaseInOut:C,borderRadius:q,menuArrowSize:Se,menuArrowOffset:H}=I;return{[`${m}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:I.margin,width:Se,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${u} ${C}, opacity ${u}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Se*.6,height:Se*.15,backgroundColor:"currentcolor",borderRadius:q,transition:[`background ${u} ${C}`,`transform ${u} ${C}`,`top ${u} ${C}`,`color ${u} ${C}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Nt=I=>{const{antCls:m,componentCls:u,fontSize:C,motionDurationSlow:q,motionDurationMid:Se,motionEaseInOut:H,paddingXS:ie,padding:Qe,colorSplit:we,lineWidth:ye,zIndexPopup:je,borderRadiusLG:Ct,subMenuItemBorderRadius:de,menuArrowSize:st,menuArrowOffset:tt,lineType:Ie,menuPanelMaskInset:De,groupTitleLineHeight:lt,groupTitleFontSize:Ut}=I;return[{"":{[`${u}`]:Object.assign(Object.assign({},(0,Ue.dF)()),{"&-hidden":{display:"none"}})},[`${u}-submenu-hidden`]:{display:"none"}},{[u]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(I)),(0,Ue.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:C,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${q} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${u}-item`]:{flex:"none"}},[`${u}-item, ${u}-submenu, ${u}-submenu-title`]:{borderRadius:I.itemBorderRadius},[`${u}-item-group-title`]:{padding:`${ie}px ${Qe}px`,fontSize:Ut,lineHeight:lt,transition:`all ${q}`},[`&-horizontal ${u}-submenu`]:{transition:[`border-color ${q} ${H}`,`background ${q} ${H}`].join(",")},[`${u}-submenu, ${u}-submenu-inline`]:{transition:[`border-color ${q} ${H}`,`background ${q} ${H}`,`padding ${Se} ${H}`].join(",")},[`${u}-submenu ${u}-sub`]:{cursor:"initial",transition:[`background ${q} ${H}`,`padding ${q} ${H}`].join(",")},[`${u}-title-content`]:{transition:`color ${q}`},[`${u}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${u}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:Ie,borderWidth:0,borderTopWidth:ye,marginBlock:ye,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_t(I)),{[`${u}-item-group`]:{[`${u}-item-group-list`]:{margin:0,padding:0,[`${u}-item, ${u}-submenu-title`]:{paddingInline:`${C*2}px ${Qe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:je,borderRadius:Ct,boxShadow:"none",transformOrigin:"0 0",[`&${u}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${De}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:De},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:I.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:I.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:I.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:I.paddingXS},[`> ${u}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ct},_t(I)),Lt(I)),{[`${u}-item, ${u}-submenu > ${u}-submenu-title`]:{borderRadius:de},[`${u}-submenu-title::after`]:{transition:`transform ${q} ${H}`}})}}),Lt(I)),{[`&-inline-collapsed ${u}-submenu-arrow,
|
|
|
&-inline ${u}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${tt})`},"&::after":{transform:`rotate(45deg) translateX(-${tt})`}},[`${u}-submenu-open${u}-submenu-inline > ${u}-submenu-title > ${u}-submenu-arrow`]:{transform:`translateY(-${st*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${tt})`},"&::before":{transform:`rotate(45deg) translateX(${tt})`}}})},{[`${m}-layout-header`]:{[u]:{lineHeight:"inherit"}}}]};var sr=(I,m)=>(0,Ye.Z)("Menu",C=>{if(m===!1)return[];const{colorBgElevated:q,colorPrimary:Se,colorTextLightSolid:H,controlHeightLG:ie,fontSize:Qe,darkItemColor:we,darkDangerItemColor:ye,darkItemBg:je,darkSubMenuItemBg:Ct,darkItemSelectedColor:de,darkItemSelectedBg:st,darkDangerItemSelectedBg:tt,darkItemHoverBg:Ie,darkGroupTitleColor:De,darkItemHoverColor:lt,darkItemDisabledColor:Ut,darkDangerItemHoverColor:kt,darkDangerItemSelectedColor:rr,darkDangerItemActiveBg:Fr}=C,kr=Qe/7*5,Dr=(0,Le.TS)(C,{menuArrowSize:kr,menuHorizontalHeight:ie*1.15,menuArrowOffset:`${kr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:q}),Nr=(0,Le.TS)(Dr,{itemColor:we,itemHoverColor:lt,groupTitleColor:De,itemSelectedColor:de,itemBg:je,popupBg:je,subMenuItemBg:Ct,itemActiveBg:"transparent",itemSelectedBg:st,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ie,itemDisabledColor:Ut,dangerItemColor:ye,dangerItemHoverColor:kt,dangerItemSelectedColor:rr,dangerItemActiveBg:Fr,dangerItemSelectedBg:tt,menuSubMenuBg:Ct,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Se});return[Nt(Dr),Te(Dr),qe(Dr),Xe(Dr,"light"),Xe(Nr,"dark"),ke(Dr),(0,ee.Z)(Dr),(0,fe.oN)(Dr,"slide-up"),(0,fe.oN)(Dr,"slide-down"),(0,D._y)(Dr,"zoom-big")]},C=>{const{colorPrimary:q,colorError:Se,colorTextDisabled:H,colorErrorBg:ie,colorText:Qe,colorTextDescription:we,colorBgContainer:ye,colorFillAlter:je,colorFillContent:Ct,lineWidth:de,lineWidthBold:st,controlItemBgActive:tt,colorBgTextHover:Ie,controlHeightLG:De,lineHeight:lt,colorBgElevated:Ut,marginXXS:kt,padding:rr,fontSize:Fr,controlHeightSM:kr,fontSizeLG:Dr,colorTextLightSolid:Nr,colorErrorHover:xr}=C,ur=new Be.C(Nr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:C.zIndexPopupBase+50,radiusItem:C.borderRadiusLG,itemBorderRadius:C.borderRadiusLG,radiusSubMenuItem:C.borderRadiusSM,subMenuItemBorderRadius:C.borderRadiusSM,colorItemText:Qe,itemColor:Qe,colorItemTextHover:Qe,itemHoverColor:Qe,colorItemTextHoverHorizontal:q,horizontalItemHoverColor:q,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:q,itemSelectedColor:q,colorItemTextSelectedHorizontal:q,horizontalItemSelectedColor:q,colorItemBg:ye,itemBg:ye,colorItemBgHover:Ie,itemHoverBg:Ie,colorItemBgActive:Ct,itemActiveBg:tt,colorSubItemBg:je,subMenuItemBg:je,colorItemBgSelected:tt,itemSelectedBg:tt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:st,activeBarHeight:st,colorActiveBarBorderSize:de,activeBarBorderWidth:de,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Se,dangerItemColor:Se,colorDangerItemTextHover:Se,dangerItemHoverColor:Se,colorDangerItemTextSelected:Se,dangerItemSelectedColor:Se,colorDangerItemBgActive:ie,dangerItemActiveBg:ie,colorDangerItemBgSelected:ie,dangerItemSelectedBg:ie,itemMarginInline:C.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:De,groupTitleLineHeight:lt,collapsedWidth:De*2,popupBg:Ut,itemMarginBlock:kt,itemPaddingInline:rr,horizontalLineHeight:`${De*1.15}px`,iconSize:Fr,iconMarginInlineEnd:kr-Fr,collapsedIconSize:Dr,groupTitleFontSize:Fr,darkItemDisabledColor:new Be.C(Nr).setAlpha(.25).toRgbString(),darkItemColor:ur,darkDangerItemColor:Se,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nr,darkItemSelectedBg:q,darkDangerItemSelectedBg:Se,darkItemHoverBg:"transparent",darkGroupTitleColor:ur,darkItemHoverColor:Nr,darkDangerItemHoverColor:xr,darkDangerItemSelectedColor:Nr,darkDangerItemActiveBg:Se}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(I),er=function(I,m){var u={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(u[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,C=Object.getOwnPropertySymbols(I);q<C.length;q++)m.indexOf(C[q])<0&&Object.prototype.propertyIsEnumerable.call(I,C[q])&&(u[C[q]]=I[C[q]]);return u},lr=(0,Ae.forwardRef)((I,m)=>{var u,C;const q=Ae.useContext(K.Z),Se=q||{},{getPrefixCls:H,getPopupContainer:ie,direction:Qe,menu:we}=Ae.useContext(V.E_),ye=H(),{prefixCls:je,className:Ct,style:de,theme:st="light",expandIcon:tt,_internalDisableMenuItemTitleTooltip:Ie,inlineCollapsed:De,siderCollapsed:lt,items:Ut,children:kt,rootClassName:rr,mode:Fr,selectable:kr,onClick:Dr,overflowedIndicatorPopupClassName:Nr}=I,xr=er(I,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ur=(0,$.Z)(xr,["collapsedWidth"]),Qr=Oe(Ut)||kt;(u=Se.validator)===null||u===void 0||u.call(Se,{mode:Fr});const hn=(0,J.useEvent)(function(){var Zi;Dr==null||Dr.apply(void 0,arguments),(Zi=Se.onClick)===null||Zi===void 0||Zi.call(Se)}),Ln=Se.mode||Fr,pn=kr!=null?kr:Se.selectable,kn=Ae.useMemo(()=>lt!==void 0?lt:De,[De,lt]),Ki={horizontal:{motionName:`${ye}-slide-up`},inline:(0,W.Z)(ye),other:{motionName:`${ye}-zoom-big`}},hr=H("menu",je||Se.prefixCls),[Wn,Hi]=sr(hr,!q),ui=te()(`${hr}-${st}`,we==null?void 0:we.className,Ct);let $i;if(typeof tt=="function")$i=tt;else if(tt===null||tt===!1)$i=null;else if(Se.expandIcon===null||Se.expandIcon===!1)$i=null;else{const Zi=tt!=null?tt:Se.expandIcon;$i=(0,M.Tm)(Zi,{className:te()(`${hr}-submenu-expand-icon`,(0,M.l$)(Zi)?(C=Zi.props)===null||C===void 0?void 0:C.className:"")})}const Ri=Ae.useMemo(()=>({prefixCls:hr,inlineCollapsed:kn||!1,direction:Qe,firstLevel:!0,theme:st,mode:Ln,disableMenuItemTitleTooltip:Ie}),[hr,kn,Qe,Ie,st]);return Wn(Ae.createElement(K.Z.Provider,{value:null},Ae.createElement(T.Provider,{value:Ri},Ae.createElement(pe.ZP,Object.assign({getPopupContainer:ie,overflowedIndicator:Ae.createElement(ne.Z,null),overflowedIndicatorPopupClassName:te()(hr,`${hr}-${st}`,Nr),mode:Ln,selectable:pn,onClick:hn},ur,{inlineCollapsed:kn,style:Object.assign(Object.assign({},we==null?void 0:we.style),de),className:ui,prefixCls:hr,direction:Qe,defaultMotions:Ki,expandIcon:$i,ref:m,rootClassName:te()(rr,Hi)}),Qr))))});const G=(0,Ae.forwardRef)((I,m)=>{const u=(0,Ae.useRef)(null),C=Ae.useContext(P.D);return(0,Ae.useImperativeHandle)(m,()=>({menu:u.current,focus:q=>{var Se;(Se=u.current)===null||Se===void 0||Se.focus(q)}})),Ae.createElement(lr,Object.assign({ref:u},I,C))});G.Item=Y,G.SubMenu=se,G.Divider=F,G.ItemGroup=pe.BW;var dt=G},58421:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Se}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ne=P,te=x(7657),V=function(ie,Qe){return Ae.createElement(te.Z,(0,pe.Z)({},ie,{ref:Qe,icon:Ne}))},S=Ae.forwardRef(V),g=S,F=x(49198),v=x(33853),$=x(38819),_=x(92310),M=x.n(_),O=x(20068),T=x(33885),L=x(67732),Y=x(83652),R=x(42403),se=x(158),ne=x(26112),J={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},W=J,K=x(91735),le=function(H){(0,R.Z)(Qe,H);var ie=(0,se.Z)(Qe);function Qe(){var we;(0,L.Z)(this,Qe);for(var ye=arguments.length,je=new Array(ye),Ct=0;Ct<ye;Ct++)je[Ct]=arguments[Ct];return we=ie.call.apply(ie,[this].concat(je)),we.state={goInputText:""},we.getValidValue=function(){var de=we.state.goInputText;return!de||Number.isNaN(de)?void 0:Number(de)},we.buildOptionText=function(de){return"".concat(de," ").concat(we.props.locale.items_per_page)},we.changeSize=function(de){we.props.changeSize(Number(de))},we.handleChange=function(de){we.setState({goInputText:de.target.value})},we.handleBlur=function(de){var st=we.props,tt=st.goButton,Ie=st.quickGo,De=st.rootPrefixCls,lt=we.state.goInputText;tt||lt===""||(we.setState({goInputText:""}),!(de.relatedTarget&&(de.relatedTarget.className.indexOf("".concat(De,"-item-link"))>=0||de.relatedTarget.className.indexOf("".concat(De,"-item"))>=0))&&Ie(we.getValidValue()))},we.go=function(de){var st=we.state.goInputText;st!==""&&(de.keyCode===W.ENTER||de.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,Y.Z)(Qe,[{key:"getPageSizeOptions",value:function(){var ye=this.props,je=ye.pageSize,Ct=ye.pageSizeOptions;return Ct.some(function(de){return de.toString()===je.toString()})?Ct:Ct.concat([je.toString()]).sort(function(de,st){var tt=Number.isNaN(Number(de))?0:Number(de),Ie=Number.isNaN(Number(st))?0:Number(st);return tt-Ie})}},{key:"render",value:function(){var ye=this,je=this.props,Ct=je.pageSize,de=je.locale,st=je.rootPrefixCls,tt=je.changeSize,Ie=je.quickGo,De=je.goButton,lt=je.selectComponentClass,Ut=je.buildOptionText,kt=je.selectPrefixCls,rr=je.disabled,Fr=this.state.goInputText,kr="".concat(st,"-options"),Dr=lt,Nr=null,xr=null,ur=null;if(!tt&&!Ie)return null;var Qr=this.getPageSizeOptions();if(tt&&Dr){var hn=Qr.map(function(Ln,pn){return Ae.createElement(Dr.Option,{key:pn,value:Ln.toString()},(Ut||ye.buildOptionText)(Ln))});Nr=Ae.createElement(Dr,{disabled:rr,prefixCls:kt,showSearch:!1,className:"".concat(kr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ct||Qr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(pn){return pn.parentNode},"aria-label":de.page_size,defaultOpen:!1},hn)}return Ie&&(De&&(ur=typeof De=="boolean"?Ae.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:rr,className:"".concat(kr,"-quick-jumper-button")},de.jump_to_confirm):Ae.createElement("span",{onClick:this.go,onKeyUp:this.go},De)),xr=Ae.createElement("div",{className:"".concat(kr,"-quick-jumper")},de.jump_to,Ae.createElement("input",{disabled:rr,type:"text",value:Fr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":de.page}),de.page,ur)),Ae.createElement("li",{className:"".concat(kr)},Nr,xr)}}]),Qe}(Ae.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var me=le,Oe=function(ie){var Qe,we=ie.rootPrefixCls,ye=ie.page,je=ie.active,Ct=ie.className,de=ie.showTitle,st=ie.onClick,tt=ie.onKeyPress,Ie=ie.itemRender,De="".concat(we,"-item"),lt=M()(De,"".concat(De,"-").concat(ye),(Qe={},(0,O.Z)(Qe,"".concat(De,"-active"),je),(0,O.Z)(Qe,"".concat(De,"-disabled"),!ye),(0,O.Z)(Qe,ie.className,Ct),Qe)),Ut=function(){st(ye)},kt=function(kr){tt(kr,st,ye)},rr=Ie(ye,"page",Ae.createElement("a",{rel:"nofollow"},ye));return rr?Ae.createElement("li",{title:de?ye.toString():null,className:lt,onClick:Ut,onKeyPress:kt,tabIndex:0},rr):null},Be=Oe;function Ue(){}function ee(H){var ie=Number(H);return typeof ie=="number"&&!Number.isNaN(ie)&&isFinite(ie)&&Math.floor(ie)===ie}var fe=function(ie,Qe,we){return we};function D(H,ie,Qe){var we=typeof H=="undefined"?ie.pageSize:H;return Math.floor((Qe.total-1)/we)+1}var Ye=function(H){(0,R.Z)(Qe,H);var ie=(0,se.Z)(Qe);function Qe(we){var ye;(0,L.Z)(this,Qe),ye=ie.call(this,we),ye.paginationNode=Ae.createRef(),ye.getJumpPrevPage=function(){return Math.max(1,ye.state.current-(ye.props.showLessItems?3:5))},ye.getJumpNextPage=function(){return Math.min(D(void 0,ye.state,ye.props),ye.state.current+(ye.props.showLessItems?3:5))},ye.getItemIcon=function(tt,Ie){var De=ye.props.prefixCls,lt=tt||Ae.createElement("button",{type:"button","aria-label":Ie,className:"".concat(De,"-item-link")});return typeof tt=="function"&&(lt=Ae.createElement(tt,(0,T.Z)({},ye.props))),lt},ye.isValid=function(tt){var Ie=ye.props.total;return ee(tt)&&tt!==ye.state.current&&ee(Ie)&&Ie>0},ye.shouldDisplayQuickJumper=function(){var tt=ye.props,Ie=tt.showQuickJumper,De=tt.total,lt=ye.state.pageSize;return De<=lt?!1:Ie},ye.handleKeyDown=function(tt){(tt.keyCode===W.ARROW_UP||tt.keyCode===W.ARROW_DOWN)&&tt.preventDefault()},ye.handleKeyUp=function(tt){var Ie=ye.getValidValue(tt),De=ye.state.currentInputValue;Ie!==De&&ye.setState({currentInputValue:Ie}),tt.keyCode===W.ENTER?ye.handleChange(Ie):tt.keyCode===W.ARROW_UP?ye.handleChange(Ie-1):tt.keyCode===W.ARROW_DOWN&&ye.handleChange(Ie+1)},ye.handleBlur=function(tt){var Ie=ye.getValidValue(tt);ye.handleChange(Ie)},ye.changePageSize=function(tt){var Ie=ye.state.current,De=D(tt,ye.state,ye.props);Ie=Ie>De?De:Ie,De===0&&(Ie=ye.state.current),typeof tt=="number"&&("pageSize"in ye.props||ye.setState({pageSize:tt}),"current"in ye.props||ye.setState({current:Ie,currentInputValue:Ie})),ye.props.onShowSizeChange(Ie,tt),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(Ie,tt)},ye.handleChange=function(tt){var Ie=ye.props,De=Ie.disabled,lt=Ie.onChange,Ut=ye.state,kt=Ut.pageSize,rr=Ut.current,Fr=Ut.currentInputValue;if(ye.isValid(tt)&&!De){var kr=D(void 0,ye.state,ye.props),Dr=tt;return tt>kr?Dr=kr:tt<1&&(Dr=1),"current"in ye.props||ye.setState({current:Dr}),Dr!==Fr&&ye.setState({currentInputValue:Dr}),lt(Dr,kt),Dr}return rr},ye.prev=function(){ye.hasPrev()&&ye.handleChange(ye.state.current-1)},ye.next=function(){ye.hasNext()&&ye.handleChange(ye.state.current+1)},ye.jumpPrev=function(){ye.handleChange(ye.getJumpPrevPage())},ye.jumpNext=function(){ye.handleChange(ye.getJumpNextPage())},ye.hasPrev=function(){return ye.state.current>1},ye.hasNext=function(){return ye.state.current<D(void 0,ye.state,ye.props)},ye.runIfEnter=function(tt,Ie){if(tt.key==="Enter"||tt.charCode===13){for(var De=arguments.length,lt=new Array(De>2?De-2:0),Ut=2;Ut<De;Ut++)lt[Ut-2]=arguments[Ut];Ie.apply(void 0,lt)}},ye.runIfEnterPrev=function(tt){ye.runIfEnter(tt,ye.prev)},ye.runIfEnterNext=function(tt){ye.runIfEnter(tt,ye.next)},ye.runIfEnterJumpPrev=function(tt){ye.runIfEnter(tt,ye.jumpPrev)},ye.runIfEnterJumpNext=function(tt){ye.runIfEnter(tt,ye.jumpNext)},ye.handleGoTO=function(tt){(tt.keyCode===W.ENTER||tt.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(tt){var Ie=ye.props,De=Ie.prevIcon,lt=Ie.itemRender,Ut=lt(tt,"prev",ye.getItemIcon(De,"prev page")),kt=!ye.hasPrev();return(0,Ae.isValidElement)(Ut)?(0,Ae.cloneElement)(Ut,{disabled:kt}):Ut},ye.renderNext=function(tt){var Ie=ye.props,De=Ie.nextIcon,lt=Ie.itemRender,Ut=lt(tt,"next",ye.getItemIcon(De,"next page")),kt=!ye.hasNext();return(0,Ae.isValidElement)(Ut)?(0,Ae.cloneElement)(Ut,{disabled:kt}):Ut};var je=we.onChange!==Ue,Ct="current"in we;Ct&&!je&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var de=we.defaultCurrent;"current"in we&&(de=we.current);var st=we.defaultPageSize;return"pageSize"in we&&(st=we.pageSize),de=Math.min(de,D(st,void 0,we)),ye.state={current:de,currentInputValue:de,pageSize:st},ye}return(0,Y.Z)(Qe,[{key:"componentDidUpdate",value:function(ye,je){var Ct=this.props.prefixCls;if(je.current!==this.state.current&&this.paginationNode.current){var de=this.paginationNode.current.querySelector(".".concat(Ct,"-item-").concat(je.current));if(de&&document.activeElement===de){var st;de==null||(st=de.blur)===null||st===void 0||st.call(de)}}}},{key:"getValidValue",value:function(ye){var je=ye.target.value,Ct=D(void 0,this.state,this.props),de=this.state.currentInputValue,st;return je===""?st=je:Number.isNaN(Number(je))?st=de:je>=Ct?st=Ct:st=Number(je),st}},{key:"getShowSizeChanger",value:function(){var ye=this.props,je=ye.showSizeChanger,Ct=ye.total,de=ye.totalBoundaryShowSizeChanger;return typeof je!="undefined"?je:Ct>de}},{key:"render",value:function(){var ye=this.props,je=ye.prefixCls,Ct=ye.className,de=ye.style,st=ye.disabled,tt=ye.hideOnSinglePage,Ie=ye.total,De=ye.locale,lt=ye.showQuickJumper,Ut=ye.showLessItems,kt=ye.showTitle,rr=ye.showTotal,Fr=ye.simple,kr=ye.itemRender,Dr=ye.showPrevNextJumpers,Nr=ye.jumpPrevIcon,xr=ye.jumpNextIcon,ur=ye.selectComponentClass,Qr=ye.selectPrefixCls,hn=ye.pageSizeOptions,Ln=this.state,pn=Ln.current,kn=Ln.pageSize,Ki=Ln.currentInputValue;if(tt===!0&&Ie<=kn)return null;var hr=D(void 0,this.state,this.props),Wn=[],Hi=null,ui=null,$i=null,Ri=null,Zi=null,Za=lt&<.goButton,_i=Ut?1:2,Yn=pn-1>0?pn-1:0,ii=pn+1<hr?pn+1:hr,vi=(0,ne.Z)(this.props,{aria:!0,data:!0}),ge=rr&&Ae.createElement("li",{className:"".concat(je,"-total-text")},rr(Ie,[Ie===0?0:(pn-1)*kn+1,pn*kn>Ie?Ie:pn*kn]));if(Fr){Za&&(typeof Za=="boolean"?Zi=Ae.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},De.jump_to_confirm):Zi=Ae.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Za),Zi=Ae.createElement("li",{title:kt?"".concat(De.jump_to).concat(pn,"/").concat(hr):null,className:"".concat(je,"-simple-pager")},Zi));var Me=this.renderPrev(Yn);return Ae.createElement("ul",(0,pe.Z)({className:M()(je,"".concat(je,"-simple"),(0,O.Z)({},"".concat(je,"-disabled"),st),Ct),style:de,ref:this.paginationNode},vi),ge,Me?Ae.createElement("li",{title:kt?De.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:M()("".concat(je,"-prev"),(0,O.Z)({},"".concat(je,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Me):null,Ae.createElement("li",{title:kt?"".concat(pn,"/").concat(hr):null,className:"".concat(je,"-simple-pager")},Ae.createElement("input",{type:"text",value:Ki,disabled:st,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ae.createElement("span",{className:"".concat(je,"-slash")},"/"),hr),Ae.createElement("li",{title:kt?De.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:M()("".concat(je,"-next"),(0,O.Z)({},"".concat(je,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ii)),Zi)}if(hr<=3+_i*2){var Fe={locale:De,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:kt,itemRender:kr};hr||Wn.push(Ae.createElement(Be,(0,pe.Z)({},Fe,{key:"noPager",page:1,className:"".concat(je,"-item-disabled")})));for(var Ge=1;Ge<=hr;Ge+=1){var Pt=pn===Ge;Wn.push(Ae.createElement(Be,(0,pe.Z)({},Fe,{key:Ge,page:Ge,active:Pt})))}}else{var Dt=Ut?De.prev_3:De.prev_5,_r=Ut?De.next_3:De.next_5,nr=kr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Nr,"prev page")),Or=kr(this.getJumpNextPage(),"jump-next",this.getItemIcon(xr,"next page"));Dr&&(Hi=nr?Ae.createElement("li",{title:kt?Dt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:M()("".concat(je,"-jump-prev"),(0,O.Z)({},"".concat(je,"-jump-prev-custom-icon"),!!Nr))},nr):null,ui=Or?Ae.createElement("li",{title:kt?_r:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:M()("".concat(je,"-jump-next"),(0,O.Z)({},"".concat(je,"-jump-next-custom-icon"),!!xr))},Or):null),Ri=Ae.createElement(Be,{locale:De,last:!0,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:hr,page:hr,active:!1,showTitle:kt,itemRender:kr}),$i=Ae.createElement(Be,{locale:De,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:kt,itemRender:kr});var Hr=Math.max(1,pn-_i),an=Math.min(pn+_i,hr);pn-1<=_i&&(an=1+_i*2),hr-pn<=_i&&(Hr=hr-_i*2);for(var jr=Hr;jr<=an;jr+=1){var Rr=pn===jr;Wn.push(Ae.createElement(Be,{locale:De,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jr,page:jr,active:Rr,showTitle:kt,itemRender:kr}))}pn-1>=_i*2&&pn!==3&&(Wn[0]=(0,Ae.cloneElement)(Wn[0],{className:"".concat(je,"-item-after-jump-prev")}),Wn.unshift(Hi)),hr-pn>=_i*2&&pn!==hr-2&&(Wn[Wn.length-1]=(0,Ae.cloneElement)(Wn[Wn.length-1],{className:"".concat(je,"-item-before-jump-next")}),Wn.push(ui)),Hr!==1&&Wn.unshift($i),an!==hr&&Wn.push(Ri)}var en=!this.hasPrev()||!hr,yn=!this.hasNext()||!hr,on=this.renderPrev(Yn),Dn=this.renderNext(ii);return Ae.createElement("ul",(0,pe.Z)({className:M()(je,Ct,(0,O.Z)({},"".concat(je,"-disabled"),st)),style:de,ref:this.paginationNode},vi),ge,on?Ae.createElement("li",{title:kt?De.prev_page:null,onClick:this.prev,tabIndex:en?null:0,onKeyPress:this.runIfEnterPrev,className:M()("".concat(je,"-prev"),(0,O.Z)({},"".concat(je,"-disabled"),en)),"aria-disabled":en},on):null,Wn,Dn?Ae.createElement("li",{title:kt?De.next_page:null,onClick:this.next,tabIndex:yn?null:0,onKeyPress:this.runIfEnterNext,className:M()("".concat(je,"-next"),(0,O.Z)({},"".concat(je,"-disabled"),yn)),"aria-disabled":yn},Dn):null,Ae.createElement(me,{disabled:st,locale:De,rootPrefixCls:je,selectComponentClass:ur,selectPrefixCls:Qr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:pn,pageSize:kn,pageSizeOptions:hn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Za}))}}],[{key:"getDerivedStateFromProps",value:function(ye,je){var Ct={};if("current"in ye&&(Ct.current=ye.current,ye.current!==je.current&&(Ct.currentInputValue=Ct.current)),"pageSize"in ye&&ye.pageSize!==je.pageSize){var de=je.current,st=D(ye.pageSize,je,ye);de=de>st?st:de,"current"in ye||(Ct.current=de,Ct.currentInputValue=de),Ct.pageSize=ye.pageSize}return Ct}}]),Qe}(Ae.Component);Ye.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ue,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ue,locale:K.Z,style:{},itemRender:fe,totalBoundaryShowSizeChanger:50};var Le=Ye,Ce=x(22075),Te=x(36355),be=x(19716),ke=x(8628),he=x(9763),Ee=x(57809);const Xe=H=>Ae.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"small"})),et=H=>Ae.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"middle"}));Xe.Option=Ee.default.Option,et.Option=Ee.default.Option;var ze=x(9937),qe=x(17313),_t=x(83116),Lt=x(37613);const Nt=H=>{const{componentCls:ie}=H;return{[`${ie}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}}},[`&${ie}-disabled`]:{cursor:"not-allowed",[`${ie}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:H.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:H.colorBorder,backgroundColor:H.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:H.itemActiveBgDisabled},a:{color:H.itemActiveColorDisabled}}},[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ie}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ie}-simple-pager`]:{color:H.colorTextDisabled},[`${ie}-jump-prev, ${ie}-jump-next`]:{[`${ie}-item-link-icon`]:{opacity:0},[`${ie}-item-ellipsis`]:{opacity:1}}},[`&${ie}-simple`]:{[`${ie}-prev, ${ie}-next`]:{[`&${ie}-disabled ${ie}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},sr=H=>{const{componentCls:ie}=H;return{[`&${ie}-mini ${ie}-total-text, &${ie}-mini ${ie}-simple-pager`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini ${ie}-item`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM-2}px`},[`&${ie}-mini:not(${ie}-disabled) ${ie}-item:not(${ie}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},[`&${ie}-mini ${ie}-prev, &${ie}-mini ${ie}-next`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini:not(${ie}-disabled)`]:{[`${ie}-prev, ${ie}-next`]:{[`&:hover ${ie}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ie}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ie}-disabled:hover ${ie}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${ie}-mini ${ie}-prev ${ie}-item-link,
|
|
|
&${ie}-mini ${ie}-next ${ie}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}},[`&${ie}-mini ${ie}-jump-prev, &${ie}-mini ${ie}-jump-next`]:{height:H.itemSizeSM,marginInlineEnd:0,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini ${ie}-options`]:{marginInlineStart:H.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:H.miniOptionsSizeChangerTop},"&-quick-jumper":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ze.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},er=H=>{const{componentCls:ie}=H;return{[`
|
|
|
&${ie}-simple ${ie}-prev,
|
|
|
&${ie}-simple ${ie}-next
|
|
|
`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,verticalAlign:"top",[`${ie}-item-link`]:{height:H.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive},"&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}}},[`&${ie}-simple ${ie}-simple-pager`]:{display:"inline-block",height:H.itemSizeSM,marginInlineEnd:H.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:H.marginXS,padding:`0 ${H.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:H.itemInputBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadius,outline:"none",transition:`border-color ${H.motionDurationMid}`,color:"inherit","&:hover":{borderColor:H.colorPrimary},"&:focus":{borderColor:H.colorPrimaryHover,boxShadow:`${H.inputOutlineOffset}px 0 ${H.controlOutlineWidth}px ${H.controlOutline}`},"&[disabled]":{color:H.colorTextDisabled,backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,cursor:"not-allowed"}}}}},yr=H=>{const{componentCls:ie}=H;return{[`${ie}-jump-prev, ${ie}-jump-next`]:{outline:0,[`${ie}-item-container`]:{position:"relative",[`${ie}-item-link-icon`]:{color:H.colorPrimary,fontSize:H.fontSizeSM,opacity:0,transition:`all ${H.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ie}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:H.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:H.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:H.paginationEllipsisTextIndent,opacity:1,transition:`all ${H.motionDurationMid}`}},"&:hover":{[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${ie}-prev,
|
|
|
${ie}-jump-prev,
|
|
|
${ie}-jump-next
|
|
|
`]:{marginInlineEnd:H.marginXS},[`
|
|
|
${ie}-prev,
|
|
|
${ie}-next,
|
|
|
${ie}-jump-prev,
|
|
|
${ie}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,color:H.colorText,fontFamily:H.fontFamily,lineHeight:`${H.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:H.borderRadius,cursor:"pointer",transition:`all ${H.motionDurationMid}`},[`${ie}-prev, ${ie}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ie}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:H.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:"none",transition:`all ${H.motionDurationMid}`},[`&:hover ${ie}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ie}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ie}-disabled:hover`]:{[`${ie}-item-link`]:{backgroundColor:"transparent"}}},[`${ie}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ie}-options`]:{display:"inline-block",marginInlineStart:H.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:H.controlHeight,marginInlineStart:H.marginXS,lineHeight:`${H.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ze.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},lr=H=>{const{componentCls:ie}=H;return{[`${ie}-item`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,marginInlineEnd:H.marginXS,fontFamily:H.fontFamily,lineHeight:`${H.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H.paginationItemPaddingInline}px`,color:H.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ie}-item-active)`]:{"&:hover":{transition:`all ${H.motionDurationMid}`,backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},"&-active":{fontWeight:H.fontWeightStrong,backgroundColor:H.itemActiveBg,borderColor:H.colorPrimary,a:{color:H.colorPrimary},"&:hover":{borderColor:H.colorPrimaryHover},"&:hover a":{color:H.colorPrimaryHover}}}}},G=H=>{const{componentCls:ie}=H;return{[ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qe.Wf)(H)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ie}-total-text`]:{display:"inline-block",height:H.itemSize,marginInlineEnd:H.marginXS,lineHeight:`${H.itemSize-2}px`,verticalAlign:"middle"}}),lr(H)),yr(H)),er(H)),sr(H)),Nt(H)),{[`@media only screen and (max-width: ${H.screenLG}px)`]:{[`${ie}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${H.screenSM}px)`]:{[`${ie}-options`]:{display:"none"}}}),[`&${H.componentCls}-rtl`]:{direction:"rtl"}}},dt=H=>{const{componentCls:ie}=H;return{[`${ie}${ie}-disabled:not(${ie}-mini)`]:{"&, &:hover":{[`${ie}-item-link`]:{borderColor:H.colorBorder}},"&:focus-visible":{[`${ie}-item-link`]:{borderColor:H.colorBorder}},[`${ie}-item, ${ie}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,[`&:hover:not(${ie}-item-active)`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,a:{color:H.colorTextDisabled}},[`&${ie}-item-active`]:{backgroundColor:H.itemActiveBgDisabled}},[`${ie}-prev, ${ie}-next`]:{"&:hover button":{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,color:H.colorTextDisabled},[`${ie}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder}}},[`${ie}:not(${ie}-mini)`]:{[`${ie}-prev, ${ie}-next`]:{"&:hover button":{borderColor:H.colorPrimaryHover,backgroundColor:H.itemBg},[`${ie}-item-link`]:{backgroundColor:H.itemLinkBg,borderColor:H.colorBorder},[`&:hover ${ie}-item-link`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,color:H.colorPrimary},[`&${ie}-disabled`]:{[`${ie}-item-link`]:{borderColor:H.colorBorder,color:H.colorTextDisabled}}},[`${ie}-item`]:{backgroundColor:H.itemBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,[`&:hover:not(${ie}-item-active)`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,a:{color:H.colorPrimary}},"&-active":{borderColor:H.colorPrimary}}}}},I=H=>{const{componentCls:ie}=H;return{[`${ie}:not(${ie}-disabled)`]:{[`${ie}-item`]:Object.assign({},(0,qe.Qy)(H)),[`${ie}-jump-prev, ${ie}-jump-next`]:{"&:focus-visible":Object.assign({[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}},(0,qe.oN)(H))},[`${ie}-prev, ${ie}-next`]:{[`&:focus-visible ${ie}-item-link`]:Object.assign({},(0,qe.oN)(H))}}}};var m=(0,_t.Z)("Pagination",H=>{const ie=(0,Lt.TS)(H,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:H.marginXXS/2,paginationMiniQuickJumperInputWidth:H.controlHeightLG*1.1,paginationItemPaddingInline:H.marginXXS*1.5,paginationEllipsisLetterSpacing:H.marginXXS/2,paginationSlashMarginInlineStart:H.marginXXS,paginationSlashMarginInlineEnd:H.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ze.e5)(H),(0,ze.TM)(H));return[G(ie),I(ie),H.wireframe&&dt(ie)]},H=>({itemBg:H.colorBgContainer,itemSize:H.controlHeight,itemSizeSM:H.controlHeightSM,itemActiveBg:H.colorBgContainer,itemLinkBg:H.colorBgContainer,itemActiveColorDisabled:H.colorTextDisabled,itemActiveBgDisabled:H.controlItemBgActiveDisabled,itemInputBg:H.colorBgContainer,miniOptionsSizeChangerTop:0})),u=function(H,ie){var Qe={};for(var we in H)Object.prototype.hasOwnProperty.call(H,we)&&ie.indexOf(we)<0&&(Qe[we]=H[we]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,we=Object.getOwnPropertySymbols(H);ye<we.length;ye++)ie.indexOf(we[ye])<0&&Object.prototype.propertyIsEnumerable.call(H,we[ye])&&(Qe[we[ye]]=H[we[ye]]);return Qe},q=H=>{const{prefixCls:ie,selectPrefixCls:Qe,className:we,rootClassName:ye,style:je,size:Ct,locale:de,selectComponentClass:st,responsive:tt,showSizeChanger:Ie}=H,De=u(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:lt}=(0,ke.Z)(tt),{getPrefixCls:Ut,direction:kt,pagination:rr={}}=Ae.useContext(Te.E_),Fr=Ut("pagination",ie),[kr,Dr]=m(Fr),Nr=Ie!=null?Ie:rr.showSizeChanger,xr=Ae.useMemo(()=>{const hr=Ae.createElement("span",{className:`${Fr}-item-ellipsis`},"\u2022\u2022\u2022"),Wn=Ae.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},kt==="rtl"?Ae.createElement($.Z,null):Ae.createElement(v.Z,null)),Hi=Ae.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},kt==="rtl"?Ae.createElement(v.Z,null):Ae.createElement($.Z,null)),ui=Ae.createElement("a",{className:`${Fr}-item-link`},Ae.createElement("div",{className:`${Fr}-item-container`},kt==="rtl"?Ae.createElement(F.Z,{className:`${Fr}-item-link-icon`}):Ae.createElement(g,{className:`${Fr}-item-link-icon`}),hr)),$i=Ae.createElement("a",{className:`${Fr}-item-link`},Ae.createElement("div",{className:`${Fr}-item-container`},kt==="rtl"?Ae.createElement(g,{className:`${Fr}-item-link-icon`}):Ae.createElement(F.Z,{className:`${Fr}-item-link-icon`}),hr));return{prevIcon:Wn,nextIcon:Hi,jumpPrevIcon:ui,jumpNextIcon:$i}},[kt,Fr]),[ur]=(0,he.Z)("Pagination",Ce.Z),Qr=Object.assign(Object.assign({},ur),de),hn=(0,be.Z)(Ct),Ln=hn==="small"||!!(lt&&!hn&&tt),pn=Ut("select",Qe),kn=M()({[`${Fr}-mini`]:Ln,[`${Fr}-rtl`]:kt==="rtl"},rr==null?void 0:rr.className,we,ye,Dr),Ki=Object.assign(Object.assign({},rr==null?void 0:rr.style),je);return kr(Ae.createElement(Le,Object.assign({},xr,De,{style:Ki,prefixCls:Fr,selectPrefixCls:pn,className:kn,selectComponentClass:st||(Ln?Xe:et),locale:Qr,showSizeChanger:Nr})))},Se=q},5112:function(An,Tt,x){"use strict";x.d(Tt,{ZP:function(){return ke}});var pe=x(92310),Ae=x.n(pe),P=x(18929),Ne=x(26112),te=x(59301),V=x(36355),S=x(19716);const g=te.createContext(null),F=g.Provider;var v=g;const $=te.createContext(null),_=$.Provider;var M=x(5630),O=x(8654),T=x(1684),L=x(32441),Y=x(17313),R=x(83116),se=x(37613);const ne=he=>{const{componentCls:Ee,antCls:Xe}=he,et=`${Ee}-group`;return{[et]:Object.assign(Object.assign({},(0,Y.Wf)(he)),{display:"inline-block",fontSize:0,[`&${et}-rtl`]:{direction:"rtl"},[`${Xe}-badge ${Xe}-badge-count`]:{zIndex:1},[`> ${Xe}-badge:not(:first-child) > ${Xe}-button-wrapper`]:{borderInlineStart:"none"}})}},J=he=>{const{componentCls:Ee,wrapperMarginInlineEnd:Xe,colorPrimary:et,radioSize:ze,motionDurationSlow:qe,motionDurationMid:_t,motionEaseInOutCirc:Lt,colorBgContainer:Nt,colorBorder:sr,lineWidth:er,dotSize:yr,colorBgContainerDisabled:lr,colorTextDisabled:G,paddingXS:dt,dotColorDisabled:I,lineType:m,radioDotDisabledSize:u,wireframe:C,colorWhite:q}=he,Se=`${Ee}-inner`;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},(0,Y.Wf)(he)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Xe,cursor:"pointer",[`&${Ee}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:he.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Ee}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${er}px ${m} ${et}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Ee]:Object.assign(Object.assign({},(0,Y.Wf)(he)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ee}-wrapper:hover &,
|
|
|
&:hover ${Se}`]:{borderColor:et},[`${Ee}-input:focus-visible + ${Se}`]:Object.assign({},(0,Y.oN)(he)),[`${Ee}:hover::after, ${Ee}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ee}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ze,height:ze,marginBlockStart:ze/-2,marginInlineStart:ze/-2,backgroundColor:C?et:q,borderBlockStart:0,borderInlineStart:0,borderRadius:ze,transform:"scale(0)",opacity:0,transition:`all ${qe} ${Lt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ze,height:ze,backgroundColor:Nt,borderColor:sr,borderStyle:"solid",borderWidth:er,borderRadius:"50%",transition:`all ${_t}`},[`${Ee}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ee}-checked`]:{[Se]:{borderColor:et,backgroundColor:C?Nt:et,"&::after":{transform:`scale(${yr/ze})`,opacity:1,transition:`all ${qe} ${Lt}`}}},[`${Ee}-disabled`]:{cursor:"not-allowed",[Se]:{backgroundColor:lr,borderColor:sr,cursor:"not-allowed","&::after":{backgroundColor:I}},[`${Ee}-input`]:{cursor:"not-allowed"},[`${Ee}-disabled + span`]:{color:G,cursor:"not-allowed"},[`&${Ee}-checked`]:{[Se]:{"&::after":{transform:`scale(${u/ze})`}}}},[`span${Ee} + *`]:{paddingInlineStart:dt,paddingInlineEnd:dt}})}},W=he=>{const{buttonColor:Ee,controlHeight:Xe,componentCls:et,lineWidth:ze,lineType:qe,colorBorder:_t,motionDurationSlow:Lt,motionDurationMid:Nt,buttonPaddingInline:sr,fontSize:er,buttonBg:yr,fontSizeLG:lr,controlHeightLG:G,controlHeightSM:dt,paddingXS:I,borderRadius:m,borderRadiusSM:u,borderRadiusLG:C,buttonCheckedBg:q,buttonSolidCheckedColor:Se,colorTextDisabled:H,colorBgContainerDisabled:ie,buttonCheckedBgDisabled:Qe,buttonCheckedColorDisabled:we,colorPrimary:ye,colorPrimaryHover:je,colorPrimaryActive:Ct,buttonSolidCheckedBg:de,buttonSolidCheckedHoverBg:st,buttonSolidCheckedActiveBg:tt}=he;return{[`${et}-button-wrapper`]:{position:"relative",display:"inline-block",height:Xe,margin:0,paddingInline:sr,paddingBlock:0,color:Ee,fontSize:er,lineHeight:`${Xe-ze*2}px`,background:yr,border:`${ze}px ${qe} ${_t}`,borderBlockStartWidth:ze+.02,borderInlineStartWidth:0,borderInlineEndWidth:ze,cursor:"pointer",transition:[`color ${Nt}`,`background ${Nt}`,`box-shadow ${Nt}`].join(","),a:{color:Ee},[`> ${et}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ze,insetInlineStart:-ze,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ze,paddingInline:0,backgroundColor:_t,transition:`background-color ${Lt}`,content:'""'}},"&:first-child":{borderInlineStart:`${ze}px ${qe} ${_t}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${et}-group-large &`]:{height:G,fontSize:lr,lineHeight:`${G-ze*2}px`,"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${et}-group-small &`]:{height:dt,paddingInline:I-ze,paddingBlock:0,lineHeight:`${dt-ze*2}px`,"&:first-child":{borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u}},"&:hover":{position:"relative",color:ye},"&:has(:focus-visible)":Object.assign({},(0,Y.oN)(he)),[`${et}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${et}-button-wrapper-disabled)`]:{zIndex:1,color:ye,background:q,borderColor:ye,"&::before":{backgroundColor:ye},"&:first-child":{borderColor:ye},"&:hover":{color:je,borderColor:je,"&::before":{backgroundColor:je}},"&:active":{color:Ct,borderColor:Ct,"&::before":{backgroundColor:Ct}}},[`${et}-group-solid &-checked:not(${et}-button-wrapper-disabled)`]:{color:Se,background:de,borderColor:de,"&:hover":{color:Se,background:st,borderColor:st},"&:active":{color:Se,background:tt,borderColor:tt}},"&-disabled":{color:H,backgroundColor:ie,borderColor:_t,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ie,borderColor:_t}},[`&-disabled${et}-button-wrapper-checked`]:{color:we,backgroundColor:Qe,borderColor:_t,boxShadow:"none"}}}},K=he=>he-4*2;var le=(0,R.Z)("Radio",he=>{const{controlOutline:Ee,controlOutlineWidth:Xe,radioSize:et}=he,ze=`0 0 0 ${Xe}px ${Ee}`,qe=ze,_t=K(et),Lt=(0,se.TS)(he,{radioDotDisabledSize:_t,radioFocusShadow:ze,radioButtonFocusShadow:qe});return[ne(Lt),J(Lt),W(Lt)]},he=>{const{wireframe:Ee,padding:Xe,marginXS:et,lineWidth:ze,fontSizeLG:qe,colorText:_t,colorBgContainer:Lt,colorTextDisabled:Nt,controlItemBgActiveDisabled:sr,colorTextLightSolid:er,colorPrimary:yr,colorPrimaryHover:lr,colorPrimaryActive:G}=he,dt=4,I=qe,m=Ee?K(I):I-(dt+ze)*2;return{radioSize:I,dotSize:m,dotColorDisabled:Nt,buttonSolidCheckedColor:er,buttonSolidCheckedBg:yr,buttonSolidCheckedHoverBg:lr,buttonSolidCheckedActiveBg:G,buttonBg:Lt,buttonCheckedBg:Lt,buttonColor:_t,buttonCheckedBgDisabled:sr,buttonCheckedColorDisabled:Nt,buttonPaddingInline:Xe-ze,wrapperMarginInlineEnd:et}}),me=x(14088),Oe=x(4572),Be=function(he,Ee){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Ee.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,et=Object.getOwnPropertySymbols(he);ze<et.length;ze++)Ee.indexOf(et[ze])<0&&Object.prototype.propertyIsEnumerable.call(he,et[ze])&&(Xe[et[ze]]=he[et[ze]]);return Xe};const Ue=(he,Ee)=>{var Xe,et;const ze=te.useContext(v),qe=te.useContext($),{getPrefixCls:_t,direction:Lt,radio:Nt}=te.useContext(V.E_),sr=te.useRef(null),er=(0,O.sQ)(Ee,sr),{isFormItemInput:yr}=te.useContext(L.aM),lr=Ct=>{var de,st;(de=he.onChange)===null||de===void 0||de.call(he,Ct),(st=ze==null?void 0:ze.onChange)===null||st===void 0||st.call(ze,Ct)},{prefixCls:G,className:dt,rootClassName:I,children:m,style:u}=he,C=Be(he,["prefixCls","className","rootClassName","children","style"]),q=_t("radio",G),Se=((ze==null?void 0:ze.optionType)||qe)==="button",H=Se?`${q}-button`:q,[ie,Qe]=le(q),we=Object.assign({},C),ye=te.useContext(T.Z);ze&&(we.name=ze.name,we.onChange=lr,we.checked=he.value===ze.value,we.disabled=(Xe=we.disabled)!==null&&Xe!==void 0?Xe:ze.disabled),we.disabled=(et=we.disabled)!==null&&et!==void 0?et:ye;const je=Ae()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:we.checked,[`${H}-wrapper-disabled`]:we.disabled,[`${H}-wrapper-rtl`]:Lt==="rtl",[`${H}-wrapper-in-form-item`]:yr},Nt==null?void 0:Nt.className,dt,I,Qe);return ie(te.createElement(me.Z,{component:"Radio",disabled:we.disabled},te.createElement("label",{className:je,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),u),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave},te.createElement(M.Z,Object.assign({},we,{className:Ae()(we.className,!Se&&Oe.A),type:"radio",prefixCls:H,ref:er})),m!==void 0?te.createElement("span",null,m):null)))};var fe=te.forwardRef(Ue);const D=te.forwardRef((he,Ee)=>{const{getPrefixCls:Xe,direction:et}=te.useContext(V.E_),[ze,qe]=(0,P.Z)(he.defaultValue,{value:he.value}),_t=de=>{const st=ze,tt=de.target.value;"value"in he||qe(tt);const{onChange:Ie}=he;Ie&&tt!==st&&Ie(de)},{prefixCls:Lt,className:Nt,rootClassName:sr,options:er,buttonStyle:yr="outline",disabled:lr,children:G,size:dt,style:I,id:m,onMouseEnter:u,onMouseLeave:C,onFocus:q,onBlur:Se}=he,H=Xe("radio",Lt),ie=`${H}-group`,[Qe,we]=le(H);let ye=G;er&&er.length>0&&(ye=er.map(de=>typeof de=="string"||typeof de=="number"?te.createElement(fe,{key:de.toString(),prefixCls:H,disabled:lr,value:de,checked:ze===de},de):te.createElement(fe,{key:`radio-group-value-options-${de.value}`,prefixCls:H,disabled:de.disabled||lr,value:de.value,checked:ze===de.value,title:de.title,style:de.style},de.label)));const je=(0,S.Z)(dt),Ct=Ae()(ie,`${ie}-${yr}`,{[`${ie}-${je}`]:je,[`${ie}-rtl`]:et==="rtl"},Nt,sr,we);return Qe(te.createElement("div",Object.assign({},(0,Ne.Z)(he,{aria:!0,data:!0}),{className:Ct,style:I,onMouseEnter:u,onMouseLeave:C,onFocus:q,onBlur:Se,id:m,ref:Ee}),te.createElement(F,{value:{onChange:_t,value:ze,disabled:he.disabled,name:he.name,optionType:he.optionType}},ye)))});var Ye=te.memo(D),Le=function(he,Ee){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Ee.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,et=Object.getOwnPropertySymbols(he);ze<et.length;ze++)Ee.indexOf(et[ze])<0&&Object.prototype.propertyIsEnumerable.call(he,et[ze])&&(Xe[et[ze]]=he[et[ze]]);return Xe};const Ce=(he,Ee)=>{const{getPrefixCls:Xe}=te.useContext(V.E_),{prefixCls:et}=he,ze=Le(he,["prefixCls"]),qe=Xe("radio",et);return te.createElement(_,{value:"button"},te.createElement(fe,Object.assign({prefixCls:qe},ze,{type:"radio",ref:Ee})))};var Te=te.forwardRef(Ce);const be=fe;be.Button=Te,be.Group=Ye,be.__ANT_RADIO=!0;var ke=be},57809:function(An,Tt,x){"use strict";var pe=x(92310),Ae=x.n(pe),P=x(77861),Ne=x(2738),te=x(59301),V=x(53487),S=x(62892),g=x(19080),F=x(36355),v=x(1684),$=x(93891),_=x(19716),M=x(32441),O=x(33234),T=x(14154),L=x(58582),Y=x(84443),R=x(66339),se=function(le,me){var Oe={};for(var Be in le)Object.prototype.hasOwnProperty.call(le,Be)&&me.indexOf(Be)<0&&(Oe[Be]=le[Be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Be=Object.getOwnPropertySymbols(le);Ue<Be.length;Ue++)me.indexOf(Be[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Be[Ue])&&(Oe[Be[Ue]]=le[Be[Ue]]);return Oe};const ne="SECRET_COMBOBOX_MODE_DO_NOT_USE",J=(le,me)=>{var Oe,{prefixCls:Be,bordered:Ue=!0,className:ee,rootClassName:fe,getPopupContainer:D,popupClassName:Ye,dropdownClassName:Le,listHeight:Ce=256,placement:Te,listItemHeight:be=24,size:ke,disabled:he,notFoundContent:Ee,status:Xe,builtinPlacements:et,dropdownMatchSelectWidth:ze,popupMatchSelectWidth:qe,direction:_t,style:Lt,allowClear:Nt}=le,sr=se(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:er,getPrefixCls:yr,renderEmpty:lr,direction:G,virtual:dt,popupMatchSelectWidth:I,popupOverflow:m,select:u}=te.useContext(F.E_),C=yr("select",Be),q=yr(),Se=_t!=null?_t:G,{compactSize:H,compactItemClassnames:ie}=(0,O.ri)(C,Se),[Qe,we]=(0,T.Z)(C),ye=te.useMemo(()=>{const{mode:Ki}=sr;if(Ki!=="combobox")return Ki===ne?"combobox":Ki},[sr.mode]),je=ye==="multiple"||ye==="tags",Ct=(0,Y.Z)(sr.suffixIcon,sr.showArrow),de=(Oe=qe!=null?qe:ze)!==null&&Oe!==void 0?Oe:I,{status:st,hasFeedback:tt,isFormItemInput:Ie,feedbackIcon:De}=te.useContext(M.aM),lt=(0,g.F)(st,Xe);let Ut;Ee!==void 0?Ut=Ee:ye==="combobox"?Ut=null:Ut=(lr==null?void 0:lr("Select"))||te.createElement($.Z,{componentName:"Select"});const{suffixIcon:kt,itemIcon:rr,removeIcon:Fr,clearIcon:kr}=(0,R.Z)(Object.assign(Object.assign({},sr),{multiple:je,hasFeedback:tt,feedbackIcon:De,showSuffixIcon:Ct,prefixCls:C,showArrow:sr.showArrow,componentName:"Select"})),Dr=Nt===!0?{clearIcon:kr}:Nt,Nr=(0,Ne.Z)(sr,["suffixIcon","itemIcon"]),xr=Ae()(Ye||Le,{[`${C}-dropdown-${Se}`]:Se==="rtl"},fe,we),ur=(0,_.Z)(Ki=>{var hr;return(hr=ke!=null?ke:H)!==null&&hr!==void 0?hr:Ki}),Qr=te.useContext(v.Z),hn=he!=null?he:Qr,Ln=Ae()({[`${C}-lg`]:ur==="large",[`${C}-sm`]:ur==="small",[`${C}-rtl`]:Se==="rtl",[`${C}-borderless`]:!Ue,[`${C}-in-form-item`]:Ie},(0,g.Z)(C,lt,tt),ie,u==null?void 0:u.className,ee,fe,we),pn=te.useMemo(()=>Te!==void 0?Te:Se==="rtl"?"bottomRight":"bottomLeft",[Te,Se]),kn=(0,L.Z)(et,m);return Qe(te.createElement(P.ZP,Object.assign({ref:me,virtual:dt,showSearch:u==null?void 0:u.showSearch},Nr,{style:Object.assign(Object.assign({},u==null?void 0:u.style),Lt),dropdownMatchSelectWidth:de,builtinPlacements:kn,transitionName:(0,S.m)(q,"slide-up",sr.transitionName),listHeight:Ce,listItemHeight:be,mode:ye,prefixCls:C,placement:pn,direction:Se,suffixIcon:kt,menuItemSelectedIcon:rr,removeIcon:Fr,allowClear:Dr,notFoundContent:Ut,className:Ln,getPopupContainer:D||er,dropdownClassName:xr,disabled:hn})))},W=te.forwardRef(J),K=(0,V.Z)(W);W.SECRET_COMBOBOX_MODE_DO_NOT_USE=ne,W.Option=P.Wx,W.OptGroup=P.Xo,W._InternalPanelDoNotUseOrYouWillBeFired=K,Tt.default=W},14154:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return W}});var pe=x(17313),Ae=x(74207),P=x(37613),Ne=x(83116),te=x(13826),V=x(92899);const S=K=>{const{optionHeight:le,optionFontSize:me,optionLineHeight:Oe,optionPadding:Be}=K;return{position:"relative",display:"block",minHeight:le,padding:Be,color:K.colorText,fontWeight:"normal",fontSize:me,lineHeight:Oe,boxSizing:"border-box"}};var F=K=>{const{antCls:le,componentCls:me}=K,Oe=`${me}-item`,Be=`&${le}-slide-up-enter${le}-slide-up-enter-active`,Ue=`&${le}-slide-up-appear${le}-slide-up-appear-active`,ee=`&${le}-slide-up-leave${le}-slide-up-leave-active`,fe=`${me}-dropdown-placement-`;return[{[`${me}-dropdown`]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{position:"absolute",top:-9999,zIndex:K.zIndexPopup,boxSizing:"border-box",padding:K.paddingXXS,overflow:"hidden",fontSize:K.fontSize,fontVariant:"initial",backgroundColor:K.colorBgElevated,borderRadius:K.borderRadiusLG,outline:"none",boxShadow:K.boxShadowSecondary,[`
|
|
|
${Be}${fe}bottomLeft,
|
|
|
${Ue}${fe}bottomLeft
|
|
|
`]:{animationName:te.fJ},[`
|
|
|
${Be}${fe}topLeft,
|
|
|
${Ue}${fe}topLeft,
|
|
|
${Be}${fe}topRight,
|
|
|
${Ue}${fe}topRight
|
|
|
`]:{animationName:te.Qt},[`${ee}${fe}bottomLeft`]:{animationName:te.Uw},[`
|
|
|
${ee}${fe}topLeft,
|
|
|
${ee}${fe}topRight
|
|
|
`]:{animationName:te.ly},"&-hidden":{display:"none"},[`${Oe}`]:Object.assign(Object.assign({},S(K)),{cursor:"pointer",transition:`background ${K.motionDurationSlow} ease`,borderRadius:K.borderRadiusSM,"&-group":{color:K.colorTextDescription,fontSize:K.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},pe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Oe}-option-disabled)`]:{backgroundColor:K.optionActiveBg},[`&-selected:not(${Oe}-option-disabled)`]:{color:K.optionSelectedColor,fontWeight:K.optionSelectedFontWeight,backgroundColor:K.optionSelectedBg,[`${Oe}-option-state`]:{color:K.colorPrimary}},"&-disabled":{[`&${Oe}-option-selected`]:{backgroundColor:K.colorBgContainerDisabled},color:K.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:K.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,te.oN)(K,"slide-up"),(0,te.oN)(K,"slide-down"),(0,V.Fm)(K,"move-up"),(0,V.Fm)(K,"move-down")]};const v=2,$=K=>{let{controlHeightSM:le,controlHeight:me,lineWidth:Oe}=K;const Be=(me-le)/2-Oe,Ue=Math.ceil(Be/2);return[Be,Ue]};function _(K,le){const{componentCls:me,iconCls:Oe}=K,Be=`${me}-selection-overflow`,Ue=K.multipleSelectItemHeight,[ee]=$(K),fe=le?`${me}-${le}`:"";return{[`${me}-multiple${fe}`]:{fontSize:K.fontSize,[Be]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${me}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ee-v}px ${v*2}px`,borderRadius:K.borderRadius,[`${me}-show-search&`]:{cursor:"text"},[`${me}-disabled&`]:{background:K.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${v}px 0`,lineHeight:`${Ue}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${me}-show-arrow ${me}-selector,
|
|
|
&${me}-allow-clear ${me}-selector
|
|
|
`]:{paddingInlineEnd:K.fontSizeIcon+K.controlPaddingHorizontal},[`${me}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ue,marginTop:v,marginBottom:v,lineHeight:`${Ue-K.lineWidth*2}px`,background:K.multipleItemBg,border:`${K.lineWidth}px ${K.lineType} ${K.multipleItemBorderColor}`,borderRadius:K.borderRadiusSM,cursor:"default",transition:`font-size ${K.motionDurationSlow}, line-height ${K.motionDurationSlow}, height ${K.motionDurationSlow}`,userSelect:"none",marginInlineEnd:v*2,paddingInlineStart:K.paddingXS,paddingInlineEnd:K.paddingXS/2,[`${me}-disabled&`]:{color:K.multipleItemColorDisabled,borderColor:K.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:K.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,pe.Ro)()),{display:"inline-flex",alignItems:"center",color:K.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Oe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:K.colorIconHover}})},[`${Be}-item + ${Be}-item`]:{[`${me}-selection-search`]:{marginInlineStart:0}},[`${me}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:K.inputPaddingHorizontalBase-ee,"\n &-input,\n &-mirror\n ":{height:Ue,fontFamily:K.fontFamily,lineHeight:`${Ue}px`,transition:`all ${K.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${me}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:K.inputPaddingHorizontalBase,insetInlineEnd:K.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${K.motionDurationSlow}`}}}}var O=K=>{const{componentCls:le}=K,me=(0,P.TS)(K,{controlHeight:K.controlHeightSM,multipleSelectItemHeight:K.controlHeightXS,borderRadius:K.borderRadiusSM,borderRadiusSM:K.borderRadiusXS}),Oe=(0,P.TS)(K,{fontSize:K.fontSizeLG,controlHeight:K.controlHeightLG,multipleSelectItemHeight:K.multipleItemHeightLG,borderRadius:K.borderRadiusLG,borderRadiusSM:K.borderRadius}),[,Be]=$(K);return[_(K),_(me,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:K.controlPaddingHorizontalSM-K.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Be}}},_(Oe,"lg")]};function T(K,le){const{componentCls:me,inputPaddingHorizontalBase:Oe,borderRadius:Be}=K,Ue=K.controlHeight-K.lineWidth*2,ee=Math.ceil(K.fontSize*1.25),fe=le?`${me}-${le}`:"";return{[`${me}-single${fe}`]:{fontSize:K.fontSize,[`${me}-selector`]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{display:"flex",borderRadius:Be,[`${me}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Oe,insetInlineEnd:Oe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${me}-selection-item,
|
|
|
${me}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Ue}px`,transition:`all ${K.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ue}px`}},[`${me}-selection-item`]:{position:"relative",userSelect:"none"},[`${me}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${me}-selection-item:after`,`${me}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${me}-show-arrow ${me}-selection-item,
|
|
|
&${me}-show-arrow ${me}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ee},[`&${me}-open ${me}-selection-item`]:{color:K.colorTextPlaceholder},[`&:not(${me}-customize-input)`]:{[`${me}-selector`]:{width:"100%",height:K.controlHeight,padding:`0 ${Oe}px`,[`${me}-selection-search-input`]:{height:Ue},"&:after":{lineHeight:`${Ue}px`}}},[`&${me}-customize-input`]:{[`${me}-selector`]:{"&:after":{display:"none"},[`${me}-selection-search`]:{position:"static",width:"100%"},[`${me}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Oe}px`,"&:after":{display:"none"}}}}}}}function L(K){const{componentCls:le}=K,me=K.controlPaddingHorizontalSM-K.lineWidth;return[T(K),T((0,P.TS)(K,{controlHeight:K.controlHeightSM,borderRadius:K.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selection-search`]:{insetInlineStart:me,insetInlineEnd:me},[`${le}-selector`]:{padding:`0 ${me}px`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:me+K.fontSize*1.5},[`
|
|
|
&${le}-show-arrow ${le}-selection-item,
|
|
|
&${le}-show-arrow ${le}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:K.fontSize*1.5}}}},T((0,P.TS)(K,{controlHeight:K.singleItemHeightLG,fontSize:K.fontSizeLG,borderRadius:K.borderRadiusLG}),"lg")]}const Y=K=>{const{componentCls:le,selectorBg:me}=K;return{position:"relative",backgroundColor:me,border:`${K.lineWidth}px ${K.lineType} ${K.colorBorder}`,transition:`all ${K.motionDurationMid} ${K.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:K.colorTextDisabled,background:K.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:K.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},R=function(K,le){let me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Oe,borderHoverColor:Be,outlineColor:Ue,antCls:ee}=le,fe=me?{[`${Oe}-selector`]:{borderColor:Be}}:{};return{[K]:{[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${ee}-pagination-size-changer)`]:Object.assign(Object.assign({},fe),{[`${Oe}-focused& ${Oe}-selector`]:{borderColor:Be,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${Ue}`,outline:0},[`&:hover ${Oe}-selector`]:{borderColor:Be}})}}},se=K=>{const{componentCls:le}=K;return{[`${le}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ne=K=>{const{componentCls:le,inputPaddingHorizontalBase:me,iconCls:Oe}=K;return{[le]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},Y(K)),se(K)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},pe.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},pe.vS),{flex:1,color:K.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,pe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:me,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Oe]:{verticalAlign:"top",transition:`transform ${K.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${le}-suffix)`]:{pointerEvents:"auto"}},[`${le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:me,zIndex:1,display:"inline-block",width:K.fontSizeIcon,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:K.clearBg,cursor:"pointer",opacity:0,transition:`color ${K.motionDurationMid} ease, opacity ${K.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:K.colorTextTertiary}},"&:hover":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:me+K.fontSize+K.paddingXS}}}},J=K=>{const{componentCls:le}=K;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},ne(K),L(K),O(K),F(K),{[`${le}-rtl`]:{direction:"rtl"}},R(le,(0,P.TS)(K,{borderHoverColor:K.colorPrimaryHover,outlineColor:K.controlOutline})),R(`${le}-status-error`,(0,P.TS)(K,{borderHoverColor:K.colorErrorHover,outlineColor:K.colorErrorOutline}),!0),R(`${le}-status-warning`,(0,P.TS)(K,{borderHoverColor:K.colorWarningHover,outlineColor:K.colorWarningOutline}),!0),(0,Ae.c)(K,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var W=(0,Ne.Z)("Select",(K,le)=>{let{rootPrefixCls:me}=le;const Oe=(0,P.TS)(K,{rootPrefixCls:me,inputPaddingHorizontalBase:K.paddingSM-1,multipleSelectItemHeight:K.multipleItemHeight});return[J(Oe)]},K=>{const{fontSize:le,lineHeight:me,controlHeight:Oe,controlPaddingHorizontal:Be,zIndexPopupBase:Ue,colorText:ee,fontWeightStrong:fe,controlItemBgActive:D,controlItemBgHover:Ye,colorBgContainer:Le,colorFillSecondary:Ce,controlHeightLG:Te,controlHeightSM:be,colorBgContainerDisabled:ke,colorTextDisabled:he}=K;return{zIndexPopup:Ue+50,optionSelectedColor:ee,optionSelectedFontWeight:fe,optionSelectedBg:D,optionActiveBg:Ye,optionPadding:`${(Oe-le*me)/2}px ${Be}px`,optionFontSize:le,optionLineHeight:me,optionHeight:Oe,selectorBg:Le,clearBg:Le,singleItemHeightLG:Te,multipleItemBg:Ce,multipleItemBorderColor:"transparent",multipleItemHeight:be,multipleItemHeightLG:Oe,multipleSelectorBgDisabled:ke,multipleItemColorDisabled:he,multipleItemBorderColorDisabled:"transparent"}})},58582:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});const pe=P=>{const te={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:P==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},te),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},te),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},te),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},te),{points:["br","tr"],offset:[0,-4]})}};function Ae(P,Ne){return P||pe(Ne)}},84443:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return pe}});function pe(Ae,P){return P!==void 0?P:Ae!==null}},66339:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(40001),Ae=x(19248),P=x(99267),Ne=x(84105),te=x(58617),V=x(47472),S=x(59301);function g(F){let{suffixIcon:v,clearIcon:$,menuItemSelectedIcon:_,removeIcon:M,loading:O,multiple:T,hasFeedback:L,prefixCls:Y,showSuffixIcon:R,feedbackIcon:se,showArrow:ne,componentName:J}=F;const W=$!=null?$:S.createElement(Ae.Z,null),K=Be=>v===null&&!L&&!ne?null:S.createElement(S.Fragment,null,R!==!1&&Be,L&&se);let le=null;if(v!==void 0)le=K(v);else if(O)le=K(S.createElement(te.Z,{spin:!0}));else{const Be=`${Y}-suffix`;le=Ue=>{let{open:ee,showSearch:fe}=Ue;return K(ee&&fe?S.createElement(V.Z,{className:Be}):S.createElement(Ne.Z,{className:Be}))}}let me=null;_!==void 0?me=_:T?me=S.createElement(pe.Z,null):me=null;let Oe=null;return M!==void 0?Oe=M:Oe=S.createElement(P.Z,null),{clearIcon:W,suffixIcon:le,itemIcon:me,removeIcon:Oe}}},61621:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return m}});var pe=x(92310),Ae=x.n(pe),P=x(59301),Ne=x(36355),te=x(2738),S=u=>{const{prefixCls:C,className:q,style:Se,size:H,shape:ie}=u,Qe=Ae()({[`${C}-lg`]:H==="large",[`${C}-sm`]:H==="small"}),we=Ae()({[`${C}-circle`]:ie==="circle",[`${C}-square`]:ie==="square",[`${C}-round`]:ie==="round"}),ye=P.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return P.createElement("span",{className:Ae()(C,Qe,we,q),style:Object.assign(Object.assign({},ye),Se)})},g=x(36237),F=x(83116),v=x(37613);const $=new g.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_=u=>({height:u,lineHeight:`${u}px`}),M=u=>Object.assign({width:u},_(u)),O=u=>({background:u.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$,animationDuration:u.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),T=u=>Object.assign({width:u*5,minWidth:u*5},_(u)),L=u=>{const{skeletonAvatarCls:C,gradientFromColor:q,controlHeight:Se,controlHeightLG:H,controlHeightSM:ie}=u;return{[`${C}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:q},M(Se)),[`${C}${C}-circle`]:{borderRadius:"50%"},[`${C}${C}-lg`]:Object.assign({},M(H)),[`${C}${C}-sm`]:Object.assign({},M(ie))}},Y=u=>{const{controlHeight:C,borderRadiusSM:q,skeletonInputCls:Se,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=u;return{[`${Se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:q},T(C)),[`${Se}-lg`]:Object.assign({},T(H)),[`${Se}-sm`]:Object.assign({},T(ie))}},R=u=>Object.assign({width:u},_(u)),se=u=>{const{skeletonImageCls:C,imageSizeBase:q,gradientFromColor:Se,borderRadiusSM:H}=u;return{[`${C}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Se,borderRadius:H},R(q*2)),{[`${C}-path`]:{fill:"#bfbfbf"},[`${C}-svg`]:Object.assign(Object.assign({},R(q)),{maxWidth:q*4,maxHeight:q*4}),[`${C}-svg${C}-svg-circle`]:{borderRadius:"50%"}}),[`${C}${C}-circle`]:{borderRadius:"50%"}}},ne=(u,C,q)=>{const{skeletonButtonCls:Se}=u;return{[`${q}${Se}-circle`]:{width:C,minWidth:C,borderRadius:"50%"},[`${q}${Se}-round`]:{borderRadius:C}}},J=u=>Object.assign({width:u*2,minWidth:u*2},_(u)),W=u=>{const{borderRadiusSM:C,skeletonButtonCls:q,controlHeight:Se,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=u;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${q}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:C,width:Se*2,minWidth:Se*2},J(Se))},ne(u,Se,q)),{[`${q}-lg`]:Object.assign({},J(H))}),ne(u,H,`${q}-lg`)),{[`${q}-sm`]:Object.assign({},J(ie))}),ne(u,ie,`${q}-sm`))},K=u=>{const{componentCls:C,skeletonAvatarCls:q,skeletonTitleCls:Se,skeletonParagraphCls:H,skeletonButtonCls:ie,skeletonInputCls:Qe,skeletonImageCls:we,controlHeight:ye,controlHeightLG:je,controlHeightSM:Ct,gradientFromColor:de,padding:st,marginSM:tt,borderRadius:Ie,titleHeight:De,blockRadius:lt,paragraphLiHeight:Ut,controlHeightXS:kt,paragraphMarginTop:rr}=u;return{[`${C}`]:{display:"table",width:"100%",[`${C}-header`]:{display:"table-cell",paddingInlineEnd:st,verticalAlign:"top",[`${q}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:de},M(ye)),[`${q}-circle`]:{borderRadius:"50%"},[`${q}-lg`]:Object.assign({},M(je)),[`${q}-sm`]:Object.assign({},M(Ct))},[`${C}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Se}`]:{width:"100%",height:De,background:de,borderRadius:lt,[`+ ${H}`]:{marginBlockStart:Ct}},[`${H}`]:{padding:0,"> li":{width:"100%",height:Ut,listStyle:"none",background:de,borderRadius:lt,"+ li":{marginBlockStart:kt}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${C}-content`]:{[`${Se}, ${H} > li`]:{borderRadius:Ie}}},[`${C}-with-avatar ${C}-content`]:{[`${Se}`]:{marginBlockStart:tt,[`+ ${H}`]:{marginBlockStart:rr}}},[`${C}${C}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},W(u)),L(u)),Y(u)),se(u)),[`${C}${C}-block`]:{width:"100%",[`${ie}`]:{width:"100%"},[`${Qe}`]:{width:"100%"}},[`${C}${C}-active`]:{[`
|
|
|
${Se},
|
|
|
${H} > li,
|
|
|
${q},
|
|
|
${ie},
|
|
|
${Qe},
|
|
|
${we}
|
|
|
`]:Object.assign({},O(u))}}};var le=(0,F.Z)("Skeleton",u=>{const{componentCls:C}=u,q=(0,v.TS)(u,{skeletonAvatarCls:`${C}-avatar`,skeletonTitleCls:`${C}-title`,skeletonParagraphCls:`${C}-paragraph`,skeletonButtonCls:`${C}-button`,skeletonInputCls:`${C}-input`,skeletonImageCls:`${C}-image`,imageSizeBase:u.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${u.gradientFromColor} 25%, ${u.gradientToColor} 37%, ${u.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[K(q)]},u=>{const{colorFillContent:C,colorFill:q}=u,Se=C,H=q;return{color:Se,colorGradientEnd:H,gradientFromColor:Se,gradientToColor:H,titleHeight:u.controlHeight/2,blockRadius:u.borderRadiusSM,paragraphMarginTop:u.marginLG+u.marginXXS,paragraphLiHeight:u.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Oe=u=>{const{prefixCls:C,className:q,rootClassName:Se,active:H,shape:ie="circle",size:Qe="default"}=u,{getPrefixCls:we}=P.useContext(Ne.E_),ye=we("skeleton",C),[je,Ct]=le(ye),de=(0,te.Z)(u,["prefixCls","className"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H},q,Se,Ct);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-avatar`,shape:ie,size:Qe},de))))},Ue=u=>{const{prefixCls:C,className:q,rootClassName:Se,active:H,block:ie=!1,size:Qe="default"}=u,{getPrefixCls:we}=P.useContext(Ne.E_),ye=we("skeleton",C),[je,Ct]=le(ye),de=(0,te.Z)(u,["prefixCls"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H,[`${ye}-block`]:ie},q,Se,Ct);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-button`,size:Qe},de))))};const ee="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var D=u=>{const{prefixCls:C,className:q,rootClassName:Se,style:H,active:ie}=u,{getPrefixCls:Qe}=P.useContext(Ne.E_),we=Qe("skeleton",C),[ye,je]=le(we),Ct=Ae()(we,`${we}-element`,{[`${we}-active`]:ie},q,Se,je);return ye(P.createElement("div",{className:Ct},P.createElement("div",{className:Ae()(`${we}-image`,q),style:H},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${we}-image-svg`},P.createElement("path",{d:ee,className:`${we}-image-path`})))))},Le=u=>{const{prefixCls:C,className:q,rootClassName:Se,active:H,block:ie,size:Qe="default"}=u,{getPrefixCls:we}=P.useContext(Ne.E_),ye=we("skeleton",C),[je,Ct]=le(ye),de=(0,te.Z)(u,["prefixCls"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H,[`${ye}-block`]:ie},q,Se,Ct);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-input`,size:Qe},de))))},Ce=x(54476),Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},be=Te,ke=x(7657),he=function(C,q){return P.createElement(ke.Z,(0,Ce.Z)({},C,{ref:q,icon:be}))},Ee=P.forwardRef(he),Xe=Ee,ze=u=>{const{prefixCls:C,className:q,rootClassName:Se,style:H,active:ie,children:Qe}=u,{getPrefixCls:we}=P.useContext(Ne.E_),ye=we("skeleton",C),[je,Ct]=le(ye),de=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:ie},Ct,q,Se),st=Qe!=null?Qe:P.createElement(Xe,null);return je(P.createElement("div",{className:de},P.createElement("div",{className:Ae()(`${ye}-image`,q),style:H},st)))},qe=x(94480),Lt=u=>{const C=we=>{const{width:ye,rows:je=2}=u;if(Array.isArray(ye))return ye[we];if(je-1===we)return ye},{prefixCls:q,className:Se,style:H,rows:ie}=u,Qe=(0,qe.Z)(Array(ie)).map((we,ye)=>P.createElement("li",{key:ye,style:{width:C(ye)}}));return P.createElement("ul",{className:Ae()(q,Se),style:H},Qe)},sr=u=>{let{prefixCls:C,className:q,width:Se,style:H}=u;return P.createElement("h3",{className:Ae()(C,q),style:Object.assign({width:Se},H)})};function er(u){return u&&typeof u=="object"?u:{}}function yr(u,C){return u&&!C?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lr(u,C){return!u&&C?{width:"38%"}:u&&C?{width:"50%"}:{}}function G(u,C){const q={};return(!u||!C)&&(q.width="61%"),!u&&C?q.rows=3:q.rows=2,q}const dt=u=>{const{prefixCls:C,loading:q,className:Se,rootClassName:H,style:ie,children:Qe,avatar:we=!1,title:ye=!0,paragraph:je=!0,active:Ct,round:de}=u,{getPrefixCls:st,direction:tt,skeleton:Ie}=P.useContext(Ne.E_),De=st("skeleton",C),[lt,Ut]=le(De);if(q||!("loading"in u)){const kt=!!we,rr=!!ye,Fr=!!je;let kr;if(kt){const xr=Object.assign(Object.assign({prefixCls:`${De}-avatar`},yr(rr,Fr)),er(we));kr=P.createElement("div",{className:`${De}-header`},P.createElement(S,Object.assign({},xr)))}let Dr;if(rr||Fr){let xr;if(rr){const Qr=Object.assign(Object.assign({prefixCls:`${De}-title`},lr(kt,Fr)),er(ye));xr=P.createElement(sr,Object.assign({},Qr))}let ur;if(Fr){const Qr=Object.assign(Object.assign({prefixCls:`${De}-paragraph`},G(kt,rr)),er(je));ur=P.createElement(Lt,Object.assign({},Qr))}Dr=P.createElement("div",{className:`${De}-content`},xr,ur)}const Nr=Ae()(De,{[`${De}-with-avatar`]:kt,[`${De}-active`]:Ct,[`${De}-rtl`]:tt==="rtl",[`${De}-round`]:de},Ie==null?void 0:Ie.className,Se,H,Ut);return lt(P.createElement("div",{className:Nr,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),ie)},kr,Dr))}return typeof Qe!="undefined"?Qe:null};dt.Button=Ue,dt.Avatar=Oe,dt.Input=Le,dt.Image=D,dt.Node=ze;var I=dt,m=I},81327:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Y}});var pe=x(59301),Ae=x(92310),P=x.n(Ae),Ne=x(11592),te=x(36355),V=x(33234);const S=pe.createContext({latestIndex:0}),g=S.Provider;var v=R=>{let{className:se,index:ne,children:J,split:W,style:K}=R;const{latestIndex:le}=pe.useContext(S);return J==null?null:pe.createElement(pe.Fragment,null,pe.createElement("div",{className:se,style:K},J),ne<le&&W&&pe.createElement("span",{className:`${se}-split`},W))},$=x(2856);function _(R){return["small","middle","large"].includes(R)}function M(R){return R?typeof R=="number"&&!Number.isNaN(R):!1}var O=function(R,se){var ne={};for(var J in R)Object.prototype.hasOwnProperty.call(R,J)&&se.indexOf(J)<0&&(ne[J]=R[J]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,J=Object.getOwnPropertySymbols(R);W<J.length;W++)se.indexOf(J[W])<0&&Object.prototype.propertyIsEnumerable.call(R,J[W])&&(ne[J[W]]=R[J[W]]);return ne};const L=pe.forwardRef((R,se)=>{var ne,J;const{getPrefixCls:W,space:K,direction:le}=pe.useContext(te.E_),{size:me=(K==null?void 0:K.size)||"small",align:Oe,className:Be,rootClassName:Ue,children:ee,direction:fe="horizontal",prefixCls:D,split:Ye,style:Le,wrap:Ce=!1,classNames:Te,styles:be}=R,ke=O(R,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[he,Ee]=Array.isArray(me)?me:[me,me],Xe=_(Ee),et=_(he),ze=M(Ee),qe=M(he),_t=(0,Ne.Z)(ee,{keepEmpty:!0}),Lt=Oe===void 0&&fe==="horizontal"?"center":Oe,Nt=W("space",D),[sr,er]=(0,$.Z)(Nt),yr=P()(Nt,K==null?void 0:K.className,er,`${Nt}-${fe}`,{[`${Nt}-rtl`]:le==="rtl",[`${Nt}-align-${Lt}`]:Lt,[`${Nt}-gap-row-${Ee}`]:Xe,[`${Nt}-gap-col-${he}`]:et},Be,Ue),lr=P()(`${Nt}-item`,(ne=Te==null?void 0:Te.item)!==null&&ne!==void 0?ne:(J=K==null?void 0:K.classNames)===null||J===void 0?void 0:J.item);let G=0;const dt=_t.map((u,C)=>{var q,Se;u!=null&&(G=C);const H=u&&u.key||`${lr}-${C}`;return pe.createElement(v,{className:lr,key:H,index:C,split:Ye,style:(q=be==null?void 0:be.item)!==null&&q!==void 0?q:(Se=K==null?void 0:K.styles)===null||Se===void 0?void 0:Se.item},u)}),I=pe.useMemo(()=>({latestIndex:G}),[G]);if(_t.length===0)return null;const m={};return Ce&&(m.flexWrap="wrap"),!et&&qe&&(m.columnGap=he),!Xe&&ze&&(m.rowGap=Ee),sr(pe.createElement("div",Object.assign({ref:se,className:yr,style:Object.assign(Object.assign(Object.assign({},m),K==null?void 0:K.style),Le)},ke),pe.createElement(g,{value:I},dt)))});L.Compact=V.ZP;var Y=L},8378:function(An,Tt){"use strict";const x=pe=>({[pe.componentCls]:{[`${pe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${pe.motionDurationMid} ${pe.motionEaseInOut},
|
|
|
opacity ${pe.motionDurationMid} ${pe.motionEaseInOut} !important`}},[`${pe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${pe.motionDurationMid} ${pe.motionEaseInOut},
|
|
|
opacity ${pe.motionDurationMid} ${pe.motionEaseInOut} !important`}}});Tt.Z=x},92899:function(An,Tt,x){"use strict";x.d(Tt,{Fm:function(){return _}});var pe=x(36237),Ae=x(95406);const P=new pe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ne=new pe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),te=new pe.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new pe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),S=new pe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new pe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),F=new pe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new pe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),$={"move-up":{inKeyframes:F,outKeyframes:v},"move-down":{inKeyframes:P,outKeyframes:Ne},"move-left":{inKeyframes:te,outKeyframes:V},"move-right":{inKeyframes:S,outKeyframes:g}},_=(M,O)=>{const{antCls:T}=M,L=`${T}-${O}`,{inKeyframes:Y,outKeyframes:R}=$[O];return[(0,Ae.R)(L,Y,R,M.motionDurationMid),{[`
|
|
|
${L}-enter,
|
|
|
${L}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:M.motionEaseOutCirc},[`${L}-leave`]:{animationTimingFunction:M.motionEaseInOutCirc}}]}},13826:function(An,Tt,x){"use strict";x.d(Tt,{Qt:function(){return te},Uw:function(){return Ne},fJ:function(){return P},ly:function(){return V},oN:function(){return _}});var pe=x(36237),Ae=x(95406);const P=new pe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ne=new pe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),te=new pe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),V=new pe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S=new pe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),g=new pe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),F=new pe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),v=new pe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$={"slide-up":{inKeyframes:P,outKeyframes:Ne},"slide-down":{inKeyframes:te,outKeyframes:V},"slide-left":{inKeyframes:S,outKeyframes:g},"slide-right":{inKeyframes:F,outKeyframes:v}},_=(M,O)=>{const{antCls:T}=M,L=`${T}-${O}`,{inKeyframes:Y,outKeyframes:R}=$[O];return[(0,Ae.R)(L,Y,R,M.motionDurationMid),{[`
|
|
|
${L}-enter,
|
|
|
${L}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:M.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${L}-leave`]:{animationTimingFunction:M.motionEaseInQuint}}]}},15969:function(An,Tt,x){"use strict";x.d(Tt,{N:function(){return pe}});const pe=Ae=>({color:Ae.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ae.motionDurationSlow}`,"&:focus, &:hover":{color:Ae.colorLinkHover},"&:active":{color:Ae.colorLinkActive}})},1710:function(An,Tt,x){"use strict";x.d(Tt,{default:function(){return C0}});var pe={},Ae="rc-table-internal-hook",P=x(42978),Ne=x(6089),te=x(34280),V=x(13697),S=x(59301),g=x(4676);function F(ue){var xe=S.createContext(void 0),Je=function(Bt){var bt=Bt.value,$t=Bt.children,zt=S.useRef(bt);zt.current=bt;var Qt=S.useState(function(){return{getValue:function(){return zt.current},listeners:new Set}}),dr=(0,P.Z)(Qt,1),Ir=dr[0];return(0,te.Z)(function(){(0,g.unstable_batchedUpdates)(function(){Ir.listeners.forEach(function(mr){mr(bt)})})},[bt]),S.createElement(xe.Provider,{value:Ir},$t)};return{Context:xe,Provider:Je,defaultValue:ue}}function v(ue,xe){var Je=(0,Ne.Z)(typeof xe=="function"?xe:function(mr){if(xe===void 0)return mr;if(!Array.isArray(xe))return mr[xe];var tn={};return xe.forEach(function(Vr){tn[Vr]=mr[Vr]}),tn}),ct=S.useContext(ue==null?void 0:ue.Context),Bt=ct||{},bt=Bt.listeners,$t=Bt.getValue,zt=S.useRef();zt.current=Je(ct?$t():ue==null?void 0:ue.defaultValue);var Qt=S.useState({}),dr=(0,P.Z)(Qt,2),Ir=dr[1];return(0,te.Z)(function(){if(!ct)return;function mr(tn){var Vr=Je(tn);(0,V.Z)(zt.current,Vr,!0)||Ir({})}return bt.add(mr),function(){bt.delete(mr)}},[ct]),zt.current}var $=x(54476),_=x(8654);function M(){var ue=S.createContext(null);function xe(){return S.useContext(ue)}function Je(Bt,bt){var $t=(0,_.Yr)(Bt),zt=function(dr,Ir){var mr=$t?{ref:Ir}:{},tn=S.useRef(0),Vr=S.useRef(dr),Yr=xe();return Yr!==null?S.createElement(Bt,(0,$.Z)({},dr,mr)):((!bt||bt(Vr.current,dr))&&(tn.current+=1),Vr.current=dr,S.createElement(ue.Provider,{value:tn.current},S.createElement(Bt,(0,$.Z)({},dr,mr))))};return $t?S.forwardRef(zt):zt}function ct(Bt,bt){var $t=(0,_.Yr)(Bt),zt=function(dr,Ir){var mr=$t?{ref:Ir}:{};return xe(),S.createElement(Bt,(0,$.Z)({},dr,mr))};return $t?S.memo(S.forwardRef(zt),bt):S.memo(zt,bt)}return{makeImmutable:Je,responseImmutable:ct,useImmutableMark:xe}}var O=M(),T=O.makeImmutable,L=O.responseImmutable,Y=O.useImmutableMark,R=M(),se=R.makeImmutable,ne=R.responseImmutable,J=R.useImmutableMark,W=F(),K=W;function le(ue,xe){var Je=S.useRef(0);Je.current+=1;var ct=S.useRef(ue),Bt=[];Object.keys(ue||{}).map(function($t){var zt;(ue==null?void 0:ue[$t])!==((zt=ct.current)===null||zt===void 0?void 0:zt[$t])&&Bt.push($t)}),ct.current=ue;var bt=S.useRef([]);return Bt.length&&(bt.current=Bt),S.useDebugValue(Je.current),S.useDebugValue(bt.current.join(", ")),xe&&console.log("".concat(xe,":"),Je.current,bt.current),Je.current}var me=null,Oe=S.memo(function(){var ue=le();return S.createElement("h1",null,"Render Times: ",ue)});Oe.displayName="RenderBlock";var Be=x(76190),Ue=x(33885),ee=x(20068),fe=x(92310),D=x.n(fe),Ye=x(80547),Le=x(97938),Ce=x(48736),Te=S.createContext({renderWithProps:!1}),be=Te,ke="RC_TABLE_KEY";function he(ue){return ue==null?[]:Array.isArray(ue)?ue:[ue]}function Ee(ue){var xe=[],Je={};return ue.forEach(function(ct){for(var Bt=ct||{},bt=Bt.key,$t=Bt.dataIndex,zt=bt||he($t).join("-")||ke;Je[zt];)zt="".concat(zt,"_next");Je[zt]=!0,xe.push(zt)}),xe}function Xe(ue){return ue!=null}function et(ue){return ue&&(0,Be.Z)(ue)==="object"&&!Array.isArray(ue)&&!S.isValidElement(ue)}function ze(ue,xe,Je,ct,Bt,bt){var $t=S.useContext(be),zt=J(),Qt=(0,Ye.Z)(function(){if(Xe(ct))return[ct];var dr=xe==null||xe===""?[]:Array.isArray(xe)?xe:[xe],Ir=(0,Le.Z)(ue,dr),mr=Ir,tn=void 0;if(Bt){var Vr=Bt(Ir,ue,Je);et(Vr)?(mr=Vr.children,tn=Vr.props,$t.renderWithProps=!0):mr=Vr}return[mr,tn]},[zt,ue,ct,xe,Bt,Je],function(dr,Ir){if(bt){var mr=(0,P.Z)(dr,2),tn=mr[1],Vr=(0,P.Z)(Ir,2),Yr=Vr[1];return bt(Yr,tn)}return $t.renderWithProps?!0:!(0,V.Z)(dr,Ir,!0)});return Qt}function qe(ue,xe,Je,ct){var Bt=ue+xe-1;return ue<=ct&&Bt>=Je}function _t(ue,xe){return v(K,function(Je){var ct=qe(ue,xe||1,Je.hoverStartRow,Je.hoverEndRow);return[ct,Je.onHover]})}var Lt=function(xe){var Je=xe.ellipsis,ct=xe.rowType,Bt=xe.children,bt,$t=Je===!0?{showTitle:!0}:Je;return $t&&($t.showTitle||ct==="header")&&(typeof Bt=="string"||typeof Bt=="number"?bt=Bt.toString():S.isValidElement(Bt)&&typeof Bt.props.children=="string"&&(bt=Bt.props.children)),bt};function Nt(ue){var xe,Je,ct,Bt,bt,$t,zt,Qt,dr=ue.component,Ir=ue.children,mr=ue.ellipsis,tn=ue.scope,Vr=ue.prefixCls,Yr=ue.className,On=ue.align,wn=ue.record,In=ue.render,Cn=ue.dataIndex,zn=ue.renderIndex,Ti=ue.shouldCellUpdate,ji=ue.index,hi=ue.rowType,na=ue.colSpan,wa=ue.rowSpan,Jn=ue.fixLeft,mi=ue.fixRight,ai=ue.firstFixLeft,Pn=ue.lastFixLeft,oi=ue.firstFixRight,Vi=ue.lastFixRight,Pa=ue.appendNode,ma=ue.additionalProps,Wi=ma===void 0?{}:ma,Ia=ue.isSticky,Ka="".concat(Vr,"-cell"),es=v(K,["supportSticky","allColumnsFixedLeft"]),lo=es.supportSticky,ys=es.allColumnsFixedLeft,As=ze(wn,Cn,zn,Ir,In,Ti),ga=(0,P.Z)(As,2),ol=ga[0],go=ga[1],ts={},ns=typeof Jn=="number"&&lo,wc=typeof mi=="number"&&lo;ns&&(ts.position="sticky",ts.left=Jn),wc&&(ts.position="sticky",ts.right=mi);var si=(xe=(Je=(ct=go==null?void 0:go.colSpan)!==null&&ct!==void 0?ct:Wi.colSpan)!==null&&Je!==void 0?Je:na)!==null&&xe!==void 0?xe:1,Gi=(Bt=(bt=($t=go==null?void 0:go.rowSpan)!==null&&$t!==void 0?$t:Wi.rowSpan)!==null&&bt!==void 0?bt:wa)!==null&&Bt!==void 0?Bt:1,zi=_t(ji,Gi),Di=(0,P.Z)(zi,2),yo=Di[0],Ni=Di[1],Aa=function(Kn){var Ac;wn&&Ni(ji,ji+Gi-1),Wi==null||(Ac=Wi.onMouseEnter)===null||Ac===void 0||Ac.call(Wi,Kn)},$a=function(Kn){var Ac;wn&&Ni(-1,-1),Wi==null||(Ac=Wi.onMouseLeave)===null||Ac===void 0||Ac.call(Wi,Kn)};if(si===0||Gi===0)return null;var Wa=(zt=Wi.title)!==null&&zt!==void 0?zt:Lt({rowType:hi,ellipsis:mr,children:ol}),Fl=D()(Ka,Yr,(Qt={},(0,ee.Z)(Qt,"".concat(Ka,"-fix-left"),ns&&lo),(0,ee.Z)(Qt,"".concat(Ka,"-fix-left-first"),ai&&lo),(0,ee.Z)(Qt,"".concat(Ka,"-fix-left-last"),Pn&&lo),(0,ee.Z)(Qt,"".concat(Ka,"-fix-left-all"),Pn&&ys&&lo),(0,ee.Z)(Qt,"".concat(Ka,"-fix-right"),wc&&lo),(0,ee.Z)(Qt,"".concat(Ka,"-fix-right-first"),oi&&lo),(0,ee.Z)(Qt,"".concat(Ka,"-fix-right-last"),Vi&&lo),(0,ee.Z)(Qt,"".concat(Ka,"-ellipsis"),mr),(0,ee.Z)(Qt,"".concat(Ka,"-with-append"),Pa),(0,ee.Z)(Qt,"".concat(Ka,"-fix-sticky"),(ns||wc)&&Ia&&lo),(0,ee.Z)(Qt,"".concat(Ka,"-row-hover"),!go&&yo),Qt),Wi.className,go==null?void 0:go.className),nl={};On&&(nl.textAlign=On);var Gc=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},ts),Wi.style),nl),go==null?void 0:go.style),Rs=ol;return(0,Be.Z)(Rs)==="object"&&!Array.isArray(Rs)&&!S.isValidElement(Rs)&&(Rs=null),mr&&(Pn||oi)&&(Rs=S.createElement("span",{className:"".concat(Ka,"-content")},Rs)),S.createElement(dr,(0,$.Z)({},go,Wi,{className:Fl,style:Gc,title:Wa,scope:tn,onMouseEnter:Aa,onMouseLeave:$a,colSpan:si!==1?si:null,rowSpan:Gi!==1?Gi:null}),Pa,Rs)}var sr=S.memo(Nt);function er(ue,xe,Je,ct,Bt,bt){var $t=Je[ue]||{},zt=Je[xe]||{},Qt,dr;$t.fixed==="left"?Qt=ct.left[Bt==="rtl"?xe:ue]:zt.fixed==="right"&&(dr=ct.right[Bt==="rtl"?ue:xe]);var Ir=!1,mr=!1,tn=!1,Vr=!1,Yr=Je[xe+1],On=Je[ue-1],wn=!(bt!=null&&bt.children);if(Bt==="rtl"){if(Qt!==void 0){var In=On&&On.fixed==="left";Vr=!In&&wn}else if(dr!==void 0){var Cn=Yr&&Yr.fixed==="right";tn=!Cn&&wn}}else if(Qt!==void 0){var zn=Yr&&Yr.fixed==="left";Ir=!zn&&wn}else if(dr!==void 0){var Ti=On&&On.fixed==="right";mr=!Ti&&wn}return{fixLeft:Qt,fixRight:dr,lastFixLeft:Ir,firstFixRight:mr,lastFixRight:tn,firstFixLeft:Vr,isSticky:ct.isSticky}}var yr=S.createContext({}),lr=yr;function G(ue){var xe=ue.className,Je=ue.index,ct=ue.children,Bt=ue.colSpan,bt=Bt===void 0?1:Bt,$t=ue.rowSpan,zt=ue.align,Qt=v(K,["prefixCls","direction"]),dr=Qt.prefixCls,Ir=Qt.direction,mr=S.useContext(lr),tn=mr.scrollColumnIndex,Vr=mr.stickyOffsets,Yr=mr.flattenColumns,On=mr.columns,wn=Je+bt-1,In=wn+1===tn?bt+1:bt,Cn=er(Je,Je+In-1,Yr,Vr,Ir,On==null?void 0:On[Je]);return S.createElement(sr,(0,$.Z)({className:xe,index:Je,component:"td",prefixCls:dr,record:null,dataIndex:null,align:zt,colSpan:In,rowSpan:$t,render:function(){return ct}},Cn))}var dt=x(75931),I=["children"];function m(ue){var xe=ue.children,Je=(0,dt.Z)(ue,I);return S.createElement("tr",Je,xe)}function u(ue){var xe=ue.children;return xe}u.Row=m,u.Cell=G;var C=u;function q(ue){var xe=ue.children,Je=ue.stickyOffsets,ct=ue.flattenColumns,Bt=ue.columns,bt=v(K,"prefixCls"),$t=ct.length-1,zt=ct[$t],Qt=S.useMemo(function(){return{stickyOffsets:Je,flattenColumns:ct,scrollColumnIndex:zt!=null&&zt.scrollbar?$t:null,columns:Bt}},[zt,ct,$t,Je,Bt]);return S.createElement(lr.Provider,{value:Qt},S.createElement("tfoot",{className:"".concat(bt,"-summary")},xe))}var Se=ne(q),H=C,ie=x(70425),Qe=x(29301),we=x(29194),ye=x(24514),je=x(75152),Ct=x(26112);function de(ue,xe,Je,ct,Bt,bt,$t){ue.push({record:xe,indent:Je,index:$t});var zt=bt(xe),Qt=Bt==null?void 0:Bt.has(zt);if(xe&&Array.isArray(xe[ct])&&Qt)for(var dr=0;dr<xe[ct].length;dr+=1)de(ue,xe[ct][dr],Je+1,ct,Bt,bt,dr)}function st(ue,xe,Je,ct){var Bt=S.useMemo(function(){if(Je!=null&&Je.size){for(var bt=[],$t=0;$t<(ue==null?void 0:ue.length);$t+=1){var zt=ue[$t];de(bt,zt,0,xe,Je,ct,$t)}return bt}return ue==null?void 0:ue.map(function(Qt,dr){return{record:Qt,indent:0,index:dr}})},[ue,xe,Je,ct]);return Bt}function tt(ue){var xe=ue.prefixCls,Je=ue.children,ct=ue.component,Bt=ue.cellComponent,bt=ue.className,$t=ue.expanded,zt=ue.colSpan,Qt=ue.isEmpty,dr=v(K,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ir=dr.scrollbarSize,mr=dr.fixHeader,tn=dr.fixColumn,Vr=dr.componentWidth,Yr=dr.horizonScroll,On=Je;return(Qt?Yr&&Vr:tn)&&(On=S.createElement("div",{style:{width:Vr-(mr?Ir:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(xe,"-expanded-row-fixed")},On)),S.createElement(ct,{className:bt,style:{display:$t?null:"none"}},S.createElement(sr,{component:Bt,prefixCls:xe,colSpan:zt},On))}var Ie=tt;function De(ue,xe,Je,ct){var Bt=v(K,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),bt=Bt.flattenColumns,$t=Bt.expandableType,zt=Bt.expandedKeys,Qt=Bt.childrenColumnName,dr=Bt.onTriggerExpand,Ir=Bt.rowExpandable,mr=Bt.onRow,tn=Bt.expandRowByClick,Vr=Bt.rowClassName,Yr=$t==="nest",On=$t==="row"&&(!Ir||Ir(ue)),wn=On||Yr,In=zt&&zt.has(xe),Cn=Qt&&ue&&ue[Qt],zn=(0,ie.useEvent)(dr),Ti=mr==null?void 0:mr(ue,Je),ji=Ti==null?void 0:Ti.onClick,hi=function(mi){tn&&wn&&dr(ue,mi);for(var ai=arguments.length,Pn=new Array(ai>1?ai-1:0),oi=1;oi<ai;oi++)Pn[oi-1]=arguments[oi];ji==null||ji.apply(void 0,[mi].concat(Pn))},na;typeof Vr=="string"?na=Vr:typeof Vr=="function"&&(na=Vr(ue,Je,ct));var wa=Ee(bt);return(0,Ue.Z)((0,Ue.Z)({},Bt),{},{columnsKey:wa,nestExpandable:Yr,expanded:In,hasNestChildren:Cn,record:ue,onTriggerExpand:zn,rowSupportExpand:On,expandable:wn,rowProps:(0,Ue.Z)((0,Ue.Z)({},Ti),{},{className:D()(na,Ti==null?void 0:Ti.className),onClick:hi})})}function lt(ue,xe,Je,ct,Bt){var bt=ue.record,$t=ue.prefixCls,zt=ue.columnsKey,Qt=ue.fixedInfoList,dr=ue.expandIconColumnIndex,Ir=ue.nestExpandable,mr=ue.indentSize,tn=ue.expandIcon,Vr=ue.expanded,Yr=ue.hasNestChildren,On=ue.onTriggerExpand,wn=zt[Je],In=Qt[Je],Cn;Je===(dr||0)&&Ir&&(Cn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(mr*ct,"px")},className:"".concat($t,"-row-indent indent-level-").concat(ct)}),tn({prefixCls:$t,expanded:Vr,expandable:Yr,record:bt,onExpand:On})));var zn;return xe.onCell&&(zn=xe.onCell(bt,Bt)),{key:wn,fixedInfo:In,appendCellNode:Cn,additionalCellProps:zn||{}}}function Ut(ue){var xe=ue.className,Je=ue.style,ct=ue.record,Bt=ue.index,bt=ue.renderIndex,$t=ue.rowKey,zt=ue.indent,Qt=zt===void 0?0:zt,dr=ue.rowComponent,Ir=ue.cellComponent,mr=ue.scopeCellComponent,tn=De(ct,$t,Bt,Qt),Vr=tn.prefixCls,Yr=tn.flattenColumns,On=tn.expandedRowClassName,wn=tn.expandedRowRender,In=tn.rowProps,Cn=tn.expanded,zn=tn.rowSupportExpand,Ti=S.useState(!1),ji=(0,P.Z)(Ti,2),hi=ji[0],na=ji[1];S.useEffect(function(){Cn&&na(!0)},[Cn]);var wa=S.createElement(dr,(0,$.Z)({},In,{"data-row-key":$t,className:D()(xe,"".concat(Vr,"-row"),"".concat(Vr,"-row-level-").concat(Qt),In==null?void 0:In.className),style:(0,Ue.Z)((0,Ue.Z)({},Je),In==null?void 0:In.style)}),Yr.map(function(Pn,oi){var Vi=Pn.render,Pa=Pn.dataIndex,ma=Pn.className,Wi=lt(tn,Pn,oi,Qt,Bt),Ia=Wi.key,Ka=Wi.fixedInfo,es=Wi.appendCellNode,lo=Wi.additionalCellProps;return S.createElement(sr,(0,$.Z)({className:ma,ellipsis:Pn.ellipsis,align:Pn.align,scope:Pn.rowScope,component:Pn.rowScope?mr:Ir,prefixCls:Vr,key:Ia,record:ct,index:Bt,renderIndex:bt,dataIndex:Pa,render:Vi,shouldCellUpdate:Pn.shouldCellUpdate},Ka,{appendNode:es,additionalProps:lo}))})),Jn;if(zn&&(hi||Cn)){var mi=wn(ct,Bt,Qt+1,Cn),ai=On&&On(ct,Bt,Qt);Jn=S.createElement(Ie,{expanded:Cn,className:D()("".concat(Vr,"-expanded-row"),"".concat(Vr,"-expanded-row-level-").concat(Qt+1),ai),prefixCls:Vr,component:dr,cellComponent:Ir,colSpan:Yr.length,isEmpty:!1},mi)}return S.createElement(S.Fragment,null,wa,Jn)}Ut.displayName="BodyRow";var kt=ne(Ut);function rr(ue){var xe=ue.columnKey,Je=ue.onColumnResize,ct=S.useRef();return S.useEffect(function(){ct.current&&Je(xe,ct.current.offsetWidth)},[]),S.createElement(Qe.Z,{data:xe},S.createElement("td",{ref:ct,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Fr(ue){var xe=ue.prefixCls,Je=ue.columnsKey,ct=ue.onColumnResize;return S.createElement("tr",{"aria-hidden":"true",className:"".concat(xe,"-measure-row"),style:{height:0,fontSize:0}},S.createElement(Qe.Z.Collection,{onBatchResize:function(bt){bt.forEach(function($t){var zt=$t.data,Qt=$t.size;ct(zt,Qt.offsetWidth)})}},Je.map(function(Bt){return S.createElement(rr,{key:Bt,columnKey:Bt,onColumnResize:ct})})))}function kr(ue){var xe=ue.data,Je=ue.measureColumnWidth,ct=v(K,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Bt=ct.prefixCls,bt=ct.getComponent,$t=ct.onColumnResize,zt=ct.flattenColumns,Qt=ct.getRowKey,dr=ct.expandedKeys,Ir=ct.childrenColumnName,mr=ct.emptyNode,tn=st(xe,Ir,dr,Qt),Vr=S.useRef({renderWithProps:!1}),Yr=bt(["body","wrapper"],"tbody"),On=bt(["body","row"],"tr"),wn=bt(["body","cell"],"td"),In=bt(["body","cell"],"th"),Cn;xe.length?Cn=tn.map(function(Ti,ji){var hi=Ti.record,na=Ti.indent,wa=Ti.index,Jn=Qt(hi,ji);return S.createElement(kt,{key:Jn,rowKey:Jn,record:hi,index:ji,renderIndex:wa,rowComponent:On,cellComponent:wn,scopeCellComponent:In,getRowKey:Qt,indent:na})}):Cn=S.createElement(Ie,{expanded:!0,className:"".concat(Bt,"-placeholder"),prefixCls:Bt,component:On,cellComponent:wn,colSpan:zt.length,isEmpty:!0},mr);var zn=Ee(zt);return S.createElement(be.Provider,{value:Vr.current},S.createElement(Yr,{className:"".concat(Bt,"-tbody")},Je&&S.createElement(Fr,{prefixCls:Bt,columnsKey:zn,onColumnResize:$t}),Cn))}kr.displayName="Body";var Dr=ne(kr),Nr=["expandable"],xr="RC_TABLE_INTERNAL_COL_DEFINE";function ur(ue){var xe=ue.expandable,Je=(0,dt.Z)(ue,Nr),ct;return"expandable"in ue?ct=(0,Ue.Z)((0,Ue.Z)({},Je),xe):ct=Je,ct.showExpandColumn===!1&&(ct.expandIconColumnIndex=-1),ct}var Qr=["columnType"];function hn(ue){for(var xe=ue.colWidths,Je=ue.columns,ct=ue.columCount,Bt=[],bt=ct||Je.length,$t=!1,zt=bt-1;zt>=0;zt-=1){var Qt=xe[zt],dr=Je&&Je[zt],Ir=dr&&dr[xr];if(Qt||Ir||$t){var mr=Ir||{},tn=mr.columnType,Vr=(0,dt.Z)(mr,Qr);Bt.unshift(S.createElement("col",(0,$.Z)({key:zt,style:{width:Qt}},Vr))),$t=!0}}return S.createElement("colgroup",null,Bt)}var Ln=hn,pn=x(94480),kn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ki(ue,xe){return(0,S.useMemo)(function(){for(var Je=[],ct=0;ct<xe;ct+=1){var Bt=ue[ct];if(Bt!==void 0)Je[ct]=Bt;else return null}return Je},[ue.join("_"),xe])}var hr=S.forwardRef(function(ue,xe){var Je=ue.className,ct=ue.noData,Bt=ue.columns,bt=ue.flattenColumns,$t=ue.colWidths,zt=ue.columCount,Qt=ue.stickyOffsets,dr=ue.direction,Ir=ue.fixHeader,mr=ue.stickyTopOffset,tn=ue.stickyBottomOffset,Vr=ue.stickyClassName,Yr=ue.onScroll,On=ue.maxContentScroll,wn=ue.children,In=(0,dt.Z)(ue,kn),Cn=v(K,["prefixCls","scrollbarSize","isSticky"]),zn=Cn.prefixCls,Ti=Cn.scrollbarSize,ji=Cn.isSticky,hi=ji&&!Ir?0:Ti,na=S.useRef(null),wa=S.useCallback(function(ma){(0,_.mH)(xe,ma),(0,_.mH)(na,ma)},[]);S.useEffect(function(){var ma;function Wi(Ia){var Ka=Ia,es=Ka.currentTarget,lo=Ka.deltaX;lo&&(Yr({currentTarget:es,scrollLeft:es.scrollLeft+lo}),Ia.preventDefault())}return(ma=na.current)===null||ma===void 0||ma.addEventListener("wheel",Wi),function(){var Ia;(Ia=na.current)===null||Ia===void 0||Ia.removeEventListener("wheel",Wi)}},[]);var Jn=S.useMemo(function(){return bt.every(function(ma){return ma.width})},[bt]),mi=bt[bt.length-1],ai={fixed:mi?mi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(zn,"-cell-scrollbar")}}},Pn=(0,S.useMemo)(function(){return hi?[].concat((0,pn.Z)(Bt),[ai]):Bt},[hi,Bt]),oi=(0,S.useMemo)(function(){return hi?[].concat((0,pn.Z)(bt),[ai]):bt},[hi,bt]),Vi=(0,S.useMemo)(function(){var ma=Qt.right,Wi=Qt.left;return(0,Ue.Z)((0,Ue.Z)({},Qt),{},{left:dr==="rtl"?[].concat((0,pn.Z)(Wi.map(function(Ia){return Ia+hi})),[0]):Wi,right:dr==="rtl"?ma:[].concat((0,pn.Z)(ma.map(function(Ia){return Ia+hi})),[0]),isSticky:ji})},[hi,Qt,ji]),Pa=Ki($t,zt);return S.createElement("div",{style:(0,Ue.Z)({overflow:"hidden"},ji?{top:mr,bottom:tn}:{}),ref:wa,className:D()(Je,(0,ee.Z)({},Vr,!!Vr))},S.createElement("table",{style:{tableLayout:"fixed",visibility:ct||Pa?null:"hidden"}},(!ct||!On||Jn)&&S.createElement(Ln,{colWidths:Pa?[].concat((0,pn.Z)(Pa),[hi]):[],columCount:zt+1,columns:oi}),wn((0,Ue.Z)((0,Ue.Z)({},In),{},{stickyOffsets:Vi,columns:Pn,flattenColumns:oi}))))});hr.displayName="FixedHolder";var Wn=S.memo(hr);function Hi(ue){var xe=ue.cells,Je=ue.stickyOffsets,ct=ue.flattenColumns,Bt=ue.rowComponent,bt=ue.cellComponent,$t=ue.tdCellComponent,zt=ue.onHeaderRow,Qt=ue.index,dr=v(K,["prefixCls","direction"]),Ir=dr.prefixCls,mr=dr.direction,tn;zt&&(tn=zt(xe.map(function(Yr){return Yr.column}),Qt));var Vr=Ee(xe.map(function(Yr){return Yr.column}));return S.createElement(Bt,tn,xe.map(function(Yr,On){var wn=Yr.column,In=er(Yr.colStart,Yr.colEnd,ct,Je,mr,wn),Cn;return wn&&wn.onHeaderCell&&(Cn=Yr.column.onHeaderCell(wn)),S.createElement(sr,(0,$.Z)({},Yr,{scope:wn.title?Yr.colSpan>1?"colgroup":"col":null,ellipsis:wn.ellipsis,align:wn.align,component:wn.title?bt:$t,prefixCls:Ir,key:Vr[On]},In,{additionalProps:Cn,rowType:"header"}))}))}Hi.displayName="HeaderRow";var ui=Hi;function $i(ue){var xe=[];function Je($t,zt){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;xe[Qt]=xe[Qt]||[];var dr=zt,Ir=$t.filter(Boolean).map(function(mr){var tn={key:mr.key,className:mr.className||"",children:mr.title,column:mr,colStart:dr},Vr=1,Yr=mr.children;return Yr&&Yr.length>0&&(Vr=Je(Yr,dr,Qt+1).reduce(function(On,wn){return On+wn},0),tn.hasSubColumns=!0),"colSpan"in mr&&(Vr=mr.colSpan),"rowSpan"in mr&&(tn.rowSpan=mr.rowSpan),tn.colSpan=Vr,tn.colEnd=tn.colStart+Vr-1,xe[Qt].push(tn),dr+=Vr,Vr});return Ir}Je(ue,0);for(var ct=xe.length,Bt=function(zt){xe[zt].forEach(function(Qt){!("rowSpan"in Qt)&&!Qt.hasSubColumns&&(Qt.rowSpan=ct-zt)})},bt=0;bt<ct;bt+=1)Bt(bt);return xe}function Ri(ue){var xe=ue.stickyOffsets,Je=ue.columns,ct=ue.flattenColumns,Bt=ue.onHeaderRow,bt=v(K,["prefixCls","getComponent"]),$t=bt.prefixCls,zt=bt.getComponent,Qt=S.useMemo(function(){return $i(Je)},[Je]),dr=zt(["header","wrapper"],"thead"),Ir=zt(["header","row"],"tr"),mr=zt(["header","cell"],"th"),tn=zt(["header","cell"],"td");return S.createElement(dr,{className:"".concat($t,"-thead")},Qt.map(function(Vr,Yr){var On=S.createElement(ui,{key:Yr,flattenColumns:ct,cells:Vr,stickyOffsets:xe,rowComponent:Ir,cellComponent:mr,tdCellComponent:tn,onHeaderRow:Bt,index:Yr});return On}))}var Zi=ne(Ri),Za=x(11592);function _i(ue){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof xe=="number"?xe:xe.endsWith("%")?ue*parseFloat(xe)/100:null}function Yn(ue,xe){return S.useMemo(function(){if(xe&&xe>0){var Je=0,ct=0;ue.forEach(function(dr){var Ir=_i(xe,dr.width);Ir?Je+=Ir:ct+=1});var Bt=xe-Je,bt=ct,$t=Bt/ct,zt=0,Qt=ue.map(function(dr){var Ir=(0,Ue.Z)({},dr),mr=_i(xe,Ir.width);if(mr)Ir.width=mr;else{var tn=Math.floor($t);Ir.width=bt===1?Bt:tn,Bt-=tn,bt-=1}return zt+=Ir.width,Ir});return[Qt,zt]}return[ue,xe]},[ue,xe])}var ii=["children"],vi=["fixed"];function ge(ue){return(0,Za.Z)(ue).filter(function(xe){return S.isValidElement(xe)}).map(function(xe){var Je=xe.key,ct=xe.props,Bt=ct.children,bt=(0,dt.Z)(ct,ii),$t=(0,Ue.Z)({key:Je},bt);return Bt&&($t.children=ge(Bt)),$t})}function Me(ue){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ue.filter(function(Je){return Je&&(0,Be.Z)(Je)==="object"}).reduce(function(Je,ct,Bt){var bt=ct.fixed,$t=bt===!0?"left":bt,zt="".concat(xe,"-").concat(Bt),Qt=ct.children;return Qt&&Qt.length>0?[].concat((0,pn.Z)(Je),(0,pn.Z)(Me(Qt,zt).map(function(dr){return(0,Ue.Z)({fixed:$t},dr)}))):[].concat((0,pn.Z)(Je),[(0,Ue.Z)((0,Ue.Z)({key:zt},ct),{},{fixed:$t})])},[])}function Fe(ue){for(var xe=!0,Je=0;Je<ue.length;Je+=1){var ct=ue[Je];if(xe&&ct.fixed!=="left")xe=!1;else if(!xe&&ct.fixed==="left"){warning(!1,"Index ".concat(Je-1," of `columns` missing `fixed='left'` prop."));break}}for(var Bt=!0,bt=ue.length-1;bt>=0;bt-=1){var $t=ue[bt];if(Bt&&$t.fixed!=="right")Bt=!1;else if(!Bt&&$t.fixed==="right"){warning(!1,"Index ".concat(bt+1," of `columns` missing `fixed='right'` prop."));break}}}function Ge(ue){return ue.map(function(xe){var Je=xe.fixed,ct=(0,dt.Z)(xe,vi),Bt=Je;return Je==="left"?Bt="right":Je==="right"&&(Bt="left"),(0,Ue.Z)({fixed:Bt},ct)})}function Pt(ue,xe){var Je=ue.prefixCls,ct=ue.columns,Bt=ue.children,bt=ue.expandable,$t=ue.expandedKeys,zt=ue.columnTitle,Qt=ue.getRowKey,dr=ue.onTriggerExpand,Ir=ue.expandIcon,mr=ue.rowExpandable,tn=ue.expandIconColumnIndex,Vr=ue.direction,Yr=ue.expandRowByClick,On=ue.columnWidth,wn=ue.fixed,In=ue.scrollWidth,Cn=S.useMemo(function(){return ct||ge(Bt)},[ct,Bt]),zn=S.useMemo(function(){if(bt){var mi,ai=Cn.slice();if(!ai.includes(pe)){var Pn=tn||0;Pn>=0&&ai.splice(Pn,0,pe)}var oi=ai.indexOf(pe);ai=ai.filter(function(Wi,Ia){return Wi!==pe||Ia===oi});var Vi=Cn[oi],Pa;(wn==="left"||wn)&&!tn?Pa="left":(wn==="right"||wn)&&tn===Cn.length?Pa="right":Pa=Vi?Vi.fixed:null;var ma=(mi={},(0,ee.Z)(mi,xr,{className:"".concat(Je,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ee.Z)(mi,"title",zt),(0,ee.Z)(mi,"fixed",Pa),(0,ee.Z)(mi,"className","".concat(Je,"-row-expand-icon-cell")),(0,ee.Z)(mi,"width",On),(0,ee.Z)(mi,"render",function(Ia,Ka,es){var lo=Qt(Ka,es),ys=$t.has(lo),As=mr?mr(Ka):!0,ga=Ir({prefixCls:Je,expanded:ys,expandable:As,record:Ka,onExpand:dr});return Yr?S.createElement("span",{onClick:function(go){return go.stopPropagation()}},ga):ga}),mi);return ai.map(function(Wi){return Wi===pe?ma:Wi})}return Cn.filter(function(Wi){return Wi!==pe})},[bt,Cn,Qt,$t,Ir,Vr]),Ti=S.useMemo(function(){var mi=zn;return xe&&(mi=xe(mi)),mi.length||(mi=[{render:function(){return null}}]),mi},[xe,zn,Vr]),ji=S.useMemo(function(){return Vr==="rtl"?Ge(Me(Ti)):Me(Ti)},[Ti,Vr,In]),hi=Yn(ji,In),na=(0,P.Z)(hi,2),wa=na[0],Jn=na[1];return[Ti,wa,Jn]}var Dt=Pt;function _r(ue){var xe,Je=ue.prefixCls,ct=ue.record,Bt=ue.onExpand,bt=ue.expanded,$t=ue.expandable,zt="".concat(Je,"-row-expand-icon");if(!$t)return S.createElement("span",{className:D()(zt,"".concat(Je,"-row-spaced"))});var Qt=function(Ir){Bt(ct,Ir),Ir.stopPropagation()};return S.createElement("span",{className:D()(zt,(xe={},(0,ee.Z)(xe,"".concat(Je,"-row-expanded"),bt),(0,ee.Z)(xe,"".concat(Je,"-row-collapsed"),!bt),xe)),onClick:Qt})}function nr(ue,xe,Je){var ct=[];function Bt(bt){(bt||[]).forEach(function($t,zt){ct.push(xe($t,zt)),Bt($t[Je])})}return Bt(ue),ct}function Or(ue,xe,Je){var ct=ur(ue),Bt=ct.expandIcon,bt=ct.expandedRowKeys,$t=ct.defaultExpandedRowKeys,zt=ct.defaultExpandAllRows,Qt=ct.expandedRowRender,dr=ct.onExpand,Ir=ct.onExpandedRowsChange,mr=ct.childrenColumnName,tn=Bt||_r,Vr=mr||"children",Yr=S.useMemo(function(){return Qt?"row":ue.expandable&&ue.internalHooks===Ae&&ue.expandable.__PARENT_RENDER_ICON__||xe.some(function(ji){return ji&&(0,Be.Z)(ji)==="object"&&ji[Vr]})?"nest":!1},[!!Qt,xe]),On=S.useState(function(){return $t||(zt?nr(xe,Je,Vr):[])}),wn=(0,P.Z)(On,2),In=wn[0],Cn=wn[1],zn=S.useMemo(function(){return new Set(bt||In||[])},[bt,In]),Ti=S.useCallback(function(ji){var hi=Je(ji,xe.indexOf(ji)),na,wa=zn.has(hi);wa?(zn.delete(hi),na=(0,pn.Z)(zn)):na=[].concat((0,pn.Z)(zn),[hi]),Cn(na),dr&&dr(!wa,ji),Ir&&Ir(na)},[Je,zn,xe,dr,Ir]);return[ct,Yr,zn,tn,Vr,Ti]}function Hr(ue,xe,Je,ct){var Bt=ue.map(function(bt,$t){return er($t,$t,ue,xe,Je,ct==null?void 0:ct[$t])});return(0,Ye.Z)(function(){return Bt},[Bt],function(bt,$t){return!(0,V.Z)(bt,$t)})}function an(ue){var xe=(0,S.useRef)(ue),Je=(0,S.useState)({}),ct=(0,P.Z)(Je,2),Bt=ct[1],bt=(0,S.useRef)(null),$t=(0,S.useRef)([]);function zt(Qt){$t.current.push(Qt);var dr=Promise.resolve();bt.current=dr,dr.then(function(){if(bt.current===dr){var Ir=$t.current,mr=xe.current;$t.current=[],Ir.forEach(function(tn){xe.current=tn(xe.current)}),bt.current=null,mr!==xe.current&&Bt({})}})}return(0,S.useEffect)(function(){return function(){bt.current=null}},[]),[xe.current,zt]}function jr(ue){var xe=(0,S.useRef)(ue||null),Je=(0,S.useRef)();function ct(){window.clearTimeout(Je.current)}function Bt($t){xe.current=$t,ct(),Je.current=window.setTimeout(function(){xe.current=null,Je.current=void 0},100)}function bt(){return xe.current}return(0,S.useEffect)(function(){return ct},[]),[Bt,bt]}function Rr(){var ue=S.useState(-1),xe=(0,P.Z)(ue,2),Je=xe[0],ct=xe[1],Bt=S.useState(-1),bt=(0,P.Z)(Bt,2),$t=bt[0],zt=bt[1],Qt=S.useCallback(function(dr,Ir){ct(dr),zt(Ir)},[]);return[Je,$t,Qt]}var en=x(47273),yn=(0,en.Z)()?window:null;function on(ue,xe){var Je=(0,Be.Z)(ue)==="object"?ue:{},ct=Je.offsetHeader,Bt=ct===void 0?0:ct,bt=Je.offsetSummary,$t=bt===void 0?0:bt,zt=Je.offsetScroll,Qt=zt===void 0?0:zt,dr=Je.getContainer,Ir=dr===void 0?function(){return yn}:dr,mr=Ir()||yn;return S.useMemo(function(){var tn=!!ue;return{isSticky:tn,stickyClassName:tn?"".concat(xe,"-sticky-holder"):"",offsetHeader:Bt,offsetSummary:$t,offsetScroll:Qt,container:mr}},[Qt,Bt,$t,xe,mr])}function Dn(ue,xe,Je){var ct=(0,S.useMemo)(function(){for(var Bt=[],bt=[],$t=0,zt=0,Qt=0;Qt<xe;Qt+=1)if(Je==="rtl"){bt[Qt]=zt,zt+=ue[Qt]||0;var dr=xe-Qt-1;Bt[dr]=$t,$t+=ue[dr]||0}else{Bt[Qt]=$t,$t+=ue[Qt]||0;var Ir=xe-Qt-1;bt[Ir]=zt,zt+=ue[Ir]||0}return{left:Bt,right:bt}},[ue,xe,Je]);return ct}var Rn=Dn;function di(ue){var xe=ue.className,Je=ue.children;return S.createElement("div",{className:xe},Je)}var Nn=di,Gn=x(8224),Vt=x(55468),Xt=function(xe,Je){var ct,Bt,bt=xe.scrollBodyRef,$t=xe.onScroll,zt=xe.offsetScroll,Qt=xe.container,dr=v(K,"prefixCls"),Ir=((ct=bt.current)===null||ct===void 0?void 0:ct.scrollWidth)||0,mr=((Bt=bt.current)===null||Bt===void 0?void 0:Bt.clientWidth)||0,tn=Ir&&mr*(mr/Ir),Vr=S.useRef(),Yr=an({scrollLeft:0,isHiddenScrollBar:!1}),On=(0,P.Z)(Yr,2),wn=On[0],In=On[1],Cn=S.useRef({delta:0,x:0}),zn=S.useState(!1),Ti=(0,P.Z)(zn,2),ji=Ti[0],hi=Ti[1],na=function(){hi(!1)},wa=function(oi){oi.persist(),Cn.current.delta=oi.pageX-wn.scrollLeft,Cn.current.x=0,hi(!0),oi.preventDefault()},Jn=function(oi){var Vi,Pa=oi||((Vi=window)===null||Vi===void 0?void 0:Vi.event),ma=Pa.buttons;if(!ji||ma===0){ji&&hi(!1);return}var Wi=Cn.current.x+oi.pageX-Cn.current.x-Cn.current.delta;Wi<=0&&(Wi=0),Wi+tn>=mr&&(Wi=mr-tn),$t({scrollLeft:Wi/mr*(Ir+2)}),Cn.current.x=oi.pageX},mi=function(){if(bt.current){var oi=(0,Vt.os)(bt.current).top,Vi=oi+bt.current.offsetHeight,Pa=Qt===window?document.documentElement.scrollTop+window.innerHeight:(0,Vt.os)(Qt).top+Qt.clientHeight;Vi-(0,je.Z)()<=Pa||oi>=Pa-zt?In(function(ma){return(0,Ue.Z)((0,Ue.Z)({},ma),{},{isHiddenScrollBar:!0})}):In(function(ma){return(0,Ue.Z)((0,Ue.Z)({},ma),{},{isHiddenScrollBar:!1})})}},ai=function(oi){In(function(Vi){return(0,Ue.Z)((0,Ue.Z)({},Vi),{},{scrollLeft:oi/Ir*mr||0})})};return S.useImperativeHandle(Je,function(){return{setScrollLeft:ai}}),S.useEffect(function(){var Pn=(0,Gn.Z)(document.body,"mouseup",na,!1),oi=(0,Gn.Z)(document.body,"mousemove",Jn,!1);return mi(),function(){Pn.remove(),oi.remove()}},[tn,ji]),S.useEffect(function(){var Pn=(0,Gn.Z)(Qt,"scroll",mi,!1),oi=(0,Gn.Z)(window,"resize",mi,!1);return function(){Pn.remove(),oi.remove()}},[Qt]),S.useEffect(function(){wn.isHiddenScrollBar||In(function(Pn){var oi=bt.current;return oi?(0,Ue.Z)((0,Ue.Z)({},Pn),{},{scrollLeft:oi.scrollLeft/oi.scrollWidth*oi.clientWidth}):Pn})},[wn.isHiddenScrollBar]),Ir<=mr||!tn||wn.isHiddenScrollBar?null:S.createElement("div",{style:{height:(0,je.Z)(),width:mr,bottom:zt},className:"".concat(dr,"-sticky-scroll")},S.createElement("div",{onMouseDown:wa,ref:Vr,className:D()("".concat(dr,"-sticky-scroll-bar"),(0,ee.Z)({},"".concat(dr,"-sticky-scroll-bar-active"),ji)),style:{width:"".concat(tn,"px"),transform:"translate3d(".concat(wn.scrollLeft,"px, 0, 0)")}}))},Yt=S.forwardRef(Xt);function tr(ue){return null}var jt=tr;function or(ue){return null}var cr=or,Pr="rc-table",bn=[],xn={};function ci(){return"No Data"}function ri(ue){var xe,Je=(0,Ue.Z)({rowKey:"key",prefixCls:Pr,emptyText:ci},ue),ct=Je.prefixCls,Bt=Je.className,bt=Je.rowClassName,$t=Je.style,zt=Je.data,Qt=Je.rowKey,dr=Je.scroll,Ir=Je.tableLayout,mr=Je.direction,tn=Je.title,Vr=Je.footer,Yr=Je.summary,On=Je.caption,wn=Je.id,In=Je.showHeader,Cn=Je.components,zn=Je.emptyText,Ti=Je.onRow,ji=Je.onHeaderRow,hi=Je.internalHooks,na=Je.transformColumns,wa=Je.internalRefs,Jn=Je.tailor,mi=Je.sticky,ai=zt||bn,Pn=!!ai.length,oi=hi===Ae,Vi=S.useCallback(function(uo,wo){return(0,Le.Z)(Cn,uo)||wo},[Cn]),Pa=S.useMemo(function(){return typeof Qt=="function"?Qt:function(uo){var wo=uo&&uo[Qt];return wo}},[Qt]),ma=Vi(["body"]),Wi=Rr(),Ia=(0,P.Z)(Wi,3),Ka=Ia[0],es=Ia[1],lo=Ia[2],ys=Or(Je,ai,Pa),As=(0,P.Z)(ys,6),ga=As[0],ol=As[1],go=As[2],ts=As[3],ns=As[4],wc=As[5],si=dr==null?void 0:dr.x,Gi=S.useState(0),zi=(0,P.Z)(Gi,2),Di=zi[0],yo=zi[1],Ni=Dt((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Je),ga),{},{expandable:!!ga.expandedRowRender,columnTitle:ga.columnTitle,expandedKeys:go,getRowKey:Pa,onTriggerExpand:wc,expandIcon:ts,expandIconColumnIndex:ga.expandIconColumnIndex,direction:mr,scrollWidth:oi&&Jn&&typeof si=="number"?si:null}),oi?na:null),Aa=(0,P.Z)(Ni,3),$a=Aa[0],Wa=Aa[1],Fl=Aa[2],nl=Fl!=null?Fl:si,Gc=S.useMemo(function(){return{columns:$a,flattenColumns:Wa}},[$a,Wa]),Rs=S.useRef(),Tc=S.useRef(),Kn=S.useRef(),Ac=S.useRef(),Mu=S.useRef(),co=S.useState(!1),dn=(0,P.Z)(co,2),Mo=dn[0],Al=dn[1],us=S.useState(!1),ia=(0,P.Z)(us,2),Bl=ia[0],$l=ia[1],Uc=an(new Map),xc=(0,P.Z)(Uc,2),Sl=xc[0],ul=xc[1],ou=Ee(Wa),Ml=ou.map(function(uo){return Sl.get(uo)}),Qs=S.useMemo(function(){return Ml},[Ml.join("_")]),El=Rn(Qs,Wa.length,mr),il=dr&&Xe(dr.y),ks=dr&&Xe(nl)||!!ga.fixed,Cc=ks&&Wa.some(function(uo){var wo=uo.fixed;return wo}),wA=S.useRef(),TA=on(mi,ct),xA=TA.isSticky,hf=TA.offsetHeader,Vf=TA.offsetSummary,ao=TA.offsetScroll,Wo=TA.stickyClassName,Zl=TA.container,ds=S.useMemo(function(){return Yr==null?void 0:Yr(ai)},[Yr,ai]),Ll=(il||xA)&&S.isValidElement(ds)&&ds.type===C&&ds.props.fixed,Vl,Js,CA;il&&(Js={overflowY:"scroll",maxHeight:dr.y}),ks&&(Vl={overflowX:"auto"},il||(Js={overflowY:"hidden"}),CA={width:nl===!0?"auto":nl,minWidth:"100%"});var pf=S.useCallback(function(uo,wo){(0,we.Z)(Rs.current)&&ul(function(rA){if(rA.get(uo)!==wo){var lu=new Map(rA);return lu.set(uo,wo),lu}return rA})},[]),mf=jr(null),td=(0,P.Z)(mf,2),Ao=td[0],_s=td[1];function BA(uo,wo){wo&&(typeof wo=="function"?wo(uo):wo.scrollLeft!==uo&&(wo.scrollLeft=uo,wo.scrollLeft!==uo&&setTimeout(function(){wo.scrollLeft=uo},0)))}var SA=(0,Ne.Z)(function(uo){var wo=uo.currentTarget,rA=uo.scrollLeft,lu=mr==="rtl",XA=typeof rA=="number"?rA:wo.scrollLeft,B0=wo||xn;if(!_s()||_s()===B0){var kl;Ao(B0),BA(XA,Tc.current),BA(XA,Kn.current),BA(XA,Mu.current),BA(XA,(kl=wA.current)===null||kl===void 0?void 0:kl.setScrollLeft)}var EA=wo||Tc.current;if(EA){var Fh=EA.scrollWidth,qf=EA.clientWidth;if(Fh===qf){Al(!1),$l(!1);return}lu?(Al(-XA<Fh-qf),$l(-XA>0)):(Al(XA>0),$l(XA<Fh-qf))}}),Wl=function(){ks&&Kn.current?SA({currentTarget:Kn.current}):(Al(!1),$l(!1))},Wf=function(wo){var rA=wo.width;rA!==Di&&(Wl(),yo(Rs.current?Rs.current.offsetWidth:rA))},UA=S.useRef(!1);S.useEffect(function(){UA.current&&Wl()},[ks,zt,$a.length]),S.useEffect(function(){UA.current=!0},[]);var Gf=S.useState(0),Xf=(0,P.Z)(Gf,2),rd=Xf[0],Dd=Xf[1],Nd=S.useState(!0),nd=(0,P.Z)(Nd,2),zr=nd[0],Od=nd[1];S.useEffect(function(){(!Jn||!oi)&&(Kn.current instanceof Element?Dd((0,je.o)(Kn.current).width):Dd((0,je.o)(Ac.current).width)),Od((0,ye.G)("position","sticky"))},[]),S.useEffect(function(){oi&&wa&&(wa.body.current=Kn.current)});var gf=S.useCallback(function(uo){return S.createElement(S.Fragment,null,S.createElement(Zi,uo),Ll==="top"&&S.createElement(Se,uo,ds))},[Ll,ds]),Jf=S.useCallback(function(uo){return S.createElement(Se,uo,ds)},[ds]),vf=Vi(["table"],"table"),_h=S.useMemo(function(){return Ir||(Cc?nl==="max-content"?"auto":"fixed":il||xA||Wa.some(function(uo){var wo=uo.ellipsis;return wo})?"fixed":"auto")},[il,Cc,Wa,Ir,xA]),Ih,Yf={colWidths:Qs,columCount:Wa.length,stickyOffsets:El,onHeaderRow:ji,fixHeader:il,scroll:dr},bl=S.useMemo(function(){return Pn?null:typeof zn=="function"?zn():zn},[Pn,zn]),Lu=S.createElement(Dr,{data:ai,measureColumnWidth:il||ks||xA}),bf=S.createElement(Ln,{colWidths:Wa.map(function(uo){var wo=uo.width;return wo}),columns:Wa}),id=On!=null?S.createElement("caption",{className:"".concat(ct,"-caption")},On):void 0,yf=(0,Ct.Z)(Je,{data:!0}),RA=(0,Ct.Z)(Je,{aria:!0});if(il||xA){var su;typeof ma=="function"?(su=ma(ai,{scrollbarSize:rd,ref:Kn,onScroll:SA}),Yf.colWidths=Wa.map(function(uo,wo){var rA=uo.width,lu=wo===Wa.length-1?rA-rd:rA;return typeof lu=="number"&&!Number.isNaN(lu)?lu:0})):su=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Vl),Js),onScroll:SA,ref:Kn,className:D()("".concat(ct,"-body"))},S.createElement(vf,(0,$.Z)({style:(0,Ue.Z)((0,Ue.Z)({},CA),{},{tableLayout:_h})},RA),id,bf,Lu,!Ll&&ds&&S.createElement(Se,{stickyOffsets:El,flattenColumns:Wa,columns:$a},ds)));var fs=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({noData:!ai.length,maxContentScroll:ks&&nl==="max-content"},Yf),Gc),{},{direction:mr,stickyClassName:Wo,onScroll:SA});Ih=S.createElement(S.Fragment,null,In!==!1&&S.createElement(Wn,(0,$.Z)({},fs,{stickyTopOffset:hf,className:"".concat(ct,"-header"),ref:Tc}),gf),su,Ll&&Ll!=="top"&&S.createElement(Wn,(0,$.Z)({},fs,{stickyBottomOffset:Vf,className:"".concat(ct,"-summary"),ref:Mu}),Jf),xA&&S.createElement(Yt,{ref:wA,offsetScroll:ao,scrollBodyRef:Kn,onScroll:SA,container:Zl}))}else Ih=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Vl),Js),className:D()("".concat(ct,"-content")),onScroll:SA,ref:Kn},S.createElement(vf,(0,$.Z)({style:(0,Ue.Z)((0,Ue.Z)({},CA),{},{tableLayout:_h})},RA),id,bf,In!==!1&&S.createElement(Zi,(0,$.Z)({},Yf,Gc)),Lu,ds&&S.createElement(Se,{stickyOffsets:El,flattenColumns:Wa,columns:$a},ds)));var Rc=S.createElement("div",(0,$.Z)({className:D()(ct,Bt,(xe={},(0,ee.Z)(xe,"".concat(ct,"-rtl"),mr==="rtl"),(0,ee.Z)(xe,"".concat(ct,"-ping-left"),Mo),(0,ee.Z)(xe,"".concat(ct,"-ping-right"),Bl),(0,ee.Z)(xe,"".concat(ct,"-layout-fixed"),Ir==="fixed"),(0,ee.Z)(xe,"".concat(ct,"-fixed-header"),il),(0,ee.Z)(xe,"".concat(ct,"-fixed-column"),Cc),(0,ee.Z)(xe,"".concat(ct,"-scroll-horizontal"),ks),(0,ee.Z)(xe,"".concat(ct,"-has-fix-left"),Wa[0]&&Wa[0].fixed),(0,ee.Z)(xe,"".concat(ct,"-has-fix-right"),Wa[Wa.length-1]&&Wa[Wa.length-1].fixed==="right"),xe)),style:$t,id:wn,ref:Rs},yf),tn&&S.createElement(Nn,{className:"".concat(ct,"-title")},tn(ai)),S.createElement("div",{ref:Ac,className:"".concat(ct,"-container")},Ih),Vr&&S.createElement(Nn,{className:"".concat(ct,"-footer")},Vr(ai)));ks&&(Rc=S.createElement(Qe.Z,{onResize:Wf},Rc));var Gl=Hr(Wa,El,mr,$a),ku=S.useMemo(function(){return{scrollX:nl,prefixCls:ct,getComponent:Vi,scrollbarSize:rd,direction:mr,fixedInfoList:Gl,isSticky:xA,supportSticky:zr,componentWidth:Di,fixHeader:il,fixColumn:Cc,horizonScroll:ks,tableLayout:_h,rowClassName:bt,expandedRowClassName:ga.expandedRowClassName,expandIcon:ts,expandableType:ol,expandRowByClick:ga.expandRowByClick,expandedRowRender:ga.expandedRowRender,onTriggerExpand:wc,expandIconColumnIndex:ga.expandIconColumnIndex,indentSize:ga.indentSize,allColumnsFixedLeft:Wa.every(function(uo){return uo.fixed==="left"}),emptyNode:bl,columns:$a,flattenColumns:Wa,onColumnResize:pf,hoverStartRow:Ka,hoverEndRow:es,onHover:lo,rowExpandable:ga.rowExpandable,onRow:Ti,getRowKey:Pa,expandedKeys:go,childrenColumnName:ns}},[nl,ct,Vi,rd,mr,Gl,xA,zr,Di,il,Cc,ks,_h,bt,ga.expandedRowClassName,ts,ol,ga.expandRowByClick,ga.expandedRowRender,wc,ga.expandIconColumnIndex,ga.indentSize,bl,$a,Wa,pf,Ka,es,lo,ga.rowExpandable,Ti,Pa,go,ns]);return S.createElement(K.Provider,{value:ku},Rc)}function Si(ue){return se(ri,ue)}var qn=Si();qn.EXPAND_COLUMN=pe,qn.INTERNAL_HOOKS=Ae,qn.Column=jt,qn.ColumnGroup=cr,qn.Summary=H;var jn=qn,yi=x(48911),bi=F(null),wi=F(null);function Ai(ue,xe,Je){var ct=xe||1;return Je[ue+ct]-(Je[ue]||0)}function xi(ue){var xe=ue.rowInfo,Je=ue.column,ct=ue.colIndex,Bt=ue.indent,bt=ue.index,$t=ue.renderIndex,zt=ue.record,Qt=ue.style,dr=ue.className,Ir=ue.inverse,mr=ue.getHeight,tn=Je.render,Vr=Je.dataIndex,Yr=Je.className,On=Je.width,wn=v(wi,["columnsOffset"]),In=wn.columnsOffset,Cn=lt(xe,Je,ct,Bt,bt),zn=Cn.key,Ti=Cn.fixedInfo,ji=Cn.appendCellNode,hi=Cn.additionalCellProps,na=hi.style,wa=hi.colSpan,Jn=wa===void 0?1:wa,mi=hi.rowSpan,ai=mi===void 0?1:mi,Pn=ct-1,oi=Ai(Pn,Jn,In),Vi=Jn>1?On-oi:0,Pa=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},na),Qt),{},{flex:"0 0 ".concat(oi,"px"),width:"".concat(oi,"px"),marginRight:Vi,pointerEvents:"auto"}),ma=S.useMemo(function(){return Ir?ai<=1:Jn===0||ai===0||ai>1},[ai,Jn,Ir]);ma?Pa.visibility="hidden":Ir&&(Pa.height=mr==null?void 0:mr(ai));var Wi=ma?function(){return null}:tn,Ia={};return(ai===0||Jn===0)&&(Ia.rowSpan=1,Ia.colSpan=1),S.createElement(sr,(0,$.Z)({className:D()(Yr,dr),ellipsis:Je.ellipsis,align:Je.align,scope:Je.rowScope,component:"div",prefixCls:xe.prefixCls,key:zn,record:zt,index:bt,renderIndex:$t,dataIndex:Vr,render:Wi,shouldCellUpdate:Je.shouldCellUpdate},Ti,{appendNode:ji,additionalProps:(0,Ue.Z)((0,Ue.Z)({},hi),{},{style:Pa},Ia)}))}var Xi=xi,ti=["data","index","className","rowKey","style","extra","getHeight"],Pi=S.forwardRef(function(ue,xe){var Je=ue.data,ct=ue.index,Bt=ue.className,bt=ue.rowKey,$t=ue.style,zt=ue.extra,Qt=ue.getHeight,dr=(0,dt.Z)(ue,ti),Ir=Je.record,mr=Je.indent,tn=Je.index,Vr=v(K,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Yr=Vr.scrollX,On=Vr.flattenColumns,wn=Vr.prefixCls,In=Vr.fixColumn,Cn=Vr.componentWidth,zn=De(Ir,bt,ct,mr),Ti=zn.rowSupportExpand,ji=zn.expanded,hi=zn.rowProps,na=zn.expandedRowRender,wa=zn.expandedRowClassName,Jn;if(Ti&&ji){var mi=na(Ir,ct,mr+1,ji),ai=wa==null?void 0:wa(Ir,ct,mr),Pn={};In&&(Pn={style:(0,ee.Z)({},"--virtual-width","".concat(Cn,"px"))});var oi="".concat(wn,"-expanded-row-cell");Jn=S.createElement("div",{className:D()("".concat(wn,"-expanded-row"),"".concat(wn,"-expanded-row-level-").concat(mr+1),ai)},S.createElement(sr,{component:"div",prefixCls:wn,className:D()(oi,(0,ee.Z)({},"".concat(oi,"-fixed"),In)),additionalProps:Pn},mi))}var Vi=(0,Ue.Z)((0,Ue.Z)({},$t),{},{width:Yr});zt&&(Vi.position="absolute",Vi.pointerEvents="none");var Pa=S.createElement("div",(0,$.Z)({},hi,dr,{ref:Ti?null:xe,className:D()(Bt,"".concat(wn,"-row"),hi==null?void 0:hi.className,(0,ee.Z)({},"".concat(wn,"-row-extra"),zt)),style:(0,Ue.Z)((0,Ue.Z)({},Vi),hi==null?void 0:hi.style)}),On.map(function(ma,Wi){return S.createElement(Xi,{key:Wi,rowInfo:zn,column:ma,colIndex:Wi,indent:mr,index:ct,renderIndex:tn,record:Ir,inverse:zt,getHeight:Qt})}));return Ti?S.createElement("div",{ref:xe},Pa,Jn):Pa}),za=ne(Pi),li=za,un=S.forwardRef(function(ue,xe){var Je=ue.data,ct=ue.onScroll,Bt=v(K,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),bt=Bt.flattenColumns,$t=Bt.onColumnResize,zt=Bt.getRowKey,Qt=Bt.expandedKeys,dr=Bt.prefixCls,Ir=Bt.childrenColumnName,mr=Bt.emptyNode,tn=Bt.scrollX,Vr=v(bi),Yr=Vr.scrollY,On=Vr.listItemHeight,wn=S.useRef(),In=st(Je,Ir,Qt,zt),Cn=S.useMemo(function(){var Jn=0;return bt.map(function(mi){var ai=mi.width,Pn=mi.key;return Jn+=ai,[Pn,ai,Jn]})},[bt]),zn=S.useMemo(function(){return Cn.map(function(Jn){return Jn[2]})},[Cn]);S.useEffect(function(){Cn.forEach(function(Jn){var mi=(0,P.Z)(Jn,2),ai=mi[0],Pn=mi[1];$t(ai,Pn)})},[Cn]),S.useImperativeHandle(xe,function(){var Jn={};return Object.defineProperty(Jn,"scrollLeft",{get:function(){var ai;return((ai=wn.current)===null||ai===void 0?void 0:ai.getScrollInfo().x)||0},set:function(ai){var Pn;(Pn=wn.current)===null||Pn===void 0||Pn.scrollTo({left:ai})}}),Jn});var Ti=function(mi,ai){var Pn,oi=(Pn=In[ai])===null||Pn===void 0?void 0:Pn.record,Vi=mi.onCell;if(Vi){var Pa,ma=Vi(oi,ai);return(Pa=ma==null?void 0:ma.rowSpan)!==null&&Pa!==void 0?Pa:1}return 1},ji=function(mi){var ai=mi.start,Pn=mi.end,oi=mi.getSize,Vi=mi.offsetY;if(Pn<0)return null;for(var Pa=bt.filter(function(si){return Ti(si,ai)===0}),ma=ai,Wi=function(Gi){if(Pa=Pa.filter(function(zi){return Ti(zi,Gi)===0}),!Pa.length)return ma=Gi,"break"},Ia=ai;Ia>=0;Ia-=1){var Ka=Wi(Ia);if(Ka==="break")break}for(var es=bt.filter(function(si){return Ti(si,Pn)!==1}),lo=Pn,ys=function(Gi){if(es=es.filter(function(zi){return Ti(zi,Gi)!==1}),!es.length)return lo=Math.max(Gi-1,Pn),"break"},As=Pn;As<In.length;As+=1){var ga=ys(As);if(ga==="break")break}for(var ol=[],go=function(Gi){var zi=In[Gi];if(!zi)return"continue";bt.some(function(Di){return Ti(Di,Gi)>1})&&ol.push(Gi)},ts=ma;ts<=lo;ts+=1)var ns=go(ts);var wc=ol.map(function(si){var Gi=In[si],zi=zt(Gi.record,si),Di=function(Aa){var $a=si+Aa-1,Wa=zt(In[$a].record,$a),Fl=oi(zi,Wa);return Fl.bottom-Fl.top},yo=oi(zi);return S.createElement(li,{key:si,data:Gi,rowKey:zi,index:si,style:{top:-Vi+yo.top},extra:!0,getHeight:Di})});return wc},hi=S.useMemo(function(){return{columnsOffset:zn}},[zn]),na="".concat(dr,"-tbody"),wa;return In.length?wa=S.createElement(yi.Z,{fullHeight:!1,ref:wn,className:D()(na,"".concat(na,"-virtual")),height:Yr,itemHeight:On||24,data:In,itemKey:function(mi){return zt(mi.record)},scrollWidth:tn,onVirtualScroll:function(mi){var ai=mi.x;ct({scrollLeft:ai})},extraRender:ji},function(Jn,mi,ai){var Pn=zt(Jn.record,mi);return S.createElement(li,(0,$.Z)({data:Jn,rowKey:Pn,index:mi},ai))}):wa=S.createElement("div",{className:D()("".concat(dr,"-placeholder"))},S.createElement(sr,{component:"div",prefixCls:dr},mr)),S.createElement(wi.Provider,{value:hi},wa)}),sn=ne(un),Xn=sn,Qn=function(xe,Je){var ct=Je.ref,Bt=Je.onScroll;return S.createElement(Xn,{ref:ct,data:xe,onScroll:Bt})},fi=100;function qi(ue){var xe=ue.columns,Je=ue.scroll,ct=ue.prefixCls,Bt=ct===void 0?Pr:ct,bt=ue.className,$t=ue.listItemHeight,zt=Je||{},Qt=zt.x,dr=zt.y;typeof Qt!="number"&&(Qt=((xe||[]).length+1)*fi),typeof dr!="number"&&(dr=500);var Ir=S.useMemo(function(){return{scrollY:dr,listItemHeight:$t}},[dr,$t]);return S.createElement(bi.Provider,{value:Ir},S.createElement(jn,(0,$.Z)({},ue,{className:D()(bt,"".concat(Bt,"-virtual")),scroll:(0,Ue.Z)((0,Ue.Z)({},Je),{},{x:Qt}),components:{body:Qn},columns:xe,internalHooks:Ae,tailor:!0})))}function Ii(ue){return se(qi,ue)}var Ra=Ii(),ua=null;function Co(ue){return null}var Vn=Co;function _n(ue){return null}var ki=_n,Ji=x(2738),Ma=x(68031),Ms=x(36355),Va=x(93891),fa=x(19716),_o=x(8628),Bo=x(31724),To=x(58421),Ps=x(71418),mo=x(88088);function xs(ue){return function(Je){let{prefixCls:ct,onExpand:Bt,record:bt,expanded:$t,expandable:zt}=Je;const Qt=`${ct}-row-expand-icon`;return S.createElement("button",{type:"button",onClick:dr=>{Bt(bt,dr),dr.stopPropagation()},className:D()(Qt,{[`${Qt}-spaced`]:!zt,[`${Qt}-expanded`]:zt&&$t,[`${Qt}-collapsed`]:zt&&!$t}),"aria-label":$t?ue.collapse:ue.expand,"aria-expanded":$t})}}var Ts=xs;function $s(ue,xe){return"key"in ue&&ue.key!==void 0&&ue.key!==null?ue.key:ue.dataIndex?Array.isArray(ue.dataIndex)?ue.dataIndex.join("."):ue.dataIndex:xe}function Uo(ue,xe){return xe?`${xe}-${ue}`:`${ue}`}function Ro(ue,xe){return typeof ue=="function"?ue(xe):ue}function Cs(ue,xe){const Je=Ro(ue,xe);return Object.prototype.toString.call(Je)==="[object Object]"?"":Je}var el={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},vl=el,tc=x(7657),rc=function(xe,Je){return S.createElement(tc.Z,(0,$.Z)({},xe,{ref:Je,icon:vl}))},Rl=S.forwardRef(rc),Zs=Rl,kc=x(56762);function Ql(ue){const xe=S.useRef(ue),Je=(0,kc.Z)();return[()=>xe.current,ct=>{xe.current=ct,Je()}]}var Kl=x(3113),Vs=x(24905),os=x(38854),ni=x(64165),ca=x(20834),ta=x(40875),oa=x(5112),Oa=x(17574),so=x(47472),Ws=x(92832);function Bs(ue){let{value:xe,onChange:Je,filterSearch:ct,tablePrefixCls:Bt,locale:bt}=ue;return ct?S.createElement("div",{className:`${Bt}-filter-dropdown-search`},S.createElement(Ws.default,{prefix:S.createElement(so.Z,null),placeholder:bt.filterSearchPlaceholder,onChange:Je,value:xe,htmlSize:1,className:`${Bt}-filter-dropdown-search-input`})):null}var Ss=Bs,vs=x(10228);const to=ue=>{const{keyCode:xe}=ue;xe===vs.Z.ENTER&&ue.stopPropagation()};var ss=S.forwardRef((ue,xe)=>S.createElement("div",{className:ue.className,onClick:Je=>Je.stopPropagation(),onKeyDown:to,ref:xe},ue.children));function ls(ue){let xe=[];return(ue||[]).forEach(Je=>{let{value:ct,children:Bt}=Je;xe.push(ct),Bt&&(xe=[].concat((0,pn.Z)(xe),(0,pn.Z)(ls(Bt))))}),xe}function Ls(ue){return ue.some(xe=>{let{children:Je}=xe;return Je})}function Jo(ue,xe){return typeof xe=="string"||typeof xe=="number"?xe==null?void 0:xe.toString().toLowerCase().includes(ue.trim().toLowerCase()):!1}function Io(ue){let{filters:xe,prefixCls:Je,filteredKeys:ct,filterMultiple:Bt,searchValue:bt,filterSearch:$t}=ue;return xe.map((zt,Qt)=>{const dr=String(zt.value);if(zt.children)return{key:dr||Qt,label:zt.text,popupClassName:`${Je}-dropdown-submenu`,children:Io({filters:zt.children,prefixCls:Je,filteredKeys:ct,filterMultiple:Bt,searchValue:bt,filterSearch:$t})};const Ir=Bt?Vs.default:oa.ZP,mr={key:zt.value!==void 0?dr:Qt,label:S.createElement(S.Fragment,null,S.createElement(Ir,{checked:ct.includes(dr)}),S.createElement("span",null,zt.text))};return bt.trim()?typeof $t=="function"?$t(bt,zt)?mr:null:Jo(bt,zt.text)?mr:null:mr})}function hA(ue){var xe,Je;const{tablePrefixCls:ct,prefixCls:Bt,column:bt,dropdownPrefixCls:$t,columnKey:zt,filterMultiple:Qt,filterMode:dr="menu",filterSearch:Ir=!1,filterState:mr,triggerFilter:tn,locale:Vr,children:Yr,getPopupContainer:On}=ue,{filterDropdownOpen:wn,onFilterDropdownOpenChange:In,filterResetToDefaultFilteredValue:Cn,defaultFilteredValue:zn,filterDropdownVisible:Ti,onFilterDropdownVisibleChange:ji}=bt,[hi,na]=S.useState(!1),wa=!!(mr&&(!((xe=mr.filteredKeys)===null||xe===void 0)&&xe.length||mr.forceFiltered)),Jn=Ni=>{na(Ni),In==null||In(Ni),ji==null||ji(Ni)},mi=(Je=wn!=null?wn:Ti)!==null&&Je!==void 0?Je:hi,ai=mr==null?void 0:mr.filteredKeys,[Pn,oi]=Ql(ai||[]),Vi=Ni=>{let{selectedKeys:Aa}=Ni;oi(Aa)},Pa=(Ni,Aa)=>{let{node:$a,checked:Wa}=Aa;Vi(Qt?{selectedKeys:Ni}:{selectedKeys:Wa&&$a.key?[$a.key]:[]})};S.useEffect(()=>{hi&&Vi({selectedKeys:ai||[]})},[ai]);const[ma,Wi]=S.useState([]),Ia=Ni=>{Wi(Ni)},[Ka,es]=S.useState(""),lo=Ni=>{const{value:Aa}=Ni.target;es(Aa)};S.useEffect(()=>{hi||es("")},[hi]);const ys=Ni=>{const Aa=Ni&&Ni.length?Ni:null;if(Aa===null&&(!mr||!mr.filteredKeys)||(0,V.Z)(Aa,mr==null?void 0:mr.filteredKeys,!0))return null;tn({column:bt,key:zt,filteredKeys:Aa})},As=()=>{Jn(!1),ys(Pn())},ga=function(){let{confirm:Ni,closeDropdown:Aa}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ni&&ys([]),Aa&&Jn(!1),es(""),oi(Cn?(zn||[]).map($a=>String($a)):[])},ol=function(){let{closeDropdown:Ni}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ni&&Jn(!1),ys(Pn())},go=Ni=>{Ni&&ai!==void 0&&oi(ai||[]),Jn(Ni),!Ni&&!bt.filterDropdown&&As()},ts=D()({[`${$t}-menu-without-submenu`]:!Ls(bt.filters||[])}),ns=Ni=>{if(Ni.target.checked){const Aa=ls(bt==null?void 0:bt.filters).map($a=>String($a));oi(Aa)}else oi([])},wc=Ni=>{let{filters:Aa}=Ni;return(Aa||[]).map(($a,Wa)=>{const Fl=String($a.value),nl={title:$a.text,key:$a.value!==void 0?Fl:Wa};return $a.children&&(nl.children=wc({filters:$a.children})),nl})},si=Ni=>{var Aa;return Object.assign(Object.assign({},Ni),{text:Ni.title,value:Ni.key,children:((Aa=Ni.children)===null||Aa===void 0?void 0:Aa.map($a=>si($a)))||[]})};let Gi;if(typeof bt.filterDropdown=="function")Gi=bt.filterDropdown({prefixCls:`${$t}-custom`,setSelectedKeys:Ni=>Vi({selectedKeys:Ni}),selectedKeys:Pn(),confirm:ol,clearFilters:ga,filters:bt.filters,visible:mi,close:()=>{Jn(!1)}});else if(bt.filterDropdown)Gi=bt.filterDropdown;else{const Ni=Pn()||[],Aa=()=>(bt.filters||[]).length===0?S.createElement(ni.Z,{image:ni.Z.PRESENTED_IMAGE_SIMPLE,description:Vr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):dr==="tree"?S.createElement(S.Fragment,null,S.createElement(Ss,{filterSearch:Ir,value:Ka,onChange:lo,tablePrefixCls:ct,locale:Vr}),S.createElement("div",{className:`${ct}-filter-dropdown-tree`},Qt?S.createElement(Vs.default,{checked:Ni.length===ls(bt.filters).length,indeterminate:Ni.length>0&&Ni.length<ls(bt.filters).length,className:`${ct}-filter-dropdown-checkall`,onChange:ns},Vr.filterCheckall):null,S.createElement(Oa.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Qt,checkStrictly:!Qt,className:`${$t}-menu`,onCheck:Pa,checkedKeys:Ni,selectedKeys:Ni,showIcon:!1,treeData:wc({filters:bt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ka.trim()?Wa=>typeof Ir=="function"?Ir(Ka,si(Wa)):Jo(Ka,Wa.title):void 0}))):S.createElement(S.Fragment,null,S.createElement(Ss,{filterSearch:Ir,value:Ka,onChange:lo,tablePrefixCls:ct,locale:Vr}),S.createElement(ca.default,{selectable:!0,multiple:Qt,prefixCls:`${$t}-menu`,className:ts,onSelect:Vi,onDeselect:Vi,selectedKeys:Ni,getPopupContainer:On,openKeys:ma,onOpenChange:Ia,items:Io({filters:bt.filters||[],filterSearch:Ir,prefixCls:Bt,filteredKeys:Pn(),filterMultiple:Qt,searchValue:Ka})})),$a=()=>Cn?(0,V.Z)((zn||[]).map(Wa=>String(Wa)),Ni,!0):Ni.length===0;Gi=S.createElement(S.Fragment,null,Aa(),S.createElement("div",{className:`${Bt}-dropdown-btns`},S.createElement(Kl.ZP,{type:"link",size:"small",disabled:$a(),onClick:()=>ga()},Vr.filterReset),S.createElement(Kl.ZP,{type:"primary",size:"small",onClick:As},Vr.filterConfirm)))}bt.filterDropdown&&(Gi=S.createElement(ta.J,{selectable:void 0},Gi));const zi=()=>S.createElement(ss,{className:`${Bt}-dropdown`},Gi);let Di;typeof bt.filterIcon=="function"?Di=bt.filterIcon(wa):bt.filterIcon?Di=bt.filterIcon:Di=S.createElement(Zs,null);const{direction:yo}=S.useContext(Ms.E_);return S.createElement("div",{className:`${Bt}-column`},S.createElement("span",{className:`${ct}-column-title`},Yr),S.createElement(os.Z,{dropdownRender:zi,trigger:["click"],open:mi,onOpenChange:go,getPopupContainer:On,placement:yo==="rtl"?"bottomLeft":"bottomRight"},S.createElement("span",{role:"button",tabIndex:-1,className:D()(`${Bt}-trigger`,{active:wa}),onClick:Ni=>{Ni.stopPropagation()}},Di)))}var ru=hA;function lc(ue,xe,Je){let ct=[];return(ue||[]).forEach((Bt,bt)=>{var $t;const zt=Uo(bt,Je);if(Bt.filters||"filterDropdown"in Bt||"onFilter"in Bt)if("filteredValue"in Bt){let Qt=Bt.filteredValue;"filterDropdown"in Bt||(Qt=($t=Qt==null?void 0:Qt.map(String))!==null&&$t!==void 0?$t:Qt),ct.push({column:Bt,key:$s(Bt,zt),filteredKeys:Qt,forceFiltered:Bt.filtered})}else ct.push({column:Bt,key:$s(Bt,zt),filteredKeys:xe&&Bt.defaultFilteredValue?Bt.defaultFilteredValue:void 0,forceFiltered:Bt.filtered});"children"in Bt&&(ct=[].concat((0,pn.Z)(ct),(0,pn.Z)(lc(Bt.children,xe,zt))))}),ct}function pA(ue,xe,Je,ct,Bt,bt,$t,zt){return Je.map((Qt,dr)=>{const Ir=Uo(dr,zt),{filterMultiple:mr=!0,filterMode:tn,filterSearch:Vr}=Qt;let Yr=Qt;if(Yr.filters||Yr.filterDropdown){const On=$s(Yr,Ir),wn=ct.find(In=>{let{key:Cn}=In;return On===Cn});Yr=Object.assign(Object.assign({},Yr),{title:In=>S.createElement(ru,{tablePrefixCls:ue,prefixCls:`${ue}-filter`,dropdownPrefixCls:xe,column:Yr,columnKey:On,filterState:wn,filterMultiple:mr,filterMode:tn,filterSearch:Vr,triggerFilter:bt,locale:Bt,getPopupContainer:$t},Ro(Qt.title,In))})}return"children"in Yr&&(Yr=Object.assign(Object.assign({},Yr),{children:pA(ue,xe,Yr.children,ct,Bt,bt,$t,Ir)})),Yr})}function cl(ue){const xe={};return ue.forEach(Je=>{let{key:ct,filteredKeys:Bt,column:bt}=Je;const{filters:$t,filterDropdown:zt}=bt;if(zt)xe[ct]=Bt||null;else if(Array.isArray(Bt)){const Qt=ls($t);xe[ct]=Qt.filter(dr=>Bt.includes(String(dr)))}else xe[ct]=null}),xe}function mA(ue,xe){return xe.reduce((Je,ct)=>{const{column:{onFilter:Bt,filters:bt},filteredKeys:$t}=ct;return Bt&&$t&&$t.length?Je.filter(zt=>$t.some(Qt=>{const dr=ls(bt),Ir=dr.findIndex(tn=>String(tn)===String(Qt)),mr=Ir!==-1?dr[Ir]:Qt;return Bt(mr,zt)})):Je},ue)}const tl=ue=>ue.flatMap(xe=>"children"in xe?[xe].concat((0,pn.Z)(tl(xe.children||[]))):[xe]);function bs(ue){let{prefixCls:xe,dropdownPrefixCls:Je,mergedColumns:ct,onFilterChange:Bt,getPopupContainer:bt,locale:$t}=ue;const zt=S.useMemo(()=>tl(ct||[]),[ct]),[Qt,dr]=S.useState(()=>lc(zt,!0)),Ir=S.useMemo(()=>{const Yr=lc(zt,!1);if(Yr.length===0)return Yr;let On=!0,wn=!0;if(Yr.forEach(In=>{let{filteredKeys:Cn}=In;Cn!==void 0?On=!1:wn=!1}),On){const In=(zt||[]).map((Cn,zn)=>$s(Cn,Uo(zn)));return Qt.filter(Cn=>{let{key:zn}=Cn;return In.includes(zn)}).map(Cn=>{const zn=zt[In.findIndex(Ti=>Ti===Cn.key)];return Object.assign(Object.assign({},Cn),{column:Object.assign(Object.assign({},Cn.column),zn),forceFiltered:zn.filtered})})}return Yr},[zt,Qt]),mr=S.useMemo(()=>cl(Ir),[Ir]),tn=Yr=>{const On=Ir.filter(wn=>{let{key:In}=wn;return In!==Yr.key});On.push(Yr),dr(On),Bt(cl(On),On)};return[Yr=>pA(xe,Je,Yr,Ir,$t,tn,bt),Ir,mr]}var qc=bs;function Us(ue,xe,Je){const ct=S.useRef({});function Bt(bt){if(!ct.current||ct.current.data!==ue||ct.current.childrenColumnName!==xe||ct.current.getRowKey!==Je){let zt=function(Qt){Qt.forEach((dr,Ir)=>{const mr=Je(dr,Ir);$t.set(mr,dr),dr&&typeof dr=="object"&&xe in dr&&zt(dr[xe]||[])})};const $t=new Map;zt(ue),ct.current={data:ue,childrenColumnName:xe,kvMap:$t,getRowKey:Je}}return ct.current.kvMap.get(bt)}return[Bt]}var PA=x(50371),cc=function(ue,xe){var Je={};for(var ct in ue)Object.prototype.hasOwnProperty.call(ue,ct)&&xe.indexOf(ct)<0&&(Je[ct]=ue[ct]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,ct=Object.getOwnPropertySymbols(ue);Bt<ct.length;Bt++)xe.indexOf(ct[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ue,ct[Bt])&&(Je[ct[Bt]]=ue[ct[Bt]]);return Je};const Hl=10;function ro(ue,xe){const Je={current:ue.current,pageSize:ue.pageSize};return Object.keys(xe&&typeof xe=="object"?xe:{}).forEach(Bt=>{const bt=ue[Bt];typeof bt!="function"&&(Je[Bt]=bt)}),Je}function Gs(ue,xe,Je){const ct=Je&&typeof Je=="object"?Je:{},{total:Bt=0}=ct,bt=cc(ct,["total"]),[$t,zt]=(0,S.useState)(()=>({current:"defaultCurrent"in bt?bt.defaultCurrent:1,pageSize:"defaultPageSize"in bt?bt.defaultPageSize:Hl})),Qt=(0,PA.Z)($t,bt,{total:Bt>0?Bt:ue}),dr=Math.ceil((Bt||ue)/Qt.pageSize);Qt.current>dr&&(Qt.current=dr||1);const Ir=(tn,Vr)=>{zt({current:tn!=null?tn:1,pageSize:Vr||Qt.pageSize})},mr=(tn,Vr)=>{var Yr;Je&&((Yr=Je.onChange)===null||Yr===void 0||Yr.call(Je,tn,Vr)),Ir(tn,Vr),xe(tn,Vr||(Qt==null?void 0:Qt.pageSize))};return Je===!1?[{},()=>{}]:[Object.assign(Object.assign({},Qt),{onChange:mr}),Ir]}var gA=Gs,Eu=x(84105),cs=x(35654),Ba=x(90782),ya=x(71430),rs=x(18929);const bo={},$o="SELECT_ALL",Zo="SELECT_INVERT",Do="SELECT_NONE",Es=[],nc=(ue,xe)=>{let Je=[];return(xe||[]).forEach(ct=>{Je.push(ct),ct&&typeof ct=="object"&&ue in ct&&(Je=[].concat((0,pn.Z)(Je),(0,pn.Z)(nc(ue,ct[ue]))))}),Je};var Xs=(ue,xe)=>{const{preserveSelectedRowKeys:Je,selectedRowKeys:ct,defaultSelectedRowKeys:Bt,getCheckboxProps:bt,onChange:$t,onSelect:zt,onSelectAll:Qt,onSelectInvert:dr,onSelectNone:Ir,onSelectMultiple:mr,columnWidth:tn,type:Vr,selections:Yr,fixed:On,renderCell:wn,hideSelectAll:In,checkStrictly:Cn=!0}=xe||{},{prefixCls:zn,data:Ti,pageData:ji,getRecordByKey:hi,getRowKey:na,expandType:wa,childrenColumnName:Jn,locale:mi,getPopupContainer:ai}=ue,[Pn,oi]=(0,rs.Z)(ct||Bt||Es,{value:ct}),Vi=S.useRef(new Map),Pa=(0,S.useCallback)(si=>{if(Je){const Gi=new Map;si.forEach(zi=>{let Di=hi(zi);!Di&&Vi.current.has(zi)&&(Di=Vi.current.get(zi)),Gi.set(zi,Di)}),Vi.current=Gi}},[hi,Je]);S.useEffect(()=>{Pa(Pn)},[Pn]);const{keyEntities:ma}=(0,S.useMemo)(()=>{if(Cn)return{keyEntities:null};let si=Ti;if(Je){const Gi=new Set(Ti.map((Di,yo)=>na(Di,yo))),zi=Array.from(Vi.current).reduce((Di,yo)=>{let[Ni,Aa]=yo;return Gi.has(Ni)?Di:Di.concat(Aa)},[]);si=[].concat((0,pn.Z)(si),(0,pn.Z)(zi))}return(0,ya.I8)(si,{externalGetKey:na,childrenPropName:Jn})},[Ti,na,Cn,Jn,Je]),Wi=(0,S.useMemo)(()=>nc(Jn,ji),[Jn,ji]),Ia=(0,S.useMemo)(()=>{const si=new Map;return Wi.forEach((Gi,zi)=>{const Di=na(Gi,zi),yo=(bt?bt(Gi):null)||{};si.set(Di,yo)}),si},[Wi,na,bt]),Ka=(0,S.useCallback)(si=>{var Gi;return!!(!((Gi=Ia.get(na(si)))===null||Gi===void 0)&&Gi.disabled)},[Ia,na]),[es,lo]=(0,S.useMemo)(()=>{if(Cn)return[Pn||[],[]];const{checkedKeys:si,halfCheckedKeys:Gi}=(0,Ba.S)(Pn,!0,ma,Ka);return[si||[],Gi]},[Pn,Cn,ma,Ka]),ys=(0,S.useMemo)(()=>{const si=Vr==="radio"?es.slice(0,1):es;return new Set(si)},[es,Vr]),As=(0,S.useMemo)(()=>Vr==="radio"?new Set:new Set(lo),[lo,Vr]),[ga,ol]=(0,S.useState)(null);S.useEffect(()=>{xe||oi(Es)},[!!xe]);const go=(0,S.useCallback)((si,Gi)=>{let zi,Di;Pa(si),Je?(zi=si,Di=si.map(yo=>Vi.current.get(yo))):(zi=[],Di=[],si.forEach(yo=>{const Ni=hi(yo);Ni!==void 0&&(zi.push(yo),Di.push(Ni))})),oi(zi),$t==null||$t(zi,Di,{type:Gi})},[oi,hi,$t,Je]),ts=(0,S.useCallback)((si,Gi,zi,Di)=>{if(zt){const yo=zi.map(Ni=>hi(Ni));zt(hi(si),Gi,yo,Di)}go(zi,"single")},[zt,hi,go]),ns=(0,S.useMemo)(()=>!Yr||In?null:(Yr===!0?[$o,Zo,Do]:Yr).map(Gi=>Gi===$o?{key:"all",text:mi.selectionAll,onSelect(){go(Ti.map((zi,Di)=>na(zi,Di)).filter(zi=>{const Di=Ia.get(zi);return!(Di!=null&&Di.disabled)||ys.has(zi)}),"all")}}:Gi===Zo?{key:"invert",text:mi.selectInvert,onSelect(){const zi=new Set(ys);ji.forEach((yo,Ni)=>{const Aa=na(yo,Ni),$a=Ia.get(Aa);$a!=null&&$a.disabled||(zi.has(Aa)?zi.delete(Aa):zi.add(Aa))});const Di=Array.from(zi);dr&&dr(Di),go(Di,"invert")}}:Gi===Do?{key:"none",text:mi.selectNone,onSelect(){Ir==null||Ir(),go(Array.from(ys).filter(zi=>{const Di=Ia.get(zi);return Di==null?void 0:Di.disabled}),"none")}}:Gi).map(Gi=>Object.assign(Object.assign({},Gi),{onSelect:function(){for(var zi,Di,yo=arguments.length,Ni=new Array(yo),Aa=0;Aa<yo;Aa++)Ni[Aa]=arguments[Aa];(Di=Gi.onSelect)===null||Di===void 0||(zi=Di).call.apply(zi,[Gi].concat(Ni)),ol(null)}})),[Yr,ys,ji,na,dr,go]);return[(0,S.useCallback)(si=>{var Gi;if(!xe)return si.filter(co=>co!==bo);let zi=(0,pn.Z)(si);const Di=new Set(ys),yo=Wi.map(na).filter(co=>!Ia.get(co).disabled),Ni=yo.every(co=>Di.has(co)),Aa=yo.some(co=>Di.has(co)),$a=()=>{const co=[];Ni?yo.forEach(Mo=>{Di.delete(Mo),co.push(Mo)}):yo.forEach(Mo=>{Di.has(Mo)||(Di.add(Mo),co.push(Mo))});const dn=Array.from(Di);Qt==null||Qt(!Ni,dn.map(Mo=>hi(Mo)),co.map(Mo=>hi(Mo))),go(dn,"all"),ol(null)};let Wa;if(Vr!=="radio"){let co;if(ns){const ia={getPopupContainer:ai,items:ns.map((Bl,$l)=>{const{key:Uc,text:xc,onSelect:Sl}=Bl;return{key:Uc!=null?Uc:$l,onClick:()=>{Sl==null||Sl(yo)},label:xc}})};co=S.createElement("div",{className:`${zn}-selection-extra`},S.createElement(os.Z,{menu:ia,getPopupContainer:ai},S.createElement("span",null,S.createElement(Eu.Z,null))))}const dn=Wi.map((ia,Bl)=>{const $l=na(ia,Bl),Uc=Ia.get($l)||{};return Object.assign({checked:Di.has($l)},Uc)}).filter(ia=>{let{disabled:Bl}=ia;return Bl}),Mo=!!dn.length&&dn.length===Wi.length,Al=Mo&&dn.every(ia=>{let{checked:Bl}=ia;return Bl}),us=Mo&&dn.some(ia=>{let{checked:Bl}=ia;return Bl});Wa=!In&&S.createElement("div",{className:`${zn}-selection`},S.createElement(Vs.default,{checked:Mo?Al:!!Wi.length&&Ni,indeterminate:Mo?!Al&&us:!Ni&&Aa,onChange:$a,disabled:Wi.length===0||Mo,"aria-label":co?"Custom selection":"Select all",skipGroup:!0}),co)}let Fl;Vr==="radio"?Fl=(co,dn,Mo)=>{const Al=na(dn,Mo),us=Di.has(Al);return{node:S.createElement(oa.ZP,Object.assign({},Ia.get(Al),{checked:us,onClick:ia=>ia.stopPropagation(),onChange:ia=>{Di.has(Al)||ts(Al,!0,[Al],ia.nativeEvent)}})),checked:us}}:Fl=(co,dn,Mo)=>{var Al;const us=na(dn,Mo),ia=Di.has(us),Bl=As.has(us),$l=Ia.get(us);let Uc;return wa==="nest"?Uc=Bl:Uc=(Al=$l==null?void 0:$l.indeterminate)!==null&&Al!==void 0?Al:Bl,{node:S.createElement(Vs.default,Object.assign({},$l,{indeterminate:Uc,checked:ia,skipGroup:!0,onClick:xc=>xc.stopPropagation(),onChange:xc=>{let{nativeEvent:Sl}=xc;const{shiftKey:ul}=Sl;let ou=-1,Ml=-1;if(ul&&Cn){const Qs=new Set([ga,us]);yo.some((El,il)=>{if(Qs.has(El))if(ou===-1)ou=il;else return Ml=il,!0;return!1})}if(Ml!==-1&&ou!==Ml&&Cn){const Qs=yo.slice(ou,Ml+1),El=[];ia?Qs.forEach(ks=>{Di.has(ks)&&(El.push(ks),Di.delete(ks))}):Qs.forEach(ks=>{Di.has(ks)||(El.push(ks),Di.add(ks))});const il=Array.from(Di);mr==null||mr(!ia,il.map(ks=>hi(ks)),El.map(ks=>hi(ks))),go(il,"multiple")}else{const Qs=es;if(Cn){const El=ia?(0,cs._5)(Qs,us):(0,cs.L0)(Qs,us);ts(us,!ia,El,Sl)}else{const El=(0,Ba.S)([].concat((0,pn.Z)(Qs),[us]),!0,ma,Ka),{checkedKeys:il,halfCheckedKeys:ks}=El;let Cc=il;if(ia){const wA=new Set(il);wA.delete(us),Cc=(0,Ba.S)(Array.from(wA),{checked:!1,halfCheckedKeys:ks},ma,Ka).checkedKeys}ts(us,!ia,Cc,Sl)}}ol(ia?null:us)}})),checked:ia}};const nl=(co,dn,Mo)=>{const{node:Al,checked:us}=Fl(co,dn,Mo);return wn?wn(us,dn,Mo,Al):Al};if(!zi.includes(bo))if(zi.findIndex(co=>{var dn;return((dn=co[xr])===null||dn===void 0?void 0:dn.columnType)==="EXPAND_COLUMN"})===0){const[co,...dn]=zi;zi=[co,bo].concat((0,pn.Z)(dn))}else zi=[bo].concat((0,pn.Z)(zi));const Gc=zi.indexOf(bo);zi=zi.filter((co,dn)=>co!==bo||dn===Gc);const Rs=zi[Gc-1],Tc=zi[Gc+1];let Kn=On;Kn===void 0&&((Tc==null?void 0:Tc.fixed)!==void 0?Kn=Tc.fixed:(Rs==null?void 0:Rs.fixed)!==void 0&&(Kn=Rs.fixed)),Kn&&Rs&&((Gi=Rs[xr])===null||Gi===void 0?void 0:Gi.columnType)==="EXPAND_COLUMN"&&Rs.fixed===void 0&&(Rs.fixed=Kn);const Ac=D()(`${zn}-selection-col`,{[`${zn}-selection-col-with-dropdown`]:Yr&&Vr==="checkbox"}),Mu={fixed:Kn,width:tn,className:`${zn}-selection-column`,title:xe.columnTitle||Wa,render:nl,onCell:xe.onCell,[xr]:{className:Ac}};return zi.map(co=>co===bo?Mu:co)},[na,Wi,xe,es,ys,As,tn,ns,wa,ga,Ia,mr,ts,Ka]),ys]},vA=x(89489),wl=x(59477),eA=x(6848);const rl="ascend",_d="descend";function nu(ue){return typeof ue.sorter=="object"&&typeof ue.sorter.multiple=="number"?ue.sorter.multiple:!1}function $A(ue){return typeof ue=="function"?ue:ue&&typeof ue=="object"&&ue.compare?ue.compare:!1}function Af(ue,xe){return xe?ue[ue.indexOf(xe)+1]:ue[0]}function Wc(ue,xe,Je){let ct=[];function Bt(bt,$t){ct.push({column:bt,key:$s(bt,$t),multiplePriority:nu(bt),sortOrder:bt.sortOrder})}return(ue||[]).forEach((bt,$t)=>{const zt=Uo($t,Je);bt.children?("sortOrder"in bt&&Bt(bt,zt),ct=[].concat((0,pn.Z)(ct),(0,pn.Z)(Wc(bt.children,xe,zt)))):bt.sorter&&("sortOrder"in bt?Bt(bt,zt):xe&&bt.defaultSortOrder&&ct.push({column:bt,key:$s(bt,zt),multiplePriority:nu(bt),sortOrder:bt.defaultSortOrder}))}),ct}function Gu(ue,xe,Je,ct,Bt,bt,$t,zt){return(xe||[]).map((Qt,dr)=>{const Ir=Uo(dr,zt);let mr=Qt;if(mr.sorter){const tn=mr.sortDirections||Bt,Vr=mr.showSorterTooltip===void 0?$t:mr.showSorterTooltip,Yr=$s(mr,Ir),On=Je.find(wa=>{let{key:Jn}=wa;return Jn===Yr}),wn=On?On.sortOrder:null,In=Af(tn,wn);let Cn;if(Qt.sortIcon)Cn=Qt.sortIcon({sortOrder:wn});else{const wa=tn.includes(rl)&&S.createElement(wl.Z,{className:D()(`${ue}-column-sorter-up`,{active:wn===rl})}),Jn=tn.includes(_d)&&S.createElement(vA.Z,{className:D()(`${ue}-column-sorter-down`,{active:wn===_d})});Cn=S.createElement("span",{className:D()(`${ue}-column-sorter`,{[`${ue}-column-sorter-full`]:!!(wa&&Jn)})},S.createElement("span",{className:`${ue}-column-sorter-inner`,"aria-hidden":"true"},wa,Jn))}const{cancelSort:zn,triggerAsc:Ti,triggerDesc:ji}=bt||{};let hi=zn;In===_d?hi=ji:In===rl&&(hi=Ti);const na=typeof Vr=="object"?Vr:{title:hi};mr=Object.assign(Object.assign({},mr),{className:D()(mr.className,{[`${ue}-column-sort`]:wn}),title:wa=>{const Jn=S.createElement("div",{className:`${ue}-column-sorters`},S.createElement("span",{className:`${ue}-column-title`},Ro(Qt.title,wa)),Cn);return Vr?S.createElement(eA.Z,Object.assign({},na),Jn):Jn},onHeaderCell:wa=>{const Jn=Qt.onHeaderCell&&Qt.onHeaderCell(wa)||{},mi=Jn.onClick,ai=Jn.onKeyDown;Jn.onClick=Vi=>{ct({column:Qt,key:Yr,sortOrder:In,multiplePriority:nu(Qt)}),mi==null||mi(Vi)},Jn.onKeyDown=Vi=>{Vi.keyCode===vs.Z.ENTER&&(ct({column:Qt,key:Yr,sortOrder:In,multiplePriority:nu(Qt)}),ai==null||ai(Vi))};const Pn=Cs(Qt.title,{}),oi=Pn==null?void 0:Pn.toString();return wn?Jn["aria-sort"]=wn==="ascend"?"ascending":"descending":Jn["aria-label"]=oi||"",Jn.className=D()(Jn.className,`${ue}-column-has-sorters`),Jn.tabIndex=0,Qt.ellipsis&&(Jn.title=(Pn!=null?Pn:"").toString()),Jn}})}return"children"in mr&&(mr=Object.assign(Object.assign({},mr),{children:Gu(ue,mr.children,Je,ct,Bt,bt,$t,Ir)})),mr})}function Dc(ue){const{column:xe,sortOrder:Je}=ue;return{column:xe,order:Je,field:xe.dataIndex,columnKey:xe.key}}function Id(ue){const xe=ue.filter(Je=>{let{sortOrder:ct}=Je;return ct}).map(Dc);return xe.length===0&&ue.length?Object.assign(Object.assign({},Dc(ue[ue.length-1])),{column:void 0}):xe.length<=1?xe[0]||{}:xe}function Yo(ue,xe,Je){const ct=xe.slice().sort(($t,zt)=>zt.multiplePriority-$t.multiplePriority),Bt=ue.slice(),bt=ct.filter($t=>{let{column:{sorter:zt},sortOrder:Qt}=$t;return $A(zt)&&Qt});return bt.length?Bt.sort(($t,zt)=>{for(let Qt=0;Qt<bt.length;Qt+=1){const dr=bt[Qt],{column:{sorter:Ir},sortOrder:mr}=dr,tn=$A(Ir);if(tn&&mr){const Vr=tn($t,zt,mr);if(Vr!==0)return mr===rl?Vr:-Vr}}return 0}).map($t=>{const zt=$t[Je];return zt?Object.assign(Object.assign({},$t),{[Je]:Yo(zt,xe,Je)}):$t}):Bt}function No(ue){let{prefixCls:xe,mergedColumns:Je,onSorterChange:ct,sortDirections:Bt,tableLocale:bt,showSorterTooltip:$t}=ue;const[zt,Qt]=S.useState(Wc(Je,!0)),dr=S.useMemo(()=>{let Yr=!0;const On=Wc(Je,!1);if(!On.length)return zt;const wn=[];function In(zn){Yr?wn.push(zn):wn.push(Object.assign(Object.assign({},zn),{sortOrder:null}))}let Cn=null;return On.forEach(zn=>{Cn===null?(In(zn),zn.sortOrder&&(zn.multiplePriority===!1?Yr=!1:Cn=!0)):(Cn&&zn.multiplePriority!==!1||(Yr=!1),In(zn))}),wn},[Je,zt]),Ir=S.useMemo(()=>{const Yr=dr.map(On=>{let{column:wn,sortOrder:In}=On;return{column:wn,order:In}});return{sortColumns:Yr,sortColumn:Yr[0]&&Yr[0].column,sortOrder:Yr[0]&&Yr[0].order}},[dr]);function mr(Yr){let On;Yr.multiplePriority===!1||!dr.length||dr[0].multiplePriority===!1?On=[Yr]:On=[].concat((0,pn.Z)(dr.filter(wn=>{let{key:In}=wn;return In!==Yr.key})),[Yr]),Qt(On),ct(Id(On),On)}return[Yr=>Gu(xe,Yr,dr,mr,Bt,bt,$t),dr,Ir,()=>Id(dr)]}function qo(ue,xe){return ue.map(Je=>{const ct=Object.assign({},Je);return ct.title=Ro(Je.title,xe),"children"in ct&&(ct.children=qo(ct.children,xe)),ct})}function bc(ue){return[S.useCallback(Je=>qo(Je,ue),[ue])]}var jl=Si((ue,xe)=>{const{_renderTimes:Je}=ue,{_renderTimes:ct}=xe;return Je!==ct}),Xu=Ii((ue,xe)=>{const{_renderTimes:Je}=ue,{_renderTimes:ct}=xe;return Je!==ct}),bA=x(64993),ZA=x(17313),Fd=x(83116),Md=x(37613),WA=ue=>{const{componentCls:xe}=ue,Je=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`,ct=(Bt,bt,$t)=>({[`&${xe}-${Bt}`]:{[`> ${xe}-container`]:{[`> ${xe}-content, > ${xe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${xe}-expanded-row-fixed`]:{margin:`-${bt}px -${$t+ue.lineWidth}px`}}}}}});return{[`${xe}-wrapper`]:{[`${xe}${xe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${xe}-title`]:{border:Je,borderBottom:0},[`> ${xe}-container`]:{borderInlineStart:Je,borderTop:Je,[`
|
|
|
> ${xe}-content,
|
|
|
> ${xe}-header,
|
|
|
> ${xe}-body,
|
|
|
> ${xe}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Je},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Je},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${xe}-cell-fix-right-first::after`]:{borderInlineEnd:Je}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${xe}-expanded-row-fixed`]:{margin:`-${ue.tablePaddingVertical}px -${ue.tablePaddingHorizontal+ue.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ue.lineWidth,bottom:0,borderInlineEnd:Je,content:'""'}}}}}},[`&${xe}-scroll-horizontal`]:{[`> ${xe}-container > ${xe}-body`]:{"> table > tbody":{[`
|
|
|
> tr${xe}-expanded-row,
|
|
|
> tr${xe}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ct("middle",ue.tablePaddingVerticalMiddle,ue.tablePaddingHorizontalMiddle)),ct("small",ue.tablePaddingVerticalSmall,ue.tablePaddingHorizontalSmall)),{[`> ${xe}-footer`]:{border:Je,borderTop:0}}),[`${xe}-cell`]:{[`${xe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ue.lineWidth}px 0 ${ue.lineWidth}px ${ue.tableHeaderBg}`}},[`${xe}-bordered ${xe}-cell-scrollbar`]:{borderInlineEnd:Je}}}},yA=ue=>{const{componentCls:xe}=ue;return{[`${xe}-wrapper`]:{[`${xe}-cell-ellipsis`]:Object.assign(Object.assign({},ZA.vS),{wordBreak:"keep-all",[`
|
|
|
&${xe}-cell-fix-left-last,
|
|
|
&${xe}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${xe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${xe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},b0=ue=>{const{componentCls:xe}=ue;return{[`${xe}-wrapper`]:{[`${xe}-tbody > tr${xe}-placeholder`]:{textAlign:"center",color:ue.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ue.colorBgContainer}}}}},iu=x(15969),uf=ue=>{const{componentCls:xe,antCls:Je,controlInteractiveSize:ct,motionDurationSlow:Bt,lineWidth:bt,paddingXS:$t,lineType:zt,tableBorderColor:Qt,tableExpandIconBg:dr,tableExpandColumnWidth:Ir,borderRadius:mr,fontSize:tn,fontSizeSM:Vr,lineHeight:Yr,tablePaddingVertical:On,tablePaddingHorizontal:wn,tableExpandedRowBg:In,paddingXXS:Cn}=ue,zn=ct/2-bt,Ti=zn*2+bt*3,ji=`${bt}px ${zt} ${Qt}`,hi=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,iu.N)(ue)),{position:"relative",float:"left",boxSizing:"border-box",width:Ti,height:Ti,padding:0,color:"inherit",lineHeight:`${Ti}px`,background:dr,border:ji,borderRadius:mr,transform:`scale(${ct/Ti})`,transition:`all ${Bt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Bt} ease-out`,content:'""'},"&::before":{top:zn,insetInlineEnd:hi,insetInlineStart:hi,height:bt},"&::after":{top:hi,bottom:hi,insetInlineStart:zn,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:(tn*Yr-bt*3)/2-Math.ceil((Vr*1.4-bt*3)/2),marginInlineEnd:$t},[`tr${xe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:In}},[`${Je}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${xe}-expanded-row-fixed`]:{position:"relative",margin:`-${On}px -${wn}px`,padding:`${On}px ${wn}px`}}}},zf=ue=>{const{componentCls:xe,antCls:Je,iconCls:ct,tableFilterDropdownWidth:Bt,tableFilterDropdownSearchWidth:bt,paddingXXS:$t,paddingXS:zt,colorText:Qt,lineWidth:dr,lineType:Ir,tableBorderColor:mr,tableHeaderIconColor:tn,fontSizeSM:Vr,tablePaddingHorizontal:Yr,borderRadius:On,motionDurationSlow:wn,colorTextDescription:In,colorPrimary:Cn,tableHeaderFilterActiveBg:zn,colorTextDisabled:Ti,tableFilterDropdownBg:ji,tableFilterDropdownHeight:hi,controlItemBgHover:na,controlItemBgActive:wa,boxShadowSecondary:Jn,filterDropdownMenuBg:mi}=ue,ai=`${Je}-dropdown`,Pn=`${xe}-filter-dropdown`,oi=`${Je}-tree`,Vi=`${dr}px ${Ir} ${mr}`;return[{[`${xe}-wrapper`]:{[`${xe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${xe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-$t,marginInline:`${$t}px ${-Yr/2}px`,padding:`0 ${$t}px`,color:tn,fontSize:Vr,borderRadius:On,cursor:"pointer",transition:`all ${wn}`,"&:hover":{color:In,background:zn},"&.active":{color:Cn}}}},{[`${Je}-dropdown`]:{[Pn]:Object.assign(Object.assign({},(0,ZA.Wf)(ue)),{minWidth:Bt,backgroundColor:ji,borderRadius:On,boxShadow:Jn,overflow:"hidden",[`${ai}-menu`]:{maxHeight:hi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:mi,"&:empty::after":{display:"block",padding:`${zt}px 0`,color:Ti,fontSize:Vr,textAlign:"center",content:'"Not Found"'}},[`${Pn}-tree`]:{paddingBlock:`${zt}px 0`,paddingInline:zt,[oi]:{padding:0},[`${oi}-treenode ${oi}-node-content-wrapper:hover`]:{backgroundColor:na},[`${oi}-treenode-checkbox-checked ${oi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:wa}}},[`${Pn}-search`]:{padding:zt,borderBottom:Vi,"&-input":{input:{minWidth:bt},[ct]:{color:Ti}}},[`${Pn}-checkall`]:{width:"100%",marginBottom:$t,marginInlineStart:$t},[`${Pn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${zt-dr}px ${zt}px`,overflow:"hidden",borderTop:Vi}})}},{[`${Je}-dropdown ${Pn}, ${Pn}-submenu`]:{[`${Je}-checkbox-wrapper + span`]:{paddingInlineStart:zt,color:Qt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_u=ue=>{const{componentCls:xe,lineWidth:Je,colorSplit:ct,motionDurationSlow:Bt,zIndexTableFixed:bt,tableBg:$t,zIndexTableSticky:zt}=ue,Qt=ct;return{[`${xe}-wrapper`]:{[`
|
|
|
${xe}-cell-fix-left,
|
|
|
${xe}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:bt,background:$t},[`
|
|
|
${xe}-cell-fix-left-first::after,
|
|
|
${xe}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Je,width:30,transform:"translateX(100%)",transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},[`${xe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${xe}-cell-fix-right-first::after,
|
|
|
${xe}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Je,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},[`${xe}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:zt+1,width:30,transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${xe}-ping-left`]:{[`&:not(${xe}-has-fix-left) ${xe}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Qt}`}},[`
|
|
|
${xe}-cell-fix-left-first::after,
|
|
|
${xe}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Qt}`},[`${xe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${xe}-ping-right`]:{[`&:not(${xe}-has-fix-right) ${xe}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Qt}`}},[`
|
|
|
${xe}-cell-fix-right-first::after,
|
|
|
${xe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Qt}`}}}}},xl=ue=>{const{componentCls:xe,antCls:Je}=ue;return{[`${xe}-wrapper`]:{[`${xe}-pagination${Je}-pagination`]:{margin:`${ue.margin}px 0`},[`${xe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ue.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Nc=ue=>{const{componentCls:xe,tableRadius:Je}=ue;return{[`${xe}-wrapper`]:{[xe]:{[`${xe}-title, ${xe}-header`]:{borderRadius:`${Je}px ${Je}px 0 0`},[`${xe}-title + ${xe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${xe}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Je,borderStartEndRadius:Je,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Je},"> *:last-child":{borderStartEndRadius:Je}}},"&-footer":{borderRadius:`0 0 ${Je}px ${Je}px`}}}}},y0=ue=>{const{componentCls:xe}=ue;return{[`${xe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${xe}-pagination-left`]:{justifyContent:"flex-end"},[`${xe}-pagination-right`]:{justifyContent:"flex-start"},[`${xe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${xe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${xe}-row-indent`]:{float:"right"}}}}},Eh=ue=>{const{componentCls:xe,antCls:Je,iconCls:ct,fontSizeIcon:Bt,padding:bt,paddingXS:$t,tableHeaderIconColor:zt,tableHeaderIconColorHover:Qt,tableSelectionColumnWidth:dr}=ue;return{[`${xe}-wrapper`]:{[`${xe}-selection-col`]:{width:dr,[`&${xe}-selection-col-with-dropdown`]:{width:dr+Bt+bt/4}},[`${xe}-bordered ${xe}-selection-col`]:{width:dr+$t*2,[`&${xe}-selection-col-with-dropdown`]:{width:dr+Bt+bt/4+$t*2}},[`
|
|
|
table tr th${xe}-selection-column,
|
|
|
table tr td${xe}-selection-column
|
|
|
`]:{paddingInlineEnd:ue.paddingXS,paddingInlineStart:ue.paddingXS,textAlign:"center",[`${Je}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${xe}-selection-column${xe}-cell-fix-left`]:{zIndex:ue.zIndexTableFixed+1},[`table tr th${xe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${xe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${xe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ue.tablePaddingHorizontal/4}px`,[ct]:{color:zt,fontSize:Bt,verticalAlign:"baseline","&:hover":{color:Qt}}}}}},kd=ue=>{const{componentCls:xe}=ue,Je=(ct,Bt,bt,$t)=>({[`${xe}${xe}-${ct}`]:{fontSize:$t,[`
|
|
|
${xe}-title,
|
|
|
${xe}-footer,
|
|
|
${xe}-cell,
|
|
|
${xe}-thead > tr > th,
|
|
|
${xe}-tbody > tr > th,
|
|
|
${xe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Bt}px ${bt}px`},[`${xe}-filter-trigger`]:{marginInlineEnd:`-${bt/2}px`},[`${xe}-expanded-row-fixed`]:{margin:`-${Bt}px -${bt}px`},[`${xe}-tbody`]:{[`${xe}-wrapper:only-child ${xe}`]:{marginBlock:`-${Bt}px`,marginInline:`${ue.tableExpandColumnWidth-bt}px -${bt}px`}},[`${xe}-selection-column`]:{paddingInlineStart:`${bt/4}px`}}});return{[`${xe}-wrapper`]:Object.assign(Object.assign({},Je("middle",ue.tablePaddingVerticalMiddle,ue.tablePaddingHorizontalMiddle,ue.tableFontSizeMiddle)),Je("small",ue.tablePaddingVerticalSmall,ue.tablePaddingHorizontalSmall,ue.tableFontSizeSmall))}},au=ue=>{const{componentCls:xe,marginXXS:Je,fontSizeIcon:ct,tableHeaderIconColor:Bt,tableHeaderIconColorHover:bt}=ue;return{[`${xe}-wrapper`]:{[`${xe}-thead th${xe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,"&:hover":{background:ue.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ue.colorPrimary},[`
|
|
|
&${xe}-cell-fix-left:hover,
|
|
|
&${xe}-cell-fix-right:hover
|
|
|
`]:{background:ue.tableFixedHeaderSortActiveBg}},[`${xe}-thead th${xe}-column-sort`]:{background:ue.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${xe}-column-sort`]:{background:ue.tableBodySortBg},[`${xe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${xe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${xe}-column-sorter`]:{marginInlineStart:Je,color:Bt,fontSize:0,transition:`color ${ue.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ct,"&.active":{color:ue.colorPrimary}},[`${xe}-column-sorter-up + ${xe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${xe}-column-sorters:hover ${xe}-column-sorter`]:{color:bt}}}},yc=ue=>{const{componentCls:xe,opacityLoading:Je,tableScrollThumbBg:ct,tableScrollThumbBgHover:Bt,tableScrollThumbSize:bt,tableScrollBg:$t,zIndexTableSticky:zt,stickyScrollBarBorderRadius:Qt}=ue,dr=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`;return{[`${xe}-wrapper`]:{[`${xe}-sticky`]:{"&-holder":{position:"sticky",zIndex:zt,background:ue.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${bt}px !important`,zIndex:zt,display:"flex",alignItems:"center",background:$t,borderTop:dr,opacity:Je,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:bt,backgroundColor:ct,borderRadius:Qt,transition:`all ${ue.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Bt}}}}}}},Ju=ue=>{const{componentCls:xe,lineWidth:Je,tableBorderColor:ct}=ue,Bt=`${Je}px ${ue.lineType} ${ct}`;return{[`${xe}-wrapper`]:{[`${xe}-summary`]:{position:"relative",zIndex:ue.zIndexTableFixed,background:ue.tableBg,"> tr":{"> th, > td":{borderBottom:Bt}}},[`div${xe}-summary`]:{boxShadow:`0 -${Je}px 0 ${ct}`}}}},Zf=ue=>{const{componentCls:xe}=ue,Je=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`,ct=`${xe}-expanded-row-cell`;return{[`${xe}-wrapper`]:{[`${xe}-tbody-virtual`]:{[`${xe}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${xe}-cell`]:{borderBottom:Je},[`${xe}-expanded-row`]:{[`${ct}${ct}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ue.lineWidth}px)`,borderInlineEnd:"none"}}},[`${xe}-bordered`]:{[`${xe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Je,position:"absolute"},[`${xe}-cell`]:{borderInlineEnd:Je,[`&${xe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ue.lineWidth,borderInlineStart:Je}}}}}}};const Pc=ue=>{const{componentCls:xe,fontWeightStrong:Je,tablePaddingVertical:ct,tablePaddingHorizontal:Bt,lineWidth:bt,lineType:$t,tableBorderColor:zt,tableFontSize:Qt,tableBg:dr,tableRadius:Ir,tableHeaderTextColor:mr,motionDurationMid:tn,tableHeaderBg:Vr,tableHeaderCellSplitColor:Yr,tableRowHoverBg:On,tableSelectedRowBg:wn,tableSelectedRowHoverBg:In,tableFooterTextColor:Cn,tableFooterBg:zn,paddingContentVerticalLG:Ti}=ue,ji=`${bt}px ${$t} ${zt}`;return{[`${xe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ZA.dF)()),{[xe]:Object.assign(Object.assign({},(0,ZA.Wf)(ue)),{fontSize:Qt,background:dr,borderRadius:`${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:`${Ti}px ${Bt}px`,overflowWrap:"break-word"},[`${xe}-title`]:{padding:`${ct}px ${Bt}px`},[`${xe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:mr,fontWeight:Je,textAlign:"start",background:Vr,borderBottom:ji,transition:`background ${tn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${xe}-selection-column):not(${xe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Yr,transform:"translateY(-50%)",transition:`background-color ${tn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${xe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${tn}, border-color ${tn}`,borderBottom:ji,[`
|
|
|
> ${xe}-wrapper:only-child,
|
|
|
> ${xe}-expanded-row-fixed > ${xe}-wrapper:only-child
|
|
|
`]:{[xe]:{marginBlock:`-${ct}px`,marginInline:`${ue.tableExpandColumnWidth-Bt}px -${Bt}px`,[`${xe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:mr,fontWeight:Je,textAlign:"start",background:Vr,borderBottom:ji,transition:`background ${tn} ease`},[`
|
|
|
&${xe}-row:hover > th,
|
|
|
&${xe}-row:hover > td,
|
|
|
> th${xe}-cell-row-hover,
|
|
|
> td${xe}-cell-row-hover
|
|
|
`]:{background:On},[`&${xe}-row-selected`]:{"> th, > td":{background:wn},"&:hover > th, &:hover > td":{background:In}}}},[`${xe}-footer`]:{padding:`${ct}px ${Bt}px`,color:Cn,background:zn}})}};var Yu=(0,Fd.Z)("Table",ue=>{const{colorTextHeading:xe,colorSplit:Je,colorIcon:ct,colorIconHover:Bt,opacityLoading:bt,colorBgContainer:$t,controlInteractiveSize:zt,headerBg:Qt,headerColor:dr,headerSortActiveBg:Ir,headerSortHoverBg:mr,bodySortBg:tn,rowHoverBg:Vr,rowSelectedBg:Yr,rowSelectedHoverBg:On,rowExpandedBg:wn,cellPaddingBlock:In,cellPaddingInline:Cn,cellPaddingBlockMD:zn,cellPaddingInlineMD:Ti,cellPaddingBlockSM:ji,cellPaddingInlineSM:hi,borderColor:na,footerBg:wa,footerColor:Jn,headerBorderRadius:mi,cellFontSize:ai,cellFontSizeMD:Pn,cellFontSizeSM:oi,headerSplitColor:Vi,fixedHeaderSortActiveBg:Pa,headerFilterHoverBg:ma,filterDropdownBg:Wi,expandIconBg:Ia,selectionColumnWidth:Ka,stickyScrollBarBg:es}=ue,lo=new bA.C(ct),ys=new bA.C(Bt),As=2,ga=(0,Md.TS)(ue,{tableFontSize:ai,tableBg:$t,tableRadius:mi,tablePaddingVertical:In,tablePaddingHorizontal:Cn,tablePaddingVerticalMiddle:zn,tablePaddingHorizontalMiddle:Ti,tablePaddingVerticalSmall:ji,tablePaddingHorizontalSmall:hi,tableBorderColor:na,tableHeaderTextColor:dr,tableHeaderBg:Qt,tableFooterTextColor:Jn,tableFooterBg:wa,tableHeaderCellSplitColor:Vi,tableHeaderSortBg:Ir,tableHeaderSortHoverBg:mr,tableHeaderIconColor:lo.clone().setAlpha(lo.getAlpha()*bt).toRgbString(),tableHeaderIconColorHover:ys.clone().setAlpha(ys.getAlpha()*bt).toRgbString(),tableBodySortBg:tn,tableFixedHeaderSortActiveBg:Pa,tableHeaderFilterActiveBg:ma,tableFilterDropdownBg:Wi,tableRowHoverBg:Vr,tableSelectedRowBg:Yr,tableSelectedRowHoverBg:On,zIndexTableFixed:As,zIndexTableSticky:As+1,tableFontSizeMiddle:Pn,tableFontSizeSmall:oi,tableSelectionColumnWidth:Ka,tableExpandIconBg:Ia,tableExpandColumnWidth:zt+2*ue.padding,tableExpandedRowBg:wn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:es,tableScrollThumbBgHover:xe,tableScrollBg:Je});return[Pc(ga),xl(ga),Ju(ga),au(ga),zf(ga),WA(ga),Nc(ga),uf(ga),Ju(ga),b0(ga),Eh(ga),_u(ga),yc(ga),yA(ga),kd(ga),y0(ga),Zf(ga)]},ue=>{const{colorFillAlter:xe,colorBgContainer:Je,colorTextHeading:ct,colorFillSecondary:Bt,colorFillContent:bt,controlItemBgActive:$t,controlItemBgActiveHover:zt,padding:Qt,paddingSM:dr,paddingXS:Ir,colorBorderSecondary:mr,borderRadiusLG:tn,fontSize:Vr,controlHeight:Yr,colorTextPlaceholder:On}=ue,wn=new bA.C(Bt).onBackground(Je).toHexShortString(),In=new bA.C(bt).onBackground(Je).toHexShortString(),Cn=new bA.C(xe).onBackground(Je).toHexShortString();return{headerBg:Cn,headerColor:ct,headerSortActiveBg:wn,headerSortHoverBg:In,bodySortBg:Cn,rowHoverBg:Cn,rowSelectedBg:$t,rowSelectedHoverBg:zt,rowExpandedBg:xe,cellPaddingBlock:Qt,cellPaddingInline:Qt,cellPaddingBlockMD:dr,cellPaddingInlineMD:Ir,cellPaddingBlockSM:Ir,cellPaddingInlineSM:Ir,borderColor:mr,headerBorderRadius:tn,footerBg:Cn,footerColor:ct,cellFontSize:Vr,cellFontSizeMD:Vr,cellFontSizeSM:Vr,headerSplitColor:mr,fixedHeaderSortActiveBg:wn,headerFilterHoverBg:bt,filterDropdownMenuBg:Je,filterDropdownBg:Je,expandIconBg:Je,selectionColumnWidth:Yr,stickyScrollBarBg:On,stickyScrollBarBorderRadius:100}});const ff=[],qu=(ue,xe)=>{const{prefixCls:Je,className:ct,rootClassName:Bt,style:bt,size:$t,bordered:zt,dropdownPrefixCls:Qt,dataSource:dr,pagination:Ir,rowSelection:mr,rowKey:tn="key",rowClassName:Vr,columns:Yr,children:On,childrenColumnName:wn,onChange:In,getPopupContainer:Cn,loading:zn,expandIcon:Ti,expandable:ji,expandedRowRender:hi,expandIconColumnIndex:na,indentSize:wa,scroll:Jn,sortDirections:mi,locale:ai,showSorterTooltip:Pn=!0,virtual:oi}=ue,Vi=S.useMemo(()=>Yr||ge(On),[Yr,On]),Pa=S.useMemo(()=>Vi.some(ao=>ao.responsive),[Vi]),ma=(0,_o.Z)(Pa),Wi=S.useMemo(()=>{const ao=new Set(Object.keys(ma).filter(Wo=>ma[Wo]));return Vi.filter(Wo=>!Wo.responsive||Wo.responsive.some(Zl=>ao.has(Zl)))},[Vi,ma]),Ia=(0,Ji.Z)(ue,["className","style","columns"]),{locale:Ka=Bo.Z,direction:es,table:lo,renderEmpty:ys,getPrefixCls:As,getPopupContainer:ga}=S.useContext(Ms.E_),ol=(0,fa.Z)($t),go=Object.assign(Object.assign({},Ka.Table),ai),ts=dr||ff,ns=As("table",Je),wc=As("dropdown",Qt),si=Object.assign({childrenColumnName:wn,expandIconColumnIndex:na},ji),{childrenColumnName:Gi="children"}=si,zi=S.useMemo(()=>ts.some(ao=>ao==null?void 0:ao[Gi])?"nest":hi||ji&&ji.expandedRowRender?"row":null,[ts]),Di={body:S.useRef()},yo=S.useMemo(()=>typeof tn=="function"?tn:ao=>ao==null?void 0:ao[tn],[tn]),[Ni]=Us(ts,Gi,yo),Aa={},$a=function(ao,Wo){let Zl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ds,Ll,Vl;const Js=Object.assign(Object.assign({},Aa),ao);Zl&&((ds=Aa.resetPagination)===null||ds===void 0||ds.call(Aa),!((Ll=Js.pagination)===null||Ll===void 0)&&Ll.current&&(Js.pagination.current=1),Ir&&Ir.onChange&&Ir.onChange(1,(Vl=Js.pagination)===null||Vl===void 0?void 0:Vl.pageSize)),Jn&&Jn.scrollToFirstRowOnChange!==!1&&Di.body.current&&(0,Ma.Z)(0,{getContainer:()=>Di.body.current}),In==null||In(Js.pagination,Js.filters,Js.sorter,{currentDataSource:mA(Yo(ts,Js.sorterStates,Gi),Js.filterStates),action:Wo})},Wa=(ao,Wo)=>{$a({sorter:ao,sorterStates:Wo},"sort",!1)},[Fl,nl,Gc,Rs]=No({prefixCls:ns,mergedColumns:Wi,onSorterChange:Wa,sortDirections:mi||["ascend","descend"],tableLocale:go,showSorterTooltip:Pn}),Tc=S.useMemo(()=>Yo(ts,nl,Gi),[ts,nl]);Aa.sorter=Rs(),Aa.sorterStates=nl;const Kn=(ao,Wo)=>{$a({filters:ao,filterStates:Wo},"filter",!0)},[Ac,Mu,co]=qc({prefixCls:ns,locale:go,dropdownPrefixCls:wc,mergedColumns:Wi,onFilterChange:Kn,getPopupContainer:Cn||ga}),dn=mA(Tc,Mu);Aa.filters=co,Aa.filterStates=Mu;const Mo=S.useMemo(()=>{const ao={};return Object.keys(co).forEach(Wo=>{co[Wo]!==null&&(ao[Wo]=co[Wo])}),Object.assign(Object.assign({},Gc),{filters:ao})},[Gc,co]),[Al]=bc(Mo),us=(ao,Wo)=>{$a({pagination:Object.assign(Object.assign({},Aa.pagination),{current:ao,pageSize:Wo})},"paginate")},[ia,Bl]=gA(dn.length,us,Ir);Aa.pagination=Ir===!1?{}:ro(ia,Ir),Aa.resetPagination=Bl;const $l=S.useMemo(()=>{if(Ir===!1||!ia.pageSize)return dn;const{current:ao=1,total:Wo,pageSize:Zl=Hl}=ia;return dn.length<Wo?dn.length>Zl?dn.slice((ao-1)*Zl,ao*Zl):dn:dn.slice((ao-1)*Zl,ao*Zl)},[!!Ir,dn,ia&&ia.current,ia&&ia.pageSize,ia&&ia.total]),[Uc,xc]=Xs({prefixCls:ns,data:dn,pageData:$l,getRowKey:yo,getRecordByKey:Ni,expandType:zi,childrenColumnName:Gi,locale:go,getPopupContainer:Cn||ga},mr),Sl=(ao,Wo,Zl)=>{let ds;return typeof Vr=="function"?ds=D()(Vr(ao,Wo,Zl)):ds=D()(Vr),D()({[`${ns}-row-selected`]:xc.has(yo(ao,Wo))},ds)};si.__PARENT_RENDER_ICON__=si.expandIcon,si.expandIcon=si.expandIcon||Ti||Ts(go),zi==="nest"&&si.expandIconColumnIndex===void 0?si.expandIconColumnIndex=mr?1:0:si.expandIconColumnIndex>0&&mr&&(si.expandIconColumnIndex-=1),typeof si.indentSize!="number"&&(si.indentSize=typeof wa=="number"?wa:15);const ul=S.useCallback(ao=>Al(Uc(Ac(Fl(ao)))),[Fl,Ac,Uc]);let ou,Ml;if(Ir!==!1&&(ia!=null&&ia.total)){let ao;ia.size?ao=ia.size:ao=ol==="small"||ol==="middle"?"small":void 0;const Wo=Ll=>S.createElement(To.Z,Object.assign({},ia,{className:D()(`${ns}-pagination ${ns}-pagination-${Ll}`,ia.className),size:ao})),Zl=es==="rtl"?"left":"right",{position:ds}=ia;if(ds!==null&&Array.isArray(ds)){const Ll=ds.find(CA=>CA.includes("top")),Vl=ds.find(CA=>CA.includes("bottom")),Js=ds.every(CA=>`${CA}`=="none");!Ll&&!Vl&&!Js&&(Ml=Wo(Zl)),Ll&&(ou=Wo(Ll.toLowerCase().replace("top",""))),Vl&&(Ml=Wo(Vl.toLowerCase().replace("bottom","")))}else Ml=Wo(Zl)}let Qs;typeof zn=="boolean"?Qs={spinning:zn}:typeof zn=="object"&&(Qs=Object.assign({spinning:!0},zn));const[El,il]=Yu(ns),[,ks]=(0,mo.Z)(),Cc=D()(`${ns}-wrapper`,lo==null?void 0:lo.className,{[`${ns}-wrapper-rtl`]:es==="rtl"},ct,Bt,il),wA=Object.assign(Object.assign({},lo==null?void 0:lo.style),bt),TA=ai&&ai.emptyText||(ys==null?void 0:ys("Table"))||S.createElement(Va.Z,{componentName:"Table"}),xA=oi?Xu:jl,hf={},Vf=S.useMemo(()=>{const{fontSize:ao,lineHeight:Wo,padding:Zl,paddingXS:ds,paddingSM:Ll}=ks,Vl=Math.floor(ao*Wo);switch(ol){case"large":return Zl*2+Vl;case"small":return ds*2+Vl;default:return Ll*2+Vl}},[ks,ol]);return oi&&(hf.listItemHeight=Vf),El(S.createElement("div",{ref:xe,className:Cc,style:wA},S.createElement(Ps.Z,Object.assign({spinning:!1},Qs),ou,S.createElement(xA,Object.assign({},hf,Ia,{columns:Wi,direction:es,expandable:si,prefixCls:ns,className:D()({[`${ns}-middle`]:ol==="middle",[`${ns}-small`]:ol==="small",[`${ns}-bordered`]:zt,[`${ns}-empty`]:ts.length===0}),data:$l,rowKey:yo,rowClassName:Sl,emptyText:TA,internalHooks:Ae,internalRefs:Di,transformColumns:ul})),Ml)))};var w0=S.forwardRef(qu);const x0=(ue,xe)=>{const Je=S.useRef(0);return Je.current+=1,S.createElement(w0,Object.assign({},ue,{ref:xe,_renderTimes:Je.current}))},zl=S.forwardRef(x0);zl.SELECTION_COLUMN=bo,zl.EXPAND_COLUMN=pe,zl.SELECTION_ALL=$o,zl.SELECTION_INVERT=Zo,zl.SELECTION_NONE=Do,zl.Column=Vn,zl.ColumnGroup=ki,zl.Summary=H;var ed=zl,C0=ed},99313:function(An,Tt,x){"use strict";x.d(Tt,{default:function(){return vi}});var pe=x(99267),Ae=x(18785),P=x(62772),Ne=x(92310),te=x.n(Ne),V=x(54476),S=x(20068),g=x(33885),F=x(42978),v=x(76190),$=x(75931),_=x(59301),M=x(49658),O=x(18929),T=x(77900),L=(0,_.createContext)(null),Y=_.forwardRef(function(ge,Me){var Fe=ge.prefixCls,Ge=ge.className,Pt=ge.style,Dt=ge.id,_r=ge.active,nr=ge.tabKey,Or=ge.children;return _.createElement("div",{id:Dt&&"".concat(Dt,"-panel-").concat(nr),role:"tabpanel",tabIndex:_r?0:-1,"aria-labelledby":Dt&&"".concat(Dt,"-tab-").concat(nr),"aria-hidden":!_r,style:Pt,className:te()(Fe,_r&&"".concat(Fe,"-active"),Ge),ref:Me},Or)}),R=Y,se=["key","forceRender","style","className"];function ne(ge){var Me=ge.id,Fe=ge.activeKey,Ge=ge.animated,Pt=ge.tabPosition,Dt=ge.destroyInactiveTabPane,_r=_.useContext(L),nr=_r.prefixCls,Or=_r.tabs,Hr=Ge.tabPane,an="".concat(nr,"-tabpane");return _.createElement("div",{className:te()("".concat(nr,"-content-holder"))},_.createElement("div",{className:te()("".concat(nr,"-content"),"".concat(nr,"-content-").concat(Pt),(0,S.Z)({},"".concat(nr,"-content-animated"),Hr))},Or.map(function(jr){var Rr=jr.key,en=jr.forceRender,yn=jr.style,on=jr.className,Dn=(0,$.Z)(jr,se),Rn=Rr===Fe;return _.createElement(T.default,(0,V.Z)({key:Rr,visible:Rn,forceRender:en,removeOnLeave:!!Dt,leavedClassName:"".concat(an,"-hidden")},Ge.tabPaneMotion),function(di,Nn){var Gn=di.style,Vt=di.className;return _.createElement(R,(0,V.Z)({},Dn,{prefixCls:an,id:Me,tabKey:Rr,animated:Hr,active:Rn,style:(0,g.Z)((0,g.Z)({},yn),Gn),className:te()(on,Vt),ref:Nn}))})})))}var J=x(94480),W=x(29301),K=x(6089),le=x(8654),me={width:0,height:0,left:0,top:0};function Oe(ge,Me,Fe){return(0,_.useMemo)(function(){for(var Ge,Pt=new Map,Dt=Me.get((Ge=ge[0])===null||Ge===void 0?void 0:Ge.key)||me,_r=Dt.left+Dt.width,nr=0;nr<ge.length;nr+=1){var Or=ge[nr].key,Hr=Me.get(Or);if(!Hr){var an;Hr=Me.get((an=ge[nr-1])===null||an===void 0?void 0:an.key)||me}var jr=Pt.get(Or)||(0,g.Z)({},Hr);jr.right=_r-jr.left-jr.width,Pt.set(Or,jr)}return Pt},[ge.map(function(Ge){return Ge.key}).join("_"),Me,Fe])}function Be(ge,Me){var Fe=_.useRef(ge),Ge=_.useState({}),Pt=(0,F.Z)(Ge,2),Dt=Pt[1];function _r(nr){var Or=typeof nr=="function"?nr(Fe.current):nr;Or!==Fe.current&&Me(Or,Fe.current),Fe.current=Or,Dt({})}return[Fe.current,_r]}var Ue=.1,ee=.01,fe=20,D=Math.pow(.995,fe);function Ye(ge,Me){var Fe=(0,_.useState)(),Ge=(0,F.Z)(Fe,2),Pt=Ge[0],Dt=Ge[1],_r=(0,_.useState)(0),nr=(0,F.Z)(_r,2),Or=nr[0],Hr=nr[1],an=(0,_.useState)(0),jr=(0,F.Z)(an,2),Rr=jr[0],en=jr[1],yn=(0,_.useState)(),on=(0,F.Z)(yn,2),Dn=on[0],Rn=on[1],di=(0,_.useRef)();function Nn(jt){var or=jt.touches[0],cr=or.screenX,Pr=or.screenY;Dt({x:cr,y:Pr}),window.clearInterval(di.current)}function Gn(jt){if(Pt){jt.preventDefault();var or=jt.touches[0],cr=or.screenX,Pr=or.screenY;Dt({x:cr,y:Pr});var bn=cr-Pt.x,xn=Pr-Pt.y;Me(bn,xn);var ci=Date.now();Hr(ci),en(ci-Or),Rn({x:bn,y:xn})}}function Vt(){if(Pt&&(Dt(null),Rn(null),Dn)){var jt=Dn.x/Rr,or=Dn.y/Rr,cr=Math.abs(jt),Pr=Math.abs(or);if(Math.max(cr,Pr)<Ue)return;var bn=jt,xn=or;di.current=window.setInterval(function(){if(Math.abs(bn)<ee&&Math.abs(xn)<ee){window.clearInterval(di.current);return}bn*=D,xn*=D,Me(bn*fe,xn*fe)},fe)}}var Xt=(0,_.useRef)();function Yt(jt){var or=jt.deltaX,cr=jt.deltaY,Pr=0,bn=Math.abs(or),xn=Math.abs(cr);bn===xn?Pr=Xt.current==="x"?or:cr:bn>xn?(Pr=or,Xt.current="x"):(Pr=cr,Xt.current="y"),Me(-Pr,-Pr)&&jt.preventDefault()}var tr=(0,_.useRef)(null);tr.current={onTouchStart:Nn,onTouchMove:Gn,onTouchEnd:Vt,onWheel:Yt},_.useEffect(function(){function jt(bn){tr.current.onTouchStart(bn)}function or(bn){tr.current.onTouchMove(bn)}function cr(bn){tr.current.onTouchEnd(bn)}function Pr(bn){tr.current.onWheel(bn)}return document.addEventListener("touchmove",or,{passive:!1}),document.addEventListener("touchend",cr,{passive:!1}),ge.current.addEventListener("touchstart",jt,{passive:!1}),ge.current.addEventListener("wheel",Pr),function(){document.removeEventListener("touchmove",or),document.removeEventListener("touchend",cr)}},[])}var Le=x(34280);function Ce(ge){var Me=(0,_.useState)(0),Fe=(0,F.Z)(Me,2),Ge=Fe[0],Pt=Fe[1],Dt=(0,_.useRef)(0),_r=(0,_.useRef)();return _r.current=ge,(0,Le.o)(function(){var nr;(nr=_r.current)===null||nr===void 0||nr.call(_r)},[Ge]),function(){Dt.current===Ge&&(Dt.current+=1,Pt(Dt.current))}}function Te(ge){var Me=(0,_.useRef)([]),Fe=(0,_.useState)({}),Ge=(0,F.Z)(Fe,2),Pt=Ge[1],Dt=(0,_.useRef)(typeof ge=="function"?ge():ge),_r=Ce(function(){var Or=Dt.current;Me.current.forEach(function(Hr){Or=Hr(Or)}),Me.current=[],Dt.current=Or,Pt({})});function nr(Or){Me.current.push(Or),_r()}return[Dt.current,nr]}var be={width:0,height:0,left:0,top:0,right:0};function ke(ge,Me,Fe,Ge,Pt,Dt,_r){var nr=_r.tabs,Or=_r.tabPosition,Hr=_r.rtl,an,jr,Rr;return["top","bottom"].includes(Or)?(an="width",jr=Hr?"right":"left",Rr=Math.abs(Fe)):(an="height",jr="top",Rr=-Fe),(0,_.useMemo)(function(){if(!nr.length)return[0,0];for(var en=nr.length,yn=en,on=0;on<en;on+=1){var Dn=ge.get(nr[on].key)||be;if(Dn[jr]+Dn[an]>Rr+Me){yn=on-1;break}}for(var Rn=0,di=en-1;di>=0;di-=1){var Nn=ge.get(nr[di].key)||be;if(Nn[jr]<Rr){Rn=di+1;break}}return Rn>=yn?[0,0]:[Rn,yn]},[ge,Me,Ge,Pt,Dt,Rr,Or,nr.map(function(en){return en.key}).join("_"),Hr])}function he(ge){var Me;return ge instanceof Map?(Me={},ge.forEach(function(Fe,Ge){Me[Ge]=Fe})):Me=ge,JSON.stringify(Me)}var Ee="TABS_DQ";function Xe(ge){return String(ge).replace(/"/g,Ee)}function et(ge,Me,Fe,Ge){return!(!Fe||Ge||ge===!1||ge===void 0&&(Me===!1||Me===null))}function ze(ge,Me){var Fe=ge.prefixCls,Ge=ge.editable,Pt=ge.locale,Dt=ge.style;return!Ge||Ge.showAdd===!1?null:_.createElement("button",{ref:Me,type:"button",className:"".concat(Fe,"-nav-add"),style:Dt,"aria-label":(Pt==null?void 0:Pt.addAriaLabel)||"Add tab",onClick:function(nr){Ge.onEdit("add",{event:nr})}},Ge.addIcon||"+")}var qe=_.forwardRef(ze),_t=_.forwardRef(function(ge,Me){var Fe=ge.position,Ge=ge.prefixCls,Pt=ge.extra;if(!Pt)return null;var Dt,_r={};return(0,v.Z)(Pt)==="object"&&!_.isValidElement(Pt)?_r=Pt:_r.right=Pt,Fe==="right"&&(Dt=_r.right),Fe==="left"&&(Dt=_r.left),Dt?_.createElement("div",{className:"".concat(Ge,"-extra-content"),ref:Me},Dt):null}),Lt=_t,Nt=x(31561),sr=x(15285),er=x(10228);function yr(ge,Me){var Fe=ge.prefixCls,Ge=ge.id,Pt=ge.tabs,Dt=ge.locale,_r=ge.mobile,nr=ge.moreIcon,Or=nr===void 0?"More":nr,Hr=ge.moreTransitionName,an=ge.style,jr=ge.className,Rr=ge.editable,en=ge.tabBarGutter,yn=ge.rtl,on=ge.removeAriaLabel,Dn=ge.onTabClick,Rn=ge.getPopupContainer,di=ge.popupClassName,Nn=(0,_.useState)(!1),Gn=(0,F.Z)(Nn,2),Vt=Gn[0],Xt=Gn[1],Yt=(0,_.useState)(null),tr=(0,F.Z)(Yt,2),jt=tr[0],or=tr[1],cr="".concat(Ge,"-more-popup"),Pr="".concat(Fe,"-dropdown"),bn=jt!==null?"".concat(cr,"-").concat(jt):null,xn=Dt==null?void 0:Dt.dropdownAriaLabel;function ci(wi,Ai){wi.preventDefault(),wi.stopPropagation(),Rr.onEdit("remove",{key:Ai,event:wi})}var ri=_.createElement(sr.ZP,{onClick:function(Ai){var xi=Ai.key,Xi=Ai.domEvent;Dn(xi,Xi),Xt(!1)},prefixCls:"".concat(Pr,"-menu"),id:cr,tabIndex:-1,role:"listbox","aria-activedescendant":bn,selectedKeys:[jt],"aria-label":xn!==void 0?xn:"expanded dropdown"},Pt.map(function(wi){var Ai=wi.closable,xi=wi.disabled,Xi=wi.closeIcon,ti=wi.key,Pi=wi.label,za=et(Ai,Xi,Rr,xi);return _.createElement(sr.sN,{key:ti,id:"".concat(cr,"-").concat(ti),role:"option","aria-controls":Ge&&"".concat(Ge,"-panel-").concat(ti),disabled:xi},_.createElement("span",null,Pi),za&&_.createElement("button",{type:"button","aria-label":on||"remove",tabIndex:0,className:"".concat(Pr,"-menu-item-remove"),onClick:function(un){un.stopPropagation(),ci(un,ti)}},Xi||Rr.removeIcon||"\xD7"))}));function Si(wi){for(var Ai=Pt.filter(function(za){return!za.disabled}),xi=Ai.findIndex(function(za){return za.key===jt})||0,Xi=Ai.length,ti=0;ti<Xi;ti+=1){xi=(xi+wi+Xi)%Xi;var Pi=Ai[xi];if(!Pi.disabled){or(Pi.key);return}}}function qn(wi){var Ai=wi.which;if(!Vt){[er.Z.DOWN,er.Z.SPACE,er.Z.ENTER].includes(Ai)&&(Xt(!0),wi.preventDefault());return}switch(Ai){case er.Z.UP:Si(-1),wi.preventDefault();break;case er.Z.DOWN:Si(1),wi.preventDefault();break;case er.Z.ESC:Xt(!1);break;case er.Z.SPACE:case er.Z.ENTER:jt!==null&&Dn(jt,wi);break}}(0,_.useEffect)(function(){var wi=document.getElementById(bn);wi&&wi.scrollIntoView&&wi.scrollIntoView(!1)},[jt]),(0,_.useEffect)(function(){Vt||or(null)},[Vt]);var jn=(0,S.Z)({},yn?"marginRight":"marginLeft",en);Pt.length||(jn.visibility="hidden",jn.order=1);var yi=te()((0,S.Z)({},"".concat(Pr,"-rtl"),yn)),bi=_r?null:_.createElement(Nt.Z,{prefixCls:Pr,overlay:ri,trigger:["hover"],visible:Pt.length?Vt:!1,transitionName:Hr,onVisibleChange:Xt,overlayClassName:te()(yi,di),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Rn},_.createElement("button",{type:"button",className:"".concat(Fe,"-nav-more"),style:jn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":cr,id:"".concat(Ge,"-more"),"aria-expanded":Vt,onKeyDown:qn},Or));return _.createElement("div",{className:te()("".concat(Fe,"-nav-operations"),jr),style:an,ref:Me},bi,_.createElement(qe,{prefixCls:Fe,locale:Dt,editable:Rr}))}var lr=_.memo(_.forwardRef(yr),function(ge,Me){return Me.tabMoving});function G(ge){var Me,Fe=ge.prefixCls,Ge=ge.id,Pt=ge.active,Dt=ge.tab,_r=Dt.key,nr=Dt.label,Or=Dt.disabled,Hr=Dt.closeIcon,an=ge.closable,jr=ge.renderWrapper,Rr=ge.removeAriaLabel,en=ge.editable,yn=ge.onClick,on=ge.onFocus,Dn=ge.style,Rn="".concat(Fe,"-tab"),di=et(an,Hr,en,Or);function Nn(Xt){Or||yn(Xt)}function Gn(Xt){Xt.preventDefault(),Xt.stopPropagation(),en.onEdit("remove",{key:_r,event:Xt})}var Vt=_.createElement("div",{key:_r,"data-node-key":Xe(_r),className:te()(Rn,(Me={},(0,S.Z)(Me,"".concat(Rn,"-with-remove"),di),(0,S.Z)(Me,"".concat(Rn,"-active"),Pt),(0,S.Z)(Me,"".concat(Rn,"-disabled"),Or),Me)),style:Dn,onClick:Nn},_.createElement("div",{role:"tab","aria-selected":Pt,id:Ge&&"".concat(Ge,"-tab-").concat(_r),className:"".concat(Rn,"-btn"),"aria-controls":Ge&&"".concat(Ge,"-panel-").concat(_r),"aria-disabled":Or,tabIndex:Or?null:0,onClick:function(Yt){Yt.stopPropagation(),Nn(Yt)},onKeyDown:function(Yt){[er.Z.SPACE,er.Z.ENTER].includes(Yt.which)&&(Yt.preventDefault(),Nn(Yt))},onFocus:on},nr),di&&_.createElement("button",{type:"button","aria-label":Rr||"remove",tabIndex:0,className:"".concat(Rn,"-remove"),onClick:function(Yt){Yt.stopPropagation(),Gn(Yt)}},Hr||en.removeIcon||"\xD7"));return jr?jr(Vt):Vt}var dt=G,I=x(16089),m=function(Me){var Fe=Me.activeTabOffset,Ge=Me.horizontal,Pt=Me.rtl,Dt=Me.indicatorSize,_r=(0,_.useState)(),nr=(0,F.Z)(_r,2),Or=nr[0],Hr=nr[1],an=(0,_.useRef)(),jr=function(yn){return typeof Dt=="function"?Dt(yn):typeof Dt=="number"?Dt:yn};function Rr(){I.Z.cancel(an.current)}return(0,_.useEffect)(function(){var en={};return Fe&&(Ge?(Pt?(en.right=Fe.right+Fe.width/2,en.transform="translateX(50%)"):(en.left=Fe.left+Fe.width/2,en.transform="translateX(-50%)"),en.width=jr(Fe.width)):(en.top=Fe.top+Fe.height/2,en.transform="translateY(-50%)",en.height=jr(Fe.height))),Rr(),an.current=(0,I.Z)(function(){Hr(en)}),Rr},[Fe,Ge,Pt,Dt]),{style:Or}},u=m,C=function(Me){var Fe=Me.current||{},Ge=Fe.offsetWidth,Pt=Ge===void 0?0:Ge,Dt=Fe.offsetHeight,_r=Dt===void 0?0:Dt;return[Pt,_r]},q=function(Me,Fe){return Me[Fe?0:1]};function Se(ge,Me){var Fe,Ge=_.useContext(L),Pt=Ge.prefixCls,Dt=Ge.tabs,_r=ge.className,nr=ge.style,Or=ge.id,Hr=ge.animated,an=ge.activeKey,jr=ge.rtl,Rr=ge.extra,en=ge.editable,yn=ge.locale,on=ge.tabPosition,Dn=ge.tabBarGutter,Rn=ge.children,di=ge.onTabClick,Nn=ge.onTabScroll,Gn=ge.indicatorSize,Vt=(0,_.useRef)(),Xt=(0,_.useRef)(),Yt=(0,_.useRef)(),tr=(0,_.useRef)(),jt=(0,_.useRef)(),or=(0,_.useRef)(),cr=(0,_.useRef)(),Pr=on==="top"||on==="bottom",bn=Be(0,function(to,Qa){Pr&&Nn&&Nn({direction:to>Qa?"left":"right"})}),xn=(0,F.Z)(bn,2),ci=xn[0],ri=xn[1],Si=Be(0,function(to,Qa){!Pr&&Nn&&Nn({direction:to>Qa?"top":"bottom"})}),qn=(0,F.Z)(Si,2),jn=qn[0],yi=qn[1],bi=(0,_.useState)([0,0]),wi=(0,F.Z)(bi,2),Ai=wi[0],xi=wi[1],Xi=(0,_.useState)([0,0]),ti=(0,F.Z)(Xi,2),Pi=ti[0],za=ti[1],li=(0,_.useState)([0,0]),un=(0,F.Z)(li,2),sn=un[0],Xn=un[1],Qn=(0,_.useState)([0,0]),fi=(0,F.Z)(Qn,2),qi=fi[0],Ii=fi[1],Ra=Te(new Map),ua=(0,F.Z)(Ra,2),Co=ua[0],Vn=ua[1],_n=Oe(Dt,Co,Pi[0]),ki=q(Ai,Pr),Ji=q(Pi,Pr),Ma=q(sn,Pr),Ms=q(qi,Pr),Va=ki<Ji+Ma,fa=Va?ki-Ms:ki-Ma,_o="".concat(Pt,"-nav-operations-hidden"),Bo=0,To=0;Pr&&jr?(Bo=0,To=Math.max(0,Ji-fa)):(Bo=Math.min(0,fa-Ji),To=0);function Ps(to){return to<Bo?Bo:to>To?To:to}var mo=(0,_.useRef)(),xs=(0,_.useState)(),Ts=(0,F.Z)(xs,2),$s=Ts[0],Uo=Ts[1];function Ro(){Uo(Date.now())}function Cs(){window.clearTimeout(mo.current)}Ye(tr,function(to,Qa){function ss(ls,Ls){ls(function(Jo){var Io=Ps(Jo+Ls);return Io})}return Va?(Pr?ss(ri,to):ss(yi,Qa),Cs(),Ro(),!0):!1}),(0,_.useEffect)(function(){return Cs(),$s&&(mo.current=window.setTimeout(function(){Uo(0)},100)),Cs},[$s]);var el=ke(_n,fa,Pr?ci:jn,Ji,Ma,Ms,(0,g.Z)((0,g.Z)({},ge),{},{tabs:Dt})),vl=(0,F.Z)(el,2),tc=vl[0],rc=vl[1],Rl=(0,K.Z)(function(){var to=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an,Qa=_n.get(to)||{width:0,height:0,left:0,right:0,top:0};if(Pr){var ss=ci;jr?Qa.right<ci?ss=Qa.right:Qa.right+Qa.width>ci+fa&&(ss=Qa.right+Qa.width-fa):Qa.left<-ci?ss=-Qa.left:Qa.left+Qa.width>-ci+fa&&(ss=-(Qa.left+Qa.width-fa)),yi(0),ri(Ps(ss))}else{var ls=jn;Qa.top<-jn?ls=-Qa.top:Qa.top+Qa.height>-jn+fa&&(ls=-(Qa.top+Qa.height-fa)),ri(0),yi(Ps(ls))}}),Zs={};on==="top"||on==="bottom"?Zs[jr?"marginRight":"marginLeft"]=Dn:Zs.marginTop=Dn;var kc=Dt.map(function(to,Qa){var ss=to.key;return _.createElement(dt,{id:Or,prefixCls:Pt,key:ss,tab:to,style:Qa===0?void 0:Zs,closable:to.closable,editable:en,active:ss===an,renderWrapper:Rn,removeAriaLabel:yn==null?void 0:yn.removeAriaLabel,onClick:function(Ls){di(ss,Ls)},onFocus:function(){Rl(ss),Ro(),tr.current&&(jr||(tr.current.scrollLeft=0),tr.current.scrollTop=0)}})}),Ql=function(){return Vn(function(){var Qa=new Map;return Dt.forEach(function(ss){var ls,Ls=ss.key,Jo=(ls=jt.current)===null||ls===void 0?void 0:ls.querySelector('[data-node-key="'.concat(Xe(Ls),'"]'));Jo&&Qa.set(Ls,{width:Jo.offsetWidth,height:Jo.offsetHeight,left:Jo.offsetLeft,top:Jo.offsetTop})}),Qa})};(0,_.useEffect)(function(){Ql()},[Dt.map(function(to){return to.key}).join("_")]);var Kl=Ce(function(){var to=C(Vt),Qa=C(Xt),ss=C(Yt);xi([to[0]-Qa[0]-ss[0],to[1]-Qa[1]-ss[1]]);var ls=C(cr);Xn(ls);var Ls=C(or);Ii(Ls);var Jo=C(jt);za([Jo[0]-ls[0],Jo[1]-ls[1]]),Ql()}),Vs=Dt.slice(0,tc),os=Dt.slice(rc+1),ni=[].concat((0,J.Z)(Vs),(0,J.Z)(os)),ca=_n.get(an),ta=u({activeTabOffset:ca,horizontal:Pr,rtl:jr,indicatorSize:Gn}),oa=ta.style;(0,_.useEffect)(function(){Rl()},[an,Bo,To,he(ca),he(_n),Pr]),(0,_.useEffect)(function(){Kl()},[jr]);var Oa=!!ni.length,so="".concat(Pt,"-nav-wrap"),Ws,Bs,Ss,vs;return Pr?jr?(Bs=ci>0,Ws=ci!==To):(Ws=ci<0,Bs=ci!==Bo):(Ss=jn<0,vs=jn!==Bo),_.createElement(W.Z,{onResize:Kl},_.createElement("div",{ref:(0,le.x1)(Me,Vt),role:"tablist",className:te()("".concat(Pt,"-nav"),_r),style:nr,onKeyDown:function(){Ro()}},_.createElement(Lt,{ref:Xt,position:"left",extra:Rr,prefixCls:Pt}),_.createElement(W.Z,{onResize:Kl},_.createElement("div",{className:te()(so,(Fe={},(0,S.Z)(Fe,"".concat(so,"-ping-left"),Ws),(0,S.Z)(Fe,"".concat(so,"-ping-right"),Bs),(0,S.Z)(Fe,"".concat(so,"-ping-top"),Ss),(0,S.Z)(Fe,"".concat(so,"-ping-bottom"),vs),Fe)),ref:tr},_.createElement(W.Z,{onResize:Kl},_.createElement("div",{ref:jt,className:"".concat(Pt,"-nav-list"),style:{transform:"translate(".concat(ci,"px, ").concat(jn,"px)"),transition:$s?"none":void 0}},kc,_.createElement(qe,{ref:cr,prefixCls:Pt,locale:yn,editable:en,style:(0,g.Z)((0,g.Z)({},kc.length===0?void 0:Zs),{},{visibility:Oa?"hidden":null})}),_.createElement("div",{className:te()("".concat(Pt,"-ink-bar"),(0,S.Z)({},"".concat(Pt,"-ink-bar-animated"),Hr.inkBar)),style:oa}))))),_.createElement(lr,(0,V.Z)({},ge,{removeAriaLabel:yn==null?void 0:yn.removeAriaLabel,ref:or,prefixCls:Pt,tabs:ni,className:!Oa&&_o,tabMoving:!!$s})),_.createElement(Lt,{ref:Yt,position:"right",extra:Rr,prefixCls:Pt})))}var H=_.forwardRef(Se),ie=["renderTabBar"],Qe=["label","key"];function we(ge){var Me=ge.renderTabBar,Fe=(0,$.Z)(ge,ie),Ge=_.useContext(L),Pt=Ge.tabs;if(Me){var Dt=(0,g.Z)((0,g.Z)({},Fe),{},{panes:Pt.map(function(_r){var nr=_r.label,Or=_r.key,Hr=(0,$.Z)(_r,Qe);return _.createElement(R,(0,V.Z)({tab:nr,key:Or,tabKey:Or},Hr))})});return Me(Dt,H)}return _.createElement(H,Fe)}var ye=x(48736);function je(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Me;return ge===!1?Me={inkBar:!1,tabPane:!1}:ge===!0?Me={inkBar:!0,tabPane:!1}:Me=(0,g.Z)({inkBar:!0},(0,v.Z)(ge)==="object"?ge:{}),Me.tabPaneMotion&&Me.tabPane===void 0&&(Me.tabPane=!0),!Me.tabPaneMotion&&Me.tabPane&&(Me.tabPane=!1),Me}var Ct=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],de=0;function st(ge,Me){var Fe,Ge=ge.id,Pt=ge.prefixCls,Dt=Pt===void 0?"rc-tabs":Pt,_r=ge.className,nr=ge.items,Or=ge.direction,Hr=ge.activeKey,an=ge.defaultActiveKey,jr=ge.editable,Rr=ge.animated,en=ge.tabPosition,yn=en===void 0?"top":en,on=ge.tabBarGutter,Dn=ge.tabBarStyle,Rn=ge.tabBarExtraContent,di=ge.locale,Nn=ge.moreIcon,Gn=ge.moreTransitionName,Vt=ge.destroyInactiveTabPane,Xt=ge.renderTabBar,Yt=ge.onChange,tr=ge.onTabClick,jt=ge.onTabScroll,or=ge.getPopupContainer,cr=ge.popupClassName,Pr=ge.indicatorSize,bn=(0,$.Z)(ge,Ct),xn=_.useMemo(function(){return(nr||[]).filter(function(Ii){return Ii&&(0,v.Z)(Ii)==="object"&&"key"in Ii})},[nr]),ci=Or==="rtl",ri=je(Rr),Si=(0,_.useState)(!1),qn=(0,F.Z)(Si,2),jn=qn[0],yi=qn[1];(0,_.useEffect)(function(){yi((0,M.Z)())},[]);var bi=(0,O.Z)(function(){var Ii;return(Ii=xn[0])===null||Ii===void 0?void 0:Ii.key},{value:Hr,defaultValue:an}),wi=(0,F.Z)(bi,2),Ai=wi[0],xi=wi[1],Xi=(0,_.useState)(function(){return xn.findIndex(function(Ii){return Ii.key===Ai})}),ti=(0,F.Z)(Xi,2),Pi=ti[0],za=ti[1];(0,_.useEffect)(function(){var Ii=xn.findIndex(function(ua){return ua.key===Ai});if(Ii===-1){var Ra;Ii=Math.max(0,Math.min(Pi,xn.length-1)),xi((Ra=xn[Ii])===null||Ra===void 0?void 0:Ra.key)}za(Ii)},[xn.map(function(Ii){return Ii.key}).join("_"),Ai,Pi]);var li=(0,O.Z)(null,{value:Ge}),un=(0,F.Z)(li,2),sn=un[0],Xn=un[1];(0,_.useEffect)(function(){Ge||(Xn("rc-tabs-".concat(de)),de+=1)},[]);function Qn(Ii,Ra){tr==null||tr(Ii,Ra);var ua=Ii!==Ai;xi(Ii),ua&&(Yt==null||Yt(Ii))}var fi={id:sn,activeKey:Ai,animated:ri,tabPosition:yn,rtl:ci,mobile:jn},qi=(0,g.Z)((0,g.Z)({},fi),{},{editable:jr,locale:di,moreIcon:Nn,moreTransitionName:Gn,tabBarGutter:on,onTabClick:Qn,onTabScroll:jt,extra:Rn,style:Dn,panes:null,getPopupContainer:or,popupClassName:cr,indicatorSize:Pr});return _.createElement(L.Provider,{value:{tabs:xn,prefixCls:Dt}},_.createElement("div",(0,V.Z)({ref:Me,id:Ge,className:te()(Dt,"".concat(Dt,"-").concat(yn),(Fe={},(0,S.Z)(Fe,"".concat(Dt,"-mobile"),jn),(0,S.Z)(Fe,"".concat(Dt,"-editable"),jr),(0,S.Z)(Fe,"".concat(Dt,"-rtl"),ci),Fe),_r)},bn),_.createElement(we,(0,V.Z)({},qi,{renderTabBar:Xt})),_.createElement(ne,(0,V.Z)({destroyInactiveTabPane:Vt},fi,{animated:ri}))))}var tt=_.forwardRef(st),Ie=tt,De=Ie,lt=x(36355),Ut=x(19716),rr=()=>null,Fr=x(62892);const kr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Dr(ge){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Fe;return Me===!1?Fe={inkBar:!1,tabPane:!1}:Me===!0?Fe={inkBar:!0,tabPane:!0}:Fe=Object.assign({inkBar:!0},typeof Me=="object"?Me:{}),Fe.tabPane&&(Fe.tabPaneMotion=Object.assign(Object.assign({},kr),{motionName:(0,Fr.m)(ge,"switch")})),Fe}var Nr=x(11592),xr=function(ge,Me){var Fe={};for(var Ge in ge)Object.prototype.hasOwnProperty.call(ge,Ge)&&Me.indexOf(Ge)<0&&(Fe[Ge]=ge[Ge]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ge=Object.getOwnPropertySymbols(ge);Pt<Ge.length;Pt++)Me.indexOf(Ge[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ge[Pt])&&(Fe[Ge[Pt]]=ge[Ge[Pt]]);return Fe};function ur(ge){return ge.filter(Me=>Me)}function Qr(ge,Me){if(ge)return ge;const Fe=(0,Nr.Z)(Me).map(Ge=>{if(_.isValidElement(Ge)){const{key:Pt,props:Dt}=Ge,_r=Dt||{},{tab:nr}=_r,Or=xr(_r,["tab"]);return Object.assign(Object.assign({key:String(Pt)},Or),{label:nr})}return null});return ur(Fe)}var hn=x(17313),Ln=x(83116),pn=x(37613),kn=x(13826),hr=ge=>{const{componentCls:Me,motionDurationSlow:Fe}=ge;return[{[Me]:{[`${Me}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Fe}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Fe}`}}}}},[(0,kn.oN)(ge,"slide-up"),(0,kn.oN)(ge,"slide-down")]]};const Wn=ge=>{const{componentCls:Me,tabsCardPadding:Fe,cardBg:Ge,cardGutter:Pt,colorBorderSecondary:Dt,itemSelectedColor:_r}=ge;return{[`${Me}-card`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{margin:0,padding:Fe,background:Ge,border:`${ge.lineWidth}px ${ge.lineType} ${Dt}`,transition:`all ${ge.motionDurationSlow} ${ge.motionEaseInOut}`},[`${Me}-tab-active`]:{color:_r,background:ge.colorBgContainer},[`${Me}-ink-bar`]:{visibility:"hidden"}},[`&${Me}-top, &${Me}-bottom`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab + ${Me}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Pt}px`}}}},[`&${Me}-top`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{borderRadius:`${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0 0`},[`${Me}-tab-active`]:{borderBottomColor:ge.colorBgContainer}}},[`&${Me}-bottom`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{borderRadius:`0 0 ${ge.borderRadiusLG}px ${ge.borderRadiusLG}px`},[`${Me}-tab-active`]:{borderTopColor:ge.colorBgContainer}}},[`&${Me}-left, &${Me}-right`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab + ${Me}-tab`]:{marginTop:`${Pt}px`}}},[`&${Me}-left`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ge.borderRadiusLG}px 0 0 ${ge.borderRadiusLG}px`}},[`${Me}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ge.colorBgContainer}}}},[`&${Me}-right`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0`}},[`${Me}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ge.colorBgContainer}}}}}}},Hi=ge=>{const{componentCls:Me,itemHoverColor:Fe,dropdownEdgeChildVerticalPadding:Ge}=ge;return{[`${Me}-dropdown`]:Object.assign(Object.assign({},(0,hn.Wf)(ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ge.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Me}-dropdown-menu`]:{maxHeight:ge.tabsDropdownHeight,margin:0,padding:`${Ge}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ge.colorBgContainer,backgroundClip:"padding-box",borderRadius:ge.borderRadiusLG,outline:"none",boxShadow:ge.boxShadowSecondary,"&-item":Object.assign(Object.assign({},hn.vS),{display:"flex",alignItems:"center",minWidth:ge.tabsDropdownWidth,margin:0,padding:`${ge.paddingXXS}px ${ge.paddingSM}px`,color:ge.colorText,fontWeight:"normal",fontSize:ge.fontSize,lineHeight:ge.lineHeight,cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ge.marginSM},color:ge.colorTextDescription,fontSize:ge.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Fe}},"&:hover":{background:ge.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ge.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ui=ge=>{const{componentCls:Me,margin:Fe,colorBorderSecondary:Ge,horizontalMargin:Pt,verticalItemPadding:Dt,verticalItemMargin:_r}=ge;return{[`${Me}-top, ${Me}-bottom`]:{flexDirection:"column",[`> ${Me}-nav, > div > ${Me}-nav`]:{margin:Pt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ge.lineWidth}px ${ge.lineType} ${Ge}`,content:"''"},[`${Me}-ink-bar`]:{height:ge.lineWidthBold,"&-animated":{transition:`width ${ge.motionDurationSlow}, left ${ge.motionDurationSlow},
|
|
|
right ${ge.motionDurationSlow}`}},[`${Me}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ge.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ge.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ge.boxShadowTabsOverflowRight},[`&${Me}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Me}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Me}-top`]:{[`> ${Me}-nav,
|
|
|
> div > ${Me}-nav`]:{"&::before":{bottom:0},[`${Me}-ink-bar`]:{bottom:0}}},[`${Me}-bottom`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{order:1,marginTop:`${Fe}px`,marginBottom:0,"&::before":{top:0},[`${Me}-ink-bar`]:{top:0}},[`> ${Me}-content-holder, > div > ${Me}-content-holder`]:{order:0}},[`${Me}-left, ${Me}-right`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{flexDirection:"column",minWidth:ge.controlHeight*1.25,[`${Me}-tab`]:{padding:Dt,textAlign:"center"},[`${Me}-tab + ${Me}-tab`]:{margin:_r},[`${Me}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:ge.controlHeight},"&::before":{top:0,boxShadow:ge.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ge.boxShadowTabsOverflowBottom},[`&${Me}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Me}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Me}-ink-bar`]:{width:ge.lineWidthBold,"&-animated":{transition:`height ${ge.motionDurationSlow}, top ${ge.motionDurationSlow}`}},[`${Me}-nav-list, ${Me}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Me}-left`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Me}-content-holder, > div > ${Me}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${ge.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`},[`> ${Me}-content > ${Me}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ge.paddingLG}}}},[`${Me}-right`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{order:1,[`${Me}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Me}-content-holder, > div > ${Me}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-ge.lineWidth},borderRight:{_skip_check_:!0,value:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`},[`> ${Me}-content > ${Me}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ge.paddingLG}}}}}},$i=ge=>{const{componentCls:Me,cardPaddingSM:Fe,cardPaddingLG:Ge,horizontalItemPaddingSM:Pt,horizontalItemPaddingLG:Dt}=ge;return{[Me]:{"&-small":{[`> ${Me}-nav`]:{[`${Me}-tab`]:{padding:Pt,fontSize:ge.titleFontSizeSM}}},"&-large":{[`> ${Me}-nav`]:{[`${Me}-tab`]:{padding:Dt,fontSize:ge.titleFontSizeLG}}}},[`${Me}-card`]:{[`&${Me}-small`]:{[`> ${Me}-nav`]:{[`${Me}-tab`]:{padding:Fe}},[`&${Me}-bottom`]:{[`> ${Me}-nav ${Me}-tab`]:{borderRadius:`0 0 ${ge.borderRadius}px ${ge.borderRadius}px`}},[`&${Me}-top`]:{[`> ${Me}-nav ${Me}-tab`]:{borderRadius:`${ge.borderRadius}px ${ge.borderRadius}px 0 0`}},[`&${Me}-right`]:{[`> ${Me}-nav ${Me}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ge.borderRadius}px ${ge.borderRadius}px 0`}}},[`&${Me}-left`]:{[`> ${Me}-nav ${Me}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ge.borderRadius}px 0 0 ${ge.borderRadius}px`}}}},[`&${Me}-large`]:{[`> ${Me}-nav`]:{[`${Me}-tab`]:{padding:Ge}}}}}},Ri=ge=>{const{componentCls:Me,itemActiveColor:Fe,itemHoverColor:Ge,iconCls:Pt,tabsHorizontalItemMargin:Dt,horizontalItemPadding:_r,itemSelectedColor:nr,itemColor:Or}=ge,Hr=`${Me}-tab`;return{[Hr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:_r,fontSize:ge.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Or,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Fe}},(0,hn.Qy)(ge)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-ge.marginXXS},marginLeft:{_skip_check_:!0,value:ge.marginXS},color:ge.colorTextDescription,fontSize:ge.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"&:hover":{color:ge.colorTextHeading}},"&:hover":{color:Ge},[`&${Hr}-active ${Hr}-btn`]:{color:nr,textShadow:ge.tabsActiveTextShadow},[`&${Hr}-disabled`]:{color:ge.colorTextDisabled,cursor:"not-allowed"},[`&${Hr}-disabled ${Hr}-btn, &${Hr}-disabled ${Me}-remove`]:{"&:focus, &:active":{color:ge.colorTextDisabled}},[`& ${Hr}-remove ${Pt}`]:{margin:0},[Pt]:{marginRight:{_skip_check_:!0,value:ge.marginSM}}},[`${Hr} + ${Hr}`]:{margin:{_skip_check_:!0,value:Dt}}}},Zi=ge=>{const{componentCls:Me,tabsHorizontalItemMarginRTL:Fe,iconCls:Ge,cardGutter:Pt}=ge;return{[`${Me}-rtl`]:{direction:"rtl",[`${Me}-nav`]:{[`${Me}-tab`]:{margin:{_skip_check_:!0,value:Fe},[`${Me}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ge]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${ge.marginSM}px`}},[`${Me}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${ge.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${ge.marginXXS}px`},[Ge]:{margin:0}}}},[`&${Me}-left`]:{[`> ${Me}-nav`]:{order:1},[`> ${Me}-content-holder`]:{order:0}},[`&${Me}-right`]:{[`> ${Me}-nav`]:{order:0},[`> ${Me}-content-holder`]:{order:1}},[`&${Me}-card${Me}-top, &${Me}-card${Me}-bottom`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab + ${Me}-tab`]:{marginRight:{_skip_check_:!0,value:Pt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Me}-dropdown-rtl`]:{direction:"rtl"},[`${Me}-menu-item`]:{[`${Me}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Za=ge=>{const{componentCls:Me,tabsCardPadding:Fe,cardHeight:Ge,cardGutter:Pt,itemHoverColor:Dt,itemActiveColor:_r,colorBorderSecondary:nr}=ge;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,hn.Wf)(ge)),{display:"flex",[`> ${Me}-nav, > div > ${Me}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Me}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${ge.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Me}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ge.motionDurationSlow}`},[`${Me}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Me}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Me}-nav-more`]:{position:"relative",padding:Fe,background:"transparent",border:0,color:ge.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ge.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Me}-nav-add`]:Object.assign({minWidth:Ge,marginLeft:{_skip_check_:!0,value:Pt},padding:`0 ${ge.paddingXS}px`,background:"transparent",border:`${ge.lineWidth}px ${ge.lineType} ${nr}`,borderRadius:`${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:ge.colorText,transition:`all ${ge.motionDurationSlow} ${ge.motionEaseInOut}`,"&:hover":{color:Dt},"&:active, &:focus:not(:focus-visible)":{color:_r}},(0,hn.Qy)(ge))},[`${Me}-extra-content`]:{flex:"none"},[`${Me}-ink-bar`]:{position:"absolute",background:ge.inkBarColor,pointerEvents:"none"}}),Ri(ge)),{[`${Me}-content`]:{position:"relative",width:"100%"},[`${Me}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Me}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Me}-centered`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-nav-wrap`]:{[`&:not([class*='${Me}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var _i=(0,Ln.Z)("Tabs",ge=>{const Me=(0,pn.TS)(ge,{tabsCardPadding:ge.cardPadding||`${(ge.cardHeight-Math.round(ge.fontSize*ge.lineHeight))/2-ge.lineWidth}px ${ge.padding}px`,dropdownEdgeChildVerticalPadding:ge.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ge.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${ge.horizontalItemGutter}px`});return[$i(Me),Zi(Me),ui(Me),Hi(Me),Wn(Me),Za(Me),hr(Me)]},ge=>{const Me=ge.controlHeightLG;return{zIndexPopup:ge.zIndexPopupBase+50,cardBg:ge.colorFillAlter,cardHeight:Me,cardPadding:"",cardPaddingSM:`${ge.paddingXXS*1.5}px ${ge.padding}px`,cardPaddingLG:`${ge.paddingXS}px ${ge.padding}px ${ge.paddingXXS*1.5}px`,titleFontSize:ge.fontSize,titleFontSizeLG:ge.fontSizeLG,titleFontSizeSM:ge.fontSize,inkBarColor:ge.colorPrimary,horizontalMargin:`0 0 ${ge.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ge.paddingSM}px 0`,horizontalItemPaddingSM:`${ge.paddingXS}px 0`,horizontalItemPaddingLG:`${ge.padding}px 0`,verticalItemPadding:`${ge.paddingXS}px ${ge.paddingLG}px`,verticalItemMargin:`${ge.margin}px 0 0 0`,itemColor:ge.colorText,itemSelectedColor:ge.colorPrimary,itemHoverColor:ge.colorPrimaryHover,itemActiveColor:ge.colorPrimaryActive,cardGutter:ge.marginXXS/2}}),Yn=function(ge,Me){var Fe={};for(var Ge in ge)Object.prototype.hasOwnProperty.call(ge,Ge)&&Me.indexOf(Ge)<0&&(Fe[Ge]=ge[Ge]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ge=Object.getOwnPropertySymbols(ge);Pt<Ge.length;Pt++)Me.indexOf(Ge[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ge[Pt])&&(Fe[Ge[Pt]]=ge[Ge[Pt]]);return Fe};const ii=ge=>{const{type:Me,className:Fe,rootClassName:Ge,size:Pt,onEdit:Dt,hideAdd:_r,centered:nr,addIcon:Or,popupClassName:Hr,children:an,items:jr,animated:Rr,style:en,indicatorSize:yn}=ge,on=Yn(ge,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Dn,moreIcon:Rn=_.createElement(Ae.Z,null)}=on,{direction:di,tabs:Nn,getPrefixCls:Gn,getPopupContainer:Vt}=_.useContext(lt.E_),Xt=Gn("tabs",Dn),[Yt,tr]=_i(Xt);let jt;Me==="editable-card"&&(jt={onEdit:(ci,ri)=>{let{key:Si,event:qn}=ri;Dt==null||Dt(ci==="add"?qn:Si,ci)},removeIcon:_.createElement(pe.Z,null),addIcon:Or||_.createElement(P.Z,null),showAdd:_r!==!0});const or=Gn(),cr=Qr(jr,an),Pr=Dr(Xt,Rr),bn=(0,Ut.Z)(Pt),xn=Object.assign(Object.assign({},Nn==null?void 0:Nn.style),en);return Yt(_.createElement(De,Object.assign({direction:di,getPopupContainer:Vt,moreTransitionName:`${or}-slide-up`},on,{items:cr,className:te()({[`${Xt}-${bn}`]:bn,[`${Xt}-card`]:["card","editable-card"].includes(Me),[`${Xt}-editable-card`]:Me==="editable-card",[`${Xt}-centered`]:nr},Nn==null?void 0:Nn.className,Fe,Ge,tr),popupClassName:te()(Hr,tr),style:xn,editable:jt,moreIcon:Rn,prefixCls:Xt,animated:Pr,indicatorSize:yn!=null?yn:Nn==null?void 0:Nn.indicatorSize})))};ii.TabPane=rr;var vi=ii},17574:function(An,Tt,x){"use strict";x.d(Tt,{default:function(){return ke}});var pe=x(60091),Ae=x(94480),P=x(52671),Ne=x(8657),te=x(54476),V=x(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},g=S,F=x(7657),v=function(Ee,Xe){return V.createElement(F.Z,(0,te.Z)({},Ee,{ref:Xe,icon:g}))},$=V.forwardRef(v),_=$,M=x(92310),O=x.n(M),T=x(35654),L=x(71430),Y=x(36355),R=x(56082),se=x(62892),ne=x(20648);const J=4;function W(he){const{dropPosition:Ee,dropLevelOffset:Xe,prefixCls:et,indent:ze,direction:qe="ltr"}=he,_t=qe==="ltr"?"left":"right",Lt=qe==="ltr"?"right":"left",Nt={[_t]:-Xe*ze+J,[Lt]:0};switch(Ee){case-1:Nt.top=-3;break;case 1:Nt.bottom=-3;break;default:Nt.bottom=-3,Nt[_t]=ze+J;break}return V.createElement("div",{style:Nt,className:`${et}-drop-indicator`})}var K=x(71997),me=V.forwardRef((he,Ee)=>{const{getPrefixCls:Xe,direction:et,virtual:ze,tree:qe}=V.useContext(Y.E_),{prefixCls:_t,className:Lt,showIcon:Nt=!1,showLine:sr,switcherIcon:er,blockNode:yr=!1,children:lr,checkable:G=!1,selectable:dt=!0,draggable:I,motion:m,style:u}=he,C=Xe("tree",_t),q=Xe(),Se=m!=null?m:Object.assign(Object.assign({},(0,se.Z)(q)),{motionAppear:!1}),H=Object.assign(Object.assign({},he),{checkable:G,selectable:dt,showIcon:Nt,motion:Se,blockNode:yr,showLine:!!sr,dropIndicatorRender:W}),[ie,Qe]=(0,ne.ZP)(C),we=V.useMemo(()=>{if(!I)return!1;let je={};switch(typeof I){case"function":je.nodeDraggable=I;break;case"object":je=Object.assign({},I);break;default:break}return je.icon!==!1&&(je.icon=je.icon||V.createElement(R.Z,null)),je},[I]),ye=je=>V.createElement(K.Z,{prefixCls:C,switcherIcon:er,treeNodeProps:je,showLine:sr});return ie(V.createElement(pe.Z,Object.assign({itemHeight:20,ref:Ee,virtual:ze},H,{style:Object.assign(Object.assign({},qe==null?void 0:qe.style),u),prefixCls:C,className:O()({[`${C}-icon-hide`]:!Nt,[`${C}-block-node`]:yr,[`${C}-unselectable`]:!dt,[`${C}-rtl`]:et==="rtl"},qe==null?void 0:qe.className,Lt,Qe),direction:et,checkable:G&&V.createElement("span",{className:`${C}-checkbox-inner`}),selectable:dt,switcherIcon:ye,draggable:we}),lr))}),Oe;(function(he){he[he.None=0]="None",he[he.Start=1]="Start",he[he.End=2]="End"})(Oe||(Oe={}));function Be(he,Ee){function Xe(et){const{key:ze,children:qe}=et;Ee(ze,et)!==!1&&Be(qe||[],Ee)}he.forEach(Xe)}function Ue(he){let{treeData:Ee,expandedKeys:Xe,startKey:et,endKey:ze}=he;const qe=[];let _t=Oe.None;if(et&&et===ze)return[et];if(!et||!ze)return[];function Lt(Nt){return Nt===et||Nt===ze}return Be(Ee,Nt=>{if(_t===Oe.End)return!1;if(Lt(Nt)){if(qe.push(Nt),_t===Oe.None)_t=Oe.Start;else if(_t===Oe.Start)return _t=Oe.End,!1}else _t===Oe.Start&&qe.push(Nt);return Xe.includes(Nt)}),qe}function ee(he,Ee){const Xe=(0,Ae.Z)(Ee),et=[];return Be(he,(ze,qe)=>{const _t=Xe.indexOf(ze);return _t!==-1&&(et.push(qe),Xe.splice(_t,1)),!!Xe.length}),et}var fe=function(he,Ee){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Ee.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,et=Object.getOwnPropertySymbols(he);ze<et.length;ze++)Ee.indexOf(et[ze])<0&&Object.prototype.propertyIsEnumerable.call(he,et[ze])&&(Xe[et[ze]]=he[et[ze]]);return Xe};function D(he){const{isLeaf:Ee,expanded:Xe}=he;return Ee?V.createElement(P.Z,null):Xe?V.createElement(Ne.Z,null):V.createElement(_,null)}function Ye(he){let{treeData:Ee,children:Xe}=he;return Ee||(0,L.zn)(Xe)}const Le=(he,Ee)=>{var{defaultExpandAll:Xe,defaultExpandParent:et,defaultExpandedKeys:ze}=he,qe=fe(he,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const _t=V.useRef(),Lt=V.useRef(),Nt=()=>{const{keyEntities:we}=(0,L.I8)(Ye(qe));let ye;return Xe?ye=Object.keys(we):et?ye=(0,T.r7)(qe.expandedKeys||ze||[],we):ye=qe.expandedKeys||ze,ye},[sr,er]=V.useState(qe.selectedKeys||qe.defaultSelectedKeys||[]),[yr,lr]=V.useState(()=>Nt());V.useEffect(()=>{"selectedKeys"in qe&&er(qe.selectedKeys)},[qe.selectedKeys]),V.useEffect(()=>{"expandedKeys"in qe&&lr(qe.expandedKeys)},[qe.expandedKeys]);const G=(we,ye)=>{var je;return"expandedKeys"in qe||lr(we),(je=qe.onExpand)===null||je===void 0?void 0:je.call(qe,we,ye)},dt=(we,ye)=>{var je;const{multiple:Ct}=qe,{node:de,nativeEvent:st}=ye,{key:tt=""}=de,Ie=Ye(qe),De=Object.assign(Object.assign({},ye),{selected:!0}),lt=(st==null?void 0:st.ctrlKey)||(st==null?void 0:st.metaKey),Ut=st==null?void 0:st.shiftKey;let kt;Ct&<?(kt=we,_t.current=tt,Lt.current=kt,De.selectedNodes=ee(Ie,kt)):Ct&&Ut?(kt=Array.from(new Set([].concat((0,Ae.Z)(Lt.current||[]),(0,Ae.Z)(Ue({treeData:Ie,expandedKeys:yr,startKey:tt,endKey:_t.current}))))),De.selectedNodes=ee(Ie,kt)):(kt=[tt],_t.current=tt,Lt.current=kt,De.selectedNodes=ee(Ie,kt)),(je=qe.onSelect)===null||je===void 0||je.call(qe,kt,De),"selectedKeys"in qe||er(kt)},{getPrefixCls:I,direction:m}=V.useContext(Y.E_),{prefixCls:u,className:C,showIcon:q=!0,expandAction:Se="click"}=qe,H=fe(qe,["prefixCls","className","showIcon","expandAction"]),ie=I("tree",u),Qe=O()(`${ie}-directory`,{[`${ie}-directory-rtl`]:m==="rtl"},C);return V.createElement(me,Object.assign({icon:D,ref:Ee,blockNode:!0},H,{showIcon:q,expandAction:Se,prefixCls:ie,className:Qe,expandedKeys:yr,selectedKeys:sr,onSelect:dt,onExpand:G}))};var Te=V.forwardRef(Le);const be=me;be.DirectoryTree=Te,be.TreeNode=pe.O;var ke=be},20648:function(An,Tt,x){"use strict";x.d(Tt,{TM:function(){return M},Yk:function(){return _}});var pe=x(36237),Ae=x(98447),P=x(17313),Ne=x(8378),te=x(37613),V=x(83116);const S=new pe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),g=(O,T)=>({[`.${O}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${T.motionDurationSlow}`}}}),F=(O,T)=>({[`.${O}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:T.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${T.lineWidthBold}px solid ${T.colorPrimary}`,borderRadius:"50%",content:'""'}}}),v=(O,T)=>{const{treeCls:L,treeNodeCls:Y,treeNodePadding:R,titleHeight:se,nodeSelectedBg:ne,nodeHoverBg:J}=T,W=T.paddingXS;return{[L]:Object.assign(Object.assign({},(0,P.Wf)(T)),{background:T.colorBgContainer,borderRadius:T.borderRadius,transition:`background-color ${T.motionDurationSlow}`,[`&${L}-rtl`]:{[`${L}-switcher`]:{"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${L}-active-focused)`]:Object.assign({},(0,P.oN)(T)),[`${L}-list-holder-inner`]:{alignItems:"flex-start"},[`&${L}-block-node`]:{[`${L}-list-holder-inner`]:{alignItems:"stretch",[`${L}-node-content-wrapper`]:{flex:"auto"},[`${Y}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:R,insetInlineStart:0,border:`1px solid ${T.colorPrimary}`,opacity:0,animationName:S,animationDuration:T.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Y}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${R}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${L}-node-content-wrapper`]:{color:T.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${L}-node-content-wrapper`]:Object.assign({},(0,P.oN)(T)),[`&:not(${Y}-disabled).filter-node ${L}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${L}-draggable-icon`]:{flexShrink:0,width:se,lineHeight:`${se}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${T.motionDurationSlow}`,[`${Y}:hover &`]:{opacity:.45}},[`&${Y}-disabled`]:{[`${L}-draggable-icon`]:{visibility:"hidden"}}}},[`${L}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:se}},[`${L}-draggable-icon`]:{visibility:"hidden"},[`${L}-switcher`]:Object.assign(Object.assign({},g(O,T)),{position:"relative",flex:"none",alignSelf:"stretch",width:se,margin:0,lineHeight:`${se}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:T.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se/2,bottom:-R,marginInlineStart:-1,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:se/2*.8,height:se/2,borderBottom:`1px solid ${T.colorBorder}`,content:'""'}}}),[`${L}-checkbox`]:{top:"initial",marginInlineEnd:W},[`${L}-node-content-wrapper, ${L}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:se,margin:0,padding:`0 ${T.paddingXS/2}px`,color:"inherit",lineHeight:`${se}px`,background:"transparent",borderRadius:T.borderRadius,cursor:"pointer",transition:`all ${T.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:J},[`&${L}-node-selected`]:{backgroundColor:ne},[`${L}-iconEle`]:{display:"inline-block",width:se,height:se,lineHeight:`${se}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${L}-unselectable ${L}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${L}-node-content-wrapper`]:Object.assign({lineHeight:`${se}px`,userSelect:"none"},F(O,T)),[`${Y}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${T.colorPrimary}`}},"&-show-line":{[`${L}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se/2,bottom:-R,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${L}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Y}-leaf-last`]:{[`${L}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${se/2}px !important`}}}}})}},$=O=>{const{treeCls:T,treeNodeCls:L,treeNodePadding:Y,directoryNodeSelectedBg:R,directoryNodeSelectedColor:se}=O;return{[`${T}${T}-directory`]:{[L]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Y,insetInlineStart:0,transition:`background-color ${O.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:O.controlItemBgHover}},"> *":{zIndex:1},[`${T}-switcher`]:{transition:`color ${O.motionDurationMid}`},[`${T}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${T}-node-selected`]:{color:se,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:R},[`${T}-switcher`]:{color:se},[`${T}-node-content-wrapper`]:{color:se,background:"transparent"}}}}}},_=(O,T)=>{const L=`.${O}`,Y=`${L}-treenode`,R=T.paddingXS/2,se=(0,te.TS)(T,{treeCls:L,treeNodeCls:Y,treeNodePadding:R});return[v(O,se),$(se)]},M=O=>{const{controlHeightSM:T}=O;return{titleHeight:T,nodeHoverBg:O.controlItemBgHover,nodeSelectedBg:O.controlItemBgActive}};Tt.ZP=(0,V.Z)("Tree",(O,T)=>{let{prefixCls:L}=T;return[{[O.componentCls]:(0,Ae.C2)(`${L}-checkbox`,O)},_(L,O),(0,Ne.Z)(O)]},O=>{const{colorTextLightSolid:T,colorPrimary:L}=O;return Object.assign(Object.assign({},M(O)),{directoryNodeSelectedColor:T,directoryNodeSelectedBg:L})})},71997:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Y}});var pe=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ne=P,te=x(7657),V=function(se,ne){return Ae.createElement(te.Z,(0,pe.Z)({},se,{ref:ne,icon:Ne}))},S=Ae.forwardRef(V),g=S,F=x(52671),v=x(58617),$=x(15075),_=x(43531),M=x(92310),O=x.n(M),T=x(92343),Y=R=>{const{prefixCls:se,switcherIcon:ne,treeNodeProps:J,showLine:W}=R,{isLeaf:K,expanded:le,loading:me}=J;if(me)return Ae.createElement(v.Z,{className:`${se}-switcher-loading-icon`});let Oe;if(W&&typeof W=="object"&&(Oe=W.showLeafIcon),K){if(!W)return null;if(typeof Oe!="boolean"&&Oe){const ee=typeof Oe=="function"?Oe(J):Oe,fe=`${se}-switcher-line-custom-icon`;return(0,T.l$)(ee)?(0,T.Tm)(ee,{className:O()(ee.props.className||"",fe)}):ee}return Oe?Ae.createElement(F.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement("span",{className:`${se}-switcher-leaf-line`})}const Be=`${se}-switcher-icon`,Ue=typeof ne=="function"?ne(J):ne;return(0,T.l$)(Ue)?(0,T.Tm)(Ue,{className:O()(Ue.props.className||"",Be)}):Ue!==void 0?Ue:W?le?Ae.createElement($.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement(_.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement(g,{className:Be})}},86251:function(An,Tt){"use strict";Tt.byteLength=S,Tt.toByteArray=F,Tt.fromByteArray=_;for(var x=[],pe=[],Ae=typeof Uint8Array!="undefined"?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne=0,te=P.length;Ne<te;++Ne)x[Ne]=P[Ne],pe[P.charCodeAt(Ne)]=Ne;pe[45]=62,pe[95]=63;function V(M){var O=M.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=M.indexOf("=");T===-1&&(T=O);var L=T===O?0:4-T%4;return[T,L]}function S(M){var O=V(M),T=O[0],L=O[1];return(T+L)*3/4-L}function g(M,O,T){return(O+T)*3/4-T}function F(M){var O,T=V(M),L=T[0],Y=T[1],R=new Ae(g(M,L,Y)),se=0,ne=Y>0?L-4:L,J;for(J=0;J<ne;J+=4)O=pe[M.charCodeAt(J)]<<18|pe[M.charCodeAt(J+1)]<<12|pe[M.charCodeAt(J+2)]<<6|pe[M.charCodeAt(J+3)],R[se++]=O>>16&255,R[se++]=O>>8&255,R[se++]=O&255;return Y===2&&(O=pe[M.charCodeAt(J)]<<2|pe[M.charCodeAt(J+1)]>>4,R[se++]=O&255),Y===1&&(O=pe[M.charCodeAt(J)]<<10|pe[M.charCodeAt(J+1)]<<4|pe[M.charCodeAt(J+2)]>>2,R[se++]=O>>8&255,R[se++]=O&255),R}function v(M){return x[M>>18&63]+x[M>>12&63]+x[M>>6&63]+x[M&63]}function $(M,O,T){for(var L,Y=[],R=O;R<T;R+=3)L=(M[R]<<16&16711680)+(M[R+1]<<8&65280)+(M[R+2]&255),Y.push(v(L));return Y.join("")}function _(M){for(var O,T=M.length,L=T%3,Y=[],R=16383,se=0,ne=T-L;se<ne;se+=R)Y.push($(M,se,se+R>ne?ne:se+R));return L===1?(O=M[T-1],Y.push(x[O>>2]+x[O<<4&63]+"==")):L===2&&(O=(M[T-2]<<8)+M[T-1],Y.push(x[O>>10]+x[O>>4&63]+x[O<<2&63]+"=")),Y.join("")}},19208:function(An,Tt,x){"use strict";var pe;var Ae=x(86251),P=x(67467),Ne=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Tt.lW=g,pe=se,Tt.h2=50;var te=2147483647;pe=te,g.TYPED_ARRAY_SUPPORT=V(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function V(){try{var I=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(I,m),I.foo()===42}catch(u){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function S(I){if(I>te)throw new RangeError('The value "'+I+'" is invalid for option "size"');var m=new Uint8Array(I);return Object.setPrototypeOf(m,g.prototype),m}function g(I,m,u){if(typeof I=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(I)}return F(I,m,u)}g.poolSize=8192;function F(I,m,u){if(typeof I=="string")return M(I,m);if(ArrayBuffer.isView(I))return T(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(lr(I,ArrayBuffer)||I&&lr(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(lr(I,SharedArrayBuffer)||I&&lr(I.buffer,SharedArrayBuffer)))return L(I,m,u);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var C=I.valueOf&&I.valueOf();if(C!=null&&C!==I)return g.from(C,m,u);var q=Y(I);if(q)return q;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return g.from(I[Symbol.toPrimitive]("string"),m,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}g.from=function(I,m,u){return F(I,m,u)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function v(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function $(I,m,u){return v(I),I<=0?S(I):m!==void 0?typeof u=="string"?S(I).fill(m,u):S(I).fill(m):S(I)}g.alloc=function(I,m,u){return $(I,m,u)};function _(I){return v(I),S(I<0?0:R(I)|0)}g.allocUnsafe=function(I){return _(I)},g.allocUnsafeSlow=function(I){return _(I)};function M(I,m){if((typeof m!="string"||m==="")&&(m="utf8"),!g.isEncoding(m))throw new TypeError("Unknown encoding: "+m);var u=ne(I,m)|0,C=S(u),q=C.write(I,m);return q!==u&&(C=C.slice(0,q)),C}function O(I){for(var m=I.length<0?0:R(I.length)|0,u=S(m),C=0;C<m;C+=1)u[C]=I[C]&255;return u}function T(I){if(lr(I,Uint8Array)){var m=new Uint8Array(I);return L(m.buffer,m.byteOffset,m.byteLength)}return O(I)}function L(I,m,u){if(m<0||I.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<m+(u||0))throw new RangeError('"length" is outside of buffer bounds');var C;return m===void 0&&u===void 0?C=new Uint8Array(I):u===void 0?C=new Uint8Array(I,m):C=new Uint8Array(I,m,u),Object.setPrototypeOf(C,g.prototype),C}function Y(I){if(g.isBuffer(I)){var m=R(I.length)|0,u=S(m);return u.length===0||I.copy(u,0,0,m),u}if(I.length!==void 0)return typeof I.length!="number"||G(I.length)?S(0):O(I);if(I.type==="Buffer"&&Array.isArray(I.data))return O(I.data)}function R(I){if(I>=te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+te.toString(16)+" bytes");return I|0}function se(I){return+I!=I&&(I=0),g.alloc(+I)}g.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==g.prototype},g.compare=function(m,u){if(lr(m,Uint8Array)&&(m=g.from(m,m.offset,m.byteLength)),lr(u,Uint8Array)&&(u=g.from(u,u.offset,u.byteLength)),!g.isBuffer(m)||!g.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===u)return 0;for(var C=m.length,q=u.length,Se=0,H=Math.min(C,q);Se<H;++Se)if(m[Se]!==u[Se]){C=m[Se],q=u[Se];break}return C<q?-1:q<C?1:0},g.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(m,u){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return g.alloc(0);var C;if(u===void 0)for(u=0,C=0;C<m.length;++C)u+=m[C].length;var q=g.allocUnsafe(u),Se=0;for(C=0;C<m.length;++C){var H=m[C];if(lr(H,Uint8Array))Se+H.length>q.length?g.from(H).copy(q,Se):Uint8Array.prototype.set.call(q,H,Se);else if(g.isBuffer(H))H.copy(q,Se);else throw new TypeError('"list" argument must be an Array of Buffers');Se+=H.length}return q};function ne(I,m){if(g.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||lr(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var u=I.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&u===0)return 0;for(var q=!1;;)switch(m){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return Lt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return er(I).length;default:if(q)return C?-1:Lt(I).length;m=(""+m).toLowerCase(),q=!0}}g.byteLength=ne;function J(I,m,u){var C=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,m>>>=0,u<=m))return"";for(I||(I="utf8");;)switch(I){case"hex":return be(this,m,u);case"utf8":case"utf-8":return D(this,m,u);case"ascii":return Ce(this,m,u);case"latin1":case"binary":return Te(this,m,u);case"base64":return fe(this,m,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,m,u);default:if(C)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),C=!0}}g.prototype._isBuffer=!0;function W(I,m,u){var C=I[m];I[m]=I[u],I[u]=C}g.prototype.swap16=function(){var m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<m;u+=2)W(this,u,u+1);return this},g.prototype.swap32=function(){var m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<m;u+=4)W(this,u,u+3),W(this,u+1,u+2);return this},g.prototype.swap64=function(){var m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<m;u+=8)W(this,u,u+7),W(this,u+1,u+6),W(this,u+2,u+5),W(this,u+3,u+4);return this},g.prototype.toString=function(){var m=this.length;return m===0?"":arguments.length===0?D(this,0,m):J.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(m){if(!g.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:g.compare(this,m)===0},g.prototype.inspect=function(){var m="",u=Tt.h2;return m=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(m+=" ... "),"<Buffer "+m+">"},Ne&&(g.prototype[Ne]=g.prototype.inspect),g.prototype.compare=function(m,u,C,q,Se){if(lr(m,Uint8Array)&&(m=g.from(m,m.offset,m.byteLength)),!g.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(u===void 0&&(u=0),C===void 0&&(C=m?m.length:0),q===void 0&&(q=0),Se===void 0&&(Se=this.length),u<0||C>m.length||q<0||Se>this.length)throw new RangeError("out of range index");if(q>=Se&&u>=C)return 0;if(q>=Se)return-1;if(u>=C)return 1;if(u>>>=0,C>>>=0,q>>>=0,Se>>>=0,this===m)return 0;for(var H=Se-q,ie=C-u,Qe=Math.min(H,ie),we=this.slice(q,Se),ye=m.slice(u,C),je=0;je<Qe;++je)if(we[je]!==ye[je]){H=we[je],ie=ye[je];break}return H<ie?-1:ie<H?1:0};function K(I,m,u,C,q){if(I.length===0)return-1;if(typeof u=="string"?(C=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,G(u)&&(u=q?0:I.length-1),u<0&&(u=I.length+u),u>=I.length){if(q)return-1;u=I.length-1}else if(u<0)if(q)u=0;else return-1;if(typeof m=="string"&&(m=g.from(m,C)),g.isBuffer(m))return m.length===0?-1:le(I,m,u,C,q);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(I,m,u):Uint8Array.prototype.lastIndexOf.call(I,m,u):le(I,[m],u,C,q);throw new TypeError("val must be string, number or Buffer")}function le(I,m,u,C,q){var Se=1,H=I.length,ie=m.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(I.length<2||m.length<2)return-1;Se=2,H/=2,ie/=2,u/=2}function Qe(de,st){return Se===1?de[st]:de.readUInt16BE(st*Se)}var we;if(q){var ye=-1;for(we=u;we<H;we++)if(Qe(I,we)===Qe(m,ye===-1?0:we-ye)){if(ye===-1&&(ye=we),we-ye+1===ie)return ye*Se}else ye!==-1&&(we-=we-ye),ye=-1}else for(u+ie>H&&(u=H-ie),we=u;we>=0;we--){for(var je=!0,Ct=0;Ct<ie;Ct++)if(Qe(I,we+Ct)!==Qe(m,Ct)){je=!1;break}if(je)return we}return-1}g.prototype.includes=function(m,u,C){return this.indexOf(m,u,C)!==-1},g.prototype.indexOf=function(m,u,C){return K(this,m,u,C,!0)},g.prototype.lastIndexOf=function(m,u,C){return K(this,m,u,C,!1)};function me(I,m,u,C){u=Number(u)||0;var q=I.length-u;C?(C=Number(C),C>q&&(C=q)):C=q;var Se=m.length;C>Se/2&&(C=Se/2);for(var H=0;H<C;++H){var ie=parseInt(m.substr(H*2,2),16);if(G(ie))return H;I[u+H]=ie}return H}function Oe(I,m,u,C){return yr(Lt(m,I.length-u),I,u,C)}function Be(I,m,u,C){return yr(Nt(m),I,u,C)}function Ue(I,m,u,C){return yr(er(m),I,u,C)}function ee(I,m,u,C){return yr(sr(m,I.length-u),I,u,C)}g.prototype.write=function(m,u,C,q){if(u===void 0)q="utf8",C=this.length,u=0;else if(C===void 0&&typeof u=="string")q=u,C=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(C)?(C=C>>>0,q===void 0&&(q="utf8")):(q=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Se=this.length-u;if((C===void 0||C>Se)&&(C=Se),m.length>0&&(C<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");for(var H=!1;;)switch(q){case"hex":return me(this,m,u,C);case"utf8":case"utf-8":return Oe(this,m,u,C);case"ascii":case"latin1":case"binary":return Be(this,m,u,C);case"base64":return Ue(this,m,u,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,m,u,C);default:if(H)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),H=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(I,m,u){return m===0&&u===I.length?Ae.fromByteArray(I):Ae.fromByteArray(I.slice(m,u))}function D(I,m,u){u=Math.min(I.length,u);for(var C=[],q=m;q<u;){var Se=I[q],H=null,ie=Se>239?4:Se>223?3:Se>191?2:1;if(q+ie<=u){var Qe,we,ye,je;switch(ie){case 1:Se<128&&(H=Se);break;case 2:Qe=I[q+1],(Qe&192)===128&&(je=(Se&31)<<6|Qe&63,je>127&&(H=je));break;case 3:Qe=I[q+1],we=I[q+2],(Qe&192)===128&&(we&192)===128&&(je=(Se&15)<<12|(Qe&63)<<6|we&63,je>2047&&(je<55296||je>57343)&&(H=je));break;case 4:Qe=I[q+1],we=I[q+2],ye=I[q+3],(Qe&192)===128&&(we&192)===128&&(ye&192)===128&&(je=(Se&15)<<18|(Qe&63)<<12|(we&63)<<6|ye&63,je>65535&&je<1114112&&(H=je))}}H===null?(H=65533,ie=1):H>65535&&(H-=65536,C.push(H>>>10&1023|55296),H=56320|H&1023),C.push(H),q+=ie}return Le(C)}var Ye=4096;function Le(I){var m=I.length;if(m<=Ye)return String.fromCharCode.apply(String,I);for(var u="",C=0;C<m;)u+=String.fromCharCode.apply(String,I.slice(C,C+=Ye));return u}function Ce(I,m,u){var C="";u=Math.min(I.length,u);for(var q=m;q<u;++q)C+=String.fromCharCode(I[q]&127);return C}function Te(I,m,u){var C="";u=Math.min(I.length,u);for(var q=m;q<u;++q)C+=String.fromCharCode(I[q]);return C}function be(I,m,u){var C=I.length;(!m||m<0)&&(m=0),(!u||u<0||u>C)&&(u=C);for(var q="",Se=m;Se<u;++Se)q+=dt[I[Se]];return q}function ke(I,m,u){for(var C=I.slice(m,u),q="",Se=0;Se<C.length-1;Se+=2)q+=String.fromCharCode(C[Se]+C[Se+1]*256);return q}g.prototype.slice=function(m,u){var C=this.length;m=~~m,u=u===void 0?C:~~u,m<0?(m+=C,m<0&&(m=0)):m>C&&(m=C),u<0?(u+=C,u<0&&(u=0)):u>C&&(u=C),u<m&&(u=m);var q=this.subarray(m,u);return Object.setPrototypeOf(q,g.prototype),q};function he(I,m,u){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+m>u)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(m,u,C){m=m>>>0,u=u>>>0,C||he(m,u,this.length);for(var q=this[m],Se=1,H=0;++H<u&&(Se*=256);)q+=this[m+H]*Se;return q},g.prototype.readUintBE=g.prototype.readUIntBE=function(m,u,C){m=m>>>0,u=u>>>0,C||he(m,u,this.length);for(var q=this[m+--u],Se=1;u>0&&(Se*=256);)q+=this[m+--u]*Se;return q},g.prototype.readUint8=g.prototype.readUInt8=function(m,u){return m=m>>>0,u||he(m,1,this.length),this[m]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(m,u){return m=m>>>0,u||he(m,2,this.length),this[m]|this[m+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(m,u){return m=m>>>0,u||he(m,2,this.length),this[m]<<8|this[m+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(m,u){return m=m>>>0,u||he(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(m,u){return m=m>>>0,u||he(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},g.prototype.readIntLE=function(m,u,C){m=m>>>0,u=u>>>0,C||he(m,u,this.length);for(var q=this[m],Se=1,H=0;++H<u&&(Se*=256);)q+=this[m+H]*Se;return Se*=128,q>=Se&&(q-=Math.pow(2,8*u)),q},g.prototype.readIntBE=function(m,u,C){m=m>>>0,u=u>>>0,C||he(m,u,this.length);for(var q=u,Se=1,H=this[m+--q];q>0&&(Se*=256);)H+=this[m+--q]*Se;return Se*=128,H>=Se&&(H-=Math.pow(2,8*u)),H},g.prototype.readInt8=function(m,u){return m=m>>>0,u||he(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},g.prototype.readInt16LE=function(m,u){m=m>>>0,u||he(m,2,this.length);var C=this[m]|this[m+1]<<8;return C&32768?C|4294901760:C},g.prototype.readInt16BE=function(m,u){m=m>>>0,u||he(m,2,this.length);var C=this[m+1]|this[m]<<8;return C&32768?C|4294901760:C},g.prototype.readInt32LE=function(m,u){return m=m>>>0,u||he(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},g.prototype.readInt32BE=function(m,u){return m=m>>>0,u||he(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},g.prototype.readFloatLE=function(m,u){return m=m>>>0,u||he(m,4,this.length),P.read(this,m,!0,23,4)},g.prototype.readFloatBE=function(m,u){return m=m>>>0,u||he(m,4,this.length),P.read(this,m,!1,23,4)},g.prototype.readDoubleLE=function(m,u){return m=m>>>0,u||he(m,8,this.length),P.read(this,m,!0,52,8)},g.prototype.readDoubleBE=function(m,u){return m=m>>>0,u||he(m,8,this.length),P.read(this,m,!1,52,8)};function Ee(I,m,u,C,q,Se){if(!g.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>q||m<Se)throw new RangeError('"value" argument is out of bounds');if(u+C>I.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(m,u,C,q){if(m=+m,u=u>>>0,C=C>>>0,!q){var Se=Math.pow(2,8*C)-1;Ee(this,m,u,C,Se,0)}var H=1,ie=0;for(this[u]=m&255;++ie<C&&(H*=256);)this[u+ie]=m/H&255;return u+C},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(m,u,C,q){if(m=+m,u=u>>>0,C=C>>>0,!q){var Se=Math.pow(2,8*C)-1;Ee(this,m,u,C,Se,0)}var H=C-1,ie=1;for(this[u+H]=m&255;--H>=0&&(ie*=256);)this[u+H]=m/ie&255;return u+C},g.prototype.writeUint8=g.prototype.writeUInt8=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,1,255,0),this[u]=m&255,u+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,2,65535,0),this[u]=m&255,this[u+1]=m>>>8,u+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,2,65535,0),this[u]=m>>>8,this[u+1]=m&255,u+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,4,4294967295,0),this[u+3]=m>>>24,this[u+2]=m>>>16,this[u+1]=m>>>8,this[u]=m&255,u+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,4,4294967295,0),this[u]=m>>>24,this[u+1]=m>>>16,this[u+2]=m>>>8,this[u+3]=m&255,u+4},g.prototype.writeIntLE=function(m,u,C,q){if(m=+m,u=u>>>0,!q){var Se=Math.pow(2,8*C-1);Ee(this,m,u,C,Se-1,-Se)}var H=0,ie=1,Qe=0;for(this[u]=m&255;++H<C&&(ie*=256);)m<0&&Qe===0&&this[u+H-1]!==0&&(Qe=1),this[u+H]=(m/ie>>0)-Qe&255;return u+C},g.prototype.writeIntBE=function(m,u,C,q){if(m=+m,u=u>>>0,!q){var Se=Math.pow(2,8*C-1);Ee(this,m,u,C,Se-1,-Se)}var H=C-1,ie=1,Qe=0;for(this[u+H]=m&255;--H>=0&&(ie*=256);)m<0&&Qe===0&&this[u+H+1]!==0&&(Qe=1),this[u+H]=(m/ie>>0)-Qe&255;return u+C},g.prototype.writeInt8=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,1,127,-128),m<0&&(m=255+m+1),this[u]=m&255,u+1},g.prototype.writeInt16LE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,2,32767,-32768),this[u]=m&255,this[u+1]=m>>>8,u+2},g.prototype.writeInt16BE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,2,32767,-32768),this[u]=m>>>8,this[u+1]=m&255,u+2},g.prototype.writeInt32LE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,4,2147483647,-2147483648),this[u]=m&255,this[u+1]=m>>>8,this[u+2]=m>>>16,this[u+3]=m>>>24,u+4},g.prototype.writeInt32BE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[u]=m>>>24,this[u+1]=m>>>16,this[u+2]=m>>>8,this[u+3]=m&255,u+4};function Xe(I,m,u,C,q,Se){if(u+C>I.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function et(I,m,u,C,q){return m=+m,u=u>>>0,q||Xe(I,m,u,4,34028234663852886e22,-34028234663852886e22),P.write(I,m,u,C,23,4),u+4}g.prototype.writeFloatLE=function(m,u,C){return et(this,m,u,!0,C)},g.prototype.writeFloatBE=function(m,u,C){return et(this,m,u,!1,C)};function ze(I,m,u,C,q){return m=+m,u=u>>>0,q||Xe(I,m,u,8,17976931348623157e292,-17976931348623157e292),P.write(I,m,u,C,52,8),u+8}g.prototype.writeDoubleLE=function(m,u,C){return ze(this,m,u,!0,C)},g.prototype.writeDoubleBE=function(m,u,C){return ze(this,m,u,!1,C)},g.prototype.copy=function(m,u,C,q){if(!g.isBuffer(m))throw new TypeError("argument should be a Buffer");if(C||(C=0),!q&&q!==0&&(q=this.length),u>=m.length&&(u=m.length),u||(u=0),q>0&&q<C&&(q=C),q===C||m.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),m.length-u<q-C&&(q=m.length-u+C);var Se=q-C;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,C,q):Uint8Array.prototype.set.call(m,this.subarray(C,q),u),Se},g.prototype.fill=function(m,u,C,q){if(typeof m=="string"){if(typeof u=="string"?(q=u,u=0,C=this.length):typeof C=="string"&&(q=C,C=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!g.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(m.length===1){var Se=m.charCodeAt(0);(q==="utf8"&&Se<128||q==="latin1")&&(m=Se)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(u<0||this.length<u||this.length<C)throw new RangeError("Out of range index");if(C<=u)return this;u=u>>>0,C=C===void 0?this.length:C>>>0,m||(m=0);var H;if(typeof m=="number")for(H=u;H<C;++H)this[H]=m;else{var ie=g.isBuffer(m)?m:g.from(m,q),Qe=ie.length;if(Qe===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(H=0;H<C-u;++H)this[H+u]=ie[H%Qe]}return this};var qe=/[^+/0-9A-Za-z-_]/g;function _t(I){if(I=I.split("=")[0],I=I.trim().replace(qe,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Lt(I,m){m=m||1/0;for(var u,C=I.length,q=null,Se=[],H=0;H<C;++H){if(u=I.charCodeAt(H),u>55295&&u<57344){if(!q){if(u>56319){(m-=3)>-1&&Se.push(239,191,189);continue}else if(H+1===C){(m-=3)>-1&&Se.push(239,191,189);continue}q=u;continue}if(u<56320){(m-=3)>-1&&Se.push(239,191,189),q=u;continue}u=(q-55296<<10|u-56320)+65536}else q&&(m-=3)>-1&&Se.push(239,191,189);if(q=null,u<128){if((m-=1)<0)break;Se.push(u)}else if(u<2048){if((m-=2)<0)break;Se.push(u>>6|192,u&63|128)}else if(u<65536){if((m-=3)<0)break;Se.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((m-=4)<0)break;Se.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return Se}function Nt(I){for(var m=[],u=0;u<I.length;++u)m.push(I.charCodeAt(u)&255);return m}function sr(I,m){for(var u,C,q,Se=[],H=0;H<I.length&&!((m-=2)<0);++H)u=I.charCodeAt(H),C=u>>8,q=u%256,Se.push(q),Se.push(C);return Se}function er(I){return Ae.toByteArray(_t(I))}function yr(I,m,u,C){for(var q=0;q<C&&!(q+u>=m.length||q>=I.length);++q)m[q+u]=I[q];return q}function lr(I,m){return I instanceof m||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===m.name}function G(I){return I!==I}var dt=function(){for(var I="0123456789abcdef",m=new Array(256),u=0;u<16;++u)for(var C=u*16,q=0;q<16;++q)m[C+q]=I[u]+I[q];return m}()},64270:function(An){(function(Tt,x){An.exports=x()})(this,function(){"use strict";var Tt=function(b,f){return Tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,y){w.__proto__=y}||function(w,y){for(var re in y)Object.prototype.hasOwnProperty.call(y,re)&&(w[re]=y[re])},Tt(b,f)};function x(b,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");Tt(b,f);function w(){this.constructor=b}b.prototype=f===null?Object.create(f):(w.prototype=f.prototype,new w)}var pe=function(){return pe=Object.assign||function(f){for(var w,y=1,re=arguments.length;y<re;y++){w=arguments[y];for(var _e in w)Object.prototype.hasOwnProperty.call(w,_e)&&(f[_e]=w[_e])}return f},pe.apply(this,arguments)};function Ae(b,f,w,y){function re(_e){return _e instanceof w?_e:new w(function(Ve){Ve(_e)})}return new(w||(w=Promise))(function(_e,Ve){function ht(Ar){try{qt(y.next(Ar))}catch(pr){Ve(pr)}}function pt(Ar){try{qt(y.throw(Ar))}catch(pr){Ve(pr)}}function qt(Ar){Ar.done?_e(Ar.value):re(Ar.value).then(ht,pt)}qt((y=y.apply(b,f||[])).next())})}function P(b,f){var w={label:0,sent:function(){if(_e[0]&1)throw _e[1];return _e[1]},trys:[],ops:[]},y,re,_e,Ve;return Ve={next:ht(0),throw:ht(1),return:ht(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function ht(qt){return function(Ar){return pt([qt,Ar])}}function pt(qt){if(y)throw new TypeError("Generator is already executing.");for(;w;)try{if(y=1,re&&(_e=qt[0]&2?re.return:qt[0]?re.throw||((_e=re.return)&&_e.call(re),0):re.next)&&!(_e=_e.call(re,qt[1])).done)return _e;switch(re=0,_e&&(qt=[qt[0]&2,_e.value]),qt[0]){case 0:case 1:_e=qt;break;case 4:return w.label++,{value:qt[1],done:!1};case 5:w.label++,re=qt[1],qt=[0];continue;case 7:qt=w.ops.pop(),w.trys.pop();continue;default:if(_e=w.trys,!(_e=_e.length>0&&_e[_e.length-1])&&(qt[0]===6||qt[0]===2)){w=0;continue}if(qt[0]===3&&(!_e||qt[1]>_e[0]&&qt[1]<_e[3])){w.label=qt[1];break}if(qt[0]===6&&w.label<_e[1]){w.label=_e[1],_e=qt;break}if(_e&&w.label<_e[2]){w.label=_e[2],w.ops.push(qt);break}_e[2]&&w.ops.pop(),w.trys.pop();continue}qt=f.call(b,w)}catch(Ar){qt=[6,Ar],re=0}finally{y=_e=0}if(qt[0]&5)throw qt[1];return{value:qt[0]?qt[1]:void 0,done:!0}}}function Ne(b,f,w){if(w||arguments.length===2)for(var y=0,re=f.length,_e;y<re;y++)(_e||!(y in f))&&(_e||(_e=Array.prototype.slice.call(f,0,y)),_e[y]=f[y]);return b.concat(_e||f)}for(var te=function(){function b(f,w,y,re){this.left=f,this.top=w,this.width=y,this.height=re}return b.prototype.add=function(f,w,y,re){return new b(this.left+f,this.top+w,this.width+y,this.height+re)},b.fromClientRect=function(f,w){return new b(w.left+f.windowBounds.left,w.top+f.windowBounds.top,w.width,w.height)},b.fromDOMRectList=function(f,w){var y=Array.from(w).find(function(re){return re.width!==0});return y?new b(y.left+f.windowBounds.left,y.top+f.windowBounds.top,y.width,y.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b}(),V=function(b,f){return te.fromClientRect(b,f.getBoundingClientRect())},S=function(b){var f=b.body,w=b.documentElement;if(!f||!w)throw new Error("Unable to get document size");var y=Math.max(Math.max(f.scrollWidth,w.scrollWidth),Math.max(f.offsetWidth,w.offsetWidth),Math.max(f.clientWidth,w.clientWidth)),re=Math.max(Math.max(f.scrollHeight,w.scrollHeight),Math.max(f.offsetHeight,w.offsetHeight),Math.max(f.clientHeight,w.clientHeight));return new te(0,0,y,re)},g=function(b){for(var f=[],w=0,y=b.length;w<y;){var re=b.charCodeAt(w++);if(re>=55296&&re<=56319&&w<y){var _e=b.charCodeAt(w++);(_e&64512)===56320?f.push(((re&1023)<<10)+(_e&1023)+65536):(f.push(re),w--)}else f.push(re)}return f},F=function(){for(var b=[],f=0;f<arguments.length;f++)b[f]=arguments[f];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var w=b.length;if(!w)return"";for(var y=[],re=-1,_e="";++re<w;){var Ve=b[re];Ve<=65535?y.push(Ve):(Ve-=65536,y.push((Ve>>10)+55296,Ve%1024+56320)),(re+1===w||y.length>16384)&&(_e+=String.fromCharCode.apply(String,y),y.length=0)}return _e},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_=0;_<v.length;_++)$[v.charCodeAt(_)]=_;for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),T=0;T<M.length;T++)O[M.charCodeAt(T)]=T;for(var L=function(b){var f=b.length*.75,w=b.length,y,re=0,_e,Ve,ht,pt;b[b.length-1]==="="&&(f--,b[b.length-2]==="="&&f--);var qt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(f):new Array(f),Ar=Array.isArray(qt)?qt:new Uint8Array(qt);for(y=0;y<w;y+=4)_e=O[b.charCodeAt(y)],Ve=O[b.charCodeAt(y+1)],ht=O[b.charCodeAt(y+2)],pt=O[b.charCodeAt(y+3)],Ar[re++]=_e<<2|Ve>>4,Ar[re++]=(Ve&15)<<4|ht>>2,Ar[re++]=(ht&3)<<6|pt&63;return qt},Y=function(b){for(var f=b.length,w=[],y=0;y<f;y+=2)w.push(b[y+1]<<8|b[y]);return w},R=function(b){for(var f=b.length,w=[],y=0;y<f;y+=4)w.push(b[y+3]<<24|b[y+2]<<16|b[y+1]<<8|b[y]);return w},se=5,ne=11,J=2,W=ne-se,K=65536>>se,le=1<<se,me=le-1,Oe=1024>>se,Be=K+Oe,Ue=Be,ee=32,fe=Ue+ee,D=65536>>ne,Ye=1<<W,Le=Ye-1,Ce=function(b,f,w){return b.slice?b.slice(f,w):new Uint16Array(Array.prototype.slice.call(b,f,w))},Te=function(b,f,w){return b.slice?b.slice(f,w):new Uint32Array(Array.prototype.slice.call(b,f,w))},be=function(b,f){var w=L(b),y=Array.isArray(w)?R(w):new Uint32Array(w),re=Array.isArray(w)?Y(w):new Uint16Array(w),_e=24,Ve=Ce(re,_e/2,y[4]/2),ht=y[5]===2?Ce(re,(_e+y[4])/2):Te(y,Math.ceil((_e+y[4])/4));return new ke(y[0],y[1],y[2],y[3],Ve,ht)},ke=function(){function b(f,w,y,re,_e,Ve){this.initialValue=f,this.errorValue=w,this.highStart=y,this.highValueIndex=re,this.index=_e,this.data=Ve}return b.prototype.get=function(f){var w;if(f>=0){if(f<55296||f>56319&&f<=65535)return w=this.index[f>>se],w=(w<<J)+(f&me),this.data[w];if(f<=65535)return w=this.index[K+(f-55296>>se)],w=(w<<J)+(f&me),this.data[w];if(f<this.highStart)return w=fe-D+(f>>ne),w=this.index[w],w+=f>>se&Le,w=this.index[w],w=(w<<J)+(f&me),this.data[w];if(f<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Xe=0;Xe<he.length;Xe++)Ee[he.charCodeAt(Xe)]=Xe;var et="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ze=50,qe=1,_t=2,Lt=3,Nt=4,sr=5,er=7,yr=8,lr=9,G=10,dt=11,I=12,m=13,u=14,C=15,q=16,Se=17,H=18,ie=19,Qe=20,we=21,ye=22,je=23,Ct=24,de=25,st=26,tt=27,Ie=28,De=29,lt=30,Ut=31,kt=32,rr=33,Fr=34,kr=35,Dr=36,Nr=37,xr=38,ur=39,Qr=40,hn=41,Ln=42,pn=43,kn=[9001,65288],Ki="!",hr="\xD7",Wn="\xF7",Hi=be(et),ui=[lt,Dr],$i=[qe,_t,Lt,sr],Ri=[G,yr],Zi=[tt,st],Za=$i.concat(Ri),_i=[xr,ur,Qr,Fr,kr],Yn=[C,m],ii=function(b,f){f===void 0&&(f="strict");var w=[],y=[],re=[];return b.forEach(function(_e,Ve){var ht=Hi.get(_e);if(ht>ze?(re.push(!0),ht-=ze):re.push(!1),["normal","auto","loose"].indexOf(f)!==-1&&[8208,8211,12316,12448].indexOf(_e)!==-1)return y.push(Ve),w.push(q);if(ht===Nt||ht===dt){if(Ve===0)return y.push(Ve),w.push(lt);var pt=w[Ve-1];return Za.indexOf(pt)===-1?(y.push(y[Ve-1]),w.push(pt)):(y.push(Ve),w.push(lt))}if(y.push(Ve),ht===Ut)return w.push(f==="strict"?we:Nr);if(ht===Ln||ht===De)return w.push(lt);if(ht===pn)return _e>=131072&&_e<=196605||_e>=196608&&_e<=262141?w.push(Nr):w.push(lt);w.push(ht)}),[y,w,re]},vi=function(b,f,w,y){var re=y[w];if(Array.isArray(b)?b.indexOf(re)!==-1:b===re)for(var _e=w;_e<=y.length;){_e++;var Ve=y[_e];if(Ve===f)return!0;if(Ve!==G)break}if(re===G)for(var _e=w;_e>0;){_e--;var ht=y[_e];if(Array.isArray(b)?b.indexOf(ht)!==-1:b===ht)for(var pt=w;pt<=y.length;){pt++;var Ve=y[pt];if(Ve===f)return!0;if(Ve!==G)break}if(ht!==G)break}return!1},ge=function(b,f){for(var w=b;w>=0;){var y=f[w];if(y===G)w--;else return y}return 0},Me=function(b,f,w,y,re){if(w[y]===0)return hr;var _e=y-1;if(Array.isArray(re)&&re[_e]===!0)return hr;var Ve=_e-1,ht=_e+1,pt=f[_e],qt=Ve>=0?f[Ve]:0,Ar=f[ht];if(pt===_t&&Ar===Lt)return hr;if($i.indexOf(pt)!==-1)return Ki;if($i.indexOf(Ar)!==-1||Ri.indexOf(Ar)!==-1)return hr;if(ge(_e,f)===yr)return Wn;if(Hi.get(b[_e])===dt||(pt===kt||pt===rr)&&Hi.get(b[ht])===dt||pt===er||Ar===er||pt===lr||[G,m,C].indexOf(pt)===-1&&Ar===lr||[Se,H,ie,Ct,Ie].indexOf(Ar)!==-1||ge(_e,f)===ye||vi(je,ye,_e,f)||vi([Se,H],we,_e,f)||vi(I,I,_e,f))return hr;if(pt===G)return Wn;if(pt===je||Ar===je)return hr;if(Ar===q||pt===q)return Wn;if([m,C,we].indexOf(Ar)!==-1||pt===u||qt===Dr&&Yn.indexOf(pt)!==-1||pt===Ie&&Ar===Dr||Ar===Qe||ui.indexOf(Ar)!==-1&&pt===de||ui.indexOf(pt)!==-1&&Ar===de||pt===tt&&[Nr,kt,rr].indexOf(Ar)!==-1||[Nr,kt,rr].indexOf(pt)!==-1&&Ar===st||ui.indexOf(pt)!==-1&&Zi.indexOf(Ar)!==-1||Zi.indexOf(pt)!==-1&&ui.indexOf(Ar)!==-1||[tt,st].indexOf(pt)!==-1&&(Ar===de||[ye,C].indexOf(Ar)!==-1&&f[ht+1]===de)||[ye,C].indexOf(pt)!==-1&&Ar===de||pt===de&&[de,Ie,Ct].indexOf(Ar)!==-1)return hr;if([de,Ie,Ct,Se,H].indexOf(Ar)!==-1)for(var pr=_e;pr>=0;){var qr=f[pr];if(qr===de)return hr;if([Ie,Ct].indexOf(qr)!==-1)pr--;else break}if([tt,st].indexOf(Ar)!==-1)for(var pr=[Se,H].indexOf(pt)!==-1?Ve:_e;pr>=0;){var qr=f[pr];if(qr===de)return hr;if([Ie,Ct].indexOf(qr)!==-1)pr--;else break}if(xr===pt&&[xr,ur,Fr,kr].indexOf(Ar)!==-1||[ur,Fr].indexOf(pt)!==-1&&[ur,Qr].indexOf(Ar)!==-1||[Qr,kr].indexOf(pt)!==-1&&Ar===Qr||_i.indexOf(pt)!==-1&&[Qe,st].indexOf(Ar)!==-1||_i.indexOf(Ar)!==-1&&pt===tt||ui.indexOf(pt)!==-1&&ui.indexOf(Ar)!==-1||pt===Ct&&ui.indexOf(Ar)!==-1||ui.concat(de).indexOf(pt)!==-1&&Ar===ye&&kn.indexOf(b[ht])===-1||ui.concat(de).indexOf(Ar)!==-1&&pt===H)return hr;if(pt===hn&&Ar===hn){for(var Ui=w[_e],Tn=1;Ui>0&&(Ui--,f[Ui]===hn);)Tn++;if(Tn%2!==0)return hr}return pt===kt&&Ar===rr?hr:Wn},Fe=function(b,f){f||(f={lineBreak:"normal",wordBreak:"normal"});var w=ii(b,f.lineBreak),y=w[0],re=w[1],_e=w[2];(f.wordBreak==="break-all"||f.wordBreak==="break-word")&&(re=re.map(function(ht){return[de,lt,Ln].indexOf(ht)!==-1?Nr:ht}));var Ve=f.wordBreak==="keep-all"?_e.map(function(ht,pt){return ht&&b[pt]>=19968&&b[pt]<=40959}):void 0;return[y,re,Ve]},Ge=function(){function b(f,w,y,re){this.codePoints=f,this.required=w===Ki,this.start=y,this.end=re}return b.prototype.slice=function(){return F.apply(void 0,this.codePoints.slice(this.start,this.end))},b}(),Pt=function(b,f){var w=g(b),y=Fe(w,f),re=y[0],_e=y[1],Ve=y[2],ht=w.length,pt=0,qt=0;return{next:function(){if(qt>=ht)return{done:!0,value:null};for(var Ar=hr;qt<ht&&(Ar=Me(w,_e,re,++qt,Ve))===hr;);if(Ar!==hr||qt===ht){var pr=new Ge(w,Ar,pt,qt);return pt=qt,{value:pr,done:!1}}return{done:!0,value:null}}}},Dt=1,_r=2,nr=4,Or=8,Hr=10,an=47,jr=92,Rr=9,en=32,yn=34,on=61,Dn=35,Rn=36,di=37,Nn=39,Gn=40,Vt=41,Xt=95,Yt=45,tr=33,jt=60,or=62,cr=64,Pr=91,bn=93,xn=61,ci=123,ri=63,Si=125,qn=124,jn=126,yi=128,bi=65533,wi=42,Ai=43,xi=44,Xi=58,ti=59,Pi=46,za=0,li=8,un=11,sn=14,Xn=31,Qn=127,fi=-1,qi=48,Ii=97,Ra=101,ua=102,Co=117,Vn=122,_n=65,ki=69,Ji=70,Ma=85,Ms=90,Va=function(b){return b>=qi&&b<=57},fa=function(b){return b>=55296&&b<=57343},_o=function(b){return Va(b)||b>=_n&&b<=Ji||b>=Ii&&b<=ua},Bo=function(b){return b>=Ii&&b<=Vn},To=function(b){return b>=_n&&b<=Ms},Ps=function(b){return Bo(b)||To(b)},mo=function(b){return b>=yi},xs=function(b){return b===Hr||b===Rr||b===en},Ts=function(b){return Ps(b)||mo(b)||b===Xt},$s=function(b){return Ts(b)||Va(b)||b===Yt},Uo=function(b){return b>=za&&b<=li||b===un||b>=sn&&b<=Xn||b===Qn},Ro=function(b,f){return b!==jr?!1:f!==Hr},Cs=function(b,f,w){return b===Yt?Ts(f)||Ro(f,w):Ts(b)?!0:!!(b===jr&&Ro(b,f))},el=function(b,f,w){return b===Ai||b===Yt?Va(f)?!0:f===Pi&&Va(w):Va(b===Pi?f:b)},vl=function(b){var f=0,w=1;(b[f]===Ai||b[f]===Yt)&&(b[f]===Yt&&(w=-1),f++);for(var y=[];Va(b[f]);)y.push(b[f++]);var re=y.length?parseInt(F.apply(void 0,y),10):0;b[f]===Pi&&f++;for(var _e=[];Va(b[f]);)_e.push(b[f++]);var Ve=_e.length,ht=Ve?parseInt(F.apply(void 0,_e),10):0;(b[f]===ki||b[f]===Ra)&&f++;var pt=1;(b[f]===Ai||b[f]===Yt)&&(b[f]===Yt&&(pt=-1),f++);for(var qt=[];Va(b[f]);)qt.push(b[f++]);var Ar=qt.length?parseInt(F.apply(void 0,qt),10):0;return w*(re+ht*Math.pow(10,-Ve))*Math.pow(10,pt*Ar)},tc={type:2},rc={type:3},Rl={type:4},Zs={type:13},kc={type:8},Ql={type:21},Kl={type:9},Vs={type:10},os={type:11},ni={type:12},ca={type:14},ta={type:23},oa={type:1},Oa={type:25},so={type:24},Ws={type:26},Bs={type:27},Ss={type:28},vs={type:29},to={type:31},Qa={type:32},ss=function(){function b(){this._value=[]}return b.prototype.write=function(f){this._value=this._value.concat(g(f))},b.prototype.read=function(){for(var f=[],w=this.consumeToken();w!==Qa;)f.push(w),w=this.consumeToken();return f},b.prototype.consumeToken=function(){var f=this.consumeCodePoint();switch(f){case yn:return this.consumeStringToken(yn);case Dn:var w=this.peekCodePoint(0),y=this.peekCodePoint(1),re=this.peekCodePoint(2);if($s(w)||Ro(y,re)){var _e=Cs(w,y,re)?_r:Dt,Ve=this.consumeName();return{type:5,value:Ve,flags:_e}}break;case Rn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Zs;break;case Nn:return this.consumeStringToken(Nn);case Gn:return tc;case Vt:return rc;case wi:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),ca;break;case Ai:if(el(f,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(f),this.consumeNumericToken();break;case xi:return Rl;case Yt:var ht=f,pt=this.peekCodePoint(0),qt=this.peekCodePoint(1);if(el(ht,pt,qt))return this.reconsumeCodePoint(f),this.consumeNumericToken();if(Cs(ht,pt,qt))return this.reconsumeCodePoint(f),this.consumeIdentLikeToken();if(pt===Yt&&qt===or)return this.consumeCodePoint(),this.consumeCodePoint(),so;break;case Pi:if(el(f,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(f),this.consumeNumericToken();break;case an:if(this.peekCodePoint(0)===wi)for(this.consumeCodePoint();;){var Ar=this.consumeCodePoint();if(Ar===wi&&(Ar=this.consumeCodePoint(),Ar===an))return this.consumeToken();if(Ar===fi)return this.consumeToken()}break;case Xi:return Ws;case ti:return Bs;case jt:if(this.peekCodePoint(0)===tr&&this.peekCodePoint(1)===Yt&&this.peekCodePoint(2)===Yt)return this.consumeCodePoint(),this.consumeCodePoint(),Oa;break;case cr:var pr=this.peekCodePoint(0),qr=this.peekCodePoint(1),Ui=this.peekCodePoint(2);if(Cs(pr,qr,Ui)){var Ve=this.consumeName();return{type:7,value:Ve}}break;case Pr:return Ss;case jr:if(Ro(f,this.peekCodePoint(0)))return this.reconsumeCodePoint(f),this.consumeIdentLikeToken();break;case bn:return vs;case xn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),kc;break;case ci:return os;case Si:return ni;case Co:case Ma:var Tn=this.peekCodePoint(0),pi=this.peekCodePoint(1);return Tn===Ai&&(_o(pi)||pi===ri)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(f),this.consumeIdentLikeToken();case qn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Kl;if(this.peekCodePoint(0)===qn)return this.consumeCodePoint(),Ql;break;case jn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Vs;break;case fi:return Qa}return xs(f)?(this.consumeWhiteSpace(),to):Va(f)?(this.reconsumeCodePoint(f),this.consumeNumericToken()):Ts(f)?(this.reconsumeCodePoint(f),this.consumeIdentLikeToken()):{type:6,value:F(f)}},b.prototype.consumeCodePoint=function(){var f=this._value.shift();return typeof f=="undefined"?-1:f},b.prototype.reconsumeCodePoint=function(f){this._value.unshift(f)},b.prototype.peekCodePoint=function(f){return f>=this._value.length?-1:this._value[f]},b.prototype.consumeUnicodeRangeToken=function(){for(var f=[],w=this.consumeCodePoint();_o(w)&&f.length<6;)f.push(w),w=this.consumeCodePoint();for(var y=!1;w===ri&&f.length<6;)f.push(w),w=this.consumeCodePoint(),y=!0;if(y){var re=parseInt(F.apply(void 0,f.map(function(pt){return pt===ri?qi:pt})),16),_e=parseInt(F.apply(void 0,f.map(function(pt){return pt===ri?Ji:pt})),16);return{type:30,start:re,end:_e}}var Ve=parseInt(F.apply(void 0,f),16);if(this.peekCodePoint(0)===Yt&&_o(this.peekCodePoint(1))){this.consumeCodePoint(),w=this.consumeCodePoint();for(var ht=[];_o(w)&&ht.length<6;)ht.push(w),w=this.consumeCodePoint();var _e=parseInt(F.apply(void 0,ht),16);return{type:30,start:Ve,end:_e}}else return{type:30,start:Ve,end:Ve}},b.prototype.consumeIdentLikeToken=function(){var f=this.consumeName();return f.toLowerCase()==="url"&&this.peekCodePoint(0)===Gn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Gn?(this.consumeCodePoint(),{type:19,value:f}):{type:20,value:f}},b.prototype.consumeUrlToken=function(){var f=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===fi)return{type:22,value:""};var w=this.peekCodePoint(0);if(w===Nn||w===yn){var y=this.consumeStringToken(this.consumeCodePoint());return y.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===fi||this.peekCodePoint(0)===Vt)?(this.consumeCodePoint(),{type:22,value:y.value}):(this.consumeBadUrlRemnants(),ta)}for(;;){var re=this.consumeCodePoint();if(re===fi||re===Vt)return{type:22,value:F.apply(void 0,f)};if(xs(re))return this.consumeWhiteSpace(),this.peekCodePoint(0)===fi||this.peekCodePoint(0)===Vt?(this.consumeCodePoint(),{type:22,value:F.apply(void 0,f)}):(this.consumeBadUrlRemnants(),ta);if(re===yn||re===Nn||re===Gn||Uo(re))return this.consumeBadUrlRemnants(),ta;if(re===jr)if(Ro(re,this.peekCodePoint(0)))f.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ta;else f.push(re)}},b.prototype.consumeWhiteSpace=function(){for(;xs(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var f=this.consumeCodePoint();if(f===Vt||f===fi)return;Ro(f,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(f){for(var w=5e4,y="";f>0;){var re=Math.min(w,f);y+=F.apply(void 0,this._value.splice(0,re)),f-=re}return this._value.shift(),y},b.prototype.consumeStringToken=function(f){var w="",y=0;do{var re=this._value[y];if(re===fi||re===void 0||re===f)return w+=this.consumeStringSlice(y),{type:0,value:w};if(re===Hr)return this._value.splice(0,y),oa;if(re===jr){var _e=this._value[y+1];_e!==fi&&_e!==void 0&&(_e===Hr?(w+=this.consumeStringSlice(y),y=-1,this._value.shift()):Ro(re,_e)&&(w+=this.consumeStringSlice(y),w+=F(this.consumeEscapedCodePoint()),y=-1))}y++}while(!0)},b.prototype.consumeNumber=function(){var f=[],w=nr,y=this.peekCodePoint(0);for((y===Ai||y===Yt)&&f.push(this.consumeCodePoint());Va(this.peekCodePoint(0));)f.push(this.consumeCodePoint());y=this.peekCodePoint(0);var re=this.peekCodePoint(1);if(y===Pi&&Va(re))for(f.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Or;Va(this.peekCodePoint(0));)f.push(this.consumeCodePoint());y=this.peekCodePoint(0),re=this.peekCodePoint(1);var _e=this.peekCodePoint(2);if((y===ki||y===Ra)&&((re===Ai||re===Yt)&&Va(_e)||Va(re)))for(f.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Or;Va(this.peekCodePoint(0));)f.push(this.consumeCodePoint());return[vl(f),w]},b.prototype.consumeNumericToken=function(){var f=this.consumeNumber(),w=f[0],y=f[1],re=this.peekCodePoint(0),_e=this.peekCodePoint(1),Ve=this.peekCodePoint(2);if(Cs(re,_e,Ve)){var ht=this.consumeName();return{type:15,number:w,flags:y,unit:ht}}return re===di?(this.consumeCodePoint(),{type:16,number:w,flags:y}):{type:17,number:w,flags:y}},b.prototype.consumeEscapedCodePoint=function(){var f=this.consumeCodePoint();if(_o(f)){for(var w=F(f);_o(this.peekCodePoint(0))&&w.length<6;)w+=F(this.consumeCodePoint());xs(this.peekCodePoint(0))&&this.consumeCodePoint();var y=parseInt(w,16);return y===0||fa(y)||y>1114111?bi:y}return f===fi?bi:f},b.prototype.consumeName=function(){for(var f="";;){var w=this.consumeCodePoint();if($s(w))f+=F(w);else if(Ro(w,this.peekCodePoint(0)))f+=F(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(w),f}},b}(),ls=function(){function b(f){this._tokens=f}return b.create=function(f){var w=new ss;return w.write(f),new b(w.read())},b.parseValue=function(f){return b.create(f).parseComponentValue()},b.parseValues=function(f){return b.create(f).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var f=this.consumeToken();f.type===31;)f=this.consumeToken();if(f.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(f);var w=this.consumeComponentValue();do f=this.consumeToken();while(f.type===31);if(f.type===32)return w;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var f=[];;){var w=this.consumeComponentValue();if(w.type===32)return f;f.push(w),f.push()}},b.prototype.consumeComponentValue=function(){var f=this.consumeToken();switch(f.type){case 11:case 28:case 2:return this.consumeSimpleBlock(f.type);case 19:return this.consumeFunction(f)}return f},b.prototype.consumeSimpleBlock=function(f){for(var w={type:f,values:[]},y=this.consumeToken();;){if(y.type===32||mA(y,f))return w;this.reconsumeToken(y),w.values.push(this.consumeComponentValue()),y=this.consumeToken()}},b.prototype.consumeFunction=function(f){for(var w={name:f.value,values:[],type:18};;){var y=this.consumeToken();if(y.type===32||y.type===3)return w;this.reconsumeToken(y),w.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var f=this._tokens.shift();return typeof f=="undefined"?Qa:f},b.prototype.reconsumeToken=function(f){this._tokens.unshift(f)},b}(),Ls=function(b){return b.type===15},Jo=function(b){return b.type===17},Io=function(b){return b.type===20},hA=function(b){return b.type===0},ru=function(b,f){return Io(b)&&b.value===f},lc=function(b){return b.type!==31},pA=function(b){return b.type!==31&&b.type!==4},cl=function(b){var f=[],w=[];return b.forEach(function(y){if(y.type===4){if(w.length===0)throw new Error("Error parsing function args, zero tokens for arg");f.push(w),w=[];return}y.type!==31&&w.push(y)}),w.length&&f.push(w),f},mA=function(b,f){return f===11&&b.type===12||f===28&&b.type===29?!0:f===2&&b.type===3},tl=function(b){return b.type===17||b.type===15},bs=function(b){return b.type===16||tl(b)},qc=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},Us={type:17,number:0,flags:nr},PA={type:16,number:50,flags:nr},cc={type:16,number:100,flags:nr},Hl=function(b,f,w){var y=b[0],re=b[1];return[ro(y,f),ro(typeof re!="undefined"?re:y,w)]},ro=function(b,f){if(b.type===16)return b.number/100*f;if(Ls(b))switch(b.unit){case"rem":case"em":return 16*b.number;case"px":default:return b.number}return b.number},Gs="deg",gA="grad",Eu="rad",cs="turn",Ba={name:"angle",parse:function(b,f){if(f.type===15)switch(f.unit){case Gs:return Math.PI*f.number/180;case gA:return Math.PI/200*f.number;case Eu:return f.number;case cs:return Math.PI*2*f.number}throw new Error("Unsupported angle type")}},ya=function(b){return b.type===15&&(b.unit===Gs||b.unit===gA||b.unit===Eu||b.unit===cs)},rs=function(b){var f=b.filter(Io).map(function(w){return w.value}).join(" ");switch(f){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Us,Us];case"to top":case"bottom":return bo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Us,cc];case"to right":case"left":return bo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[cc,cc];case"to bottom":case"top":return bo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[cc,Us];case"to left":case"right":return bo(270)}return 0},bo=function(b){return Math.PI*b/180},$o={name:"color",parse:function(b,f){if(f.type===18){var w=wl[f.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported color function "'+f.name+'"');return w(b,f.values)}if(f.type===5){if(f.value.length===3){var y=f.value.substring(0,1),re=f.value.substring(1,2),_e=f.value.substring(2,3);return Es(parseInt(y+y,16),parseInt(re+re,16),parseInt(_e+_e,16),1)}if(f.value.length===4){var y=f.value.substring(0,1),re=f.value.substring(1,2),_e=f.value.substring(2,3),Ve=f.value.substring(3,4);return Es(parseInt(y+y,16),parseInt(re+re,16),parseInt(_e+_e,16),parseInt(Ve+Ve,16)/255)}if(f.value.length===6){var y=f.value.substring(0,2),re=f.value.substring(2,4),_e=f.value.substring(4,6);return Es(parseInt(y,16),parseInt(re,16),parseInt(_e,16),1)}if(f.value.length===8){var y=f.value.substring(0,2),re=f.value.substring(2,4),_e=f.value.substring(4,6),Ve=f.value.substring(6,8);return Es(parseInt(y,16),parseInt(re,16),parseInt(_e,16),parseInt(Ve,16)/255)}}if(f.type===20){var ht=rl[f.value.toUpperCase()];if(typeof ht!="undefined")return ht}return rl.TRANSPARENT}},Zo=function(b){return(255&b)===0},Do=function(b){var f=255&b,w=255&b>>8,y=255&b>>16,re=255&b>>24;return f<255?"rgba("+re+","+y+","+w+","+f/255+")":"rgb("+re+","+y+","+w+")"},Es=function(b,f,w,y){return(b<<24|f<<16|w<<8|Math.round(y*255)<<0)>>>0},nc=function(b,f){if(b.type===17)return b.number;if(b.type===16){var w=f===3?1:255;return f===3?b.number/100*w:Math.round(b.number/100*w)}return 0},Vc=function(b,f){var w=f.filter(pA);if(w.length===3){var y=w.map(nc),re=y[0],_e=y[1],Ve=y[2];return Es(re,_e,Ve,1)}if(w.length===4){var ht=w.map(nc),re=ht[0],_e=ht[1],Ve=ht[2],pt=ht[3];return Es(re,_e,Ve,pt)}return 0};function Xs(b,f,w){return w<0&&(w+=1),w>=1&&(w-=1),w<1/6?(f-b)*w*6+b:w<1/2?f:w<2/3?(f-b)*6*(2/3-w)+b:b}var vA=function(b,f){var w=f.filter(pA),y=w[0],re=w[1],_e=w[2],Ve=w[3],ht=(y.type===17?bo(y.number):Ba.parse(b,y))/(Math.PI*2),pt=bs(re)?re.number/100:0,qt=bs(_e)?_e.number/100:0,Ar=typeof Ve!="undefined"&&bs(Ve)?ro(Ve,1):1;if(pt===0)return Es(qt*255,qt*255,qt*255,1);var pr=qt<=.5?qt*(pt+1):qt+pt-qt*pt,qr=qt*2-pr,Ui=Xs(qr,pr,ht+1/3),Tn=Xs(qr,pr,ht),pi=Xs(qr,pr,ht-1/3);return Es(Ui*255,Tn*255,pi*255,Ar)},wl={hsl:vA,hsla:vA,rgb:Vc,rgba:Vc},eA=function(b,f){return $o.parse(b,ls.create(f).parseComponentValue())},rl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},_d={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,f){return f.map(function(w){if(Io(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},nu={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$A=function(b,f){var w=$o.parse(b,f[0]),y=f[1];return y&&bs(y)?{color:w,stop:y}:{color:w,stop:null}},Af=function(b,f){var w=b[0],y=b[b.length-1];w.stop===null&&(w.stop=Us),y.stop===null&&(y.stop=cc);for(var re=[],_e=0,Ve=0;Ve<b.length;Ve++){var ht=b[Ve].stop;if(ht!==null){var pt=ro(ht,f);pt>_e?re.push(pt):re.push(_e),_e=pt}else re.push(null)}for(var qt=null,Ve=0;Ve<re.length;Ve++){var Ar=re[Ve];if(Ar===null)qt===null&&(qt=Ve);else if(qt!==null){for(var pr=Ve-qt,qr=re[qt-1],Ui=(Ar-qr)/(pr+1),Tn=1;Tn<=pr;Tn++)re[qt+Tn-1]=Ui*Tn;qt=null}}return b.map(function(pi,Xa){var ea=pi.color;return{color:ea,stop:Math.max(Math.min(1,re[Xa]/f),0)}})},Wc=function(b,f,w){var y=f/2,re=w/2,_e=ro(b[0],f)-y,Ve=re-ro(b[1],w);return(Math.atan2(Ve,_e)+Math.PI*2)%(Math.PI*2)},Gu=function(b,f,w){var y=typeof b=="number"?b:Wc(b,f,w),re=Math.abs(f*Math.sin(y))+Math.abs(w*Math.cos(y)),_e=f/2,Ve=w/2,ht=re/2,pt=Math.sin(y-Math.PI/2)*ht,qt=Math.cos(y-Math.PI/2)*ht;return[re,_e-qt,_e+qt,Ve-pt,Ve+pt]},Dc=function(b,f){return Math.sqrt(b*b+f*f)},Id=function(b,f,w,y,re){var _e=[[0,0],[0,f],[b,0],[b,f]];return _e.reduce(function(Ve,ht){var pt=ht[0],qt=ht[1],Ar=Dc(w-pt,y-qt);return(re?Ar<Ve.optimumDistance:Ar>Ve.optimumDistance)?{optimumCorner:ht,optimumDistance:Ar}:Ve},{optimumDistance:re?1/0:-1/0,optimumCorner:null}).optimumCorner},Yo=function(b,f,w,y,re){var _e=0,Ve=0;switch(b.size){case 0:b.shape===0?_e=Ve=Math.min(Math.abs(f),Math.abs(f-y),Math.abs(w),Math.abs(w-re)):b.shape===1&&(_e=Math.min(Math.abs(f),Math.abs(f-y)),Ve=Math.min(Math.abs(w),Math.abs(w-re)));break;case 2:if(b.shape===0)_e=Ve=Math.min(Dc(f,w),Dc(f,w-re),Dc(f-y,w),Dc(f-y,w-re));else if(b.shape===1){var ht=Math.min(Math.abs(w),Math.abs(w-re))/Math.min(Math.abs(f),Math.abs(f-y)),pt=Id(y,re,f,w,!0),qt=pt[0],Ar=pt[1];_e=Dc(qt-f,(Ar-w)/ht),Ve=ht*_e}break;case 1:b.shape===0?_e=Ve=Math.max(Math.abs(f),Math.abs(f-y),Math.abs(w),Math.abs(w-re)):b.shape===1&&(_e=Math.max(Math.abs(f),Math.abs(f-y)),Ve=Math.max(Math.abs(w),Math.abs(w-re)));break;case 3:if(b.shape===0)_e=Ve=Math.max(Dc(f,w),Dc(f,w-re),Dc(f-y,w),Dc(f-y,w-re));else if(b.shape===1){var ht=Math.max(Math.abs(w),Math.abs(w-re))/Math.max(Math.abs(f),Math.abs(f-y)),pr=Id(y,re,f,w,!1),qt=pr[0],Ar=pr[1];_e=Dc(qt-f,(Ar-w)/ht),Ve=ht*_e}break}return Array.isArray(b.size)&&(_e=ro(b.size[0],y),Ve=b.size.length===2?ro(b.size[1],re):_e),[_e,Ve]},No=function(b,f){var w=bo(180),y=[];return cl(f).forEach(function(re,_e){if(_e===0){var Ve=re[0];if(Ve.type===20&&Ve.value==="to"){w=rs(re);return}else if(ya(Ve)){w=Ba.parse(b,Ve);return}}var ht=$A(b,re);y.push(ht)}),{angle:w,stops:y,type:1}},qo=function(b,f){var w=bo(180),y=[];return cl(f).forEach(function(re,_e){if(_e===0){var Ve=re[0];if(Ve.type===20&&["top","left","right","bottom"].indexOf(Ve.value)!==-1){w=rs(re);return}else if(ya(Ve)){w=(Ba.parse(b,Ve)+bo(270))%bo(360);return}}var ht=$A(b,re);y.push(ht)}),{angle:w,stops:y,type:1}},bc=function(b,f){var w=bo(180),y=[],re=1,_e=0,Ve=3,ht=[];return cl(f).forEach(function(pt,qt){var Ar=pt[0];if(qt===0){if(Io(Ar)&&Ar.value==="linear"){re=1;return}else if(Io(Ar)&&Ar.value==="radial"){re=2;return}}if(Ar.type===18){if(Ar.name==="from"){var pr=$o.parse(b,Ar.values[0]);y.push({stop:Us,color:pr})}else if(Ar.name==="to"){var pr=$o.parse(b,Ar.values[0]);y.push({stop:cc,color:pr})}else if(Ar.name==="color-stop"){var qr=Ar.values.filter(pA);if(qr.length===2){var pr=$o.parse(b,qr[1]),Ui=qr[0];Jo(Ui)&&y.push({stop:{type:16,number:Ui.number*100,flags:Ui.flags},color:pr})}}}}),re===1?{angle:(w+bo(180))%bo(360),stops:y,type:re}:{size:Ve,shape:_e,stops:y,position:ht,type:re}},jl="closest-side",Xu="farthest-side",bA="closest-corner",ZA="farthest-corner",Fd="circle",Md="ellipse",VA="cover",WA="contain",Fo=function(b,f){var w=0,y=3,re=[],_e=[];return cl(f).forEach(function(Ve,ht){var pt=!0;if(ht===0){var qt=!1;pt=Ve.reduce(function(pr,qr){if(qt)if(Io(qr))switch(qr.value){case"center":return _e.push(PA),pr;case"top":case"left":return _e.push(Us),pr;case"right":case"bottom":return _e.push(cc),pr}else(bs(qr)||tl(qr))&&_e.push(qr);else if(Io(qr))switch(qr.value){case Fd:return w=0,!1;case Md:return w=1,!1;case"at":return qt=!0,!1;case jl: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(tl(qr)||bs(qr))return Array.isArray(y)||(y=[]),y.push(qr),!1;return pr},pt)}if(pt){var Ar=$A(b,Ve);re.push(Ar)}}),{size:y,shape:w,stops:re,position:_e,type:2}},yA=function(b,f){var w=0,y=3,re=[],_e=[];return cl(f).forEach(function(Ve,ht){var pt=!0;if(ht===0?pt=Ve.reduce(function(Ar,pr){if(Io(pr))switch(pr.value){case"center":return _e.push(PA),!1;case"top":case"left":return _e.push(Us),!1;case"right":case"bottom":return _e.push(cc),!1}else if(bs(pr)||tl(pr))return _e.push(pr),!1;return Ar},pt):ht===1&&(pt=Ve.reduce(function(Ar,pr){if(Io(pr))switch(pr.value){case Fd:return w=0,!1;case Md:return w=1,!1;case WA:case jl: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(tl(pr)||bs(pr))return Array.isArray(y)||(y=[]),y.push(pr),!1;return Ar},pt)),pt){var qt=$A(b,Ve);re.push(qt)}}),{size:y,shape:w,stops:re,position:_e,type:2}},GA=function(b){return b.type===1},b0=function(b){return b.type===2},iu={name:"image",parse:function(b,f){if(f.type===22){var w={url:f.value,type:0};return b.cache.addImage(f.value),w}if(f.type===18){var y=uf[f.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported image function "'+f.name+'"');return y(b,f.values)}throw new Error("Unsupported image type "+f.type)}};function Bh(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!uf[b.name])}var uf={"linear-gradient":No,"-moz-linear-gradient":qo,"-ms-linear-gradient":qo,"-o-linear-gradient":qo,"-webkit-linear-gradient":qo,"radial-gradient":Fo,"-moz-radial-gradient":yA,"-ms-radial-gradient":yA,"-o-radial-gradient":yA,"-webkit-radial-gradient":yA,"-webkit-gradient":bc},Ld={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,f){if(f.length===0)return[];var w=f[0];return w.type===20&&w.value==="none"?[]:f.filter(function(y){return pA(y)&&Bh(y)}).map(function(y){return iu.parse(b,y)})}},zf={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,f){return f.map(function(w){if(Io(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Sh={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,f){return cl(f).map(function(w){return w.filter(bs)}).map(qc)}},_u={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,f){return cl(f).map(function(w){return w.filter(Io).map(function(y){return y.value}).join(" ")}).map(df)}},df=function(b){switch(b){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},xl;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(xl||(xl={}));var Cl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,f){return cl(f).map(function(w){return w.filter(Nc)})}},Nc=function(b){return Io(b)||bs(b)},Oc=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},y0=Oc("top"),Iu=Oc("right"),Eh=Oc("bottom"),Fu=Oc("left"),kd=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(f,w){return qc(w.filter(bs))}}},$p=kd("top-left"),au=kd("top-right"),tA=kd("bottom-right"),yc=kd("bottom-left"),Vo=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(f,w){switch(w){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ju=Vo("top"),$f=Vo("right"),Zf=Vo("bottom"),Pc=Vo("left"),Yu=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(f,w){return Ls(w)?w.number:0}}},ff=Yu("top"),qu=Yu("right"),w0=Yu("bottom"),x0=Yu("left"),zl={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ed={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,f){switch(f){case"rtl":return 1;case"ltr":default:return 0}}},C0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,f){return f.filter(Io).reduce(function(w,y){return w|ue(y.value)},0)}},ue=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,f){switch(f){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Je={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,f){return f.type===20&&f.value==="normal"?0:f.type===17||f.type===15?f.number:0}},ct;(function(b){b.NORMAL="normal",b.STRICT="strict"})(ct||(ct={}));var Bt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"strict":return ct.STRICT;case"normal":default:return ct.NORMAL}}},bt={name:"line-height",initialValue:"normal",prefix:!1,type:4},$t=function(b,f){return Io(b)&&b.value==="normal"?1.2*f:b.type===17?f*b.number:bs(b)?ro(b,f):f},zt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,f){return f.type===20&&f.value==="none"?null:iu.parse(b,f)}},Qt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,f){switch(f){case"inside":return 0;case"outside":default:return 1}}},dr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,f){switch(f){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ir=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},mr=Ir("top"),tn=Ir("right"),Vr=Ir("bottom"),Yr=Ir("left"),On={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,f){return f.filter(Io).map(function(w){switch(w.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},wn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"break-word":return"break-word";case"normal":default:return"normal"}}},In=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cn=In("top"),zn=In("right"),Ti=In("bottom"),ji=In("left"),hi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,f){switch(f){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},na={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,f){switch(f){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},wa={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,f){return f.length===1&&ru(f[0],"none")?[]:cl(f).map(function(w){for(var y={color:rl.TRANSPARENT,offsetX:Us,offsetY:Us,blur:Us},re=0,_e=0;_e<w.length;_e++){var Ve=w[_e];tl(Ve)?(re===0?y.offsetX=Ve:re===1?y.offsetY=Ve:y.blur=Ve,re++):y.color=$o.parse(b,Ve)}return y})}},Jn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,f){switch(f){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},mi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,f){if(f.type===20&&f.value==="none")return null;if(f.type===18){var w=oi[f.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+f.name+'"');return w(f.values)}return null}},ai=function(b){var f=b.filter(function(w){return w.type===17}).map(function(w){return w.number});return f.length===6?f:null},Pn=function(b){var f=b.filter(function(pt){return pt.type===17}).map(function(pt){return pt.number}),w=f[0],y=f[1];f[2],f[3];var re=f[4],_e=f[5];f[6],f[7],f[8],f[9],f[10],f[11];var Ve=f[12],ht=f[13];return f[14],f[15],f.length===16?[w,y,re,_e,Ve,ht]:null},oi={matrix:ai,matrix3d:Pn},Vi={type:16,number:50,flags:nr},Pa=[Vi,Vi],ma={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,f){var w=f.filter(bs);return w.length!==2?Pa:[w[0],w[1]]}},Wi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,f){switch(f){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ia;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(Ia||(Ia={}));for(var Ka={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"break-all":return Ia.BREAK_ALL;case"keep-all":return Ia.KEEP_ALL;case"normal":default:return Ia.NORMAL}}},es={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,f){if(f.type===20)return{auto:!0,order:0};if(Jo(f))return{auto:!1,order:f.number};throw new Error("Invalid z-index number parsed")}},lo={name:"time",parse:function(b,f){if(f.type===15)switch(f.unit.toLowerCase()){case"s":return 1e3*f.number;case"ms":return f.number}throw new Error("Unsupported time type")}},ys={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,f){return Jo(f)?f.number:1}},As={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ga={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,f){return f.filter(Io).map(function(w){switch(w.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(w){return w!==0})}},ol={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,f){var w=[],y=[];return f.forEach(function(re){switch(re.type){case 20:case 0:w.push(re.value);break;case 17:w.push(re.number.toString());break;case 4:y.push(w.join(" ")),w.length=0;break}}),w.length&&y.push(w.join(" ")),y.map(function(re){return re.indexOf(" ")===-1?re:"'"+re+"'"})}},go={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ts={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,f){if(Jo(f))return f.number;if(Io(f))switch(f.value){case"bold":return 700;case"normal":default:return 400}return 400}},ns={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,f){return f.filter(Io).map(function(w){return w.value})}},wc={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},si=function(b,f){return(b&f)!==0},Gi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,f){if(f.length===0)return[];var w=f[0];return w.type===20&&w.value==="none"?[]:f}},zi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,f){if(f.length===0)return null;var w=f[0];if(w.type===20&&w.value==="none")return null;for(var y=[],re=f.filter(lc),_e=0;_e<re.length;_e++){var Ve=re[_e],ht=re[_e+1];if(Ve.type===20){var pt=ht&&Jo(ht)?ht.number:1;y.push({counter:Ve.value,increment:pt})}}return y}},Di={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,f){if(f.length===0)return[];for(var w=[],y=f.filter(lc),re=0;re<y.length;re++){var _e=y[re],Ve=y[re+1];if(Io(_e)&&_e.value!=="none"){var ht=Ve&&Jo(Ve)?Ve.number:0;w.push({counter:_e.value,reset:ht})}}return w}},yo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,f){return f.filter(Ls).map(function(w){return lo.parse(b,w)})}},Ni={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,f){if(f.length===0)return null;var w=f[0];if(w.type===20&&w.value==="none")return null;var y=[],re=f.filter(hA);if(re.length%2!==0)return null;for(var _e=0;_e<re.length;_e+=2){var Ve=re[_e].value,ht=re[_e+1].value;y.push({open:Ve,close:ht})}return y}},Aa=function(b,f,w){if(!b)return"";var y=b[Math.min(f,b.length-1)];return y?w?y.open:y.close:""},$a={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,f){return f.length===1&&ru(f[0],"none")?[]:cl(f).map(function(w){for(var y={color:255,offsetX:Us,offsetY:Us,blur:Us,spread:Us,inset:!1},re=0,_e=0;_e<w.length;_e++){var Ve=w[_e];ru(Ve,"inset")?y.inset=!0:tl(Ve)?(re===0?y.offsetX=Ve:re===1?y.offsetY=Ve:re===2?y.blur=Ve:y.spread=Ve,re++):y.color=$o.parse(b,Ve)}return y})}},Wa={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,f){var w=[0,1,2],y=[];return f.filter(Io).forEach(function(re){switch(re.value){case"stroke":y.push(1);break;case"fill":y.push(0);break;case"markers":y.push(2);break}}),w.forEach(function(re){y.indexOf(re)===-1&&y.push(re)}),y}},Fl={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},nl={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,f){return Ls(f)?f.number:0}},Gc=function(){function b(f,w){var y,re;this.animationDuration=Kn(f,yo,w.animationDuration),this.backgroundClip=Kn(f,_d,w.backgroundClip),this.backgroundColor=Kn(f,nu,w.backgroundColor),this.backgroundImage=Kn(f,Ld,w.backgroundImage),this.backgroundOrigin=Kn(f,zf,w.backgroundOrigin),this.backgroundPosition=Kn(f,Sh,w.backgroundPosition),this.backgroundRepeat=Kn(f,_u,w.backgroundRepeat),this.backgroundSize=Kn(f,Cl,w.backgroundSize),this.borderTopColor=Kn(f,y0,w.borderTopColor),this.borderRightColor=Kn(f,Iu,w.borderRightColor),this.borderBottomColor=Kn(f,Eh,w.borderBottomColor),this.borderLeftColor=Kn(f,Fu,w.borderLeftColor),this.borderTopLeftRadius=Kn(f,$p,w.borderTopLeftRadius),this.borderTopRightRadius=Kn(f,au,w.borderTopRightRadius),this.borderBottomRightRadius=Kn(f,tA,w.borderBottomRightRadius),this.borderBottomLeftRadius=Kn(f,yc,w.borderBottomLeftRadius),this.borderTopStyle=Kn(f,Ju,w.borderTopStyle),this.borderRightStyle=Kn(f,$f,w.borderRightStyle),this.borderBottomStyle=Kn(f,Zf,w.borderBottomStyle),this.borderLeftStyle=Kn(f,Pc,w.borderLeftStyle),this.borderTopWidth=Kn(f,ff,w.borderTopWidth),this.borderRightWidth=Kn(f,qu,w.borderRightWidth),this.borderBottomWidth=Kn(f,w0,w.borderBottomWidth),this.borderLeftWidth=Kn(f,x0,w.borderLeftWidth),this.boxShadow=Kn(f,$a,w.boxShadow),this.color=Kn(f,zl,w.color),this.direction=Kn(f,ed,w.direction),this.display=Kn(f,C0,w.display),this.float=Kn(f,xe,w.cssFloat),this.fontFamily=Kn(f,ol,w.fontFamily),this.fontSize=Kn(f,go,w.fontSize),this.fontStyle=Kn(f,wc,w.fontStyle),this.fontVariant=Kn(f,ns,w.fontVariant),this.fontWeight=Kn(f,ts,w.fontWeight),this.letterSpacing=Kn(f,Je,w.letterSpacing),this.lineBreak=Kn(f,Bt,w.lineBreak),this.lineHeight=Kn(f,bt,w.lineHeight),this.listStyleImage=Kn(f,zt,w.listStyleImage),this.listStylePosition=Kn(f,Qt,w.listStylePosition),this.listStyleType=Kn(f,dr,w.listStyleType),this.marginTop=Kn(f,mr,w.marginTop),this.marginRight=Kn(f,tn,w.marginRight),this.marginBottom=Kn(f,Vr,w.marginBottom),this.marginLeft=Kn(f,Yr,w.marginLeft),this.opacity=Kn(f,ys,w.opacity);var _e=Kn(f,On,w.overflow);this.overflowX=_e[0],this.overflowY=_e[_e.length>1?1:0],this.overflowWrap=Kn(f,wn,w.overflowWrap),this.paddingTop=Kn(f,Cn,w.paddingTop),this.paddingRight=Kn(f,zn,w.paddingRight),this.paddingBottom=Kn(f,Ti,w.paddingBottom),this.paddingLeft=Kn(f,ji,w.paddingLeft),this.paintOrder=Kn(f,Wa,w.paintOrder),this.position=Kn(f,na,w.position),this.textAlign=Kn(f,hi,w.textAlign),this.textDecorationColor=Kn(f,As,(y=w.textDecorationColor)!==null&&y!==void 0?y:w.color),this.textDecorationLine=Kn(f,ga,(re=w.textDecorationLine)!==null&&re!==void 0?re:w.textDecoration),this.textShadow=Kn(f,wa,w.textShadow),this.textTransform=Kn(f,Jn,w.textTransform),this.transform=Kn(f,mi,w.transform),this.transformOrigin=Kn(f,ma,w.transformOrigin),this.visibility=Kn(f,Wi,w.visibility),this.webkitTextStrokeColor=Kn(f,Fl,w.webkitTextStrokeColor),this.webkitTextStrokeWidth=Kn(f,nl,w.webkitTextStrokeWidth),this.wordBreak=Kn(f,Ka,w.wordBreak),this.zIndex=Kn(f,es,w.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return Zo(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return si(this.display,4)||si(this.display,33554432)||si(this.display,268435456)||si(this.display,536870912)||si(this.display,67108864)||si(this.display,134217728)},b}(),Rs=function(){function b(f,w){this.content=Kn(f,Gi,w.content),this.quotes=Kn(f,Ni,w.quotes)}return b}(),Tc=function(){function b(f,w){this.counterIncrement=Kn(f,zi,w.counterIncrement),this.counterReset=Kn(f,Di,w.counterReset)}return b}(),Kn=function(b,f,w){var y=new ss,re=w!==null&&typeof w!="undefined"?w.toString():f.initialValue;y.write(re);var _e=new ls(y.read());switch(f.type){case 2:var Ve=_e.parseComponentValue();return f.parse(b,Io(Ve)?Ve.value:f.initialValue);case 0:return f.parse(b,_e.parseComponentValue());case 1:return f.parse(b,_e.parseComponentValues());case 4:return _e.parseComponentValue();case 3:switch(f.format){case"angle":return Ba.parse(b,_e.parseComponentValue());case"color":return $o.parse(b,_e.parseComponentValue());case"image":return iu.parse(b,_e.parseComponentValue());case"length":var ht=_e.parseComponentValue();return tl(ht)?ht:Us;case"length-percentage":var pt=_e.parseComponentValue();return bs(pt)?pt:Us;case"time":return lo.parse(b,_e.parseComponentValue())}break}},Ac="data-html2canvas-debug",Mu=function(b){var f=b.getAttribute(Ac);switch(f){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},co=function(b,f){var w=Mu(b);return w===1||f===w},dn=function(){function b(f,w){if(this.context=f,this.textNodes=[],this.elements=[],this.flags=0,co(w,3))debugger;this.styles=new Gc(f,window.getComputedStyle(w,null)),L0(w)&&(this.styles.animationDuration.some(function(y){return y>0})&&(w.style.animationDuration="0s"),this.styles.transform!==null&&(w.style.transform="none")),this.bounds=V(this.context,w),co(w,4)&&(this.flags|=16)}return b}(),Mo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Al="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",us=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ia=0;ia<Al.length;ia++)us[Al.charCodeAt(ia)]=ia;for(var Bl=function(b){var f=b.length*.75,w=b.length,y,re=0,_e,Ve,ht,pt;b[b.length-1]==="="&&(f--,b[b.length-2]==="="&&f--);var qt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(f):new Array(f),Ar=Array.isArray(qt)?qt:new Uint8Array(qt);for(y=0;y<w;y+=4)_e=us[b.charCodeAt(y)],Ve=us[b.charCodeAt(y+1)],ht=us[b.charCodeAt(y+2)],pt=us[b.charCodeAt(y+3)],Ar[re++]=_e<<2|Ve>>4,Ar[re++]=(Ve&15)<<4|ht>>2,Ar[re++]=(ht&3)<<6|pt&63;return qt},$l=function(b){for(var f=b.length,w=[],y=0;y<f;y+=2)w.push(b[y+1]<<8|b[y]);return w},Uc=function(b){for(var f=b.length,w=[],y=0;y<f;y+=4)w.push(b[y+3]<<24|b[y+2]<<16|b[y+1]<<8|b[y]);return w},xc=5,Sl=11,ul=2,ou=Sl-xc,Ml=65536>>xc,Qs=1<<xc,El=Qs-1,il=1024>>xc,ks=Ml+il,Cc=ks,wA=32,TA=Cc+wA,xA=65536>>Sl,hf=1<<ou,Vf=hf-1,ao=function(b,f,w){return b.slice?b.slice(f,w):new Uint16Array(Array.prototype.slice.call(b,f,w))},Wo=function(b,f,w){return b.slice?b.slice(f,w):new Uint32Array(Array.prototype.slice.call(b,f,w))},Zl=function(b,f){var w=Bl(b),y=Array.isArray(w)?Uc(w):new Uint32Array(w),re=Array.isArray(w)?$l(w):new Uint16Array(w),_e=24,Ve=ao(re,_e/2,y[4]/2),ht=y[5]===2?ao(re,(_e+y[4])/2):Wo(y,Math.ceil((_e+y[4])/4));return new ds(y[0],y[1],y[2],y[3],Ve,ht)},ds=function(){function b(f,w,y,re,_e,Ve){this.initialValue=f,this.errorValue=w,this.highStart=y,this.highValueIndex=re,this.index=_e,this.data=Ve}return b.prototype.get=function(f){var w;if(f>=0){if(f<55296||f>56319&&f<=65535)return w=this.index[f>>xc],w=(w<<ul)+(f&El),this.data[w];if(f<=65535)return w=this.index[Ml+(f-55296>>xc)],w=(w<<ul)+(f&El),this.data[w];if(f<this.highStart)return w=TA-xA+(f>>Sl),w=this.index[w],w+=f>>xc&Vf,w=this.index[w],w=(w<<ul)+(f&El),this.data[w];if(f<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),Ll="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Js=0;Js<Ll.length;Js++)Vl[Ll.charCodeAt(Js)]=Js;var CA=1,pf=2,mf=3,td=4,Ao=5,_s=7,BA=8,SA=9,Wl=10,Wf=11,UA=12,Gf=13,Xf=14,rd=15,Dd=function(b){for(var f=[],w=0,y=b.length;w<y;){var re=b.charCodeAt(w++);if(re>=55296&&re<=56319&&w<y){var _e=b.charCodeAt(w++);(_e&64512)===56320?f.push(((re&1023)<<10)+(_e&1023)+65536):(f.push(re),w--)}else f.push(re)}return f},Nd=function(){for(var b=[],f=0;f<arguments.length;f++)b[f]=arguments[f];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var w=b.length;if(!w)return"";for(var y=[],re=-1,_e="";++re<w;){var Ve=b[re];Ve<=65535?y.push(Ve):(Ve-=65536,y.push((Ve>>10)+55296,Ve%1024+56320)),(re+1===w||y.length>16384)&&(_e+=String.fromCharCode.apply(String,y),y.length=0)}return _e},nd=Zl(Mo),zr="\xD7",Od="\xF7",gf=function(b){return nd.get(b)},Jf=function(b,f,w){var y=w-2,re=f[y],_e=f[w-1],Ve=f[w];if(_e===pf&&Ve===mf)return zr;if(_e===pf||_e===mf||_e===td||Ve===pf||Ve===mf||Ve===td)return Od;if(_e===BA&&[BA,SA,Wf,UA].indexOf(Ve)!==-1||(_e===Wf||_e===SA)&&(Ve===SA||Ve===Wl)||(_e===UA||_e===Wl)&&Ve===Wl||Ve===Gf||Ve===Ao||Ve===_s||_e===CA)return zr;if(_e===Gf&&Ve===Xf){for(;re===Ao;)re=f[--y];if(re===Xf)return zr}if(_e===rd&&Ve===rd){for(var ht=0;re===rd;)ht++,re=f[--y];if(ht%2===0)return zr}return Od},vf=function(b){var f=Dd(b),w=f.length,y=0,re=0,_e=f.map(gf);return{next:function(){if(y>=w)return{done:!0,value:null};for(var Ve=zr;y<w&&(Ve=Jf(f,_e,++y))===zr;);if(Ve!==zr||y===w){var ht=Nd.apply(null,f.slice(re,y));return re=y,{value:ht,done:!1}}return{done:!0,value:null}}}},_h=function(b){for(var f=vf(b),w=[],y;!(y=f.next()).done;)y.value&&w.push(y.value.slice());return w},Ih=function(b){var f=123;if(b.createRange){var w=b.createRange();if(w.getBoundingClientRect){var y=b.createElement("boundtest");y.style.height=f+"px",y.style.display="block",b.body.appendChild(y),w.selectNode(y);var re=w.getBoundingClientRect(),_e=Math.round(re.height);if(b.body.removeChild(y),_e===f)return!0}}return!1},Yf=function(b){var f=b.createElement("boundtest");f.style.width="50px",f.style.display="block",f.style.fontSize="12px",f.style.letterSpacing="0px",f.style.wordSpacing="0px",b.body.appendChild(f);var w=b.createRange();f.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var y=f.firstChild,re=g(y.data).map(function(pt){return F(pt)}),_e=0,Ve={},ht=re.every(function(pt,qt){w.setStart(y,_e),w.setEnd(y,_e+pt.length);var Ar=w.getBoundingClientRect();_e+=pt.length;var pr=Ar.x>Ve.x||Ar.y>Ve.y;return Ve=Ar,qt===0?!0:pr});return b.body.removeChild(f),ht},bl=function(){return typeof new Image().crossOrigin!="undefined"},Lu=function(){return typeof new XMLHttpRequest().responseType=="string"},bf=function(b){var f=new Image,w=b.createElement("canvas"),y=w.getContext("2d");if(!y)return!1;f.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{y.drawImage(f,0,0),w.toDataURL()}catch(re){return!1}return!0},id=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},yf=function(b){var f=b.createElement("canvas"),w=100;f.width=w,f.height=w;var y=f.getContext("2d");if(!y)return Promise.reject(!1);y.fillStyle="rgb(0, 255, 0)",y.fillRect(0,0,w,w);var re=new Image,_e=f.toDataURL();re.src=_e;var Ve=RA(w,w,0,0,re);return y.fillStyle="red",y.fillRect(0,0,w,w),su(Ve).then(function(ht){y.drawImage(ht,0,0);var pt=y.getImageData(0,0,w,w).data;y.fillStyle="red",y.fillRect(0,0,w,w);var qt=b.createElement("div");return qt.style.backgroundImage="url("+_e+")",qt.style.height=w+"px",id(pt)?su(RA(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})},RA=function(b,f,w,y,re){var _e="http://www.w3.org/2000/svg",Ve=document.createElementNS(_e,"svg"),ht=document.createElementNS(_e,"foreignObject");return Ve.setAttributeNS(null,"width",b.toString()),Ve.setAttributeNS(null,"height",f.toString()),ht.setAttributeNS(null,"width","100%"),ht.setAttributeNS(null,"height","100%"),ht.setAttributeNS(null,"x",w.toString()),ht.setAttributeNS(null,"y",y.toString()),ht.setAttributeNS(null,"externalResourcesRequired","true"),Ve.appendChild(ht),ht.appendChild(re),Ve},su=function(b){return new Promise(function(f,w){var y=new Image;y.onload=function(){return f(y)},y.onerror=w,y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},fs={get SUPPORT_RANGE_BOUNDS(){var b=Ih(document);return Object.defineProperty(fs,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=fs.SUPPORT_RANGE_BOUNDS&&Yf(document);return Object.defineProperty(fs,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=bf(document);return Object.defineProperty(fs,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?yf(document):Promise.resolve(!1);return Object.defineProperty(fs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=bl();return Object.defineProperty(fs,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=Lu();return Object.defineProperty(fs,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(fs,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(fs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},Rc=function(){function b(f,w){this.text=f,this.bounds=w}return b}(),Gl=function(b,f,w,y){var re=lu(f,w),_e=[],Ve=0;return re.forEach(function(ht){if(w.textDecorationLine.length||ht.trim().length>0)if(fs.SUPPORT_RANGE_BOUNDS){var pt=uo(y,Ve,ht.length).getClientRects();if(pt.length>1){var qt=wo(ht),Ar=0;qt.forEach(function(qr){_e.push(new Rc(qr,te.fromDOMRectList(b,uo(y,Ar+Ve,qr.length).getClientRects()))),Ar+=qr.length})}else _e.push(new Rc(ht,te.fromDOMRectList(b,pt)))}else{var pr=y.splitText(ht.length);_e.push(new Rc(ht,ku(b,y))),y=pr}else fs.SUPPORT_RANGE_BOUNDS||(y=y.splitText(ht.length));Ve+=ht.length}),_e},ku=function(b,f){var w=f.ownerDocument;if(w){var y=w.createElement("html2canvaswrapper");y.appendChild(f.cloneNode(!0));var re=f.parentNode;if(re){re.replaceChild(y,f);var _e=V(b,y);return y.firstChild&&re.replaceChild(y.firstChild,y),_e}}return te.EMPTY},uo=function(b,f,w){var y=b.ownerDocument;if(!y)throw new Error("Node has no owner document");var re=y.createRange();return re.setStart(b,f),re.setEnd(b,f+w),re},wo=function(b){if(fs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var f=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(f.segment(b)).map(function(w){return w.segment})}return _h(b)},rA=function(b,f){if(fs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var w=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(w.segment(b)).map(function(y){return y.segment})}return B0(b,f)},lu=function(b,f){return f.letterSpacing!==0?wo(b):rA(b,f)},XA=[32,160,4961,65792,65793,4153,4241],B0=function(b,f){for(var w=Pt(b,{lineBreak:f.lineBreak,wordBreak:f.overflowWrap==="break-word"?"break-word":f.wordBreak}),y=[],re,_e=function(){if(re.value){var Ve=re.value.slice(),ht=g(Ve),pt="";ht.forEach(function(qt){XA.indexOf(qt)===-1?pt+=F(qt):(pt.length&&y.push(pt),y.push(F(qt)),pt="")}),pt.length&&y.push(pt)}};!(re=w.next()).done;)_e();return y},kl=function(){function b(f,w,y){this.text=EA(w.data,y.textTransform),this.textBounds=Gl(f,this.text,y,w)}return b}(),EA=function(b,f){switch(f){case 1:return b.toLowerCase();case 3:return b.replace(Fh,qf);case 2:return b.toUpperCase();default:return b}},Fh=/(^|\s|:|-|\(|\))([a-z])/g,qf=function(b,f,w){return b.length>0?f+w.toUpperCase():b},S0=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.src=y.currentSrc||y.src,re.intrinsicWidth=y.naturalWidth,re.intrinsicHeight=y.naturalHeight,re.context.cache.addImage(re.src),re}return f}(dn),So=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.canvas=y,re.intrinsicWidth=y.width,re.intrinsicHeight=y.height,re}return f}(dn),wf=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this,_e=new XMLSerializer,Ve=V(w,y);return y.setAttribute("width",Ve.width+"px"),y.setAttribute("height",Ve.height+"px"),re.svg="data:image/svg+xml,"+encodeURIComponent(_e.serializeToString(y)),re.intrinsicWidth=y.width.baseVal.value,re.intrinsicHeight=y.height.baseVal.value,re.context.cache.addImage(re.svg),re}return f}(dn),Pd=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.value=y.value,re}return f}(dn),eh=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.start=y.start,re.reversed=typeof y.reversed=="boolean"&&y.reversed===!0,re}return f}(dn),Ur=[{type:15,flags:0,unit:"px",number:3}],Dm=[{type:16,flags:0,number:50}],Nm=function(b){return b.width>b.height?new te(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new te(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},E0=function(b){var f=b.type===Mh?new Array(b.value.length+1).join("\u2022"):b.value;return f.length===0?b.placeholder||"":f},_0="checkbox",Td="radio",Mh="password",I0=707406591,Xl=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;switch(re.type=y.type.toLowerCase(),re.checked=y.checked,re.value=E0(y),(re.type===_0||re.type===Td)&&(re.styles.backgroundColor=3739148031,re.styles.borderTopColor=re.styles.borderRightColor=re.styles.borderBottomColor=re.styles.borderLeftColor=2779096575,re.styles.borderTopWidth=re.styles.borderRightWidth=re.styles.borderBottomWidth=re.styles.borderLeftWidth=1,re.styles.borderTopStyle=re.styles.borderRightStyle=re.styles.borderBottomStyle=re.styles.borderLeftStyle=1,re.styles.backgroundClip=[0],re.styles.backgroundOrigin=[0],re.bounds=Nm(re.bounds)),re.type){case _0:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=Ur;break;case Td:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=Dm;break}return re}return f}(dn),ad=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this,_e=y.options[y.selectedIndex||0];return re.value=_e&&_e.text||"",re}return f}(dn),th=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.value=y.value,re}return f}(dn),Lh=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;re.src=y.src,re.width=parseInt(y.width,10)||0,re.height=parseInt(y.height,10)||0,re.backgroundColor=re.styles.backgroundColor;try{if(y.contentWindow&&y.contentWindow.document&&y.contentWindow.document.documentElement){re.tree=fp(w,y.contentWindow.document.documentElement);var _e=y.contentWindow.document.documentElement?eA(w,getComputedStyle(y.contentWindow.document.documentElement).backgroundColor):rl.TRANSPARENT,Ve=y.contentWindow.document.body?eA(w,getComputedStyle(y.contentWindow.document.body).backgroundColor):rl.TRANSPARENT;re.backgroundColor=Zo(_e)?Zo(Ve)?re.styles.backgroundColor:Ve:_e}}catch(ht){}return re}return f}(dn),kh=["OL","UL","MENU"],rh=function(b,f,w,y){for(var re=f.firstChild,_e=void 0;re;re=_e)if(_e=re.nextSibling,Ud(re)&&re.data.trim().length>0)w.textNodes.push(new kl(b,re,w.styles));else if(xf(re))if(oh(re)&&re.assignedNodes)re.assignedNodes().forEach(function(ht){return rh(b,ht,w,y)});else{var Ve=F0(b,re);Ve.styles.isVisible()&&(M0(re,Ve,y)?Ve.flags|=4:nA(Ve.styles)&&(Ve.flags|=2),kh.indexOf(re.tagName)!==-1&&(Ve.flags|=8),w.elements.push(Ve),re.slot,re.shadowRoot?rh(b,re.shadowRoot,Ve,y):!ah(re)&&!hp(re)&&!Dh(re)&&rh(b,re,Ve,y))}},F0=function(b,f){return od(f)?new S0(b,f):Zp(f)?new So(b,f):hp(f)?new wf(b,f):Om(f)?new Pd(b,f):Pm(f)?new eh(b,f):Tm(f)?new Xl(b,f):Dh(f)?new ad(b,f):ah(f)?new th(b,f):Wp(f)?new Lh(b,f):new dn(b,f)},fp=function(b,f){var w=F0(b,f);return w.flags|=4,rh(b,f,w,w),w},M0=function(b,f,w){return f.styles.isPositionedWithZIndex()||f.styles.opacity<1||f.styles.isTransformed()||Ds(b)&&w.styles.isTransparent()},nA=function(b){return b.isPositioned()||b.isFloating()},Ud=function(b){return b.nodeType===Node.TEXT_NODE},xf=function(b){return b.nodeType===Node.ELEMENT_NODE},L0=function(b){return xf(b)&&typeof b.style!="undefined"&&!nh(b)},nh=function(b){return typeof b.className=="object"},Om=function(b){return b.tagName==="LI"},Pm=function(b){return b.tagName==="OL"},Tm=function(b){return b.tagName==="INPUT"},Um=function(b){return b.tagName==="HTML"},hp=function(b){return b.tagName==="svg"},Ds=function(b){return b.tagName==="BODY"},Zp=function(b){return b.tagName==="CANVAS"},Vp=function(b){return b.tagName==="VIDEO"},od=function(b){return b.tagName==="IMG"},Wp=function(b){return b.tagName==="IFRAME"},ih=function(b){return b.tagName==="STYLE"},pp=function(b){return b.tagName==="SCRIPT"},ah=function(b){return b.tagName==="TEXTAREA"},Dh=function(b){return b.tagName==="SELECT"},oh=function(b){return b.tagName==="SLOT"},Gp=function(b){return b.tagName.indexOf("-")>0},Rm=function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(f){var w=this.counters[f];return w&&w.length?w[w.length-1]:1},b.prototype.getCounterValues=function(f){var w=this.counters[f];return w||[]},b.prototype.pop=function(f){var w=this;f.forEach(function(y){return w.counters[y].pop()})},b.prototype.parse=function(f){var w=this,y=f.counterIncrement,re=f.counterReset,_e=!0;y!==null&&y.forEach(function(ht){var pt=w.counters[ht.counter];pt&&ht.increment!==0&&(_e=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=ht.increment)});var Ve=[];return _e&&re.forEach(function(ht){var pt=w.counters[ht.counter];Ve.push(ht.counter),pt||(pt=w.counters[ht.counter]=[]),pt.push(ht.reset)}),Ve},b}(),Nh={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},k0={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Qm={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Xp={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Cf=function(b,f,w,y,re,_e){return b<f||b>w?Qd(b,re,_e.length>0):y.integers.reduce(function(Ve,ht,pt){for(;b>=ht;)b-=ht,Ve+=y.values[pt];return Ve},"")+_e},Km=function(b,f,w,y){var re="";do w||b--,re=y(b)+re,b/=f;while(b*f>=f);return re},Dl=function(b,f,w,y,re){var _e=w-f+1;return(b<0?"-":"")+(Km(Math.abs(b),_e,y,function(Ve){return F(Math.floor(Ve%_e)+f)})+re)},Rd=function(b,f,w){w===void 0&&(w=". ");var y=f.length;return Km(Math.abs(b),y,!1,function(re){return f[Math.floor(re%y)]})+w},Bf=1,sd=2,Xc=4,cu=8,_A=function(b,f,w,y,re,_e){if(b<-9999||b>9999)return Qd(b,4,re.length>0);var Ve=Math.abs(b),ht=re;if(Ve===0)return f[0]+ht;for(var pt=0;Ve>0&&pt<=4;pt++){var qt=Ve%10;qt===0&&si(_e,Bf)&&ht!==""?ht=f[qt]+ht:qt>1||qt===1&&pt===0||qt===1&&pt===1&&si(_e,sd)||qt===1&&pt===1&&si(_e,Xc)&&b>100||qt===1&&pt>1&&si(_e,cu)?ht=f[qt]+(pt>0?w[pt-1]:"")+ht:qt===1&&pt>0&&(ht=w[pt-1]+ht),Ve=Math.floor(Ve/10)}return(b<0?y:"")+ht},Du="\u5341\u767E\u5343\u842C",ld="\u62FE\u4F70\u4EDF\u842C",cd="\u30DE\u30A4\u30CA\u30B9",sh="\uB9C8\uC774\uB108\uC2A4",Qd=function(b,f,w){var y=w?". ":"",re=w?"\u3001":"",_e=w?", ":"",Ve=w?" ":"";switch(f){case 0:return"\u2022"+Ve;case 1:return"\u25E6"+Ve;case 2:return"\u25FE"+Ve;case 5:var ht=Dl(b,48,57,!0,y);return ht.length<4?"0"+ht:ht;case 4:return Rd(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",re);case 6:return Cf(b,1,3999,Nh,3,y).toLowerCase();case 7:return Cf(b,1,3999,Nh,3,y);case 8:return Dl(b,945,969,!1,y);case 9:return Dl(b,97,122,!1,y);case 10:return Dl(b,65,90,!1,y);case 11:return Dl(b,1632,1641,!0,y);case 12:case 49:return Cf(b,1,9999,k0,3,y);case 35:return Cf(b,1,9999,k0,3,y).toLowerCase();case 13:return Dl(b,2534,2543,!0,y);case 14:case 30:return Dl(b,6112,6121,!0,y);case 15:return Rd(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",re);case 16:return Rd(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",re);case 17:case 48:return _A(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Du,"\u8CA0",re,sd|Xc|cu);case 47:return _A(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ld,"\u8CA0",re,Bf|sd|Xc|cu);case 42:return _A(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Du,"\u8D1F",re,sd|Xc|cu);case 41:return _A(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ld,"\u8D1F",re,Bf|sd|Xc|cu);case 26:return _A(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",cd,re,0);case 25:return _A(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",cd,re,Bf|sd|Xc);case 31:return _A(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",sh,_e,Bf|sd|Xc);case 33:return _A(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",sh,_e,0);case 32:return _A(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",sh,_e,Bf|sd|Xc);case 18:return Dl(b,2406,2415,!0,y);case 20:return Cf(b,1,19999,Xp,3,y);case 21:return Dl(b,2790,2799,!0,y);case 22:return Dl(b,2662,2671,!0,y);case 22:return Cf(b,1,10999,Qm,3,y);case 23:return Rd(b,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Rd(b,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Dl(b,3302,3311,!0,y);case 28:return Rd(b,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",re);case 29:return Rd(b,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",re);case 34:return Dl(b,3792,3801,!0,y);case 37:return Dl(b,6160,6169,!0,y);case 38:return Dl(b,4160,4169,!0,y);case 39:return Dl(b,2918,2927,!0,y);case 40:return Dl(b,1776,1785,!0,y);case 43:return Dl(b,3046,3055,!0,y);case 44:return Dl(b,3174,3183,!0,y);case 45:return Dl(b,3664,3673,!0,y);case 46:return Dl(b,3872,3881,!0,y);case 3:default:return Dl(b,48,57,!0,y)}},Oh="data-html2canvas-ignore",D0=function(){function b(f,w,y){if(this.context=f,this.options=y,this.scrolledElements=[],this.referenceElement=w,this.counters=new Rm,this.quoteDepth=0,!w.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(w.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(f,w){var y=this,re=Jp(f,w);if(!re.contentWindow)return Promise.reject("Unable to find iframe window");var _e=f.defaultView.pageXOffset,Ve=f.defaultView.pageYOffset,ht=re.contentWindow,pt=ht.document,qt=Th(re).then(function(){return Ae(y,void 0,void 0,function(){var Ar,pr;return P(this,function(qr){switch(qr.label){case 0:return this.scrolledElements.forEach(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))),Ar=this.options.onclone,pr=this.clonedReferenceElement,typeof pr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:pt.fonts&&pt.fonts.ready?[4,pt.fonts.ready]:[3,2];case 1:qr.sent(),qr.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Yp(pt)]:[3,4];case 3:qr.sent(),qr.label=4;case 4:return typeof Ar=="function"?[2,Promise.resolve().then(function(){return Ar(pt,pr)}).then(function(){return re})]:[2,re]}})})});return pt.open(),pt.write(jm(document.doctype)+"<html></html>"),qp(this.referenceElement.ownerDocument,_e,Ve),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),qt},b.prototype.createElementClone=function(f){if(co(f,2))debugger;if(Zp(f))return this.createCanvasClone(f);if(Vp(f))return this.createVideoClone(f);if(ih(f))return this.createStyleClone(f);var w=f.cloneNode(!1);return od(w)&&(od(f)&&f.currentSrc&&f.currentSrc!==f.src&&(w.src=f.currentSrc,w.srcset=""),w.loading==="lazy"&&(w.loading="eager")),Gp(w)?this.createCustomElementClone(w):w},b.prototype.createCustomElementClone=function(f){var w=document.createElement("html2canvascustomelement");return N0(f.style,w),w},b.prototype.createStyleClone=function(f){try{var w=f.sheet;if(w&&w.cssRules){var y=[].slice.call(w.cssRules,0).reduce(function(_e,Ve){return Ve&&typeof Ve.cssText=="string"?_e+Ve.cssText:_e},""),re=f.cloneNode(!1);return re.textContent=y,re}}catch(_e){if(this.context.logger.error("Unable to access cssRules property",_e),_e.name!=="SecurityError")throw _e}return f.cloneNode(!1)},b.prototype.createCanvasClone=function(f){var w;if(this.options.inlineImages&&f.ownerDocument){var y=f.ownerDocument.createElement("img");try{return y.src=f.toDataURL(),y}catch(qt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",f)}}var re=f.cloneNode(!1);try{re.width=f.width,re.height=f.height;var _e=f.getContext("2d"),Ve=re.getContext("2d");if(Ve)if(!this.options.allowTaint&&_e)Ve.putImageData(_e.getImageData(0,0,f.width,f.height),0,0);else{var ht=(w=f.getContext("webgl2"))!==null&&w!==void 0?w:f.getContext("webgl");if(ht){var pt=ht.getContextAttributes();(pt==null?void 0:pt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",f)}Ve.drawImage(f,0,0)}return re}catch(qt){this.context.logger.info("Unable to clone canvas as it is tainted",f)}return re},b.prototype.createVideoClone=function(f){var w=f.ownerDocument.createElement("canvas");w.width=f.offsetWidth,w.height=f.offsetHeight;var y=w.getContext("2d");try{return y&&(y.drawImage(f,0,0,w.width,w.height),this.options.allowTaint||y.getImageData(0,0,w.width,w.height)),w}catch(_e){this.context.logger.info("Unable to clone video as it is tainted",f)}var re=f.ownerDocument.createElement("canvas");return re.width=f.offsetWidth,re.height=f.offsetHeight,re},b.prototype.appendChildNode=function(f,w,y){(!xf(w)||!pp(w)&&!w.hasAttribute(Oh)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(w)))&&(!this.options.copyStyles||!xf(w)||!ih(w))&&f.appendChild(this.cloneNode(w,y))},b.prototype.cloneChildNodes=function(f,w,y){for(var re=this,_e=f.shadowRoot?f.shadowRoot.firstChild:f.firstChild;_e;_e=_e.nextSibling)if(xf(_e)&&oh(_e)&&typeof _e.assignedNodes=="function"){var Ve=_e.assignedNodes();Ve.length&&Ve.forEach(function(ht){return re.appendChildNode(w,ht,y)})}else this.appendChildNode(w,_e,y)},b.prototype.cloneNode=function(f,w){if(Ud(f))return document.createTextNode(f.data);if(!f.ownerDocument)return f.cloneNode(!1);var y=f.ownerDocument.defaultView;if(y&&xf(f)&&(L0(f)||nh(f))){var re=this.createElementClone(f);re.style.transitionProperty="none";var _e=y.getComputedStyle(f),Ve=y.getComputedStyle(f,":before"),ht=y.getComputedStyle(f,":after");this.referenceElement===f&&L0(re)&&(this.clonedReferenceElement=re),Ds(re)&&ch(re);var pt=this.counters.parse(new Tc(this.context,_e)),qt=this.resolvePseudoContent(f,re,Ve,Ph.BEFORE);Gp(f)&&(w=!0),Vp(f)||this.cloneChildNodes(f,re,w),qt&&re.insertBefore(qt,re.firstChild);var Ar=this.resolvePseudoContent(f,re,ht,Ph.AFTER);return Ar&&re.appendChild(Ar),this.counters.pop(pt),(_e&&(this.options.copyStyles||nh(f))&&!Wp(f)||w)&&N0(_e,re),(f.scrollTop!==0||f.scrollLeft!==0)&&this.scrolledElements.push([re,f.scrollLeft,f.scrollTop]),(ah(f)||Dh(f))&&(ah(re)||Dh(re))&&(re.value=f.value),re}return f.cloneNode(!1)},b.prototype.resolvePseudoContent=function(f,w,y,re){var _e=this;if(y){var Ve=y.content,ht=w.ownerDocument;if(!(!ht||!Ve||Ve==="none"||Ve==="-moz-alt-content"||y.display==="none")){this.counters.parse(new Tc(this.context,y));var pt=new Rs(this.context,y),qt=ht.createElement("html2canvaspseudoelement");N0(y,qt),pt.content.forEach(function(pr){if(pr.type===0)qt.appendChild(ht.createTextNode(pr.value));else if(pr.type===22){var qr=ht.createElement("img");qr.src=pr.value,qr.style.opacity="1",qt.appendChild(qr)}else if(pr.type===18){if(pr.name==="attr"){var Ui=pr.values.filter(Io);Ui.length&&qt.appendChild(ht.createTextNode(f.getAttribute(Ui[0].value)||""))}else if(pr.name==="counter"){var Tn=pr.values.filter(pA),pi=Tn[0],Xa=Tn[1];if(pi&&Io(pi)){var ea=_e.counters.getCounterValue(pi.value),Yi=Xa&&Io(Xa)?dr.parse(_e.context,Xa.value):3;qt.appendChild(ht.createTextNode(Qd(ea,Yi,!1)))}}else if(pr.name==="counters"){var Ta=pr.values.filter(pA),pi=Ta[0],oo=Ta[1],Xa=Ta[2];if(pi&&Io(pi)){var Fa=_e.counters.getCounterValues(pi.value),Mi=Xa&&Io(Xa)?dr.parse(_e.context,Xa.value):3,Lo=oo&&oo.type===0?oo.value:"",eo=Fa.map(function(Sc){return Qd(Sc,Mi,!1)}).join(Lo);qt.appendChild(ht.createTextNode(eo))}}}else if(pr.type===20)switch(pr.value){case"open-quote":qt.appendChild(ht.createTextNode(Aa(pt.quotes,_e.quoteDepth++,!0)));break;case"close-quote":qt.appendChild(ht.createTextNode(Aa(pt.quotes,--_e.quoteDepth,!1)));break;default:qt.appendChild(ht.createTextNode(pr.value))}}),qt.className=gp+" "+Sf;var Ar=re===Ph.BEFORE?" "+gp:" "+Sf;return nh(w)?w.className.baseValue+=Ar:w.className+=Ar,qt}}},b.destroy=function(f){return f.parentNode?(f.parentNode.removeChild(f),!0):!1},b}(),Ph;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(Ph||(Ph={}));var Jp=function(b,f){var w=b.createElement("iframe");return w.className="html2canvas-container",w.style.visibility="hidden",w.style.position="fixed",w.style.left="-10000px",w.style.top="0px",w.style.border="0",w.width=f.width.toString(),w.height=f.height.toString(),w.scrolling="no",w.setAttribute(Oh,"true"),b.body.appendChild(w),w},mp=function(b){return new Promise(function(f){if(b.complete){f();return}if(!b.src){f();return}b.onload=f,b.onerror=f})},Yp=function(b){return Promise.all([].slice.call(b.images,0).map(mp))},Th=function(b){return new Promise(function(f,w){var y=b.contentWindow;if(!y)return w("No window assigned for iframe");var re=y.document;y.onload=b.onload=function(){y.onload=b.onload=null;var _e=setInterval(function(){re.body.childNodes.length>0&&re.readyState==="complete"&&(clearInterval(_e),f(b))},50)}})},Hm=["all","d","content"],N0=function(b,f){for(var w=b.length-1;w>=0;w--){var y=b.item(w);Hm.indexOf(y)===-1&&f.style.setProperty(y,b.getPropertyValue(y))}return f},jm=function(b){var f="";return b&&(f+="<!DOCTYPE ",b.name&&(f+=b.name),b.internalSubset&&(f+=b.internalSubset),b.publicId&&(f+='"'+b.publicId+'"'),b.systemId&&(f+='"'+b.systemId+'"'),f+=">"),f},qp=function(b,f,w){b&&b.defaultView&&(f!==b.defaultView.pageXOffset||w!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(f,w)},em=function(b){var f=b[0],w=b[1],y=b[2];f.scrollLeft=w,f.scrollTop=y},tm=":before",rm=":after",gp="___html2canvas___pseudoelement_before",Sf="___html2canvas___pseudoelement_after",lh=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,ch=function(b){Nu(b,"."+gp+tm+lh+`
|
|
|
.`+Sf+rm+lh)},Nu=function(b,f){var w=b.ownerDocument;if(w){var y=w.createElement("style");y.textContent=f,b.appendChild(y)}},vp=function(){function b(){}return b.getOrigin=function(f){var w=b._link;return w?(w.href=f,w.href=w.href,w.protocol+w.hostname+w.port):"about:blank"},b.isSameOrigin=function(f){return b.getOrigin(f)===b._origin},b.setContext=function(f){b._link=f.document.createElement("a"),b._origin=b.getOrigin(f.location.href)},b._origin="about:blank",b}(),IA=function(){function b(f,w){this.context=f,this._options=w,this._cache={}}return b.prototype.addImage=function(f){var w=Promise.resolve();return this.has(f)||(yp(f)||Uh(f))&&(this._cache[f]=this.loadImage(f)).catch(function(){}),w},b.prototype.match=function(f){return this._cache[f]},b.prototype.loadImage=function(f){return Ae(this,void 0,void 0,function(){var w,y,re,_e,Ve=this;return P(this,function(ht){switch(ht.label){case 0:return w=vp.isSameOrigin(f),y=!Rh(f)&&this._options.useCORS===!0&&fs.SUPPORT_CORS_IMAGES&&!w,re=!Rh(f)&&!w&&!yp(f)&&typeof this._options.proxy=="string"&&fs.SUPPORT_CORS_XHR&&!y,!w&&this._options.allowTaint===!1&&!Rh(f)&&!yp(f)&&!re&&!y?[2]:(_e=f,re?[4,this.proxy(_e)]:[3,2]);case 1:_e=ht.sent(),ht.label=2;case 2:return this.context.logger.debug("Added image "+f.substring(0,256)),[4,new Promise(function(pt,qt){var Ar=new Image;Ar.onload=function(){return pt(Ar)},Ar.onerror=qt,(zm(_e)||y)&&(Ar.crossOrigin="anonymous"),Ar.src=_e,Ar.complete===!0&&setTimeout(function(){return pt(Ar)},500),Ve._options.imageTimeout>0&&setTimeout(function(){return qt("Timed out ("+Ve._options.imageTimeout+"ms) loading image")},Ve._options.imageTimeout)})];case 3:return[2,ht.sent()]}})})},b.prototype.has=function(f){return typeof this._cache[f]!="undefined"},b.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},b.prototype.proxy=function(f){var w=this,y=this._options.proxy;if(!y)throw new Error("No proxy defined");var re=f.substring(0,256);return new Promise(function(_e,Ve){var ht=fs.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(ht==="text")_e(pt.response);else{var pr=new FileReader;pr.addEventListener("load",function(){return _e(pr.result)},!1),pr.addEventListener("error",function(qr){return Ve(qr)},!1),pr.readAsDataURL(pt.response)}else Ve("Failed to proxy resource "+re+" with status code "+pt.status)},pt.onerror=Ve;var qt=y.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+y+qt+"url="+encodeURIComponent(f)+"&responseType="+ht),ht!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=ht),w._options.imageTimeout){var Ar=w._options.imageTimeout;pt.timeout=Ar,pt.ontimeout=function(){return Ve("Timed out ("+Ar+"ms) proxying "+re)}}pt.send()})},b}(),O0=/^data:image\/svg\+xml/i,nm=/^data:image\/.*;base64,/i,bp=/^data:image\/.*/i,Uh=function(b){return fs.SUPPORT_SVG_DRAWING||!hs(b)},Rh=function(b){return bp.test(b)},zm=function(b){return nm.test(b)},yp=function(b){return b.substr(0,4)==="blob"},hs=function(b){return b.substr(-3).toLowerCase()==="svg"||O0.test(b)},Fi=function(){function b(f,w){this.type=0,this.x=f,this.y=w}return b.prototype.add=function(f,w){return new b(this.x+f,this.y+w)},b}(),Ou=function(b,f,w){return new Fi(b.x+(f.x-b.x)*w,b.y+(f.y-b.y)*w)},P0=function(){function b(f,w,y,re){this.type=1,this.start=f,this.startControl=w,this.endControl=y,this.end=re}return b.prototype.subdivide=function(f,w){var y=Ou(this.start,this.startControl,f),re=Ou(this.startControl,this.endControl,f),_e=Ou(this.endControl,this.end,f),Ve=Ou(y,re,f),ht=Ou(re,_e,f),pt=Ou(Ve,ht,f);return w?new b(this.start,y,Ve,pt):new b(pt,ht,_e,this.end)},b.prototype.add=function(f,w){return new b(this.start.add(f,w),this.startControl.add(f,w),this.endControl.add(f,w),this.end.add(f,w))},b.prototype.reverse=function(){return new b(this.end,this.endControl,this.startControl,this.start)},b}(),uc=function(b){return b.type===1},im=function(){function b(f){var w=f.styles,y=f.bounds,re=Hl(w.borderTopLeftRadius,y.width,y.height),_e=re[0],Ve=re[1],ht=Hl(w.borderTopRightRadius,y.width,y.height),pt=ht[0],qt=ht[1],Ar=Hl(w.borderBottomRightRadius,y.width,y.height),pr=Ar[0],qr=Ar[1],Ui=Hl(w.borderBottomLeftRadius,y.width,y.height),Tn=Ui[0],pi=Ui[1],Xa=[];Xa.push((_e+pt)/y.width),Xa.push((Tn+pr)/y.width),Xa.push((Ve+pi)/y.height),Xa.push((qt+qr)/y.height);var ea=Math.max.apply(Math,Xa);ea>1&&(_e/=ea,Ve/=ea,pt/=ea,qt/=ea,pr/=ea,qr/=ea,Tn/=ea,pi/=ea);var Yi=y.width-pt,Ta=y.height-qr,oo=y.width-pr,Fa=y.height-pi,Mi=w.borderTopWidth,Lo=w.borderRightWidth,eo=w.borderBottomWidth,Ua=w.borderLeftWidth,ei=ro(w.paddingTop,f.bounds.width),Sc=ro(w.paddingRight,f.bounds.width),oA=ro(w.paddingBottom,f.bounds.width),xo=ro(w.paddingLeft,f.bounds.width);this.topLeftBorderDoubleOuterBox=_e>0||Ve>0?sl(y.left+Ua/3,y.top+Mi/3,_e-Ua/3,Ve-Mi/3,Go.TOP_LEFT):new Fi(y.left+Ua/3,y.top+Mi/3),this.topRightBorderDoubleOuterBox=_e>0||Ve>0?sl(y.left+Yi,y.top+Mi/3,pt-Lo/3,qt-Mi/3,Go.TOP_RIGHT):new Fi(y.left+y.width-Lo/3,y.top+Mi/3),this.bottomRightBorderDoubleOuterBox=pr>0||qr>0?sl(y.left+oo,y.top+Ta,pr-Lo/3,qr-eo/3,Go.BOTTOM_RIGHT):new Fi(y.left+y.width-Lo/3,y.top+y.height-eo/3),this.bottomLeftBorderDoubleOuterBox=Tn>0||pi>0?sl(y.left+Ua/3,y.top+Fa,Tn-Ua/3,pi-eo/3,Go.BOTTOM_LEFT):new Fi(y.left+Ua/3,y.top+y.height-eo/3),this.topLeftBorderDoubleInnerBox=_e>0||Ve>0?sl(y.left+Ua*2/3,y.top+Mi*2/3,_e-Ua*2/3,Ve-Mi*2/3,Go.TOP_LEFT):new Fi(y.left+Ua*2/3,y.top+Mi*2/3),this.topRightBorderDoubleInnerBox=_e>0||Ve>0?sl(y.left+Yi,y.top+Mi*2/3,pt-Lo*2/3,qt-Mi*2/3,Go.TOP_RIGHT):new Fi(y.left+y.width-Lo*2/3,y.top+Mi*2/3),this.bottomRightBorderDoubleInnerBox=pr>0||qr>0?sl(y.left+oo,y.top+Ta,pr-Lo*2/3,qr-eo*2/3,Go.BOTTOM_RIGHT):new Fi(y.left+y.width-Lo*2/3,y.top+y.height-eo*2/3),this.bottomLeftBorderDoubleInnerBox=Tn>0||pi>0?sl(y.left+Ua*2/3,y.top+Fa,Tn-Ua*2/3,pi-eo*2/3,Go.BOTTOM_LEFT):new Fi(y.left+Ua*2/3,y.top+y.height-eo*2/3),this.topLeftBorderStroke=_e>0||Ve>0?sl(y.left+Ua/2,y.top+Mi/2,_e-Ua/2,Ve-Mi/2,Go.TOP_LEFT):new Fi(y.left+Ua/2,y.top+Mi/2),this.topRightBorderStroke=_e>0||Ve>0?sl(y.left+Yi,y.top+Mi/2,pt-Lo/2,qt-Mi/2,Go.TOP_RIGHT):new Fi(y.left+y.width-Lo/2,y.top+Mi/2),this.bottomRightBorderStroke=pr>0||qr>0?sl(y.left+oo,y.top+Ta,pr-Lo/2,qr-eo/2,Go.BOTTOM_RIGHT):new Fi(y.left+y.width-Lo/2,y.top+y.height-eo/2),this.bottomLeftBorderStroke=Tn>0||pi>0?sl(y.left+Ua/2,y.top+Fa,Tn-Ua/2,pi-eo/2,Go.BOTTOM_LEFT):new Fi(y.left+Ua/2,y.top+y.height-eo/2),this.topLeftBorderBox=_e>0||Ve>0?sl(y.left,y.top,_e,Ve,Go.TOP_LEFT):new Fi(y.left,y.top),this.topRightBorderBox=pt>0||qt>0?sl(y.left+Yi,y.top,pt,qt,Go.TOP_RIGHT):new Fi(y.left+y.width,y.top),this.bottomRightBorderBox=pr>0||qr>0?sl(y.left+oo,y.top+Ta,pr,qr,Go.BOTTOM_RIGHT):new Fi(y.left+y.width,y.top+y.height),this.bottomLeftBorderBox=Tn>0||pi>0?sl(y.left,y.top+Fa,Tn,pi,Go.BOTTOM_LEFT):new Fi(y.left,y.top+y.height),this.topLeftPaddingBox=_e>0||Ve>0?sl(y.left+Ua,y.top+Mi,Math.max(0,_e-Ua),Math.max(0,Ve-Mi),Go.TOP_LEFT):new Fi(y.left+Ua,y.top+Mi),this.topRightPaddingBox=pt>0||qt>0?sl(y.left+Math.min(Yi,y.width-Lo),y.top+Mi,Yi>y.width+Lo?0:Math.max(0,pt-Lo),Math.max(0,qt-Mi),Go.TOP_RIGHT):new Fi(y.left+y.width-Lo,y.top+Mi),this.bottomRightPaddingBox=pr>0||qr>0?sl(y.left+Math.min(oo,y.width-Ua),y.top+Math.min(Ta,y.height-eo),Math.max(0,pr-Lo),Math.max(0,qr-eo),Go.BOTTOM_RIGHT):new Fi(y.left+y.width-Lo,y.top+y.height-eo),this.bottomLeftPaddingBox=Tn>0||pi>0?sl(y.left+Ua,y.top+Math.min(Fa,y.height-eo),Math.max(0,Tn-Ua),Math.max(0,pi-eo),Go.BOTTOM_LEFT):new Fi(y.left+Ua,y.top+y.height-eo),this.topLeftContentBox=_e>0||Ve>0?sl(y.left+Ua+xo,y.top+Mi+ei,Math.max(0,_e-(Ua+xo)),Math.max(0,Ve-(Mi+ei)),Go.TOP_LEFT):new Fi(y.left+Ua+xo,y.top+Mi+ei),this.topRightContentBox=pt>0||qt>0?sl(y.left+Math.min(Yi,y.width+Ua+xo),y.top+Mi+ei,Yi>y.width+Ua+xo?0:pt-Ua+xo,qt-(Mi+ei),Go.TOP_RIGHT):new Fi(y.left+y.width-(Lo+Sc),y.top+Mi+ei),this.bottomRightContentBox=pr>0||qr>0?sl(y.left+Math.min(oo,y.width-(Ua+xo)),y.top+Math.min(Ta,y.height+Mi+ei),Math.max(0,pr-(Lo+Sc)),qr-(eo+oA),Go.BOTTOM_RIGHT):new Fi(y.left+y.width-(Lo+Sc),y.top+y.height-(eo+oA)),this.bottomLeftContentBox=Tn>0||pi>0?sl(y.left+Ua+xo,y.top+Fa,Math.max(0,Tn-(Ua+xo)),pi-(eo+oA),Go.BOTTOM_LEFT):new Fi(y.left+Ua+xo,y.top+y.height-(eo+oA))}return b}(),Go;(function(b){b[b.TOP_LEFT=0]="TOP_LEFT",b[b.TOP_RIGHT=1]="TOP_RIGHT",b[b.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",b[b.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Go||(Go={}));var sl=function(b,f,w,y,re){var _e=4*((Math.sqrt(2)-1)/3),Ve=w*_e,ht=y*_e,pt=b+w,qt=f+y;switch(re){case Go.TOP_LEFT:return new P0(new Fi(b,qt),new Fi(b,qt-ht),new Fi(pt-Ve,f),new Fi(pt,f));case Go.TOP_RIGHT:return new P0(new Fi(b,f),new Fi(b+Ve,f),new Fi(pt,qt-ht),new Fi(pt,qt));case Go.BOTTOM_RIGHT:return new P0(new Fi(pt,f),new Fi(pt,f+ht),new Fi(b+Ve,qt),new Fi(b,qt));case Go.BOTTOM_LEFT:default:return new P0(new Fi(pt,qt),new Fi(pt-Ve,qt),new Fi(b,f+ht),new Fi(b,f))}},Ys=function(b){return[b.topLeftBorderBox,b.topRightBorderBox,b.bottomRightBorderBox,b.bottomLeftBorderBox]},$m=function(b){return[b.topLeftContentBox,b.topRightContentBox,b.bottomRightContentBox,b.bottomLeftContentBox]},T0=function(b){return[b.topLeftPaddingBox,b.topRightPaddingBox,b.bottomRightPaddingBox,b.bottomLeftPaddingBox]},Ga=function(){function b(f,w,y){this.offsetX=f,this.offsetY=w,this.matrix=y,this.type=0,this.target=6}return b}(),Ef=function(){function b(f,w){this.path=f,this.target=w,this.type=1}return b}(),Ns=function(){function b(f){this.opacity=f,this.type=2,this.target=6}return b}(),Kd=function(b){return b.type===0},U0=function(b){return b.type===1},dc=function(b){return b.type===2},Ad=function(b,f){return b.length===f.length?b.some(function(w,y){return w===f[y]}):!1},wp=function(b,f,w,y,re){return b.map(function(_e,Ve){switch(Ve){case 0:return _e.add(f,w);case 1:return _e.add(f+y,w);case 2:return _e.add(f+y,w+re);case 3:return _e.add(f,w+re)}return _e})},gn=function(){function b(f){this.element=f,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return b}(),Ks=function(){function b(f,w){if(this.container=f,this.parent=w,this.effects=[],this.curves=new im(this.container),this.container.styles.opacity<1&&this.effects.push(new Ns(this.container.styles.opacity)),this.container.styles.transform!==null){var y=this.container.bounds.left+this.container.styles.transformOrigin[0].number,re=this.container.bounds.top+this.container.styles.transformOrigin[1].number,_e=this.container.styles.transform;this.effects.push(new Ga(y,re,_e))}if(this.container.styles.overflowX!==0){var Ve=Ys(this.curves),ht=T0(this.curves);Ad(Ve,ht)?this.effects.push(new Ef(Ve,6)):(this.effects.push(new Ef(Ve,2)),this.effects.push(new Ef(ht,4)))}}return b.prototype.getEffects=function(f){for(var w=[2,3].indexOf(this.container.styles.position)===-1,y=this.parent,re=this.effects.slice(0);y;){var _e=y.effects.filter(function(pt){return!U0(pt)});if(w||y.container.styles.position!==0||!y.parent){if(re.unshift.apply(re,_e),w=[2,3].indexOf(y.container.styles.position)===-1,y.container.styles.overflowX!==0){var Ve=Ys(y.curves),ht=T0(y.curves);Ad(Ve,ht)||re.unshift(new Ef(ht,6))}}else re.unshift.apply(re,_e);y=y.parent}return re.filter(function(pt){return si(pt.target,f)})},b}(),R0=function(b,f,w,y){b.container.elements.forEach(function(re){var _e=si(re.flags,4),Ve=si(re.flags,2),ht=new Ks(re,b);si(re.styles.display,2048)&&y.push(ht);var pt=si(re.flags,8)?[]:y;if(_e||Ve){var qt=_e||re.styles.isPositioned()?w:f,Ar=new gn(ht);if(re.styles.isPositioned()||re.styles.opacity<1||re.styles.isTransformed()){var pr=re.styles.zIndex.order;if(pr<0){var qr=0;qt.negativeZIndex.some(function(Tn,pi){return pr>Tn.element.container.styles.zIndex.order?(qr=pi,!1):qr>0}),qt.negativeZIndex.splice(qr,0,Ar)}else if(pr>0){var Ui=0;qt.positiveZIndex.some(function(Tn,pi){return pr>=Tn.element.container.styles.zIndex.order?(Ui=pi+1,!1):Ui>0}),qt.positiveZIndex.splice(Ui,0,Ar)}else qt.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ar)}else re.styles.isFloating()?qt.nonPositionedFloats.push(Ar):qt.nonPositionedInlineLevel.push(Ar);R0(ht,Ar,_e?Ar:w,pt)}else re.styles.isInlineLevel()?f.inlineLevel.push(ht):f.nonInlineLevel.push(ht),R0(ht,f,w,pt);si(re.flags,8)&&Q0(re,pt)})},Q0=function(b,f){for(var w=b instanceof eh?b.start:1,y=b instanceof eh?b.reversed:!1,re=0;re<f.length;re++){var _e=f[re];_e.container instanceof Pd&&typeof _e.container.value=="number"&&_e.container.value!==0&&(w=_e.container.value),_e.listValue=Qd(w,_e.container.styles.listStyleType,!0),w+=y?-1:1}},Qc=function(b){var f=new Ks(b,null),w=new gn(f),y=[];return R0(f,w,w,y),Q0(f.container,y),w},Bc=function(b,f){switch(f){case 0:return FA(b.topLeftBorderBox,b.topLeftPaddingBox,b.topRightBorderBox,b.topRightPaddingBox);case 1:return FA(b.topRightBorderBox,b.topRightPaddingBox,b.bottomRightBorderBox,b.bottomRightPaddingBox);case 2:return FA(b.bottomRightBorderBox,b.bottomRightPaddingBox,b.bottomLeftBorderBox,b.bottomLeftPaddingBox);case 3:default:return FA(b.bottomLeftBorderBox,b.bottomLeftPaddingBox,b.topLeftBorderBox,b.topLeftPaddingBox)}},ic=function(b,f){switch(f){case 0:return FA(b.topLeftBorderBox,b.topLeftBorderDoubleOuterBox,b.topRightBorderBox,b.topRightBorderDoubleOuterBox);case 1:return FA(b.topRightBorderBox,b.topRightBorderDoubleOuterBox,b.bottomRightBorderBox,b.bottomRightBorderDoubleOuterBox);case 2:return FA(b.bottomRightBorderBox,b.bottomRightBorderDoubleOuterBox,b.bottomLeftBorderBox,b.bottomLeftBorderDoubleOuterBox);case 3:default:return FA(b.bottomLeftBorderBox,b.bottomLeftBorderDoubleOuterBox,b.topLeftBorderBox,b.topLeftBorderDoubleOuterBox)}},fc=function(b,f){switch(f){case 0:return FA(b.topLeftBorderDoubleInnerBox,b.topLeftPaddingBox,b.topRightBorderDoubleInnerBox,b.topRightPaddingBox);case 1:return FA(b.topRightBorderDoubleInnerBox,b.topRightPaddingBox,b.bottomRightBorderDoubleInnerBox,b.bottomRightPaddingBox);case 2:return FA(b.bottomRightBorderDoubleInnerBox,b.bottomRightPaddingBox,b.bottomLeftBorderDoubleInnerBox,b.bottomLeftPaddingBox);case 3:default:return FA(b.bottomLeftBorderDoubleInnerBox,b.bottomLeftPaddingBox,b.topLeftBorderDoubleInnerBox,b.topLeftPaddingBox)}},am=function(b,f){switch(f){case 0:return K0(b.topLeftBorderStroke,b.topRightBorderStroke);case 1:return K0(b.topRightBorderStroke,b.bottomRightBorderStroke);case 2:return K0(b.bottomRightBorderStroke,b.bottomLeftBorderStroke);case 3:default:return K0(b.bottomLeftBorderStroke,b.topLeftBorderStroke)}},K0=function(b,f){var w=[];return uc(b)?w.push(b.subdivide(.5,!1)):w.push(b),uc(f)?w.push(f.subdivide(.5,!0)):w.push(f),w},FA=function(b,f,w,y){var re=[];return uc(b)?re.push(b.subdivide(.5,!1)):re.push(b),uc(w)?re.push(w.subdivide(.5,!0)):re.push(w),uc(y)?re.push(y.subdivide(.5,!0).reverse()):re.push(y),uc(f)?re.push(f.subdivide(.5,!1).reverse()):re.push(f),re},_f=function(b){var f=b.bounds,w=b.styles;return f.add(w.borderLeftWidth,w.borderTopWidth,-(w.borderRightWidth+w.borderLeftWidth),-(w.borderTopWidth+w.borderBottomWidth))},Nl=function(b){var f=b.styles,w=b.bounds,y=ro(f.paddingLeft,w.width),re=ro(f.paddingRight,w.width),_e=ro(f.paddingTop,w.width),Ve=ro(f.paddingBottom,w.width);return w.add(y+f.borderLeftWidth,_e+f.borderTopWidth,-(f.borderRightWidth+f.borderLeftWidth+y+re),-(f.borderTopWidth+f.borderBottomWidth+_e+Ve))},If=function(b,f){return b===0?f.bounds:b===2?Nl(f):_f(f)},xp=function(b,f){return b===0?f.bounds:b===2?Nl(f):_f(f)},Jc=function(b,f,w){var y=If(iA(b.styles.backgroundOrigin,f),b),re=xp(iA(b.styles.backgroundClip,f),b),_e=Pu(iA(b.styles.backgroundSize,f),w,y),Ve=_e[0],ht=_e[1],pt=Hl(iA(b.styles.backgroundPosition,f),y.width-Ve,y.height-ht),qt=Cp(iA(b.styles.backgroundRepeat,f),pt,_e,y,re),Ar=Math.round(y.left+pt[0]),pr=Math.round(y.top+pt[1]);return[qt,Ar,pr,Ve,ht]},hc=function(b){return Io(b)&&b.value===xl.AUTO},Qh=function(b){return typeof b=="number"},Pu=function(b,f,w){var y=f[0],re=f[1],_e=f[2],Ve=b[0],ht=b[1];if(!Ve)return[0,0];if(bs(Ve)&&ht&&bs(ht))return[ro(Ve,w.width),ro(ht,w.height)];var pt=Qh(_e);if(Io(Ve)&&(Ve.value===xl.CONTAIN||Ve.value===xl.COVER)){if(Qh(_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 Ar=Qh(y),pr=Qh(re),qr=Ar||pr;if(hc(Ve)&&(!ht||hc(ht))){if(Ar&&pr)return[y,re];if(!pt&&!qr)return[w.width,w.height];if(qr&&pt){var Ui=Ar?y:re*_e,Tn=pr?re:y/_e;return[Ui,Tn]}var pi=Ar?y:w.width,Xa=pr?re:w.height;return[pi,Xa]}if(pt){var ea=0,Yi=0;return bs(Ve)?ea=ro(Ve,w.width):bs(ht)&&(Yi=ro(ht,w.height)),hc(Ve)?ea=Yi*_e:(!ht||hc(ht))&&(Yi=ea/_e),[ea,Yi]}var Ta=null,oo=null;if(bs(Ve)?Ta=ro(Ve,w.width):ht&&bs(ht)&&(oo=ro(ht,w.height)),Ta!==null&&(!ht||hc(ht))&&(oo=Ar&&pr?Ta/y*re:w.height),oo!==null&&hc(Ve)&&(Ta=Ar&&pr?oo/re*y:w.width),Ta!==null&&oo!==null)return[Ta,oo];throw new Error("Unable to calculate background-size for element")},iA=function(b,f){var w=b[f];return typeof w=="undefined"?b[0]:w},Cp=function(b,f,w,y,re){var _e=f[0],Ve=f[1],ht=w[0],pt=w[1];switch(b){case 2:return[new Fi(Math.round(y.left),Math.round(y.top+Ve)),new Fi(Math.round(y.left+y.width),Math.round(y.top+Ve)),new Fi(Math.round(y.left+y.width),Math.round(pt+y.top+Ve)),new Fi(Math.round(y.left),Math.round(pt+y.top+Ve))];case 3:return[new Fi(Math.round(y.left+_e),Math.round(y.top)),new Fi(Math.round(y.left+_e+ht),Math.round(y.top)),new Fi(Math.round(y.left+_e+ht),Math.round(y.height+y.top)),new Fi(Math.round(y.left+_e),Math.round(y.height+y.top))];case 1:return[new Fi(Math.round(y.left+_e),Math.round(y.top+Ve)),new Fi(Math.round(y.left+_e+ht),Math.round(y.top+Ve)),new Fi(Math.round(y.left+_e+ht),Math.round(y.top+Ve+pt)),new Fi(Math.round(y.left+_e),Math.round(y.top+Ve+pt))];default:return[new Fi(Math.round(re.left),Math.round(re.top)),new Fi(Math.round(re.left+re.width),Math.round(re.top)),new Fi(Math.round(re.left+re.width),Math.round(re.height+re.top)),new Fi(Math.round(re.left),Math.round(re.height+re.top))]}},Kh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ah="Hidden Text",Hd=function(){function b(f){this._data={},this._document=f}return b.prototype.parseMetrics=function(f,w){var y=this._document.createElement("div"),re=this._document.createElement("img"),_e=this._document.createElement("span"),Ve=this._document.body;y.style.visibility="hidden",y.style.fontFamily=f,y.style.fontSize=w,y.style.margin="0",y.style.padding="0",y.style.whiteSpace="nowrap",Ve.appendChild(y),re.src=Kh,re.width=1,re.height=1,re.style.margin="0",re.style.padding="0",re.style.verticalAlign="baseline",_e.style.fontFamily=f,_e.style.fontSize=w,_e.style.margin="0",_e.style.padding="0",_e.appendChild(this._document.createTextNode(Ah)),y.appendChild(_e),y.appendChild(re);var ht=re.offsetTop-_e.offsetTop+2;y.removeChild(_e),y.appendChild(this._document.createTextNode(Ah)),y.style.lineHeight="normal",re.style.verticalAlign="super";var pt=re.offsetTop-y.offsetTop+2;return Ve.removeChild(y),{baseline:ht,middle:pt}},b.prototype.getMetrics=function(f,w){var y=f+" "+w;return typeof this._data[y]=="undefined"&&(this._data[y]=this.parseMetrics(f,w)),this._data[y]},b}(),jd=function(){function b(f,w){this.context=f,this.options=w}return b}(),da=1e4,ll=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re._activeEffects=[],re.canvas=y.canvas?y.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),y.canvas||(re.canvas.width=Math.floor(y.width*y.scale),re.canvas.height=Math.floor(y.height*y.scale),re.canvas.style.width=y.width+"px",re.canvas.style.height=y.height+"px"),re.fontMetrics=new Hd(document),re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-y.x,-y.y),re.ctx.textBaseline="bottom",re._activeEffects=[],re.context.logger.debug("Canvas renderer initialized ("+y.width+"x"+y.height+") with scale "+y.scale),re}return f.prototype.applyEffects=function(w){for(var y=this;this._activeEffects.length;)this.popEffect();w.forEach(function(re){return y.applyEffect(re)})},f.prototype.applyEffect=function(w){this.ctx.save(),dc(w)&&(this.ctx.globalAlpha=w.opacity),Kd(w)&&(this.ctx.translate(w.offsetX,w.offsetY),this.ctx.transform(w.matrix[0],w.matrix[1],w.matrix[2],w.matrix[3],w.matrix[4],w.matrix[5]),this.ctx.translate(-w.offsetX,-w.offsetY)),U0(w)&&(this.path(w.path),this.ctx.clip()),this._activeEffects.push(w)},f.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},f.prototype.renderStack=function(w){return Ae(this,void 0,void 0,function(){var y;return P(this,function(re){switch(re.label){case 0:return y=w.element.container.styles,y.isVisible()?[4,this.renderStackContent(w)]:[3,2];case 1:re.sent(),re.label=2;case 2:return[2]}})})},f.prototype.renderNode=function(w){return Ae(this,void 0,void 0,function(){return P(this,function(y){switch(y.label){case 0:if(si(w.container.flags,16))debugger;return w.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(w)]:[3,3];case 1:return y.sent(),[4,this.renderNodeContent(w)];case 2:y.sent(),y.label=3;case 3:return[2]}})})},f.prototype.renderTextWithLetterSpacing=function(w,y,re){var _e=this;if(y===0)this.ctx.fillText(w.text,w.bounds.left,w.bounds.top+re);else{var Ve=wo(w.text);Ve.reduce(function(ht,pt){return _e.ctx.fillText(pt,ht,w.bounds.top+re),ht+_e.ctx.measureText(pt).width},w.bounds.left)}},f.prototype.createFontStyle=function(w){var y=w.fontVariant.filter(function(Ve){return Ve==="normal"||Ve==="small-caps"}).join(""),re=zd(w.fontFamily).join(", "),_e=Ls(w.fontSize)?""+w.fontSize.number+w.fontSize.unit:w.fontSize.number+"px";return[[w.fontStyle,y,w.fontWeight,_e,re].join(" "),re,_e]},f.prototype.renderTextNode=function(w,y){return Ae(this,void 0,void 0,function(){var re,_e,Ve,ht,pt,qt,Ar,pr,qr=this;return P(this,function(Ui){return re=this.createFontStyle(y),_e=re[0],Ve=re[1],ht=re[2],this.ctx.font=_e,this.ctx.direction=y.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",pt=this.fontMetrics.getMetrics(Ve,ht),qt=pt.baseline,Ar=pt.middle,pr=y.paintOrder,w.textBounds.forEach(function(Tn){pr.forEach(function(pi){switch(pi){case 0:qr.ctx.fillStyle=Do(y.color),qr.renderTextWithLetterSpacing(Tn,y.letterSpacing,qt);var Xa=y.textShadow;Xa.length&&Tn.text.trim().length&&(Xa.slice(0).reverse().forEach(function(ea){qr.ctx.shadowColor=Do(ea.color),qr.ctx.shadowOffsetX=ea.offsetX.number*qr.options.scale,qr.ctx.shadowOffsetY=ea.offsetY.number*qr.options.scale,qr.ctx.shadowBlur=ea.blur.number,qr.renderTextWithLetterSpacing(Tn,y.letterSpacing,qt)}),qr.ctx.shadowColor="",qr.ctx.shadowOffsetX=0,qr.ctx.shadowOffsetY=0,qr.ctx.shadowBlur=0),y.textDecorationLine.length&&(qr.ctx.fillStyle=Do(y.textDecorationColor||y.color),y.textDecorationLine.forEach(function(ea){switch(ea){case 1:qr.ctx.fillRect(Tn.bounds.left,Math.round(Tn.bounds.top+qt),Tn.bounds.width,1);break;case 2:qr.ctx.fillRect(Tn.bounds.left,Math.round(Tn.bounds.top),Tn.bounds.width,1);break;case 3:qr.ctx.fillRect(Tn.bounds.left,Math.ceil(Tn.bounds.top+Ar),Tn.bounds.width,1);break}}));break;case 1:y.webkitTextStrokeWidth&&Tn.text.trim().length&&(qr.ctx.strokeStyle=Do(y.webkitTextStrokeColor),qr.ctx.lineWidth=y.webkitTextStrokeWidth,qr.ctx.lineJoin=window.chrome?"miter":"round",qr.ctx.strokeText(Tn.text,Tn.bounds.left,Tn.bounds.top+qt)),qr.ctx.strokeStyle="",qr.ctx.lineWidth=0,qr.ctx.lineJoin="miter";break}})}),[2]})})},f.prototype.renderReplacedElement=function(w,y,re){if(re&&w.intrinsicWidth>0&&w.intrinsicHeight>0){var _e=Nl(w),Ve=T0(y);this.path(Ve),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(re,0,0,w.intrinsicWidth,w.intrinsicHeight,_e.left,_e.top,_e.width,_e.height),this.ctx.restore()}},f.prototype.renderNodeContent=function(w){return Ae(this,void 0,void 0,function(){var y,re,_e,Ve,ht,pt,Yi,Yi,qt,Ar,pr,qr,oo,Ui,Tn,Fa,pi,Xa,ea,Yi,Ta,oo,Fa;return P(this,function(Mi){switch(Mi.label){case 0:this.applyEffects(w.getEffects(4)),y=w.container,re=w.curves,_e=y.styles,Ve=0,ht=y.textNodes,Mi.label=1;case 1:return Ve<ht.length?(pt=ht[Ve],[4,this.renderTextNode(pt,_e)]):[3,4];case 2:Mi.sent(),Mi.label=3;case 3:return Ve++,[3,1];case 4:if(!(y instanceof S0))return[3,8];Mi.label=5;case 5:return Mi.trys.push([5,7,,8]),[4,this.context.cache.match(y.src)];case 6:return Yi=Mi.sent(),this.renderReplacedElement(y,re,Yi),[3,8];case 7:return Mi.sent(),this.context.logger.error("Error loading image "+y.src),[3,8];case 8:if(y instanceof So&&this.renderReplacedElement(y,re,y.canvas),!(y instanceof wf))return[3,12];Mi.label=9;case 9:return Mi.trys.push([9,11,,12]),[4,this.context.cache.match(y.svg)];case 10:return Yi=Mi.sent(),this.renderReplacedElement(y,re,Yi),[3,12];case 11:return Mi.sent(),this.context.logger.error("Error loading svg "+y.svg.substring(0,255)),[3,12];case 12:return y instanceof Lh&&y.tree?(qt=new f(this.context,{scale:this.options.scale,backgroundColor:y.backgroundColor,x:0,y:0,width:y.width,height:y.height}),[4,qt.render(y.tree)]):[3,14];case 13:Ar=Mi.sent(),y.width&&y.height&&this.ctx.drawImage(Ar,0,0,y.width,y.height,y.bounds.left,y.bounds.top,y.bounds.width,y.bounds.height),Mi.label=14;case 14:if(y instanceof Xl&&(pr=Math.min(y.bounds.width,y.bounds.height),y.type===_0?y.checked&&(this.ctx.save(),this.path([new Fi(y.bounds.left+pr*.39363,y.bounds.top+pr*.79),new Fi(y.bounds.left+pr*.16,y.bounds.top+pr*.5549),new Fi(y.bounds.left+pr*.27347,y.bounds.top+pr*.44071),new Fi(y.bounds.left+pr*.39694,y.bounds.top+pr*.5649),new Fi(y.bounds.left+pr*.72983,y.bounds.top+pr*.23),new Fi(y.bounds.left+pr*.84,y.bounds.top+pr*.34085),new Fi(y.bounds.left+pr*.39363,y.bounds.top+pr*.79)]),this.ctx.fillStyle=Do(I0),this.ctx.fill(),this.ctx.restore()):y.type===Td&&y.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(y.bounds.left+pr/2,y.bounds.top+pr/2,pr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Do(I0),this.ctx.fill(),this.ctx.restore())),Ff(y)&&y.value.length){switch(qr=this.createFontStyle(_e),oo=qr[0],Ui=qr[1],Tn=this.fontMetrics.getMetrics(oo,Ui).baseline,this.ctx.font=oo,this.ctx.fillStyle=Do(_e.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=JA(y.styles.textAlign),Fa=Nl(y),pi=0,y.styles.textAlign){case 1:pi+=Fa.width/2;break;case 2:pi+=Fa.width;break}Xa=Fa.add(pi,0,0,-Fa.height/2+1),this.ctx.save(),this.path([new Fi(Fa.left,Fa.top),new Fi(Fa.left+Fa.width,Fa.top),new Fi(Fa.left+Fa.width,Fa.top+Fa.height),new Fi(Fa.left,Fa.top+Fa.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Rc(y.value,Xa),_e.letterSpacing,Tn),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!si(y.styles.display,2048))return[3,20];if(y.styles.listStyleImage===null)return[3,19];if(ea=y.styles.listStyleImage,ea.type!==0)return[3,18];Yi=void 0,Ta=ea.url,Mi.label=15;case 15:return Mi.trys.push([15,17,,18]),[4,this.context.cache.match(Ta)];case 16:return Yi=Mi.sent(),this.ctx.drawImage(Yi,y.bounds.left-(Yi.width+10),y.bounds.top),[3,18];case 17:return Mi.sent(),this.context.logger.error("Error loading list-style-image "+Ta),[3,18];case 18:return[3,20];case 19:w.listValue&&y.styles.listStyleType!==-1&&(oo=this.createFontStyle(_e)[0],this.ctx.font=oo,this.ctx.fillStyle=Do(_e.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Fa=new te(y.bounds.left,y.bounds.top+ro(y.styles.paddingTop,y.bounds.width),y.bounds.width,$t(_e.lineHeight,_e.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Rc(w.listValue,Fa),_e.letterSpacing,$t(_e.lineHeight,_e.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Mi.label=20;case 20:return[2]}})})},f.prototype.renderStackContent=function(w){return Ae(this,void 0,void 0,function(){var y,re,ea,_e,Ve,ea,ht,pt,ea,qt,Ar,ea,pr,qr,ea,Ui,Tn,ea,pi,Xa,ea;return P(this,function(Yi){switch(Yi.label){case 0:if(si(w.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(w.element)];case 1:Yi.sent(),y=0,re=w.negativeZIndex,Yi.label=2;case 2:return y<re.length?(ea=re[y],[4,this.renderStack(ea)]):[3,5];case 3:Yi.sent(),Yi.label=4;case 4:return y++,[3,2];case 5:return[4,this.renderNodeContent(w.element)];case 6:Yi.sent(),_e=0,Ve=w.nonInlineLevel,Yi.label=7;case 7:return _e<Ve.length?(ea=Ve[_e],[4,this.renderNode(ea)]):[3,10];case 8:Yi.sent(),Yi.label=9;case 9:return _e++,[3,7];case 10:ht=0,pt=w.nonPositionedFloats,Yi.label=11;case 11:return ht<pt.length?(ea=pt[ht],[4,this.renderStack(ea)]):[3,14];case 12:Yi.sent(),Yi.label=13;case 13:return ht++,[3,11];case 14:qt=0,Ar=w.nonPositionedInlineLevel,Yi.label=15;case 15:return qt<Ar.length?(ea=Ar[qt],[4,this.renderStack(ea)]):[3,18];case 16:Yi.sent(),Yi.label=17;case 17:return qt++,[3,15];case 18:pr=0,qr=w.inlineLevel,Yi.label=19;case 19:return pr<qr.length?(ea=qr[pr],[4,this.renderNode(ea)]):[3,22];case 20:Yi.sent(),Yi.label=21;case 21:return pr++,[3,19];case 22:Ui=0,Tn=w.zeroOrAutoZIndexOrTransformedOrOpacity,Yi.label=23;case 23:return Ui<Tn.length?(ea=Tn[Ui],[4,this.renderStack(ea)]):[3,26];case 24:Yi.sent(),Yi.label=25;case 25:return Ui++,[3,23];case 26:pi=0,Xa=w.positiveZIndex,Yi.label=27;case 27:return pi<Xa.length?(ea=Xa[pi],[4,this.renderStack(ea)]):[3,30];case 28:Yi.sent(),Yi.label=29;case 29:return pi++,[3,27];case 30:return[2]}})})},f.prototype.mask=function(w){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(w.slice(0).reverse()),this.ctx.closePath()},f.prototype.path=function(w){this.ctx.beginPath(),this.formatPath(w),this.ctx.closePath()},f.prototype.formatPath=function(w){var y=this;w.forEach(function(re,_e){var Ve=uc(re)?re.start:re;_e===0?y.ctx.moveTo(Ve.x,Ve.y):y.ctx.lineTo(Ve.x,Ve.y),uc(re)&&y.ctx.bezierCurveTo(re.startControl.x,re.startControl.y,re.endControl.x,re.endControl.y,re.end.x,re.end.y)})},f.prototype.renderRepeat=function(w,y,re,_e){this.path(w),this.ctx.fillStyle=y,this.ctx.translate(re,_e),this.ctx.fill(),this.ctx.translate(-re,-_e)},f.prototype.resizeImage=function(w,y,re){var _e;if(w.width===y&&w.height===re)return w;var Ve=(_e=this.canvas.ownerDocument)!==null&&_e!==void 0?_e:document,ht=Ve.createElement("canvas");ht.width=Math.max(1,y),ht.height=Math.max(1,re);var pt=ht.getContext("2d");return pt.drawImage(w,0,0,w.width,w.height,0,0,y,re),ht},f.prototype.renderBackgroundImage=function(w){return Ae(this,void 0,void 0,function(){var y,re,_e,Ve,ht,pt;return P(this,function(qt){switch(qt.label){case 0:y=w.styles.backgroundImage.length-1,re=function(Ar){var pr,qr,Ui,ei,Yc,sA,xo,Ec,eo,Tn,ei,Yc,sA,xo,Ec,pi,Xa,ea,Yi,Ta,oo,Fa,Mi,Lo,eo,Ua,ei,Sc,oA,xo,Ec,dd,Yc,sA,uu,YA,du,Tu,MA,Uu,$d,qA;return P(this,function(fd){switch(fd.label){case 0:if(Ar.type!==0)return[3,5];pr=void 0,qr=Ar.url,fd.label=1;case 1:return fd.trys.push([1,3,,4]),[4,_e.context.cache.match(qr)];case 2:return pr=fd.sent(),[3,4];case 3:return fd.sent(),_e.context.logger.error("Error loading background-image "+qr),[3,4];case 4:return pr&&(Ui=Jc(w,y,[pr.width,pr.height,pr.width/pr.height]),ei=Ui[0],Yc=Ui[1],sA=Ui[2],xo=Ui[3],Ec=Ui[4],eo=_e.ctx.createPattern(_e.resizeImage(pr,xo,Ec),"repeat"),_e.renderRepeat(ei,eo,Yc,sA)),[3,6];case 5:GA(Ar)?(Tn=Jc(w,y,[null,null,null]),ei=Tn[0],Yc=Tn[1],sA=Tn[2],xo=Tn[3],Ec=Tn[4],pi=Gu(Ar.angle,xo,Ec),Xa=pi[0],ea=pi[1],Yi=pi[2],Ta=pi[3],oo=pi[4],Fa=document.createElement("canvas"),Fa.width=xo,Fa.height=Ec,Mi=Fa.getContext("2d"),Lo=Mi.createLinearGradient(ea,Ta,Yi,oo),Af(Ar.stops,Xa).forEach(function(Kc){return Lo.addColorStop(Kc.stop,Do(Kc.color))}),Mi.fillStyle=Lo,Mi.fillRect(0,0,xo,Ec),xo>0&&Ec>0&&(eo=_e.ctx.createPattern(Fa,"repeat"),_e.renderRepeat(ei,eo,Yc,sA))):b0(Ar)&&(Ua=Jc(w,y,[null,null,null]),ei=Ua[0],Sc=Ua[1],oA=Ua[2],xo=Ua[3],Ec=Ua[4],dd=Ar.position.length===0?[PA]:Ar.position,Yc=ro(dd[0],xo),sA=ro(dd[dd.length-1],Ec),uu=Yo(Ar,Yc,sA,xo,Ec),YA=uu[0],du=uu[1],YA>0&&du>0&&(Tu=_e.ctx.createRadialGradient(Sc+Yc,oA+sA,0,Sc+Yc,oA+sA,YA),Af(Ar.stops,YA*2).forEach(function(Kc){return Tu.addColorStop(Kc.stop,Do(Kc.color))}),_e.path(ei),_e.ctx.fillStyle=Tu,YA!==du?(MA=w.bounds.left+.5*w.bounds.width,Uu=w.bounds.top+.5*w.bounds.height,$d=du/YA,qA=1/$d,_e.ctx.save(),_e.ctx.translate(MA,Uu),_e.ctx.transform(1,0,0,$d,0,0),_e.ctx.translate(-MA,-Uu),_e.ctx.fillRect(Sc,qA*(oA-Uu)+Uu,xo,Ec*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,re(pt)]):[3,4];case 2:qt.sent(),qt.label=3;case 3:return Ve++,[3,1];case 4:return[2]}})})},f.prototype.renderSolidBorder=function(w,y,re){return Ae(this,void 0,void 0,function(){return P(this,function(_e){return this.path(Bc(re,y)),this.ctx.fillStyle=Do(w),this.ctx.fill(),[2]})})},f.prototype.renderDoubleBorder=function(w,y,re,_e){return Ae(this,void 0,void 0,function(){var Ve,ht;return P(this,function(pt){switch(pt.label){case 0:return y<3?[4,this.renderSolidBorder(w,re,_e)]:[3,2];case 1:return pt.sent(),[2];case 2:return Ve=ic(_e,re),this.path(Ve),this.ctx.fillStyle=Do(w),this.ctx.fill(),ht=fc(_e,re),this.path(ht),this.ctx.fill(),[2]}})})},f.prototype.renderNodeBackgroundAndBorders=function(w){return Ae(this,void 0,void 0,function(){var y,re,_e,Ve,ht,pt,qt,Ar,pr=this;return P(this,function(qr){switch(qr.label){case 0:return this.applyEffects(w.getEffects(2)),y=w.container.styles,re=!Zo(y.backgroundColor)||y.backgroundImage.length,_e=[{style:y.borderTopStyle,color:y.borderTopColor,width:y.borderTopWidth},{style:y.borderRightStyle,color:y.borderRightColor,width:y.borderRightWidth},{style:y.borderBottomStyle,color:y.borderBottomColor,width:y.borderBottomWidth},{style:y.borderLeftStyle,color:y.borderLeftColor,width:y.borderLeftWidth}],Ve=ud(iA(y.backgroundClip,0),w.curves),re||y.boxShadow.length?(this.ctx.save(),this.path(Ve),this.ctx.clip(),Zo(y.backgroundColor)||(this.ctx.fillStyle=Do(y.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(w.container)]):[3,2];case 1:qr.sent(),this.ctx.restore(),y.boxShadow.slice(0).reverse().forEach(function(Ui){pr.ctx.save();var Tn=Ys(w.curves),pi=Ui.inset?0:da,Xa=wp(Tn,-pi+(Ui.inset?1:-1)*Ui.spread.number,(Ui.inset?1:-1)*Ui.spread.number,Ui.spread.number*(Ui.inset?-2:2),Ui.spread.number*(Ui.inset?-2:2));Ui.inset?(pr.path(Tn),pr.ctx.clip(),pr.mask(Xa)):(pr.mask(Tn),pr.ctx.clip(),pr.path(Xa)),pr.ctx.shadowOffsetX=Ui.offsetX.number+pi,pr.ctx.shadowOffsetY=Ui.offsetY.number,pr.ctx.shadowColor=Do(Ui.color),pr.ctx.shadowBlur=Ui.blur.number,pr.ctx.fillStyle=Ui.inset?Do(Ui.color):"rgba(0,0,0,1)",pr.ctx.fill(),pr.ctx.restore()}),qr.label=2;case 2:ht=0,pt=0,qt=_e,qr.label=3;case 3:return pt<qt.length?(Ar=qt[pt],Ar.style!==0&&!Zo(Ar.color)&&Ar.width>0?Ar.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Ar.color,Ar.width,ht,w.curves,2)]:[3,11]):[3,13];case 4:return qr.sent(),[3,11];case 5:return Ar.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Ar.color,Ar.width,ht,w.curves,3)];case 6:return qr.sent(),[3,11];case 7:return Ar.style!==4?[3,9]:[4,this.renderDoubleBorder(Ar.color,Ar.width,ht,w.curves)];case 8:return qr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ar.color,ht,w.curves)];case 10:qr.sent(),qr.label=11;case 11:ht++,qr.label=12;case 12:return pt++,[3,3];case 13:return[2]}})})},f.prototype.renderDashedDottedBorder=function(w,y,re,_e,Ve){return Ae(this,void 0,void 0,function(){var ht,pt,qt,Ar,pr,qr,Ui,Tn,pi,Xa,ea,Yi,Ta,oo,Fa,Mi,Fa,Mi;return P(this,function(Lo){return this.ctx.save(),ht=am(_e,re),pt=Bc(_e,re),Ve===2&&(this.path(pt),this.ctx.clip()),uc(pt[0])?(qt=pt[0].start.x,Ar=pt[0].start.y):(qt=pt[0].x,Ar=pt[0].y),uc(pt[1])?(pr=pt[1].end.x,qr=pt[1].end.y):(pr=pt[1].x,qr=pt[1].y),re===0||re===2?Ui=Math.abs(qt-pr):Ui=Math.abs(Ar-qr),this.ctx.beginPath(),Ve===3?this.formatPath(ht):this.formatPath(pt.slice(0,2)),Tn=y<3?y*3:y*2,pi=y<3?y*2:y,Ve===3&&(Tn=y,pi=y),Xa=!0,Ui<=Tn*2?Xa=!1:Ui<=Tn*2+pi?(ea=Ui/(2*Tn+pi),Tn*=ea,pi*=ea):(Yi=Math.floor((Ui+pi)/(Tn+pi)),Ta=(Ui-Yi*Tn)/(Yi-1),oo=(Ui-(Yi+1)*Tn)/Yi,pi=oo<=0||Math.abs(pi-Ta)<Math.abs(pi-oo)?Ta:oo),Xa&&(Ve===3?this.ctx.setLineDash([0,Tn+pi]):this.ctx.setLineDash([Tn,pi])),Ve===3?(this.ctx.lineCap="round",this.ctx.lineWidth=y):this.ctx.lineWidth=y*2+1.1,this.ctx.strokeStyle=Do(w),this.ctx.stroke(),this.ctx.setLineDash([]),Ve===2&&(uc(pt[0])&&(Fa=pt[3],Mi=pt[0],this.ctx.beginPath(),this.formatPath([new Fi(Fa.end.x,Fa.end.y),new Fi(Mi.start.x,Mi.start.y)]),this.ctx.stroke()),uc(pt[1])&&(Fa=pt[1],Mi=pt[2],this.ctx.beginPath(),this.formatPath([new Fi(Fa.end.x,Fa.end.y),new Fi(Mi.start.x,Mi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},f.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y;return P(this,function(re){switch(re.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Do(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),y=Qc(w),[4,this.renderStack(y)];case 1:return re.sent(),this.applyEffects([]),[2,this.canvas]}})})},f}(jd),Ff=function(b){return b instanceof th||b instanceof ad?!0:b instanceof Xl&&b.type!==Td&&b.type!==_0},ud=function(b,f){switch(b){case 0:return Ys(f);case 2:return $m(f);case 1:default:return T0(f)}},JA=function(b){switch(b){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ka=["-apple-system","system-ui"],zd=function(b){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?b.filter(function(f){return ka.indexOf(f)===-1}):b},aA=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.canvas=y.canvas?y.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),re.options=y,re.canvas.width=Math.floor(y.width*y.scale),re.canvas.height=Math.floor(y.height*y.scale),re.canvas.style.width=y.width+"px",re.canvas.style.height=y.height+"px",re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-y.x,-y.y),re.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+y.width+"x"+y.height+" at "+y.x+","+y.y+") with scale "+y.scale),re}return f.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y,re;return P(this,function(_e){switch(_e.label){case 0:return y=RA(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,w),[4,H0(y)];case 1:return re=_e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Do(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(re,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},f}(jd),H0=function(b){return new Promise(function(f,w){var y=new Image;y.onload=function(){f(y)},y.onerror=w,y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},Au=function(){function b(f){var w=f.id,y=f.enabled;this.id=w,this.enabled=y,this.start=Date.now()}return b.prototype.debug=function(){for(var f=[],w=0;w<arguments.length;w++)f[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ne([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},b.prototype.getTime=function(){return Date.now()-this.start},b.prototype.info=function(){for(var f=[],w=0;w<arguments.length;w++)f[w]=arguments[w];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ne([this.id,this.getTime()+"ms"],f))},b.prototype.warn=function(){for(var f=[],w=0;w<arguments.length;w++)f[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ne([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},b.prototype.error=function(){for(var f=[],w=0;w<arguments.length;w++)f[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ne([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},b.instances={},b}(),Zm=function(){function b(f,w){var y;this.windowBounds=w,this.instanceName="#"+b.instanceCount++,this.logger=new Au({id:this.instanceName,enabled:f.logging}),this.cache=(y=f.cache)!==null&&y!==void 0?y:new IA(this,f)}return b.instanceCount=1,b}(),Vm=function(b,f){return f===void 0&&(f={}),Wm(b,f)};typeof window!="undefined"&&vp.setContext(window);var Wm=function(b,f){return Ae(void 0,void 0,void 0,function(){var w,y,re,_e,Ve,ht,pt,qt,Ar,pr,qr,Ui,Tn,pi,Xa,ea,Yi,Ta,oo,Fa,Lo,Mi,Lo,eo,Ua,ei,Sc,oA,xo,Ec,dd,Yc,sA,uu,YA,du,Tu,MA,Uu,$d;return P(this,function(qA){switch(qA.label){case 0:if(!b||typeof b!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(w=b.ownerDocument,!w)throw new Error("Element is not attached to a Document");if(y=w.defaultView,!y)throw new Error("Document is not attached to a Window");return re={allowTaint:(eo=f.allowTaint)!==null&&eo!==void 0?eo:!1,imageTimeout:(Ua=f.imageTimeout)!==null&&Ua!==void 0?Ua:15e3,proxy:f.proxy,useCORS:(ei=f.useCORS)!==null&&ei!==void 0?ei:!1},_e=pe({logging:(Sc=f.logging)!==null&&Sc!==void 0?Sc:!0,cache:f.cache},re),Ve={windowWidth:(oA=f.windowWidth)!==null&&oA!==void 0?oA:y.innerWidth,windowHeight:(xo=f.windowHeight)!==null&&xo!==void 0?xo:y.innerHeight,scrollX:(Ec=f.scrollX)!==null&&Ec!==void 0?Ec:y.pageXOffset,scrollY:(dd=f.scrollY)!==null&&dd!==void 0?dd:y.pageYOffset},ht=new te(Ve.scrollX,Ve.scrollY,Ve.windowWidth,Ve.windowHeight),pt=new Zm(_e,ht),qt=(Yc=f.foreignObjectRendering)!==null&&Yc!==void 0?Yc:!1,Ar={allowTaint:(sA=f.allowTaint)!==null&&sA!==void 0?sA:!1,onclone:f.onclone,ignoreElements:f.ignoreElements,inlineImages:qt,copyStyles:qt},pt.logger.debug("Starting document clone with size "+ht.width+"x"+ht.height+" scrolled to "+-ht.left+","+-ht.top),pr=new D0(pt,b,Ar),qr=pr.clonedReferenceElement,qr?[4,pr.toIFrame(w,ht)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Ui=qA.sent(),Tn=Ds(qr)||Um(qr)?S(qr.ownerDocument):V(pt,qr),pi=Tn.width,Xa=Tn.height,ea=Tn.left,Yi=Tn.top,Ta=Jl(pt,qr,f.backgroundColor),oo={canvas:f.canvas,backgroundColor:Ta,scale:(YA=(uu=f.scale)!==null&&uu!==void 0?uu:y.devicePixelRatio)!==null&&YA!==void 0?YA:1,x:((du=f.x)!==null&&du!==void 0?du:0)+ea,y:((Tu=f.y)!==null&&Tu!==void 0?Tu:0)+Yi,width:(MA=f.width)!==null&&MA!==void 0?MA:Math.ceil(pi),height:(Uu=f.height)!==null&&Uu!==void 0?Uu:Math.ceil(Xa)},qt?(pt.logger.debug("Document cloned, using foreign object rendering"),Lo=new aA(pt,oo),[4,Lo.render(qr)]):[3,3];case 2:return Fa=qA.sent(),[3,5];case 3:return pt.logger.debug("Document cloned, element located at "+ea+","+Yi+" with size "+pi+"x"+Xa+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),Mi=fp(pt,qr),Ta===Mi.styles.backgroundColor&&(Mi.styles.backgroundColor=rl.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+oo.x+","+oo.y+" with size "+oo.width+"x"+oo.height),Lo=new ll(pt,oo),[4,Lo.render(Mi)];case 4:Fa=qA.sent(),qA.label=5;case 5:return(!(($d=f.removeContainer)!==null&&$d!==void 0)||$d)&&(D0.destroy(Ui)||pt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),pt.logger.debug("Finished rendering"),[2,Fa]}})})},Jl=function(b,f,w){var y=f.ownerDocument,re=y.documentElement?eA(b,getComputedStyle(y.documentElement).backgroundColor):rl.TRANSPARENT,_e=y.body?eA(b,getComputedStyle(y.body).backgroundColor):rl.TRANSPARENT,Ve=typeof w=="string"?eA(b,w):w===null?rl.TRANSPARENT:4294967295;return f===y.documentElement?Zo(re)?Zo(_e)?Ve:_e:re:Ve};return Vm})},44164:function(An,Tt,x){var pe=x(97671);(function(P,Ne){An.exports=Ne(x(53307),x(64270))})(self,function(Ae,P){return function(){var Ne={"./src/plugin/hyperlinks.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.string.link.js"),O=v.n(M),T=v("./src/worker.js"),L=v("./src/utils.js"),Y=[],R={toContainer:T.default.prototype.toContainer,toPdf:T.default.prototype.toPdf};T.default.prototype.toContainer=function(){return R.toContainer.call(this).then(function(){if(this.opt.enableLinks){var J=this.prop.container,W=J.querySelectorAll("a"),K=(0,L.unitConvert)(J.getBoundingClientRect(),this.prop.pageSize.k);Y=[],Array.prototype.forEach.call(W,function(le){for(var me=le.getClientRects(),Oe=0;Oe<me.length;Oe++){var Be=(0,L.unitConvert)(me[Oe],this.prop.pageSize.k);Be.left-=K.left,Be.top-=K.top;var Ue=Math.floor(Be.top/this.prop.pageSize.inner.height)+1,ee=this.opt.margin[0]+Be.top%this.prop.pageSize.inner.height,fe=this.opt.margin[1]+Be.left;Y.push({page:Ue,top:ee,left:fe,clientRect:Be,link:le})}},this)}})},T.default.prototype.toPdf=function(){return R.toPdf.call(this).then(function(){if(this.opt.enableLinks){Y.forEach(function(W){this.prop.pdf.setPage(W.page),this.prop.pdf.link(W.left,W.top,W.clientRect.width,W.clientRect.height,{url:W.link.href})},this);var J=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(J)}})}},"./src/plugin/jspdf-plugin.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.symbol.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.symbol.description.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.object.to-string.js"),L=v.n(T),Y=v("./node_modules/core-js/modules/es.symbol.iterator.js"),R=v.n(Y),se=v("./node_modules/core-js/modules/es.array.iterator.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.string.iterator.js"),W=v.n(J),K=v("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=v.n(K),me=v("jspdf"),Oe=v.n(me);function Be(Ue){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(fe){return typeof fe}:Be=function(fe){return fe&&typeof Symbol=="function"&&fe.constructor===Symbol&&fe!==Symbol.prototype?"symbol":typeof fe},Be(Ue)}me.jsPDF.getPageSize=function(Ue,ee,fe){if(Be(Ue)==="object"){var D=Ue;Ue=D.orientation,ee=D.unit||ee,fe=D.format||fe}ee=ee||"mm",fe=fe||"a4",Ue=(""+(Ue||"P")).toLowerCase();var Ye=(""+fe).toLowerCase(),Le={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(ee){case"pt":var Ce=1;break;case"mm":var Ce=72/25.4;break;case"cm":var Ce=72/2.54;break;case"in":var Ce=72;break;case"px":var Ce=72/96;break;case"pc":var Ce=12;break;case"em":var Ce=12;break;case"ex":var Ce=6;break;default:throw"Invalid unit: "+ee}if(Le.hasOwnProperty(Ye))var Te=Le[Ye][1]/Ce,be=Le[Ye][0]/Ce;else try{var Te=fe[1],be=fe[0]}catch(Ee){throw new Error("Invalid format: "+fe)}if(Ue==="p"||Ue==="portrait"){if(Ue="p",be>Te){var ke=be;be=Te,Te=ke}}else if(Ue==="l"||Ue==="landscape"){if(Ue="l",Te>be){var ke=be;be=Te,Te=ke}}else throw"Invalid orientation: "+Ue;var he={width:be,height:Te,unit:ee,k:Ce};return he},F.default=me.jsPDF},"./src/plugin/pagebreaks.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.array.concat.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.array.slice.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.array.join.js"),L=v.n(T),Y=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),R=v.n(Y),se=v("./node_modules/core-js/modules/es.object.keys.js"),ne=v.n(se),J=v("./src/worker.js"),W=v("./src/utils.js"),K={toContainer:J.default.prototype.toContainer};J.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},J.default.prototype.toContainer=function(){return K.toContainer.call(this).then(function(){var Oe=this.prop.container,Be=this.prop.pageSize.inner.px.height,Ue=[].concat(this.opt.pagebreak.mode),ee={avoidAll:Ue.indexOf("avoid-all")!==-1,css:Ue.indexOf("css")!==-1,legacy:Ue.indexOf("legacy")!==-1},fe={},D=this;["before","after","avoid"].forEach(function(Ce){var Te=ee.avoidAll&&Ce==="avoid";fe[Ce]=Te?[]:[].concat(D.opt.pagebreak[Ce]||[]),fe[Ce].length>0&&(fe[Ce]=Array.prototype.slice.call(Oe.querySelectorAll(fe[Ce].join(", "))))});var Ye=Oe.querySelectorAll(".html2pdf__page-break");Ye=Array.prototype.slice.call(Ye);var Le=Oe.querySelectorAll("*");Array.prototype.forEach.call(Le,function(Te){var be={before:!1,after:ee.legacy&&Ye.indexOf(Te)!==-1,avoid:ee.avoidAll};if(ee.css){var ke=window.getComputedStyle(Te),he=["always","page","left","right"],Ee=["avoid","avoid-page"];be={before:be.before||he.indexOf(ke.breakBefore||ke.pageBreakBefore)!==-1,after:be.after||he.indexOf(ke.breakAfter||ke.pageBreakAfter)!==-1,avoid:be.avoid||Ee.indexOf(ke.breakInside||ke.pageBreakInside)!==-1}}Object.keys(be).forEach(function(Lt){be[Lt]=be[Lt]||fe[Lt].indexOf(Te)!==-1});var Xe=Te.getBoundingClientRect();if(be.avoid&&!be.before){var et=Math.floor(Xe.top/Be),ze=Math.floor(Xe.bottom/Be),qe=Math.abs(Xe.bottom-Xe.top)/Be;ze!==et&&qe<=1&&(be.before=!0)}if(be.before){var _t=(0,W.createElement)("div",{style:{display:"block",height:Be-Xe.top%Be+"px"}});Te.parentNode.insertBefore(_t,Te)}if(be.after){var _t=(0,W.createElement)("div",{style:{display:"block",height:Be-Xe.bottom%Be+"px"}});Te.parentNode.insertBefore(_t,Te.nextSibling)}})})}},"./src/utils.js":function(g,F,v){"use strict";v.r(F),v.d(F,{objType:function(){return Ue},createElement:function(){return ee},cloneNode:function(){return fe},unitConvert:function(){return D},toPx:function(){return Ye}});var $=v("./node_modules/core-js/modules/es.number.constructor.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.symbol.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.symbol.description.js"),L=v.n(T),Y=v("./node_modules/core-js/modules/es.object.to-string.js"),R=v.n(Y),se=v("./node_modules/core-js/modules/es.symbol.iterator.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.array.iterator.js"),W=v.n(J),K=v("./node_modules/core-js/modules/es.string.iterator.js"),le=v.n(K),me=v("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Oe=v.n(me);function Be(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(Te){return typeof Te}:Be=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},Be(Le)}var Ue=function(Ce){var Te=Be(Ce);return Te==="undefined"?"undefined":Te==="string"||Ce instanceof String?"string":Te==="number"||Ce instanceof Number?"number":Te==="function"||Ce instanceof Function?"function":Ce&&Ce.constructor===Array?"array":Ce&&Ce.nodeType===1?"element":Te==="object"?"object":"unknown"},ee=function(Ce,Te){var be=document.createElement(Ce);if(Te.className&&(be.className=Te.className),Te.innerHTML){be.innerHTML=Te.innerHTML;for(var ke=be.getElementsByTagName("script"),he=ke.length;he-- >0;null)ke[he].parentNode.removeChild(ke[he])}for(var Ee in Te.style)be.style[Ee]=Te.style[Ee];return be},fe=function Le(Ce,Te){for(var be=Ce.nodeType===3?document.createTextNode(Ce.nodeValue):Ce.cloneNode(!1),ke=Ce.firstChild;ke;ke=ke.nextSibling)(Te===!0||ke.nodeType!==1||ke.nodeName!=="SCRIPT")&&be.appendChild(Le(ke,Te));return Ce.nodeType===1&&(Ce.nodeName==="CANVAS"?(be.width=Ce.width,be.height=Ce.height,be.getContext("2d").drawImage(Ce,0,0)):(Ce.nodeName==="TEXTAREA"||Ce.nodeName==="SELECT")&&(be.value=Ce.value),be.addEventListener("load",function(){be.scrollTop=Ce.scrollTop,be.scrollLeft=Ce.scrollLeft},!0)),be},D=function(Ce,Te){if(Ue(Ce)==="number")return Ce*72/96/Te;var be={};for(var ke in Ce)be[ke]=Ce[ke]*72/96/Te;return be},Ye=function(Ce,Te){return Math.floor(Ce*Te/72*96)}},"./src/worker.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.object.assign.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.array.map.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.object.keys.js"),L=v.n(T),Y=v("./node_modules/core-js/modules/es.array.concat.js"),R=v.n(Y),se=v("./node_modules/core-js/modules/es.object.to-string.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.regexp.to-string.js"),W=v.n(J),K=v("./node_modules/core-js/modules/es.function.name.js"),le=v.n(K),me=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Oe=v.n(me),Be=v("jspdf"),Ue=v.n(Be),ee=v("html2canvas"),fe=v.n(ee),D=v("./src/utils.js"),Ye=v("./node_modules/es6-promise/dist/es6-promise.js"),Le=v.n(Ye),Ce=Le().Promise,Te=function be(ke){var he=Object.assign(be.convert(Ce.resolve()),JSON.parse(JSON.stringify(be.template))),Ee=be.convert(Ce.resolve(),he);return Ee=Ee.setProgress(1,be,1,[be]),Ee=Ee.set(ke),Ee};Te.prototype=Object.create(Ce.prototype),Te.prototype.constructor=Te,Te.convert=function(ke,he){return ke.__proto__=he||Te.prototype,ke},Te.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},Te.prototype.from=function(ke,he){function Ee(Xe){switch((0,D.objType)(Xe)){case"string":return"string";case"element":return Xe.nodeName.toLowerCase&&Xe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(he=he||Ee(ke),he){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:ke})});case"element":return this.set({src:ke});case"canvas":return this.set({canvas:ke});case"img":return this.set({img:ke});default:return this.error("Unknown source type.")}})},Te.prototype.to=function(ke){switch(ke){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Te.prototype.toContainer=function(){var ke=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ke).then(function(){var Ee={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Xe={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Ee.opacity=0;var et=(0,D.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,D.createElement)("div",{className:"html2pdf__overlay",style:Ee}),this.prop.container=(0,D.createElement)("div",{className:"html2pdf__container",style:Xe}),this.prop.container.appendChild(et),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Te.prototype.toCanvas=function(){var ke=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ke).then(function(){var Ee=Object.assign({},this.opt.html2canvas);return delete Ee.onrendered,ee(this.prop.container,Ee)}).then(function(Ee){var Xe=this.opt.html2canvas.onrendered||function(){};Xe(Ee),this.prop.canvas=Ee,document.body.removeChild(this.prop.overlay)})},Te.prototype.toImg=function(){var ke=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(ke).then(function(){var Ee=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ee})},Te.prototype.toPdf=function(){var ke=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ke).then(function(){var Ee=this.prop.canvas,Xe=this.opt,et=Ee.height,ze=Math.floor(Ee.width*this.prop.pageSize.inner.ratio),qe=Math.ceil(et/ze),_t=this.prop.pageSize.inner.height,Lt=document.createElement("canvas"),Nt=Lt.getContext("2d");Lt.width=Ee.width,Lt.height=ze,this.prop.pdf=this.prop.pdf||new Be.jsPDF(Xe.jsPDF);for(var sr=0;sr<qe;sr++){sr===qe-1&&et%ze!==0&&(Lt.height=et%ze,_t=Lt.height*this.prop.pageSize.inner.width/Lt.width);var er=Lt.width,yr=Lt.height;Nt.fillStyle="white",Nt.fillRect(0,0,er,yr),Nt.drawImage(Ee,0,sr*ze,er,yr,0,0,er,yr),sr&&this.prop.pdf.addPage();var lr=Lt.toDataURL("image/"+Xe.image.type,Xe.image.quality);this.prop.pdf.addImage(lr,Xe.image.type,Xe.margin[1],Xe.margin[0],this.prop.pageSize.inner.width,_t)}})},Te.prototype.output=function(ke,he,Ee){return Ee=Ee||"pdf",Ee.toLowerCase()==="img"||Ee.toLowerCase()==="image"?this.outputImg(ke,he):this.outputPdf(ke,he)},Te.prototype.outputPdf=function(ke,he){var Ee=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ee).then(function(){return this.prop.pdf.output(ke,he)})},Te.prototype.outputImg=function(ke,he){var Ee=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ee).then(function(){switch(ke){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+ke+'" is not supported.'}})},Te.prototype.save=function(ke){var he=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(he).set(ke?{filename:ke}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Te.prototype.set=function(ke){if((0,D.objType)(ke)!=="object")return this;var he=Object.keys(ke||{}).map(function(Ee){switch(Ee){case"margin":return this.setMargin.bind(this,ke.margin);case"jsPDF":return function(){return this.opt.jsPDF=ke.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ke.pageSize);default:return Ee in Te.template.prop?function(){this.prop[Ee]=ke[Ee]}:function(){this.opt[Ee]=ke[Ee]}}},this);return this.then(function(){return this.thenList(he)})},Te.prototype.get=function(ke,he){return this.then(function(){var Xe=ke in Te.template.prop?this.prop[ke]:this.opt[ke];return he?he(Xe):Xe})},Te.prototype.setMargin=function(ke){return this.then(function(){switch((0,D.objType)(ke)){case"number":ke=[ke,ke,ke,ke];case"array":if(ke.length===2&&(ke=[ke[0],ke[1],ke[0],ke[1]]),ke.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ke}).then(this.setPageSize)},Te.prototype.setPageSize=function(ke){return this.then(function(){ke=ke||Be.jsPDF.getPageSize(this.opt.jsPDF),ke.hasOwnProperty("inner")||(ke.inner={width:ke.width-this.opt.margin[1]-this.opt.margin[3],height:ke.height-this.opt.margin[0]-this.opt.margin[2]},ke.inner.px={width:(0,D.toPx)(ke.inner.width,ke.k),height:(0,D.toPx)(ke.inner.height,ke.k)},ke.inner.ratio=ke.inner.height/ke.inner.width),this.prop.pageSize=ke})},Te.prototype.setProgress=function(ke,he,Ee,Xe){return ke!=null&&(this.progress.val=ke),he!=null&&(this.progress.state=he),Ee!=null&&(this.progress.n=Ee),Xe!=null&&(this.progress.stack=Xe),this.progress.ratio=this.progress.val/this.progress.state,this},Te.prototype.updateProgress=function(ke,he,Ee,Xe){return this.setProgress(ke?this.progress.val+ke:null,he||null,Ee?this.progress.n+Ee:null,Xe?this.progress.stack.concat(Xe):null)},Te.prototype.then=function(ke,he){var Ee=this;return this.thenCore(ke,he,function(et,ze){return Ee.updateProgress(null,null,1,[et]),Ce.prototype.then.call(this,function(_t){return Ee.updateProgress(null,et),_t}).then(et,ze).then(function(_t){return Ee.updateProgress(1),_t})})},Te.prototype.thenCore=function(ke,he,Ee){Ee=Ee||Ce.prototype.then;var Xe=this;ke&&(ke=ke.bind(Xe)),he&&(he=he.bind(Xe));var et=Ce.toString().indexOf("[native code]")!==-1&&Ce.name==="Promise",ze=et?Xe:Te.convert(Object.assign({},Xe),Ce.prototype),qe=Ee.call(ze,ke,he);return Te.convert(qe,Xe.__proto__)},Te.prototype.thenExternal=function(ke,he){return Ce.prototype.then.call(this,ke,he)},Te.prototype.thenList=function(ke){var he=this;return ke.forEach(function(Xe){he=he.thenCore(Xe)}),he},Te.prototype.catch=function(be){be&&(be=be.bind(this));var ke=Ce.prototype.catch.call(this,be);return Te.convert(ke,this)},Te.prototype.catchExternal=function(ke){return Ce.prototype.catch.call(this,ke)},Te.prototype.error=function(ke){return this.then(function(){throw new Error(ke)})},Te.prototype.using=Te.prototype.set,Te.prototype.saveAs=Te.prototype.save,Te.prototype.export=Te.prototype.output,Te.prototype.run=Te.prototype.then,F.default=Te},"./node_modules/core-js/internals/a-function.js":function(g){g.exports=function(F){if(typeof F!="function")throw TypeError(String(F)+" is not a function");return F}},"./node_modules/core-js/internals/a-possible-prototype.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_){if(!$(_)&&_!==null)throw TypeError("Can't set "+String(_)+" as a prototype");return _}},"./node_modules/core-js/internals/add-to-unscopables.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js"),_=v("./node_modules/core-js/internals/object-create.js"),M=v("./node_modules/core-js/internals/object-define-property.js"),O=$("unscopables"),T=Array.prototype;T[O]==null&&M.f(T,O,{configurable:!0,value:_(null)}),g.exports=function(L){T[O][L]=!0}},"./node_modules/core-js/internals/an-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_){if(!$(_))throw TypeError(String(_)+" is not an object");return _}},"./node_modules/core-js/internals/array-for-each.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/array-iteration.js").forEach,_=v("./node_modules/core-js/internals/array-method-is-strict.js"),M=_("forEach");g.exports=M?[].forEach:function(T){return $(this,T,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/to-length.js"),M=v("./node_modules/core-js/internals/to-absolute-index.js"),O=function(T){return function(L,Y,R){var se=$(L),ne=_(se.length),J=M(R,ne),W;if(T&&Y!=Y){for(;ne>J;)if(W=se[J++],W!=W)return!0}else for(;ne>J;J++)if((T||J in se)&&se[J]===Y)return T||J||0;return!T&&-1}};g.exports={includes:O(!0),indexOf:O(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(g,F,v){var $=v("./node_modules/core-js/internals/function-bind-context.js"),_=v("./node_modules/core-js/internals/indexed-object.js"),M=v("./node_modules/core-js/internals/to-object.js"),O=v("./node_modules/core-js/internals/to-length.js"),T=v("./node_modules/core-js/internals/array-species-create.js"),L=[].push,Y=function(R){var se=R==1,ne=R==2,J=R==3,W=R==4,K=R==6,le=R==7,me=R==5||K;return function(Oe,Be,Ue,ee){for(var fe=M(Oe),D=_(fe),Ye=$(Be,Ue,3),Le=O(D.length),Ce=0,Te=ee||T,be=se?Te(Oe,Le):ne||le?Te(Oe,0):void 0,ke,he;Le>Ce;Ce++)if((me||Ce in D)&&(ke=D[Ce],he=Ye(ke,Ce,fe),R))if(se)be[Ce]=he;else if(he)switch(R){case 3:return!0;case 5:return ke;case 6:return Ce;case 2:L.call(be,ke)}else switch(R){case 4:return!1;case 7:L.call(be,ke)}return K?-1:J||W?W:be}};g.exports={forEach:Y(0),map:Y(1),filter:Y(2),some:Y(3),every:Y(4),find:Y(5),findIndex:Y(6),filterReject:Y(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/well-known-symbol.js"),M=v("./node_modules/core-js/internals/engine-v8-version.js"),O=_("species");g.exports=function(T){return M>=51||!$(function(){var L=[],Y=L.constructor={};return Y[O]=function(){return{foo:1}},L[T](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/fails.js");g.exports=function(_,M){var O=[][_];return!!O&&$(function(){O.call(null,M||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/is-array.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("species");g.exports=function(T){var L;return _(T)&&(L=T.constructor,typeof L=="function"&&(L===Array||_(L.prototype))?L=void 0:$(L)&&(L=L[O],L===null&&(L=void 0))),L===void 0?Array:L}},"./node_modules/core-js/internals/array-species-create.js":function(g,F,v){var $=v("./node_modules/core-js/internals/array-species-constructor.js");g.exports=function(_,M){return new($(_))(M===0?0:M)}},"./node_modules/core-js/internals/classof-raw.js":function(g){var F={}.toString;g.exports=function(v){return F.call(v).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/classof-raw.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("toStringTag"),T=_(function(){return arguments}())=="Arguments",L=function(Y,R){try{return Y[R]}catch(se){}};g.exports=$?_:function(Y){var R,se,ne;return Y===void 0?"Undefined":Y===null?"Null":typeof(se=L(R=Object(Y),O))=="string"?se:T?_(R):(ne=_(R))=="Object"&&typeof R.callee=="function"?"Arguments":ne}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/own-keys.js"),M=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),O=v("./node_modules/core-js/internals/object-define-property.js");g.exports=function(T,L){for(var Y=_(L),R=O.f,se=M.f,ne=0;ne<Y.length;ne++){var J=Y[ne];$(T,J)||R(T,J,se(L,J))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=!$(function(){function _(){}return _.prototype.constructor=null,Object.getPrototypeOf(new _)!==_.prototype})},"./node_modules/core-js/internals/create-html.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=/"/g;g.exports=function(O,T,L,Y){var R=_($(O)),se="<"+T;return L!==""&&(se+=" "+L+'="'+_(Y).replace(M,""")+'"'),se+">"+R+"</"+T+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,_=v("./node_modules/core-js/internals/object-create.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js"),O=v("./node_modules/core-js/internals/set-to-string-tag.js"),T=v("./node_modules/core-js/internals/iterators.js"),L=function(){return this};g.exports=function(Y,R,se){var ne=R+" Iterator";return Y.prototype=_($,{next:M(1,se)}),O(Y,ne,!1,!0),T[ne]=L,Y}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js");g.exports=$?function(O,T,L){return _.f(O,T,M(1,L))}:function(O,T,L){return O[T]=L,O}},"./node_modules/core-js/internals/create-property-descriptor.js":function(g){g.exports=function(F,v){return{enumerable:!(F&1),configurable:!(F&2),writable:!(F&4),value:v}}},"./node_modules/core-js/internals/create-property.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-property-key.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js");g.exports=function(O,T,L){var Y=$(T);Y in O?_.f(O,Y,M(0,L)):O[Y]=L}},"./node_modules/core-js/internals/define-iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/create-iterator-constructor.js"),M=v("./node_modules/core-js/internals/object-get-prototype-of.js"),O=v("./node_modules/core-js/internals/object-set-prototype-of.js"),T=v("./node_modules/core-js/internals/set-to-string-tag.js"),L=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),Y=v("./node_modules/core-js/internals/redefine.js"),R=v("./node_modules/core-js/internals/well-known-symbol.js"),se=v("./node_modules/core-js/internals/is-pure.js"),ne=v("./node_modules/core-js/internals/iterators.js"),J=v("./node_modules/core-js/internals/iterators-core.js"),W=J.IteratorPrototype,K=J.BUGGY_SAFARI_ITERATORS,le=R("iterator"),me="keys",Oe="values",Be="entries",Ue=function(){return this};g.exports=function(ee,fe,D,Ye,Le,Ce,Te){_(D,fe,Ye);var be=function(Nt){if(Nt===Le&&et)return et;if(!K&&Nt in Ee)return Ee[Nt];switch(Nt){case me:return function(){return new D(this,Nt)};case Oe:return function(){return new D(this,Nt)};case Be:return function(){return new D(this,Nt)}}return function(){return new D(this)}},ke=fe+" Iterator",he=!1,Ee=ee.prototype,Xe=Ee[le]||Ee["@@iterator"]||Le&&Ee[Le],et=!K&&Xe||be(Le),ze=fe=="Array"&&Ee.entries||Xe,qe,_t,Lt;if(ze&&(qe=M(ze.call(new ee)),W!==Object.prototype&&qe.next&&(!se&&M(qe)!==W&&(O?O(qe,W):typeof qe[le]!="function"&&L(qe,le,Ue)),T(qe,ke,!0,!0),se&&(ne[ke]=Ue))),Le==Oe&&Xe&&Xe.name!==Oe&&(he=!0,et=function(){return Xe.call(this)}),(!se||Te)&&Ee[le]!==et&&L(Ee,le,et),ne[fe]=et,Le)if(_t={values:be(Oe),keys:Ce?et:be(me),entries:be(Be)},Te)for(Lt in _t)(K||he||!(Lt in Ee))&&Y(Ee,Lt,_t[Lt]);else $({target:fe,proto:!0,forced:K||he},_t);return _t}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/path.js"),_=v("./node_modules/core-js/internals/has.js"),M=v("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),O=v("./node_modules/core-js/internals/object-define-property.js").f;g.exports=function(T){var L=$.Symbol||($.Symbol={});_(L,T)||O(L,T,{value:M.f(T)})}},"./node_modules/core-js/internals/descriptors.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=!$(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/is-object.js"),M=$.document,O=_(M)&&_(M.createElement);g.exports=function(T){return O?M.createElement(T):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(g){g.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js");g.exports=$("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/engine-user-agent.js"),M=$.process,O=$.Deno,T=M&&M.versions||O&&O.version,L=T&&T.v8,Y,R;L?(Y=L.split("."),R=Y[0]<4?1:Y[0]+Y[1]):_&&(Y=_.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=_.match(/Chrome\/(\d+)/),Y&&(R=Y[1]))),g.exports=R&&+R},"./node_modules/core-js/internals/enum-bug-keys.js":function(g){g.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,M=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=v("./node_modules/core-js/internals/redefine.js"),T=v("./node_modules/core-js/internals/set-global.js"),L=v("./node_modules/core-js/internals/copy-constructor-properties.js"),Y=v("./node_modules/core-js/internals/is-forced.js");g.exports=function(R,se){var ne=R.target,J=R.global,W=R.stat,K,le,me,Oe,Be,Ue;if(J?le=$:W?le=$[ne]||T(ne,{}):le=($[ne]||{}).prototype,le)for(me in se){if(Be=se[me],R.noTargetGet?(Ue=_(le,me),Oe=Ue&&Ue.value):Oe=le[me],K=Y(J?me:ne+(W?".":"#")+me,R.forced),!K&&Oe!==void 0){if(typeof Be==typeof Oe)continue;L(Be,Oe)}(R.sham||Oe&&Oe.sham)&&M(Be,"sham",!0),O(le,me,Be,R)}}},"./node_modules/core-js/internals/fails.js":function(g){g.exports=function(F){try{return!!F()}catch(v){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(g,F,v){var $=v("./node_modules/core-js/internals/a-function.js");g.exports=function(_,M,O){if($(_),M===void 0)return _;switch(O){case 0:return function(){return _.call(M)};case 1:return function(T){return _.call(M,T)};case 2:return function(T,L){return _.call(M,T,L)};case 3:return function(T,L,Y){return _.call(M,T,L,Y)}}return function(){return _.apply(M,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=function(M){return typeof M=="function"?M:void 0};g.exports=function(M,O){return arguments.length<2?_($[M]):$[M]&&$[M][O]}},"./node_modules/core-js/internals/global.js":function(g){var F=function(v){return v&&v.Math==Math&&v};g.exports=F(typeof globalThis=="object"&&globalThis)||F(typeof window=="object"&&window)||F(typeof self=="object"&&self)||F(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-object.js"),_={}.hasOwnProperty;g.exports=Object.hasOwn||function(O,T){return _.call($(O),T)}},"./node_modules/core-js/internals/hidden-keys.js":function(g){g.exports={}},"./node_modules/core-js/internals/html.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js");g.exports=$("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/document-create-element.js");g.exports=!$&&!_(function(){return Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/classof-raw.js"),M="".split;g.exports=$(function(){return!Object("z").propertyIsEnumerable(0)})?function(O){return _(O)=="String"?M.call(O,""):Object(O)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/object-set-prototype-of.js");g.exports=function(M,O,T){var L,Y;return _&&typeof(L=O.constructor)=="function"&&L!==T&&$(Y=L.prototype)&&Y!==T.prototype&&_(M,Y),M}},"./node_modules/core-js/internals/inspect-source.js":function(g,F,v){var $=v("./node_modules/core-js/internals/shared-store.js"),_=Function.toString;typeof $.inspectSource!="function"&&($.inspectSource=function(M){return _.call(M)}),g.exports=$.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(g,F,v){var $=v("./node_modules/core-js/internals/native-weak-map.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/is-object.js"),O=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=v("./node_modules/core-js/internals/has.js"),L=v("./node_modules/core-js/internals/shared-store.js"),Y=v("./node_modules/core-js/internals/shared-key.js"),R=v("./node_modules/core-js/internals/hidden-keys.js"),se="Object already initialized",ne=_.WeakMap,J,W,K,le=function(D){return K(D)?W(D):J(D,{})},me=function(D){return function(Ye){var Le;if(!M(Ye)||(Le=W(Ye)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return Le}};if($||L.state){var Oe=L.state||(L.state=new ne),Be=Oe.get,Ue=Oe.has,ee=Oe.set;J=function(D,Ye){if(Ue.call(Oe,D))throw new TypeError(se);return Ye.facade=D,ee.call(Oe,D,Ye),Ye},W=function(D){return Be.call(Oe,D)||{}},K=function(D){return Ue.call(Oe,D)}}else{var fe=Y("state");R[fe]=!0,J=function(D,Ye){if(T(D,fe))throw new TypeError(se);return Ye.facade=D,O(D,fe,Ye),Ye},W=function(D){return T(D,fe)?D[fe]:{}},K=function(D){return T(D,fe)}}g.exports={set:J,get:W,has:K,enforce:le,getterFor:me}},"./node_modules/core-js/internals/is-array.js":function(g,F,v){var $=v("./node_modules/core-js/internals/classof-raw.js");g.exports=Array.isArray||function(M){return $(M)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=/#|\.prototype\./,M=function(R,se){var ne=T[O(R)];return ne==Y?!0:ne==L?!1:typeof se=="function"?$(se):!!se},O=M.normalize=function(R){return String(R).replace(_,".").toLowerCase()},T=M.data={},L=M.NATIVE="N",Y=M.POLYFILL="P";g.exports=M},"./node_modules/core-js/internals/is-object.js":function(g){g.exports=function(F){return typeof F=="object"?F!==null:typeof F=="function"}},"./node_modules/core-js/internals/is-pure.js":function(g){g.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js"),_=v("./node_modules/core-js/internals/use-symbol-as-uid.js");g.exports=_?function(M){return typeof M=="symbol"}:function(M){var O=$("Symbol");return typeof O=="function"&&Object(M)instanceof O}},"./node_modules/core-js/internals/iterators-core.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/object-get-prototype-of.js"),M=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=v("./node_modules/core-js/internals/has.js"),T=v("./node_modules/core-js/internals/well-known-symbol.js"),L=v("./node_modules/core-js/internals/is-pure.js"),Y=T("iterator"),R=!1,se=function(){return this},ne,J,W;[].keys&&(W=[].keys(),"next"in W?(J=_(_(W)),J!==Object.prototype&&(ne=J)):R=!0);var K=ne==null||$(function(){var le={};return ne[Y].call(le)!==le});K&&(ne={}),(!L||K)&&!O(ne,Y)&&M(ne,Y,se),g.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:R}},"./node_modules/core-js/internals/iterators.js":function(g){g.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/engine-v8-version.js"),_=v("./node_modules/core-js/internals/fails.js");g.exports=!!Object.getOwnPropertySymbols&&!_(function(){var M=Symbol();return!String(M)||!(Object(M)instanceof Symbol)||!Symbol.sham&&$&&$<41})},"./node_modules/core-js/internals/native-weak-map.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/inspect-source.js"),M=$.WeakMap;g.exports=typeof M=="function"&&/native code/.test(_(M))},"./node_modules/core-js/internals/object-assign.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/object-keys.js"),O=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),T=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),L=v("./node_modules/core-js/internals/to-object.js"),Y=v("./node_modules/core-js/internals/indexed-object.js"),R=Object.assign,se=Object.defineProperty;g.exports=!R||_(function(){if($&&R({b:1},R(se({},"a",{enumerable:!0,get:function(){se(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ne={},J={},W=Symbol(),K="abcdefghijklmnopqrst";return ne[W]=7,K.split("").forEach(function(le){J[le]=le}),R({},ne)[W]!=7||M(R({},J)).join("")!=K})?function(J,W){for(var K=L(J),le=arguments.length,me=1,Oe=O.f,Be=T.f;le>me;)for(var Ue=Y(arguments[me++]),ee=Oe?M(Ue).concat(Oe(Ue)):M(Ue),fe=ee.length,D=0,Ye;fe>D;)Ye=ee[D++],(!$||Be.call(Ue,Ye))&&(K[Ye]=Ue[Ye]);return K}:R},"./node_modules/core-js/internals/object-create.js":function(g,F,v){var $=v("./node_modules/core-js/internals/an-object.js"),_=v("./node_modules/core-js/internals/object-define-properties.js"),M=v("./node_modules/core-js/internals/enum-bug-keys.js"),O=v("./node_modules/core-js/internals/hidden-keys.js"),T=v("./node_modules/core-js/internals/html.js"),L=v("./node_modules/core-js/internals/document-create-element.js"),Y=v("./node_modules/core-js/internals/shared-key.js"),R=">",se="<",ne="prototype",J="script",W=Y("IE_PROTO"),K=function(){},le=function(ee){return se+J+R+ee+se+"/"+J+R},me=function(ee){ee.write(le("")),ee.close();var fe=ee.parentWindow.Object;return ee=null,fe},Oe=function(){var ee=L("iframe"),fe="java"+J+":",D;if(ee.style)return ee.style.display="none",T.appendChild(ee),ee.src=String(fe),D=ee.contentWindow.document,D.open(),D.write(le("document.F=Object")),D.close(),D.F},Be,Ue=function(){try{Be=new ActiveXObject("htmlfile")}catch(fe){}Ue=document.domain&&Be?me(Be):Oe()||me(Be);for(var ee=M.length;ee--;)delete Ue[ne][M[ee]];return Ue()};O[W]=!0,g.exports=Object.create||function(fe,D){var Ye;return fe!==null?(K[ne]=$(fe),Ye=new K,K[ne]=null,Ye[W]=fe):Ye=Ue(),D===void 0?Ye:_(Ye,D)}},"./node_modules/core-js/internals/object-define-properties.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/an-object.js"),O=v("./node_modules/core-js/internals/object-keys.js");g.exports=$?Object.defineProperties:function(L,Y){M(L);for(var R=O(Y),se=R.length,ne=0,J;se>ne;)_.f(L,J=R[ne++],Y[J]);return L}},"./node_modules/core-js/internals/object-define-property.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/ie8-dom-define.js"),M=v("./node_modules/core-js/internals/an-object.js"),O=v("./node_modules/core-js/internals/to-property-key.js"),T=Object.defineProperty;F.f=$?T:function(Y,R,se){if(M(Y),R=O(R),M(se),_)try{return T(Y,R,se)}catch(ne){}if("get"in se||"set"in se)throw TypeError("Accessors not supported");return"value"in se&&(Y[R]=se.value),Y}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js"),O=v("./node_modules/core-js/internals/to-indexed-object.js"),T=v("./node_modules/core-js/internals/to-property-key.js"),L=v("./node_modules/core-js/internals/has.js"),Y=v("./node_modules/core-js/internals/ie8-dom-define.js"),R=Object.getOwnPropertyDescriptor;F.f=$?R:function(ne,J){if(ne=O(ne),J=T(J),Y)try{return R(ne,J)}catch(W){}if(L(ne,J))return M(!_.f.call(ne,J),ne[J])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/object-get-own-property-names.js").f,M={}.toString,O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function(L){try{return _(L)}catch(Y){return O.slice()}};g.exports.f=function(Y){return O&&M.call(Y)=="[object Window]"?T(Y):_($(Y))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-keys-internal.js"),_=v("./node_modules/core-js/internals/enum-bug-keys.js"),M=_.concat("length","prototype");F.f=Object.getOwnPropertyNames||function(T){return $(T,M)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(g,F){F.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/to-object.js"),M=v("./node_modules/core-js/internals/shared-key.js"),O=v("./node_modules/core-js/internals/correct-prototype-getter.js"),T=M("IE_PROTO"),L=Object.prototype;g.exports=O?Object.getPrototypeOf:function(Y){return Y=_(Y),$(Y,T)?Y[T]:typeof Y.constructor=="function"&&Y instanceof Y.constructor?Y.constructor.prototype:Y instanceof Object?L:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/to-indexed-object.js"),M=v("./node_modules/core-js/internals/array-includes.js").indexOf,O=v("./node_modules/core-js/internals/hidden-keys.js");g.exports=function(T,L){var Y=_(T),R=0,se=[],ne;for(ne in Y)!$(O,ne)&&$(Y,ne)&&se.push(ne);for(;L.length>R;)$(Y,ne=L[R++])&&(~M(se,ne)||se.push(ne));return se}},"./node_modules/core-js/internals/object-keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-keys-internal.js"),_=v("./node_modules/core-js/internals/enum-bug-keys.js");g.exports=Object.keys||function(O){return $(O,_)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(g,F){"use strict";var v={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,_=$&&!v.call({1:2},1);F.f=_?function(O){var T=$(this,O);return!!T&&T.enumerable}:v},"./node_modules/core-js/internals/object-set-prototype-of.js":function(g,F,v){var $=v("./node_modules/core-js/internals/an-object.js"),_=v("./node_modules/core-js/internals/a-possible-prototype.js");g.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var M=!1,O={},T;try{T=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,T.call(O,[]),M=O instanceof Array}catch(L){}return function(Y,R){return $(Y),_(R),M?T.call(Y,R):Y.__proto__=R,Y}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/classof.js");g.exports=$?{}.toString:function(){return"[object "+_(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_,M){var O,T;if(M==="string"&&typeof(O=_.toString)=="function"&&!$(T=O.call(_))||typeof(O=_.valueOf)=="function"&&!$(T=O.call(_))||M!=="string"&&typeof(O=_.toString)=="function"&&!$(T=O.call(_)))return T;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js"),_=v("./node_modules/core-js/internals/object-get-own-property-names.js"),M=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),O=v("./node_modules/core-js/internals/an-object.js");g.exports=$("Reflect","ownKeys")||function(L){var Y=_.f(O(L)),R=M.f;return R?Y.concat(R(L)):Y}},"./node_modules/core-js/internals/path.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js");g.exports=$},"./node_modules/core-js/internals/redefine.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),M=v("./node_modules/core-js/internals/has.js"),O=v("./node_modules/core-js/internals/set-global.js"),T=v("./node_modules/core-js/internals/inspect-source.js"),L=v("./node_modules/core-js/internals/internal-state.js"),Y=L.get,R=L.enforce,se=String(String).split("String");(g.exports=function(ne,J,W,K){var le=K?!!K.unsafe:!1,me=K?!!K.enumerable:!1,Oe=K?!!K.noTargetGet:!1,Be;if(typeof W=="function"&&(typeof J=="string"&&!M(W,"name")&&_(W,"name",J),Be=R(W),Be.source||(Be.source=se.join(typeof J=="string"?J:""))),ne===$){me?ne[J]=W:O(J,W);return}else le?!Oe&&ne[J]&&(me=!0):delete ne[J];me?ne[J]=W:_(ne,J,W)})(Function.prototype,"toString",function(){return typeof this=="function"&&Y(this).source||T(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/an-object.js");g.exports=function(){var _=$(this),M="";return _.global&&(M+="g"),_.ignoreCase&&(M+="i"),_.multiline&&(M+="m"),_.dotAll&&(M+="s"),_.unicode&&(M+="u"),_.sticky&&(M+="y"),M}},"./node_modules/core-js/internals/require-object-coercible.js":function(g){g.exports=function(F){if(F==null)throw TypeError("Can't call method on "+F);return F}},"./node_modules/core-js/internals/set-global.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js");g.exports=function(_,M){try{Object.defineProperty($,_,{value:M,configurable:!0,writable:!0})}catch(O){$[_]=M}return M}},"./node_modules/core-js/internals/set-to-string-tag.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-define-property.js").f,_=v("./node_modules/core-js/internals/has.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("toStringTag");g.exports=function(T,L,Y){T&&!_(T=Y?T:T.prototype,O)&&$(T,O,{configurable:!0,value:L})}},"./node_modules/core-js/internals/shared-key.js":function(g,F,v){var $=v("./node_modules/core-js/internals/shared.js"),_=v("./node_modules/core-js/internals/uid.js"),M=$("keys");g.exports=function(O){return M[O]||(M[O]=_(O))}},"./node_modules/core-js/internals/shared-store.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/set-global.js"),M="__core-js_shared__",O=$[M]||_(M,{});g.exports=O},"./node_modules/core-js/internals/shared.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-pure.js"),_=v("./node_modules/core-js/internals/shared-store.js");(g.exports=function(M,O){return _[M]||(_[M]=O!==void 0?O:{})})("versions",[]).push({version:"3.16.0",mode:$?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=function(_){return $(function(){var M=""[_]('"');return M!==M.toLowerCase()||M.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/require-object-coercible.js"),O=function(T){return function(L,Y){var R=_(M(L)),se=$(Y),ne=R.length,J,W;return se<0||se>=ne?T?"":void 0:(J=R.charCodeAt(se),J<55296||J>56319||se+1===ne||(W=R.charCodeAt(se+1))<56320||W>57343?T?R.charAt(se):J:T?R.slice(se,se+2):(J-55296<<10)+(W-56320)+65536)}};g.exports={codeAt:O(!1),charAt:O(!0)}},"./node_modules/core-js/internals/string-trim.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/whitespaces.js"),O="["+M+"]",T=RegExp("^"+O+O+"*"),L=RegExp(O+O+"*$"),Y=function(R){return function(se){var ne=_($(se));return R&1&&(ne=ne.replace(T,"")),R&2&&(ne=ne.replace(L,"")),ne}};g.exports={start:Y(1),end:Y(2),trim:Y(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=Math.max,M=Math.min;g.exports=function(O,T){var L=$(O);return L<0?_(L+T,0):M(L,T)}},"./node_modules/core-js/internals/to-indexed-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/indexed-object.js"),_=v("./node_modules/core-js/internals/require-object-coercible.js");g.exports=function(M){return $(_(M))}},"./node_modules/core-js/internals/to-integer.js":function(g){var F=Math.ceil,v=Math.floor;g.exports=function($){return isNaN($=+$)?0:($>0?v:F)($)}},"./node_modules/core-js/internals/to-length.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=Math.min;g.exports=function(M){return M>0?_($(M),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js");g.exports=function(_){return Object($(_))}},"./node_modules/core-js/internals/to-primitive.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/is-symbol.js"),M=v("./node_modules/core-js/internals/ordinary-to-primitive.js"),O=v("./node_modules/core-js/internals/well-known-symbol.js"),T=O("toPrimitive");g.exports=function(L,Y){if(!$(L)||_(L))return L;var R=L[T],se;if(R!==void 0){if(Y===void 0&&(Y="default"),se=R.call(L,Y),!$(se)||_(se))return se;throw TypeError("Can't convert object to primitive value")}return Y===void 0&&(Y="number"),M(L,Y)}},"./node_modules/core-js/internals/to-property-key.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-primitive.js"),_=v("./node_modules/core-js/internals/is-symbol.js");g.exports=function(M){var O=$(M,"string");return _(O)?O:String(O)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js"),_=$("toStringTag"),M={};M[_]="z",g.exports=String(M)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-symbol.js");g.exports=function(_){if($(_))throw TypeError("Cannot convert a Symbol value to a string");return String(_)}},"./node_modules/core-js/internals/uid.js":function(g){var F=0,v=Math.random();g.exports=function($){return"Symbol("+String($===void 0?"":$)+")_"+(++F+v).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(g,F,v){var $=v("./node_modules/core-js/internals/native-symbol.js");g.exports=$&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js");F.f=$},"./node_modules/core-js/internals/well-known-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/shared.js"),M=v("./node_modules/core-js/internals/has.js"),O=v("./node_modules/core-js/internals/uid.js"),T=v("./node_modules/core-js/internals/native-symbol.js"),L=v("./node_modules/core-js/internals/use-symbol-as-uid.js"),Y=_("wks"),R=$.Symbol,se=L?R:R&&R.withoutSetter||O;g.exports=function(ne){return(!M(Y,ne)||!(T||typeof Y[ne]=="string"))&&(T&&M(R,ne)?Y[ne]=R[ne]:Y[ne]=se("Symbol."+ne)),Y[ne]}},"./node_modules/core-js/internals/whitespaces.js":function(g){g.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/is-array.js"),O=v("./node_modules/core-js/internals/is-object.js"),T=v("./node_modules/core-js/internals/to-object.js"),L=v("./node_modules/core-js/internals/to-length.js"),Y=v("./node_modules/core-js/internals/create-property.js"),R=v("./node_modules/core-js/internals/array-species-create.js"),se=v("./node_modules/core-js/internals/array-method-has-species-support.js"),ne=v("./node_modules/core-js/internals/well-known-symbol.js"),J=v("./node_modules/core-js/internals/engine-v8-version.js"),W=ne("isConcatSpreadable"),K=9007199254740991,le="Maximum allowed index exceeded",me=J>=51||!_(function(){var ee=[];return ee[W]=!1,ee.concat()[0]!==ee}),Oe=se("concat"),Be=function(ee){if(!O(ee))return!1;var fe=ee[W];return fe!==void 0?!!fe:M(ee)},Ue=!me||!Oe;$({target:"Array",proto:!0,forced:Ue},{concat:function(fe){var D=T(this),Ye=R(D,0),Le=0,Ce,Te,be,ke,he;for(Ce=-1,be=arguments.length;Ce<be;Ce++)if(he=Ce===-1?D:arguments[Ce],Be(he)){if(ke=L(he.length),Le+ke>K)throw TypeError(le);for(Te=0;Te<ke;Te++,Le++)Te in he&&Y(Ye,Le,he[Te])}else{if(Le>=K)throw TypeError(le);Y(Ye,Le++,he)}return Ye.length=Le,Ye}})},"./node_modules/core-js/modules/es.array.iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/add-to-unscopables.js"),M=v("./node_modules/core-js/internals/iterators.js"),O=v("./node_modules/core-js/internals/internal-state.js"),T=v("./node_modules/core-js/internals/define-iterator.js"),L="Array Iterator",Y=O.set,R=O.getterFor(L);g.exports=T(Array,"Array",function(se,ne){Y(this,{type:L,target:$(se),index:0,kind:ne})},function(){var se=R(this),ne=se.target,J=se.kind,W=se.index++;return!ne||W>=ne.length?(se.target=void 0,{value:void 0,done:!0}):J=="keys"?{value:W,done:!1}:J=="values"?{value:ne[W],done:!1}:{value:[W,ne[W]],done:!1}},"values"),M.Arguments=M.Array,_("keys"),_("values"),_("entries")},"./node_modules/core-js/modules/es.array.join.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/indexed-object.js"),M=v("./node_modules/core-js/internals/to-indexed-object.js"),O=v("./node_modules/core-js/internals/array-method-is-strict.js"),T=[].join,L=_!=Object,Y=O("join",",");$({target:"Array",proto:!0,forced:L||!Y},{join:function(se){return T.call(M(this),se===void 0?",":se)}})},"./node_modules/core-js/modules/es.array.map.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/array-iteration.js").map,M=v("./node_modules/core-js/internals/array-method-has-species-support.js"),O=M("map");$({target:"Array",proto:!0,forced:!O},{map:function(L){return _(this,L,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/is-object.js"),M=v("./node_modules/core-js/internals/is-array.js"),O=v("./node_modules/core-js/internals/to-absolute-index.js"),T=v("./node_modules/core-js/internals/to-length.js"),L=v("./node_modules/core-js/internals/to-indexed-object.js"),Y=v("./node_modules/core-js/internals/create-property.js"),R=v("./node_modules/core-js/internals/well-known-symbol.js"),se=v("./node_modules/core-js/internals/array-method-has-species-support.js"),ne=se("slice"),J=R("species"),W=[].slice,K=Math.max;$({target:"Array",proto:!0,forced:!ne},{slice:function(me,Oe){var Be=L(this),Ue=T(Be.length),ee=O(me,Ue),fe=O(Oe===void 0?Ue:Oe,Ue),D,Ye,Le;if(M(Be)&&(D=Be.constructor,typeof D=="function"&&(D===Array||M(D.prototype))?D=void 0:_(D)&&(D=D[J],D===null&&(D=void 0)),D===Array||D===void 0))return W.call(Be,ee,fe);for(Ye=new(D===void 0?Array:D)(K(fe-ee,0)),Le=0;ee<fe;ee++,Le++)ee in Be&&Y(Ye,Le,Be[ee]);return Ye.length=Le,Ye}})},"./node_modules/core-js/modules/es.function.name.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js").f,M=Function.prototype,O=M.toString,T=/^\s*function ([^ (]*)/,L="name";$&&!(L in M)&&_(M,L,{configurable:!0,get:function(){try{return O.call(this).match(T)[1]}catch(Y){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/is-forced.js"),O=v("./node_modules/core-js/internals/redefine.js"),T=v("./node_modules/core-js/internals/has.js"),L=v("./node_modules/core-js/internals/classof-raw.js"),Y=v("./node_modules/core-js/internals/inherit-if-required.js"),R=v("./node_modules/core-js/internals/is-symbol.js"),se=v("./node_modules/core-js/internals/to-primitive.js"),ne=v("./node_modules/core-js/internals/fails.js"),J=v("./node_modules/core-js/internals/object-create.js"),W=v("./node_modules/core-js/internals/object-get-own-property-names.js").f,K=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,le=v("./node_modules/core-js/internals/object-define-property.js").f,me=v("./node_modules/core-js/internals/string-trim.js").trim,Oe="Number",Be=_[Oe],Ue=Be.prototype,ee=L(J(Ue))==Oe,fe=function(Te){if(R(Te))throw TypeError("Cannot convert a Symbol value to a number");var be=se(Te,"number"),ke,he,Ee,Xe,et,ze,qe,_t;if(typeof be=="string"&&be.length>2){if(be=me(be),ke=be.charCodeAt(0),ke===43||ke===45){if(he=be.charCodeAt(2),he===88||he===120)return NaN}else if(ke===48){switch(be.charCodeAt(1)){case 66:case 98:Ee=2,Xe=49;break;case 79:case 111:Ee=8,Xe=55;break;default:return+be}for(et=be.slice(2),ze=et.length,qe=0;qe<ze;qe++)if(_t=et.charCodeAt(qe),_t<48||_t>Xe)return NaN;return parseInt(et,Ee)}}return+be};if(M(Oe,!Be(" 0o1")||!Be("0b1")||Be("+0x1"))){for(var D=function(be){var ke=arguments.length<1?0:be,he=this;return he instanceof D&&(ee?ne(function(){Ue.valueOf.call(he)}):L(he)!=Oe)?Y(new Be(fe(ke)),he,D):fe(ke)},Ye=$?W(Be):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Le=0,Ce;Ye.length>Le;Le++)T(Be,Ce=Ye[Le])&&!T(D,Ce)&&le(D,Ce,K(Be,Ce));D.prototype=Ue,Ue.constructor=D,O(_,Oe,D)}},"./node_modules/core-js/modules/es.object.assign.js":function(g,F,v){var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/object-assign.js");$({target:"Object",stat:!0,forced:Object.assign!==_},{assign:_})},"./node_modules/core-js/modules/es.object.keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/to-object.js"),M=v("./node_modules/core-js/internals/object-keys.js"),O=v("./node_modules/core-js/internals/fails.js"),T=O(function(){M(1)});$({target:"Object",stat:!0,forced:T},{keys:function(Y){return M(_(Y))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/redefine.js"),M=v("./node_modules/core-js/internals/object-to-string.js");$||_(Object.prototype,"toString",M,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/redefine.js"),_=v("./node_modules/core-js/internals/an-object.js"),M=v("./node_modules/core-js/internals/to-string.js"),O=v("./node_modules/core-js/internals/fails.js"),T=v("./node_modules/core-js/internals/regexp-flags.js"),L="toString",Y=RegExp.prototype,R=Y[L],se=O(function(){return R.call({source:"a",flags:"b"})!="/a/b"}),ne=R.name!=L;(se||ne)&&$(RegExp.prototype,L,function(){var W=_(this),K=M(W.source),le=W.flags,me=M(le===void 0&&W instanceof RegExp&&!("flags"in Y)?T.call(W):le);return"/"+K+"/"+me},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/string-multibyte.js").charAt,_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/internal-state.js"),O=v("./node_modules/core-js/internals/define-iterator.js"),T="String Iterator",L=M.set,Y=M.getterFor(T);O(String,"String",function(R){L(this,{type:T,string:_(R),index:0})},function(){var se=Y(this),ne=se.string,J=se.index,W;return J>=ne.length?{value:void 0,done:!0}:(W=$(ne,J),se.index+=W.length,{value:W,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/create-html.js"),M=v("./node_modules/core-js/internals/string-html-forced.js");$({target:"String",proto:!0,forced:M("link")},{link:function(T){return _(this,"a","href",T)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/descriptors.js"),M=v("./node_modules/core-js/internals/global.js"),O=v("./node_modules/core-js/internals/has.js"),T=v("./node_modules/core-js/internals/is-object.js"),L=v("./node_modules/core-js/internals/object-define-property.js").f,Y=v("./node_modules/core-js/internals/copy-constructor-properties.js"),R=M.Symbol;if(_&&typeof R=="function"&&(!("description"in R.prototype)||R().description!==void 0)){var se={},ne=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Be=this instanceof ne?new R(Oe):Oe===void 0?R():R(Oe);return Oe===""&&(se[Be]=!0),Be};Y(ne,R);var J=ne.prototype=R.prototype;J.constructor=ne;var W=J.toString,K=String(R("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;L(J,"description",{configurable:!0,get:function(){var Oe=T(this)?this.valueOf():this,Be=W.call(Oe);if(O(se,Oe))return"";var Ue=K?Be.slice(7,-1):Be.replace(le,"$1");return Ue===""?void 0:Ue}}),$({global:!0,forced:!0},{Symbol:ne})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(g,F,v){var $=v("./node_modules/core-js/internals/define-well-known-symbol.js");$("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/get-built-in.js"),O=v("./node_modules/core-js/internals/is-pure.js"),T=v("./node_modules/core-js/internals/descriptors.js"),L=v("./node_modules/core-js/internals/native-symbol.js"),Y=v("./node_modules/core-js/internals/fails.js"),R=v("./node_modules/core-js/internals/has.js"),se=v("./node_modules/core-js/internals/is-array.js"),ne=v("./node_modules/core-js/internals/is-object.js"),J=v("./node_modules/core-js/internals/is-symbol.js"),W=v("./node_modules/core-js/internals/an-object.js"),K=v("./node_modules/core-js/internals/to-object.js"),le=v("./node_modules/core-js/internals/to-indexed-object.js"),me=v("./node_modules/core-js/internals/to-property-key.js"),Oe=v("./node_modules/core-js/internals/to-string.js"),Be=v("./node_modules/core-js/internals/create-property-descriptor.js"),Ue=v("./node_modules/core-js/internals/object-create.js"),ee=v("./node_modules/core-js/internals/object-keys.js"),fe=v("./node_modules/core-js/internals/object-get-own-property-names.js"),D=v("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ye=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Le=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ce=v("./node_modules/core-js/internals/object-define-property.js"),Te=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),be=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),ke=v("./node_modules/core-js/internals/redefine.js"),he=v("./node_modules/core-js/internals/shared.js"),Ee=v("./node_modules/core-js/internals/shared-key.js"),Xe=v("./node_modules/core-js/internals/hidden-keys.js"),et=v("./node_modules/core-js/internals/uid.js"),ze=v("./node_modules/core-js/internals/well-known-symbol.js"),qe=v("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),_t=v("./node_modules/core-js/internals/define-well-known-symbol.js"),Lt=v("./node_modules/core-js/internals/set-to-string-tag.js"),Nt=v("./node_modules/core-js/internals/internal-state.js"),sr=v("./node_modules/core-js/internals/array-iteration.js").forEach,er=Ee("hidden"),yr="Symbol",lr="prototype",G=ze("toPrimitive"),dt=Nt.set,I=Nt.getterFor(yr),m=Object[lr],u=_.Symbol,C=M("JSON","stringify"),q=Le.f,Se=Ce.f,H=D.f,ie=Te.f,Qe=he("symbols"),we=he("op-symbols"),ye=he("string-to-symbol-registry"),je=he("symbol-to-string-registry"),Ct=he("wks"),de=_.QObject,st=!de||!de[lr]||!de[lr].findChild,tt=T&&Y(function(){return Ue(Se({},"a",{get:function(){return Se(this,"a",{value:7}).a}})).a!=7})?function(Nr,xr,ur){var Qr=q(m,xr);Qr&&delete m[xr],Se(Nr,xr,ur),Qr&&Nr!==m&&Se(m,xr,Qr)}:Se,Ie=function(Nr,xr){var ur=Qe[Nr]=Ue(u[lr]);return dt(ur,{type:yr,tag:Nr,description:xr}),T||(ur.description=xr),ur},De=function(xr,ur,Qr){xr===m&&De(we,ur,Qr),W(xr);var hn=me(ur);return W(Qr),R(Qe,hn)?(Qr.enumerable?(R(xr,er)&&xr[er][hn]&&(xr[er][hn]=!1),Qr=Ue(Qr,{enumerable:Be(0,!1)})):(R(xr,er)||Se(xr,er,Be(1,{})),xr[er][hn]=!0),tt(xr,hn,Qr)):Se(xr,hn,Qr)},lt=function(xr,ur){W(xr);var Qr=le(ur),hn=ee(Qr).concat(kr(Qr));return sr(hn,function(Ln){(!T||kt.call(Qr,Ln))&&De(xr,Ln,Qr[Ln])}),xr},Ut=function(xr,ur){return ur===void 0?Ue(xr):lt(Ue(xr),ur)},kt=function(xr){var ur=me(xr),Qr=ie.call(this,ur);return this===m&&R(Qe,ur)&&!R(we,ur)?!1:Qr||!R(this,ur)||!R(Qe,ur)||R(this,er)&&this[er][ur]?Qr:!0},rr=function(xr,ur){var Qr=le(xr),hn=me(ur);if(!(Qr===m&&R(Qe,hn)&&!R(we,hn))){var Ln=q(Qr,hn);return Ln&&R(Qe,hn)&&!(R(Qr,er)&&Qr[er][hn])&&(Ln.enumerable=!0),Ln}},Fr=function(xr){var ur=H(le(xr)),Qr=[];return sr(ur,function(hn){!R(Qe,hn)&&!R(Xe,hn)&&Qr.push(hn)}),Qr},kr=function(xr){var ur=xr===m,Qr=H(ur?we:le(xr)),hn=[];return sr(Qr,function(Ln){R(Qe,Ln)&&(!ur||R(m,Ln))&&hn.push(Qe[Ln])}),hn};if(L||(u=function(){if(this instanceof u)throw TypeError("Symbol is not a constructor");var xr=!arguments.length||arguments[0]===void 0?void 0:Oe(arguments[0]),ur=et(xr),Qr=function(hn){this===m&&Qr.call(we,hn),R(this,er)&&R(this[er],ur)&&(this[er][ur]=!1),tt(this,ur,Be(1,hn))};return T&&st&&tt(m,ur,{configurable:!0,set:Qr}),Ie(ur,xr)},ke(u[lr],"toString",function(){return I(this).tag}),ke(u,"withoutSetter",function(Nr){return Ie(et(Nr),Nr)}),Te.f=kt,Ce.f=De,Le.f=rr,fe.f=D.f=Fr,Ye.f=kr,qe.f=function(Nr){return Ie(ze(Nr),Nr)},T&&(Se(u[lr],"description",{configurable:!0,get:function(){return I(this).description}}),O||ke(m,"propertyIsEnumerable",kt,{unsafe:!0}))),$({global:!0,wrap:!0,forced:!L,sham:!L},{Symbol:u}),sr(ee(Ct),function(Nr){_t(Nr)}),$({target:yr,stat:!0,forced:!L},{for:function(Nr){var xr=Oe(Nr);if(R(ye,xr))return ye[xr];var ur=u(xr);return ye[xr]=ur,je[ur]=xr,ur},keyFor:function(xr){if(!J(xr))throw TypeError(xr+" is not a symbol");if(R(je,xr))return je[xr]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),$({target:"Object",stat:!0,forced:!L,sham:!T},{create:Ut,defineProperty:De,defineProperties:lt,getOwnPropertyDescriptor:rr}),$({target:"Object",stat:!0,forced:!L},{getOwnPropertyNames:Fr,getOwnPropertySymbols:kr}),$({target:"Object",stat:!0,forced:Y(function(){Ye.f(1)})},{getOwnPropertySymbols:function(xr){return Ye.f(K(xr))}}),C){var Dr=!L||Y(function(){var Nr=u();return C([Nr])!="[null]"||C({a:Nr})!="{}"||C(Object(Nr))!="{}"});$({target:"JSON",stat:!0,forced:Dr},{stringify:function(xr,ur,Qr){for(var hn=[xr],Ln=1,pn;arguments.length>Ln;)hn.push(arguments[Ln++]);if(pn=ur,!(!ne(ur)&&xr===void 0||J(xr)))return se(ur)||(ur=function(kn,Ki){if(typeof pn=="function"&&(Ki=pn.call(this,kn,Ki)),!J(Ki))return Ki}),hn[1]=ur,C.apply(null,hn)}})}u[lr][G]||be(u[lr],G,u[lr].valueOf),Lt(u,yr),Xe[er]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/dom-iterables.js"),M=v("./node_modules/core-js/internals/array-for-each.js"),O=v("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var T in _){var L=$[T],Y=L&&L.prototype;if(Y&&Y.forEach!==M)try{O(Y,"forEach",M)}catch(R){Y.forEach=M}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/dom-iterables.js"),M=v("./node_modules/core-js/modules/es.array.iterator.js"),O=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=v("./node_modules/core-js/internals/well-known-symbol.js"),L=T("iterator"),Y=T("toStringTag"),R=M.values;for(var se in _){var ne=$[se],J=ne&&ne.prototype;if(J){if(J[L]!==R)try{O(J,L,R)}catch(K){J[L]=R}if(J[Y]||O(J,Y,se),_[se]){for(var W in M)if(J[W]!==M[W])try{O(J,W,M[W])}catch(K){J[W]=M[W]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(g){(function(F,v){g.exports=v()})(this,function(){"use strict";function F(de){var st=typeof de;return de!==null&&(st==="object"||st==="function")}function v(de){return typeof de=="function"}var $=void 0;Array.isArray?$=Array.isArray:$=function(de){return Object.prototype.toString.call(de)==="[object Array]"};var _=$,M=0,O=void 0,T=void 0,L=function(st,tt){ee[M]=st,ee[M+1]=tt,M+=2,M===2&&(T?T(fe):Ye())};function Y(de){T=de}function R(de){L=de}var se=typeof window!="undefined"?window:void 0,ne=se||{},J=ne.MutationObserver||ne.WebKitMutationObserver,W=typeof self=="undefined"&&typeof pe!="undefined"&&{}.toString.call(pe)==="[object process]",K=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return pe.nextTick(fe)}}function me(){return typeof O!="undefined"?function(){O(fe)}:Ue()}function Oe(){var de=0,st=new J(fe),tt=document.createTextNode("");return st.observe(tt,{characterData:!0}),function(){tt.data=de=++de%2}}function Be(){var de=new MessageChannel;return de.port1.onmessage=fe,function(){return de.port2.postMessage(0)}}function Ue(){var de=setTimeout;return function(){return de(fe,1)}}var ee=new Array(1e3);function fe(){for(var de=0;de<M;de+=2){var st=ee[de],tt=ee[de+1];st(tt),ee[de]=void 0,ee[de+1]=void 0}M=0}function D(){try{var de=Function("return this")().require("vertx");return O=de.runOnLoop||de.runOnContext,me()}catch(st){return Ue()}}var Ye=void 0;W?Ye=le():J?Ye=Oe():K?Ye=Be():se===void 0?Ye=D():Ye=Ue();function Le(de,st){var tt=this,Ie=new this.constructor(be);Ie[Te]===void 0&&C(Ie);var De=tt._state;if(De){var lt=arguments[De-1];L(function(){return dt(De,Ie,lt,tt._result)})}else lr(tt,Ie,de,st);return Ie}function Ce(de){var st=this;if(de&&typeof de=="object"&&de.constructor===st)return de;var tt=new st(be);return Nt(tt,de),tt}var Te=Math.random().toString(36).substring(2);function be(){}var ke=void 0,he=1,Ee=2;function Xe(){return new TypeError("You cannot resolve a promise with itself")}function et(){return new TypeError("A promises callback cannot return that same promise.")}function ze(de,st,tt,Ie){try{de.call(st,tt,Ie)}catch(De){return De}}function qe(de,st,tt){L(function(Ie){var De=!1,lt=ze(tt,st,function(Ut){De||(De=!0,st!==Ut?Nt(Ie,Ut):er(Ie,Ut))},function(Ut){De||(De=!0,yr(Ie,Ut))},"Settle: "+(Ie._label||" unknown promise"));!De&<&&(De=!0,yr(Ie,lt))},de)}function _t(de,st){st._state===he?er(de,st._result):st._state===Ee?yr(de,st._result):lr(st,void 0,function(tt){return Nt(de,tt)},function(tt){return yr(de,tt)})}function Lt(de,st,tt){st.constructor===de.constructor&&tt===Le&&st.constructor.resolve===Ce?_t(de,st):tt===void 0?er(de,st):v(tt)?qe(de,st,tt):er(de,st)}function Nt(de,st){if(de===st)yr(de,Xe());else if(F(st)){var tt=void 0;try{tt=st.then}catch(Ie){yr(de,Ie);return}Lt(de,st,tt)}else er(de,st)}function sr(de){de._onerror&&de._onerror(de._result),G(de)}function er(de,st){de._state===ke&&(de._result=st,de._state=he,de._subscribers.length!==0&&L(G,de))}function yr(de,st){de._state===ke&&(de._state=Ee,de._result=st,L(sr,de))}function lr(de,st,tt,Ie){var De=de._subscribers,lt=De.length;de._onerror=null,De[lt]=st,De[lt+he]=tt,De[lt+Ee]=Ie,lt===0&&de._state&&L(G,de)}function G(de){var st=de._subscribers,tt=de._state;if(st.length!==0){for(var Ie=void 0,De=void 0,lt=de._result,Ut=0;Ut<st.length;Ut+=3)Ie=st[Ut],De=st[Ut+tt],Ie?dt(tt,Ie,De,lt):De(lt);de._subscribers.length=0}}function dt(de,st,tt,Ie){var De=v(tt),lt=void 0,Ut=void 0,kt=!0;if(De){try{lt=tt(Ie)}catch(rr){kt=!1,Ut=rr}if(st===lt){yr(st,et());return}}else lt=Ie;st._state!==ke||(De&&kt?Nt(st,lt):kt===!1?yr(st,Ut):de===he?er(st,lt):de===Ee&&yr(st,lt))}function I(de,st){try{st(function(Ie){Nt(de,Ie)},function(Ie){yr(de,Ie)})}catch(tt){yr(de,tt)}}var m=0;function u(){return m++}function C(de){de[Te]=m++,de._state=void 0,de._result=void 0,de._subscribers=[]}function q(){return new Error("Array Methods must be provided an Array")}var Se=function(){function de(st,tt){this._instanceConstructor=st,this.promise=new st(be),this.promise[Te]||C(this.promise),_(tt)?(this.length=tt.length,this._remaining=tt.length,this._result=new Array(this.length),this.length===0?er(this.promise,this._result):(this.length=this.length||0,this._enumerate(tt),this._remaining===0&&er(this.promise,this._result))):yr(this.promise,q())}return de.prototype._enumerate=function(tt){for(var Ie=0;this._state===ke&&Ie<tt.length;Ie++)this._eachEntry(tt[Ie],Ie)},de.prototype._eachEntry=function(tt,Ie){var De=this._instanceConstructor,lt=De.resolve;if(lt===Ce){var Ut=void 0,kt=void 0,rr=!1;try{Ut=tt.then}catch(kr){rr=!0,kt=kr}if(Ut===Le&&tt._state!==ke)this._settledAt(tt._state,Ie,tt._result);else if(typeof Ut!="function")this._remaining--,this._result[Ie]=tt;else if(De===je){var Fr=new De(be);rr?yr(Fr,kt):Lt(Fr,tt,Ut),this._willSettleAt(Fr,Ie)}else this._willSettleAt(new De(function(kr){return kr(tt)}),Ie)}else this._willSettleAt(lt(tt),Ie)},de.prototype._settledAt=function(tt,Ie,De){var lt=this.promise;lt._state===ke&&(this._remaining--,tt===Ee?yr(lt,De):this._result[Ie]=De),this._remaining===0&&er(lt,this._result)},de.prototype._willSettleAt=function(tt,Ie){var De=this;lr(tt,void 0,function(lt){return De._settledAt(he,Ie,lt)},function(lt){return De._settledAt(Ee,Ie,lt)})},de}();function H(de){return new Se(this,de).promise}function ie(de){var st=this;return _(de)?new st(function(tt,Ie){for(var De=de.length,lt=0;lt<De;lt++)st.resolve(de[lt]).then(tt,Ie)}):new st(function(tt,Ie){return Ie(new TypeError("You must pass an array to race."))})}function Qe(de){var st=this,tt=new st(be);return yr(tt,de),tt}function we(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ye(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var je=function(){function de(st){this[Te]=u(),this._result=this._state=void 0,this._subscribers=[],be!==st&&(typeof st!="function"&&we(),this instanceof de?I(this,st):ye())}return de.prototype.catch=function(tt){return this.then(null,tt)},de.prototype.finally=function(tt){var Ie=this,De=Ie.constructor;return v(tt)?Ie.then(function(lt){return De.resolve(tt()).then(function(){return lt})},function(lt){return De.resolve(tt()).then(function(){throw lt})}):Ie.then(tt,tt)},de}();je.prototype.then=Le,je.all=H,je.race=ie,je.resolve=Ce,je.reject=Qe,je._setScheduler=Y,je._setAsap=R,je._asap=L;function Ct(){var de=void 0;if(typeof x.g!="undefined")de=x.g;else if(typeof self!="undefined")de=self;else try{de=Function("return this")()}catch(Ie){throw new Error("polyfill failed because global object is unavailable in this environment")}var st=de.Promise;if(st){var tt=null;try{tt=Object.prototype.toString.call(st.resolve())}catch(Ie){}if(tt==="[object Promise]"&&!st.cast)return}de.Promise=je}return je.polyfill=Ct,je.Promise=je,je})},html2canvas:function(g){"use strict";g.exports=P},jspdf:function(g){"use strict";g.exports=Ae}},te={};function V(g){var F=te[g];if(F!==void 0)return F.exports;var v=te[g]={exports:{}};return Ne[g].call(v.exports,v,v.exports,V),v.exports}(function(){V.n=function(g){var F=g&&g.__esModule?function(){return g.default}:function(){return g};return V.d(F,{a:F}),F}})(),function(){V.d=function(g,F){for(var v in F)V.o(F,v)&&!V.o(g,v)&&Object.defineProperty(g,v,{enumerable:!0,get:F[v]})}}(),function(){V.o=function(g,F){return Object.prototype.hasOwnProperty.call(g,F)}}(),function(){V.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})}}();var S={};return function(){"use strict";V.r(S);var g=V("./src/worker.js"),F=V("./src/plugin/jspdf-plugin.js"),v=V("./src/plugin/pagebreaks.js"),$=V("./src/plugin/hyperlinks.js"),_=function M(O,T){var L=new M.Worker(T);return O?L.from(O).save():L};_.Worker=g.default,S.default=_}(),S=S.default,S}()})},67467:function(An,Tt){Tt.read=function(x,pe,Ae,P,Ne){var te,V,S=Ne*8-P-1,g=(1<<S)-1,F=g>>1,v=-7,$=Ae?Ne-1:0,_=Ae?-1:1,M=x[pe+$];for($+=_,te=M&(1<<-v)-1,M>>=-v,v+=S;v>0;te=te*256+x[pe+$],$+=_,v-=8);for(V=te&(1<<-v)-1,te>>=-v,v+=P;v>0;V=V*256+x[pe+$],$+=_,v-=8);if(te===0)te=1-F;else{if(te===g)return V?NaN:(M?-1:1)*(1/0);V=V+Math.pow(2,P),te=te-F}return(M?-1:1)*V*Math.pow(2,te-P)},Tt.write=function(x,pe,Ae,P,Ne,te){var V,S,g,F=te*8-Ne-1,v=(1<<F)-1,$=v>>1,_=Ne===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=P?0:te-1,O=P?1:-1,T=pe<0||pe===0&&1/pe<0?1:0;for(pe=Math.abs(pe),isNaN(pe)||pe===1/0?(S=isNaN(pe)?1:0,V=v):(V=Math.floor(Math.log(pe)/Math.LN2),pe*(g=Math.pow(2,-V))<1&&(V--,g*=2),V+$>=1?pe+=_/g:pe+=_*Math.pow(2,1-$),pe*g>=2&&(V++,g/=2),V+$>=v?(S=0,V=v):V+$>=1?(S=(pe*g-1)*Math.pow(2,Ne),V=V+$):(S=pe*Math.pow(2,$-1)*Math.pow(2,Ne),V=0));Ne>=8;x[Ae+M]=S&255,M+=O,S/=256,Ne-=8);for(V=V<<Ne|S,F+=Ne;F>0;x[Ae+M]=V&255,M+=O,V/=256,F-=8);x[Ae+M-O]|=T*128}},24334:function(An,Tt,x){var pe,Ae;(function(P,Ne){An.exports=Ne(P)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:this,function(P){"use strict";P=P||{};var Ne=P.Base64,te="2.6.4",V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=function(D){for(var Ye={},Le=0,Ce=D.length;Le<Ce;Le++)Ye[D.charAt(Le)]=Le;return Ye}(V),g=String.fromCharCode,F=function(D){if(D.length<2){var Ye=D.charCodeAt(0);return Ye<128?D:Ye<2048?g(192|Ye>>>6)+g(128|Ye&63):g(224|Ye>>>12&15)+g(128|Ye>>>6&63)+g(128|Ye&63)}else{var Ye=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return g(240|Ye>>>18&7)+g(128|Ye>>>12&63)+g(128|Ye>>>6&63)+g(128|Ye&63)}},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$=function(D){return D.replace(v,F)},_=function(D){var Ye=[0,2,1][D.length%3],Le=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),Ce=[V.charAt(Le>>>18),V.charAt(Le>>>12&63),Ye>=2?"=":V.charAt(Le>>>6&63),Ye>=1?"=":V.charAt(Le&63)];return Ce.join("")},M=P.btoa&&typeof P.btoa=="function"?function(D){return P.btoa(D)}:function(D){if(D.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return D.replace(/[\s\S]{1,3}/g,_)},O=function(D){return M($(String(D)))},T=function(D){return D.replace(/[+\/]/g,function(Ye){return Ye=="+"?"-":"_"}).replace(/=/g,"")},L=function(D,Ye){return Ye?T(O(D)):O(D)},Y=function(D){return L(D,!0)},R;P.Uint8Array&&(R=function(D,Ye){for(var Le="",Ce=0,Te=D.length;Ce<Te;Ce+=3){var be=D[Ce],ke=D[Ce+1],he=D[Ce+2],Ee=be<<16|ke<<8|he;Le+=V.charAt(Ee>>>18)+V.charAt(Ee>>>12&63)+(typeof ke!="undefined"?V.charAt(Ee>>>6&63):"=")+(typeof he!="undefined"?V.charAt(Ee&63):"=")}return Ye?T(Le):Le});var se=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ne=function(D){switch(D.length){case 4:var Ye=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),Le=Ye-65536;return g((Le>>>10)+55296)+g((Le&1023)+56320);case 3:return g((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return g((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},J=function(D){return D.replace(se,ne)},W=function(D){var Ye=D.length,Le=Ye%4,Ce=(Ye>0?S[D.charAt(0)]<<18:0)|(Ye>1?S[D.charAt(1)]<<12:0)|(Ye>2?S[D.charAt(2)]<<6:0)|(Ye>3?S[D.charAt(3)]:0),Te=[g(Ce>>>16),g(Ce>>>8&255),g(Ce&255)];return Te.length-=[0,0,2,1][Le],Te.join("")},K=P.atob&&typeof P.atob=="function"?function(D){return P.atob(D)}:function(D){return D.replace(/\S{1,4}/g,W)},le=function(D){return K(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},me=function(D){return J(K(D))},Oe=function(D){return String(D).replace(/[-_]/g,function(Ye){return Ye=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Be=function(D){return me(Oe(D))},Ue;P.Uint8Array&&(Ue=function(D){return Uint8Array.from(le(Oe(D)),function(Ye){return Ye.charCodeAt(0)})});var ee=function(){var D=P.Base64;return P.Base64=Ne,D};if(P.Base64={VERSION:te,atob:le,btoa:M,fromBase64:Be,toBase64:L,utob:$,encode:L,encodeURI:Y,btou:J,decode:Be,noConflict:ee,fromUint8Array:R,toUint8Array:Ue},typeof Object.defineProperty=="function"){var fe=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};P.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",fe(function(){return Be(this)})),Object.defineProperty(String.prototype,"toBase64",fe(function(D){return L(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",fe(function(){return L(this,!0)}))}}return P.Meteor&&(Base64=P.Base64),An.exports?An.exports.Base64=P.Base64:(pe=[],Ae=function(){return P.Base64}.apply(Tt,pe),Ae!==void 0&&(An.exports=Ae)),{Base64:P.Base64}})},53307:function(An,Tt,x){"use strict";x.r(Tt),x.d(Tt,{AcroForm:function(){return oA},AcroFormAppearance:function(){return ei},AcroFormButton:function(){return Ta},AcroFormCheckBox:function(){return Lo},AcroFormChoiceField:function(){return pi},AcroFormComboBox:function(){return ea},AcroFormEditBox:function(){return Yi},AcroFormListBox:function(){return Xa},AcroFormPasswordField:function(){return Ua},AcroFormPushButton:function(){return oo},AcroFormRadioButton:function(){return Fa},AcroFormTextField:function(){return eo},GState:function(){return Kh},ShadingPattern:function(){return Hd},TilingPattern:function(){return jd},default:function(){return da},jsPDF:function(){return da}});var pe=x(76190),Ae={},P=function(n,o,a,l,A){var p=new Worker(Ae[o]||(Ae[o]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return p.onmessage=function(N){var E=N.data,U=E.$e$;if(U){var Z=new Error(U[0]);Z.code=U[1],Z.stack=U[2],A(Z,null)}else A(null,E)},p.postMessage(a,l),p},Ne=Uint8Array,te=Uint16Array,V=Int32Array,S=new Ne([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),g=new Ne([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),F=new Ne([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=function(n,o){for(var a=new te(31),l=0;l<31;++l)a[l]=o+=1<<n[l-1];for(var A=new V(a[30]),l=1;l<30;++l)for(var p=a[l];p<a[l+1];++p)A[p]=p-a[l]<<5|l;return{b:a,r:A}},$=v(S,2),_=$.b,M=$.r;_[28]=258,M[258]=28;for(var O=v(g,0),T=O.b,L=O.r,Y=new te(32768),R=0;R<32768;++R){var se=(R&43690)>>1|(R&21845)<<1;se=(se&52428)>>2|(se&13107)<<2,se=(se&61680)>>4|(se&3855)<<4,Y[R]=((se&65280)>>8|(se&255)<<8)>>1}for(var ne=function(n,o,a){for(var l=n.length,A=0,p=new te(o);A<l;++A)n[A]&&++p[n[A]-1];var N=new te(o);for(A=1;A<o;++A)N[A]=N[A-1]+p[A-1]<<1;var E;if(a){E=new te(1<<o);var U=15-o;for(A=0;A<l;++A)if(n[A])for(var Z=A<<4|n[A],oe=o-n[A],Re=N[n[A]-1]++<<oe,$e=Re|(1<<oe)-1;Re<=$e;++Re)E[Y[Re]>>U]=Z}else for(E=new te(l),A=0;A<l;++A)n[A]&&(E[A]=Y[N[n[A]-1]++]>>15-n[A]);return E},J=new Ne(288),R=0;R<144;++R)J[R]=8;for(var R=144;R<256;++R)J[R]=9;for(var R=256;R<280;++R)J[R]=7;for(var R=280;R<288;++R)J[R]=8;for(var W=new Ne(32),R=0;R<32;++R)W[R]=5;var K=ne(J,9,0),le=null,me=ne(W,5,0),Oe=null,Be=function(n){for(var o=n[0],a=1;a<n.length;++a)n[a]>o&&(o=n[a]);return o},Ue=function(n,o,a){var l=o/8|0;return(n[l]|n[l+1]<<8)>>(o&7)&a},ee=function(n,o){var a=o/8|0;return(n[a]|n[a+1]<<8|n[a+2]<<16)>>(o&7)},fe=function(n){return(n+7)/8|0},D=function(n,o,a){return(o==null||o<0)&&(o=0),(a==null||a>n.length)&&(a=n.length),new Ne(n.subarray(o,a))},Ye={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Le=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ce=function(n,o,a){var l=new Error(o||Le[n]);if(l.code=n,Error.captureStackTrace&&Error.captureStackTrace(l,Ce),!a)throw l;return l},Te=function(n,o,a,l){var A=n.length,p=l?l.length:0;if(!A||o.f&&!o.l)return a||new Ne(0);var N=!a,E=N||o.i!=2,U=o.i;N&&(a=new Ne(A*3));var Z=function(Hn){var gi=a.length;if(Hn>gi){var Ci=new Ne(Math.max(gi*2,Hn));Ci.set(a),a=Ci}},oe=o.f||0,Re=o.p||0,$e=o.b||0,ae=o.l,mt=o.d,ut=o.m,yt=o.n,ot=A*8;do{if(!ae){oe=Ue(n,Re,1);var Gt=Ue(n,Re+1,3);if(Re+=3,Gt)if(Gt==1)ae=le,mt=Oe,ut=9,yt=5;else if(Gt==2){var rn=Ue(n,Re,31)+257,Wr=Ue(n,Re+10,15)+4,ar=rn+Ue(n,Re+5,31)+1;Re+=14;for(var Mt=new Ne(ar),Cr=new Ne(19),it=0;it<Wr;++it)Cr[F[it]]=Ue(n,Re+it*3,7);Re+=Wr*3;for(var wt=Be(Cr),Wt=(1<<wt)-1,Ht=ne(Cr,wt,1),it=0;it<ar;){var Tr=Ht[Ue(n,Re,Wt)];Re+=Tr&15;var Rt=Tr>>4;if(Rt<16)Mt[it++]=Rt;else{var Zr=0,Jr=0;for(Rt==16?(Jr=3+Ue(n,Re,3),Re+=2,Zr=Mt[it-1]):Rt==17?(Jr=3+Ue(n,Re,7),Re+=3):Rt==18&&(Jr=11+Ue(n,Re,127),Re+=7);Jr--;)Mt[it++]=Zr}}var Lr=Mt.subarray(0,rn),Gr=Mt.subarray(rn);ut=Be(Lr),yt=Be(Gr),ae=ne(Lr,ut,1),mt=ne(Gr,yt,1)}else Ce(1);else{var Rt=fe(Re)+4,Ft=n[Rt-4]|n[Rt-3]<<8,Mr=Rt+Ft;if(Mr>A){U&&Ce(0);break}E&&Z($e+Ft),a.set(n.subarray(Rt,Mr),$e),o.b=$e+=Ft,o.p=Re=Mr*8,o.f=oe;continue}if(Re>ot){U&&Ce(0);break}}E&&Z($e+131072);for(var $n=(1<<ut)-1,Bn=(1<<yt)-1,rt=Re;;rt=Re){var Zr=ae[ee(n,Re)&$n],It=Zr>>4;if(Re+=Zr&15,Re>ot){U&&Ce(0);break}if(Zr||Ce(2),It<256)a[$e++]=It;else if(It==256){rt=Re,ae=null;break}else{var Ot=It-254;if(It>264){var it=It-257,Jt=S[it];Ot=Ue(n,Re,(1<<Jt)-1)+_[it],Re+=Jt}var fr=mt[ee(n,Re)&Bn],Er=fr>>4;fr||Ce(3),Re+=fr&15;var Gr=T[Er];if(Er>3){var Jt=g[Er];Gr+=ee(n,Re)&(1<<Jt)-1,Re+=Jt}if(Re>ot){U&&Ce(0);break}E&&Z($e+131072);var Kr=$e+Ot;if($e<Gr){var $r=p-Gr,mn=Math.min(Gr,Kr);for($r+$e<0&&Ce(3);$e<mn;++$e)a[$e]=l[$r+$e]}for(;$e<Kr;++$e)a[$e]=a[$e-Gr]}}o.l=ae,o.p=rt,o.b=$e,o.f=oe,ae&&(oe=1,o.m=ut,o.d=mt,o.n=yt)}while(!oe);return $e!=a.length&&N?D(a,0,$e):a.subarray(0,$e)},be=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8},ke=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8,n[l+2]|=a>>16},he=function(n,o){for(var a=[],l=0;l<n.length;++l)n[l]&&a.push({s:l,f:n[l]});var A=a.length,p=a.slice();if(!A)return{t:Lt,l:0};if(A==1){var N=new Ne(a[0].s+1);return N[a[0].s]=1,{t:N,l:1}}a.sort(function(Mr,rn){return Mr.f-rn.f}),a.push({s:-1,f:25001});var E=a[0],U=a[1],Z=0,oe=1,Re=2;for(a[0]={s:-1,f:E.f+U.f,l:E,r:U};oe!=A-1;)E=a[a[Z].f<a[Re].f?Z++:Re++],U=a[Z!=oe&&a[Z].f<a[Re].f?Z++:Re++],a[oe++]={s:-1,f:E.f+U.f,l:E,r:U};for(var $e=p[0].s,l=1;l<A;++l)p[l].s>$e&&($e=p[l].s);var ae=new te($e+1),mt=Ee(a[oe-1],ae,0);if(mt>o){var l=0,ut=0,yt=mt-o,ot=1<<yt;for(p.sort(function(rn,Wr){return ae[Wr.s]-ae[rn.s]||rn.f-Wr.f});l<A;++l){var Gt=p[l].s;if(ae[Gt]>o)ut+=ot-(1<<mt-ae[Gt]),ae[Gt]=o;else break}for(ut>>=yt;ut>0;){var Rt=p[l].s;ae[Rt]<o?ut-=1<<o-ae[Rt]++-1:++l}for(;l>=0&&ut;--l){var Ft=p[l].s;ae[Ft]==o&&(--ae[Ft],++ut)}mt=o}return{t:new Ne(ae),l:mt}},Ee=function(n,o,a){return n.s==-1?Math.max(Ee(n.l,o,a+1),Ee(n.r,o,a+1)):o[n.s]=a},Xe=function(n){for(var o=n.length;o&&!n[--o];);for(var a=new te(++o),l=0,A=n[0],p=1,N=function(U){a[l++]=U},E=1;E<=o;++E)if(n[E]==A&&E!=o)++p;else{if(!A&&p>2){for(;p>138;p-=138)N(32754);p>2&&(N(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(N(A),--p;p>6;p-=6)N(8304);p>2&&(N(p-3<<5|8208),p=0)}for(;p--;)N(A);p=1,A=n[E]}return{c:a.subarray(0,l),n:o}},et=function(n,o){for(var a=0,l=0;l<o.length;++l)a+=n[l]*o[l];return a},ze=function(n,o,a){var l=a.length,A=fe(o+2);n[A]=l&255,n[A+1]=l>>8,n[A+2]=n[A]^255,n[A+3]=n[A+1]^255;for(var p=0;p<l;++p)n[A+p+4]=a[p];return(A+4+l)*8},qe=function(n,o,a,l,A,p,N,E,U,Z,oe){be(o,oe++,a),++A[256];for(var Re=he(A,15),$e=Re.t,ae=Re.l,mt=he(p,15),ut=mt.t,yt=mt.l,ot=Xe($e),Gt=ot.c,Rt=ot.n,Ft=Xe(ut),Mr=Ft.c,rn=Ft.n,Wr=new te(19),ar=0;ar<Gt.length;++ar)++Wr[Gt[ar]&31];for(var ar=0;ar<Mr.length;++ar)++Wr[Mr[ar]&31];for(var Mt=he(Wr,7),Cr=Mt.t,it=Mt.l,wt=19;wt>4&&!Cr[F[wt-1]];--wt);var Wt=Z+5<<3,Ht=et(A,J)+et(p,W)+N,Tr=et(A,$e)+et(p,ut)+N+14+3*wt+et(Wr,Cr)+2*Wr[16]+3*Wr[17]+7*Wr[18];if(U>=0&&Wt<=Ht&&Wt<=Tr)return ze(o,oe,n.subarray(U,U+Z));var Zr,Jr,Lr,Gr;if(be(o,oe,1+(Tr<Ht)),oe+=2,Tr<Ht){Zr=ne($e,ae,0),Jr=$e,Lr=ne(ut,yt,0),Gr=ut;var $n=ne(Cr,it,0);be(o,oe,Rt-257),be(o,oe+5,rn-1),be(o,oe+10,wt-4),oe+=14;for(var ar=0;ar<wt;++ar)be(o,oe+3*ar,Cr[F[ar]]);oe+=3*wt;for(var Bn=[Gt,Mr],rt=0;rt<2;++rt)for(var It=Bn[rt],ar=0;ar<It.length;++ar){var Ot=It[ar]&31;be(o,oe,$n[Ot]),oe+=Cr[Ot],Ot>15&&(be(o,oe,It[ar]>>5&127),oe+=It[ar]>>12)}}else Zr=K,Jr=J,Lr=me,Gr=W;for(var ar=0;ar<E;++ar){var Jt=l[ar];if(Jt>255){var Ot=Jt>>18&31;ke(o,oe,Zr[Ot+257]),oe+=Jr[Ot+257],Ot>7&&(be(o,oe,Jt>>23&31),oe+=S[Ot]);var fr=Jt&31;ke(o,oe,Lr[fr]),oe+=Gr[fr],fr>3&&(ke(o,oe,Jt>>5&8191),oe+=g[fr])}else ke(o,oe,Zr[Jt]),oe+=Jr[Jt]}return ke(o,oe,Zr[256]),oe+Jr[256]},_t=new V([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Lt=new Ne(0),Nt=function(n,o,a,l,A,p){var N=p.z||n.length,E=new Ne(l+N+5*(1+Math.ceil(N/7e3))+A),U=E.subarray(l,E.length-A),Z=p.l,oe=(p.r||0)&7;if(o){oe&&(U[0]=p.r>>3);for(var Re=_t[o-1],$e=Re>>13,ae=Re&8191,mt=(1<<a)-1,ut=p.p||new te(32768),yt=p.h||new te(mt+1),ot=Math.ceil(a/3),Gt=2*ot,Rt=function(Sa){return(n[Sa]^n[Sa+1]<<ot^n[Sa+2]<<Gt)&mt},Ft=new V(25e3),Mr=new te(288),rn=new te(32),Wr=0,ar=0,Mt=p.i||0,Cr=0,it=p.w||0,wt=0;Mt+2<N;++Mt){var Wt=Rt(Mt),Ht=Mt&32767,Tr=yt[Wt];if(ut[Ht]=Tr,yt[Wt]=Ht,it<=Mt){var Zr=N-Mt;if((Wr>7e3||Cr>24576)&&(Zr>423||!Z)){oe=qe(n,U,0,Ft,Mr,rn,ar,Cr,wt,Mt-wt,oe),Cr=Wr=ar=0,wt=Mt;for(var Jr=0;Jr<286;++Jr)Mr[Jr]=0;for(var Jr=0;Jr<30;++Jr)rn[Jr]=0}var Lr=2,Gr=0,$n=ae,Bn=Ht-Tr&32767;if(Zr>2&&Wt==Rt(Mt-Bn))for(var rt=Math.min($e,Zr)-1,It=Math.min(32767,Mt),Ot=Math.min(258,Zr);Bn<=It&&--$n&&Ht!=Tr;){if(n[Mt+Lr]==n[Mt+Lr-Bn]){for(var Jt=0;Jt<Ot&&n[Mt+Jt]==n[Mt+Jt-Bn];++Jt);if(Jt>Lr){if(Lr=Jt,Gr=Bn,Jt>rt)break;for(var fr=Math.min(Bn,Jt-2),Er=0,Jr=0;Jr<fr;++Jr){var Kr=Mt-Bn+Jr&32767,$r=ut[Kr],mn=Kr-$r&32767;mn>Er&&(Er=mn,Tr=Kr)}}}Ht=Tr,Tr=ut[Ht],Bn+=Ht-Tr&32767}if(Gr){Ft[Cr++]=268435456|M[Lr]<<18|L[Gr];var Hn=M[Lr]&31,gi=L[Gr]&31;ar+=S[Hn]+g[gi],++Mr[257+Hn],++rn[gi],it=Mt+Lr,++Wr}else Ft[Cr++]=n[Mt],++Mr[n[Mt]]}}for(Mt=Math.max(Mt,it);Mt<N;++Mt)Ft[Cr++]=n[Mt],++Mr[n[Mt]];oe=qe(n,U,Z,Ft,Mr,rn,ar,Cr,wt,Mt-wt,oe),Z||(p.r=oe&7|U[oe/8|0]<<3,oe-=7,p.h=yt,p.p=ut,p.i=Mt,p.w=it)}else{for(var Mt=p.w||0;Mt<N+Z;Mt+=65535){var Ci=Mt+65535;Ci>=N&&(U[oe/8|0]=Z,Ci=N),oe=ze(U,oe+1,n.subarray(Mt,Ci))}p.i=N}return D(E,0,l+fe(oe)+A)},sr=null,er=function(){var n=-1;return{p:function(o){for(var a=n,l=0;l<o.length;++l)a=sr[a&255^o[l]]^a>>>8;n=a},d:function(){return~n}}},yr=function(){var n=1,o=0;return{p:function(a){for(var l=n,A=o,p=a.length|0,N=0;N!=p;){for(var E=Math.min(N+2655,p);N<E;++N)A+=l+=a[N];l=(l&65535)+15*(l>>16),A=(A&65535)+15*(A>>16)}n=l,o=A},d:function(){return n%=65521,o%=65521,(n&255)<<24|(n&65280)<<8|(o&255)<<8|o>>8}}},lr=function(n,o,a,l,A){if(!A&&(A={l:1},o.dictionary)){var p=o.dictionary.subarray(-32768),N=new Ne(p.length+n.length);N.set(p),N.set(n,p.length),n=N,A.w=p.length}return Nt(n,o.level==null?6:o.level,o.mem==null?A.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+o.mem,a,l,A)},G=function(n,o){var a={};for(var l in n)a[l]=n[l];for(var l in o)a[l]=o[l];return a},dt=function(n,o,a){for(var l=n(),A=n.toString(),p=A.slice(A.indexOf("[")+1,A.lastIndexOf("]")).replace(/\s+/g,"").split(","),N=0;N<l.length;++N){var E=l[N],U=p[N];if(typeof E=="function"){o+=";"+U+"=";var Z=E.toString();if(E.prototype)if(Z.indexOf("[native code]")!=-1){var oe=Z.indexOf(" ",8)+1;o+=Z.slice(oe,Z.indexOf("(",oe))}else{o+=Z;for(var Re in E.prototype)o+=";"+U+".prototype."+Re+"="+E.prototype[Re].toString()}else o+=Z}else a[U]=E}return o},I=null,m=function(n){var o=[];for(var a in n)n[a].buffer&&o.push((n[a]=new n[a].constructor(n[a])).buffer);return o},u=function(n,o,a,l){if(!I[a]){for(var A="",p={},N=n.length-1,E=0;E<N;++E)A=dt(n[E],A,p);I[a]={c:dt(n[N],A,p),e:p}}var U=G({},I[a].e);return P(I[a].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",a,U,m(U),l)},C=function(){return[Ne,te,V,S,g,F,_,T,le,Oe,Y,Le,ne,Be,Ue,ee,fe,D,Ce,Te,kn,we,ye]},q=function(){return[Ne,te,V,S,g,F,M,L,K,J,me,W,Y,_t,Lt,ne,be,ke,he,Ee,Xe,et,ze,qe,fe,D,Nt,lr,Qr,we]},Se=function(){return[lt,rr,De,er,sr]},H=function(){return[Ut,kt]},ie=function(){return[Fr,De,yr]},Qe=function(){return[kr]},we=function(n){return postMessage(n,[n.buffer])},ye=function(n){return n&&{out:n.size&&new Ne(n.size),dictionary:n.dictionary}},je=function(n,o,a,l,A,p){var N=u(a,l,A,function(E,U){N.terminate(),p(E,U)});return N.postMessage([n,o],o.consume?[n.buffer]:[]),function(){N.terminate()}},Ct=function(n){return n.ondata=function(o,a){return postMessage([o,a],[o.buffer])},function(o){o.data.length?(n.push(o.data[0],o.data[1]),postMessage([o.data[0].length])):n.flush()}},de=function(n,o,a,l,A,p,N){var E,U=u(n,l,A,function(Z,oe){Z?(U.terminate(),o.ondata.call(o,Z)):Array.isArray(oe)?oe.length==1?(o.queuedSize-=oe[0],o.ondrain&&o.ondrain(oe[0])):(oe[1]&&U.terminate(),o.ondata.call(o,Z,oe[0],oe[1])):N(oe)});U.postMessage(a),o.queuedSize=0,o.push=function(Z,oe){o.ondata||Ce(5),E&&o.ondata(Ce(4,0,1),null,!!oe),o.queuedSize+=Z.length,U.postMessage([Z,E=oe],[Z.buffer])},o.terminate=function(){U.terminate()},p&&(o.flush=function(){U.postMessage([])})},st=function(n,o){return n[o]|n[o+1]<<8},tt=function(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16|n[o+3]<<24)>>>0},Ie=function(n,o){return tt(n,o)+tt(n,o+4)*4294967296},De=function(n,o,a){for(;a;++o)n[o]=a,a>>>=8},lt=function(n,o){var a=o.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=o.level<2?4:o.level==9?2:0,n[9]=3,o.mtime!=0&&De(n,4,Math.floor(new Date(o.mtime||Date.now())/1e3)),a){n[3]=8;for(var l=0;l<=a.length;++l)n[l+10]=a.charCodeAt(l)}},Ut=function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&Ce(6,"invalid gzip data");var o=n[3],a=10;o&4&&(a+=(n[10]|n[11]<<8)+2);for(var l=(o>>3&1)+(o>>4&1);l>0;l-=!n[a++]);return a+(o&2)},kt=function(n){var o=n.length;return(n[o-4]|n[o-3]<<8|n[o-2]<<16|n[o-1]<<24)>>>0},rr=function(n){return 10+(n.filename?n.filename.length+1:0)},Fr=function(n,o){var a=o.level,l=a==0?0:a<6?1:a==9?3:2;if(n[0]=120,n[1]=l<<6|(o.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,o.dictionary){var A=yr();A.p(o.dictionary),De(n,2,A.d())}},kr=function(n,o){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&Ce(6,"invalid zlib data"),(n[1]>>5&1)==+!o&&Ce(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function Dr(n,o){return typeof n=="function"&&(o=n,n={}),this.ondata=o,n}var Nr=null,xr=null;function ur(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[q],function(l){return we(Qr(l.data[0],l.data[1]))},0,a)}function Qr(n,o){return lr(n,o||{},0,0)}var hn=null,Ln=null;function pn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C],function(l){return we(kn(l.data[0],ye(l.data[1])))},1,a)}function kn(n,o){return Te(n,{i:2},o&&o.out,o&&o.dictionary)}var Ki=null,hr=null;function Wn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[q,Se,function(){return[Hi]}],function(l){return we(Hi(l.data[0],l.data[1]))},2,a)}function Hi(n,o){o||(o={});var a=er(),l=n.length;a.p(n);var A=lr(n,o,rr(o),8),p=A.length;return lt(A,o),De(A,p-8,a.d()),De(A,p-4,l),A}var ui=null,$i=null;function Ri(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C,H,function(){return[Zi]}],function(l){return we(Zi(l.data[0],l.data[1]))},3,a)}function Zi(n,o){var a=Ut(n);return a+8>n.length&&Ce(6,"invalid gzip data"),Te(n.subarray(a,-8),{i:2},o&&o.out||new Ne(kt(n)),o&&o.dictionary)}var Za=null,_i=null;function Yn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[q,ie,function(){return[ii]}],function(l){return we(ii(l.data[0],l.data[1]))},4,a)}function ii(n,o){o||(o={});var a=yr();a.p(n);var l=lr(n,o,o.dictionary?6:2,4);return Fr(l,o),De(l,l.length-4,a.d()),l}var vi=null,ge=null;function Me(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C,Qe,function(){return[Fe]}],function(l){return we(Fe(l.data[0],ye(l.data[1])))},5,a)}function Fe(n,o){return Te(n.subarray(kr(n,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var Ge=null,Pt=null;function Dt(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),n[0]==31&&n[1]==139&&n[2]==8?Ri(n,o,a):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?pn(n,o,a):Me(n,o,a)}function _r(n,o){return n[0]==31&&n[1]==139&&n[2]==8?Zi(n,o):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?kn(n,o):Fe(n,o)}var nr=function(n,o,a,l){for(var A in n){var p=n[A],N=o+A,E=l;Array.isArray(p)&&(E=G(l,p[1]),p=p[0]),p instanceof Ne?a[N]=[p,E]:(a[N+="/"]=[new Ne(0),E],nr(p,N,a,l))}},Or=typeof TextEncoder!="undefined"&&new TextEncoder,Hr=typeof TextDecoder!="undefined"&&new TextDecoder,an=0;try{Hr.decode(Lt,{stream:!0}),an=1}catch(n){}var jr=function(n){for(var o="",a=0;;){var l=n[a++],A=(l>127)+(l>223)+(l>239);if(a+A>n.length)return{s:o,r:D(n,a-1)};A?A==3?(l=((l&15)<<18|(n[a++]&63)<<12|(n[a++]&63)<<6|n[a++]&63)-65536,o+=String.fromCharCode(55296|l>>10,56320|l&1023)):A&1?o+=String.fromCharCode((l&31)<<6|n[a++]&63):o+=String.fromCharCode((l&15)<<12|(n[a++]&63)<<6|n[a++]&63):o+=String.fromCharCode(l)}},Rr=null,en=null;function yn(n,o){if(o){for(var a=new Ne(n.length),l=0;l<n.length;++l)a[l]=n.charCodeAt(l);return a}if(Or)return Or.encode(n);for(var A=n.length,p=new Ne(n.length+(n.length>>1)),N=0,E=function(oe){p[N++]=oe},l=0;l<A;++l){if(N+5>p.length){var U=new Ne(N+8+(A-l<<1));U.set(p),p=U}var Z=n.charCodeAt(l);Z<128||o?E(Z):Z<2048?(E(192|Z>>6),E(128|Z&63)):Z>55295&&Z<57344?(Z=65536+(Z&1047552)|n.charCodeAt(++l)&1023,E(240|Z>>18),E(128|Z>>12&63),E(128|Z>>6&63),E(128|Z&63)):(E(224|Z>>12),E(128|Z>>6&63),E(128|Z&63))}return D(p,0,N)}function on(n,o){if(o){for(var a="",l=0;l<n.length;l+=16384)a+=String.fromCharCode.apply(null,n.subarray(l,l+16384));return a}else{if(Hr)return Hr.decode(n);var A=jr(n),p=A.s,a=A.r;return a.length&&Ce(8),p}}var Dn=function(n){return n==1?3:n<6?2:n==9?1:0},Rn=function(n,o){return o+30+st(n,o+26)+st(n,o+28)},di=function(n,o,a){var l=st(n,o+28),A=on(n.subarray(o+46,o+46+l),!(st(n,o+8)&2048)),p=o+46+l,N=tt(n,o+20),E=a&&N==4294967295?Nn(n,p):[N,tt(n,o+24),tt(n,o+42)],U=E[0],Z=E[1],oe=E[2];return[st(n,o+10),U,Z,A,p+st(n,o+30)+st(n,o+32),oe]},Nn=function(n,o){for(;st(n,o)!=1;o+=4+st(n,o+2));return[Ie(n,o+12),Ie(n,o+4),Ie(n,o+20)]},Gn=function(n){var o=0;if(n)for(var a in n){var l=n[a].length;l>65535&&Ce(9),o+=l+4}return o},Vt=function(n,o,a,l,A,p,N,E){var U=l.length,Z=a.extra,oe=E&&E.length,Re=Gn(Z);De(n,o,N!=null?33639248:67324752),o+=4,N!=null&&(n[o++]=20,n[o++]=a.os),n[o]=20,o+=2,n[o++]=a.flag<<1|(p<0&&8),n[o++]=A&&8,n[o++]=a.compression&255,n[o++]=a.compression>>8;var $e=new Date(a.mtime==null?Date.now():a.mtime),ae=$e.getFullYear()-1980;if((ae<0||ae>119)&&Ce(10),De(n,o,ae<<25|$e.getMonth()+1<<21|$e.getDate()<<16|$e.getHours()<<11|$e.getMinutes()<<5|$e.getSeconds()>>1),o+=4,p!=-1&&(De(n,o,a.crc),De(n,o+4,p<0?-p-2:p),De(n,o+8,a.size)),De(n,o+12,U),De(n,o+14,Re),o+=16,N!=null&&(De(n,o,oe),De(n,o+6,a.attrs),De(n,o+10,N),o+=14),n.set(l,o),o+=U,Re)for(var mt in Z){var ut=Z[mt],yt=ut.length;De(n,o,+mt),De(n,o+2,yt),n.set(ut,o+4),o+=4+yt}return oe&&(n.set(E,o),o+=oe),o},Xt=function(n,o,a,l,A){De(n,o,101010256),De(n,o+8,a),De(n,o+10,a),De(n,o+12,l),De(n,o+16,A)},Yt=null,tr=null,jt=null,or=null;function cr(n,o,a){a||(a=o,o={}),typeof a!="function"&&Ce(7);var l={};nr(n,"",l,o);var A=Object.keys(l),p=A.length,N=0,E=0,U=p,Z=new Array(p),oe=[],Re=function(){for(var yt=0;yt<oe.length;++yt)oe[yt]()},$e=function(yt,ot){Si(function(){a(yt,ot)})};Si(function(){$e=a});var ae=function(){var yt=new Ne(E+22),ot=N,Gt=E-N;E=0;for(var Rt=0;Rt<U;++Rt){var Ft=Z[Rt];try{var Mr=Ft.c.length;Vt(yt,E,Ft,Ft.f,Ft.u,Mr);var rn=30+Ft.f.length+Gn(Ft.extra),Wr=E+rn;yt.set(Ft.c,Wr),Vt(yt,N,Ft,Ft.f,Ft.u,Mr,E,Ft.m),N+=16+rn+(Ft.m?Ft.m.length:0),E=Wr+Mr}catch(ar){return $e(ar,null)}}Xt(yt,N,Z.length,Gt,ot),$e(null,yt)};p||ae();for(var mt=function(yt){var ot=A[yt],Gt=l[ot],Rt=Gt[0],Ft=Gt[1],Mr=er(),rn=Rt.length;Mr.p(Rt);var Wr=yn(ot),ar=Wr.length,Mt=Ft.comment,Cr=Mt&&yn(Mt),it=Cr&&Cr.length,wt=Gn(Ft.extra),Wt=Ft.level==0?0:8,Ht=function(Tr,Zr){if(Tr)Re(),$e(Tr,null);else{var Jr=Zr.length;Z[yt]=G(Ft,{size:rn,crc:Mr.d(),c:Zr,f:Wr,m:Cr,u:ar!=ot.length||Cr&&Mt.length!=it,compression:Wt}),N+=30+ar+wt+Jr,E+=76+2*(ar+wt)+(it||0)+Jr,--p||ae()}};if(ar>65535&&Ht(Ce(11,0,1),null),!Wt)Ht(null,Rt);else if(rn<16e4)try{Ht(null,Qr(Rt,Ft))}catch(Tr){Ht(Tr,null)}else oe.push(ur(Rt,Ft,Ht))},ut=0;ut<U;++ut)mt(ut);return Re}function Pr(n,o){o||(o={});var a={},l=[];nr(n,"",a,o);var A=0,p=0;for(var N in a){var E=a[N],U=E[0],Z=E[1],oe=Z.level==0?0:8,Re=yn(N),$e=Re.length,ae=Z.comment,mt=ae&&yn(ae),ut=mt&&mt.length,yt=Gn(Z.extra);$e>65535&&Ce(11);var ot=oe?Qr(U,Z):U,Gt=ot.length,Rt=er();Rt.p(U),l.push(G(Z,{size:U.length,crc:Rt.d(),c:ot,f:Re,m:mt,u:$e!=N.length||mt&&ae.length!=ut,o:A,compression:oe})),A+=30+$e+yt+Gt,p+=76+2*($e+yt)+(ut||0)+Gt}for(var Ft=new Ne(p+22),Mr=A,rn=p-A,Wr=0;Wr<l.length;++Wr){var Re=l[Wr];Vt(Ft,Re.o,Re,Re.f,Re.u,Re.c.length);var ar=30+Re.f.length+Gn(Re.extra);Ft.set(Re.c,Re.o+ar),Vt(Ft,A,Re,Re.f,Re.u,Re.c.length,Re.o,Re.m),A+=16+ar+(Re.m?Re.m.length:0)}return Xt(Ft,A,l.length,rn,Mr),Ft}var bn=null,xn=null,ci=null,ri=null,Si=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function qn(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={},N=function(yt,ot){Si(function(){a(yt,ot)})};Si(function(){N=a});for(var E=n.length-22;tt(n,E)!=101010256;--E)if(!E||n.length-E>65558)return N(Ce(13,0,1),null),A;var U=st(n,E+8);if(U){var Z=U,oe=tt(n,E+16),Re=oe==4294967295||Z==65535;if(Re){var $e=tt(n,E-12);Re=tt(n,$e)==101075792,Re&&(Z=U=tt(n,$e+32),oe=tt(n,$e+48))}for(var ae=o&&o.filter,mt=function(yt){var ot=di(n,oe,Re),Gt=ot[0],Rt=ot[1],Ft=ot[2],Mr=ot[3],rn=ot[4],Wr=ot[5],ar=Rn(n,Wr);oe=rn;var Mt=function(it,wt){it?(A(),N(it,null)):(wt&&(p[Mr]=wt),--U||N(null,p))};if(!ae||ae({name:Mr,size:Rt,originalSize:Ft,compression:Gt}))if(!Gt)Mt(null,D(n,ar,ar+Rt));else if(Gt==8){var Cr=n.subarray(ar,ar+Rt);if(Ft<524288||Rt>.8*Ft)try{Mt(null,kn(Cr,{out:new Ne(Ft)}))}catch(it){Mt(it,null)}else l.push(pn(Cr,{size:Ft},Mt))}else Mt(Ce(14,"unknown compression type "+Gt,1),null);else Mt(null,null)},ut=0;ut<Z;++ut)mt(ut)}else N(null,{});return A}function jn(n,o){for(var a={},l=n.length-22;tt(n,l)!=101010256;--l)(!l||n.length-l>65558)&&Ce(13);var A=st(n,l+8);if(!A)return{};var p=tt(n,l+16),N=p==4294967295||A==65535;if(N){var E=tt(n,l-12);N=tt(n,E)==101075792,N&&(A=tt(n,E+32),p=tt(n,E+48))}for(var U=o&&o.filter,Z=0;Z<A;++Z){var oe=di(n,p,N),Re=oe[0],$e=oe[1],ae=oe[2],mt=oe[3],ut=oe[4],yt=oe[5],ot=Rn(n,yt);p=ut,(!U||U({name:mt,size:$e,originalSize:ae,compression:Re}))&&(Re?Re==8?a[mt]=kn(n.subarray(ot,ot+$e),{out:new Ne(ae)}):Ce(14,"unknown compression type "+Re):a[mt]=D(n,ot,ot+$e))}return a}var yi=x(42978);function bi(n,o="utf8"){return new TextDecoder(o).decode(n)}const wi=new TextEncoder;function Ai(n){return wi.encode(n)}const xi=1024*8,Xi=(()=>{const n=new Uint8Array(4),o=new Uint32Array(n.buffer);return!((o[0]=1)&n[0])})(),ti={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Pi{constructor(o=xi,a={}){zs(this,"buffer");zs(this,"byteLength");zs(this,"byteOffset");zs(this,"length");zs(this,"offset");zs(this,"lastWrittenByte");zs(this,"littleEndian");zs(this,"_data");zs(this,"_mark");zs(this,"_marks");let l=!1;typeof o=="number"?o=new ArrayBuffer(o):(l=!0,this.lastWrittenByte=o.byteLength);const A=a.offset?a.offset>>>0:0,p=o.byteLength-A;let N=A;(ArrayBuffer.isView(o)||o instanceof Pi)&&(o.byteLength!==o.buffer.byteLength&&(N=o.byteOffset+A),o=o.buffer),l?this.lastWrittenByte=p:this.lastWrittenByte=0,this.buffer=o,this.length=p,this.byteLength=p,this.byteOffset=N,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,N,p),this._mark=0,this._marks=[]}available(o=1){return this.offset+o<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(o=1){return this.offset+=o,this}back(o=1){return this.offset-=o,this}seek(o){return this.offset=o,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const o=this._marks.pop();if(o===void 0)throw new Error("Mark stack empty");return this.seek(o),this}rewind(){return this.offset=0,this}ensureAvailable(o=1){if(!this.available(o)){const l=(this.offset+o)*2,A=new Uint8Array(l);A.set(new Uint8Array(this.buffer)),this.buffer=A.buffer,this.length=l,this.byteLength=l,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(o=1){return this.readArray(o,"uint8")}readArray(o,a){const l=ti[a].BYTES_PER_ELEMENT*o,A=this.byteOffset+this.offset,p=this.buffer.slice(A,A+l);if(this.littleEndian===Xi&&a!=="uint8"&&a!=="int8"){const E=new Uint8Array(this.buffer.slice(A,A+l));E.reverse();const U=new ti[a](E.buffer);return this.offset+=l,U.reverse(),U}const N=new ti[a](p);return this.offset+=l,N}readInt16(){const o=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,o}readUint16(){const o=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,o}readInt32(){const o=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,o}readUint32(){const o=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat32(){const o=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat64(){const o=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,o}readBigInt64(){const o=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,o}readBigUint64(){const o=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,o}readChar(){return String.fromCharCode(this.readInt8())}readChars(o=1){let a="";for(let l=0;l<o;l++)a+=this.readChar();return a}readUtf8(o=1){return bi(this.readBytes(o))}decodeText(o=1,a="utf8"){return bi(this.readBytes(o),a)}writeBoolean(o){return this.writeUint8(o?255:0),this}writeInt8(o){return this.ensureAvailable(1),this._data.setInt8(this.offset++,o),this._updateLastWrittenByte(),this}writeUint8(o){return this.ensureAvailable(1),this._data.setUint8(this.offset++,o),this._updateLastWrittenByte(),this}writeByte(o){return this.writeUint8(o)}writeBytes(o){this.ensureAvailable(o.length);for(let a=0;a<o.length;a++)this._data.setUint8(this.offset++,o[a]);return this._updateLastWrittenByte(),this}writeInt16(o){return this.ensureAvailable(2),this._data.setInt16(this.offset,o,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(o){return this.ensureAvailable(2),this._data.setUint16(this.offset,o,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(o){return this.ensureAvailable(4),this._data.setInt32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(o){return this.ensureAvailable(4),this._data.setUint32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(o){return this.ensureAvailable(4),this._data.setFloat32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(o){return this.ensureAvailable(8),this._data.setFloat64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(o){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(o){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(o){return this.writeUint8(o.charCodeAt(0))}writeChars(o){for(let a=0;a<o.length;a++)this.writeUint8(o.charCodeAt(a));return this}writeUtf8(o){return this.writeBytes(Ai(o))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const za=4,li=0,un=1,sn=2;function Xn(n){let o=n.length;for(;--o>=0;)n[o]=0}const Qn=0,fi=1,qi=2,Ii=3,Ra=258,ua=29,Co=256,Vn=Co+1+ua,_n=30,ki=19,Ji=2*Vn+1,Ma=15,Ms=16,Va=7,fa=256,_o=16,Bo=17,To=18,Ps=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),mo=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),xs=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ts=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$s=512,Uo=new Array((Vn+2)*2);Xn(Uo);const Ro=new Array(_n*2);Xn(Ro);const Cs=new Array($s);Xn(Cs);const el=new Array(Ra-Ii+1);Xn(el);const vl=new Array(ua);Xn(vl);const tc=new Array(_n);Xn(tc);function rc(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 Rl,Zs,kc;function Ql(n,o){this.dyn_tree=n,this.max_code=0,this.stat_desc=o}const Kl=n=>n<256?Cs[n]:Cs[256+(n>>>7)],Vs=(n,o)=>{n.pending_buf[n.pending++]=o&255,n.pending_buf[n.pending++]=o>>>8&255},os=(n,o,a)=>{n.bi_valid>Ms-a?(n.bi_buf|=o<<n.bi_valid&65535,Vs(n,n.bi_buf),n.bi_buf=o>>Ms-n.bi_valid,n.bi_valid+=a-Ms):(n.bi_buf|=o<<n.bi_valid&65535,n.bi_valid+=a)},ni=(n,o,a)=>{os(n,a[o*2],a[o*2+1])},ca=(n,o)=>{let a=0;do a|=n&1,n>>>=1,a<<=1;while(--o>0);return a>>>1},ta=n=>{n.bi_valid===16?(Vs(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=n.bi_buf&255,n.bi_buf>>=8,n.bi_valid-=8)},oa=(n,o)=>{const a=o.dyn_tree,l=o.max_code,A=o.stat_desc.static_tree,p=o.stat_desc.has_stree,N=o.stat_desc.extra_bits,E=o.stat_desc.extra_base,U=o.stat_desc.max_length;let Z,oe,Re,$e,ae,mt,ut=0;for($e=0;$e<=Ma;$e++)n.bl_count[$e]=0;for(a[n.heap[n.heap_max]*2+1]=0,Z=n.heap_max+1;Z<Ji;Z++)oe=n.heap[Z],$e=a[a[oe*2+1]*2+1]+1,$e>U&&($e=U,ut++),a[oe*2+1]=$e,!(oe>l)&&(n.bl_count[$e]++,ae=0,oe>=E&&(ae=N[oe-E]),mt=a[oe*2],n.opt_len+=mt*($e+ae),p&&(n.static_len+=mt*(A[oe*2+1]+ae)));if(ut!==0){do{for($e=U-1;n.bl_count[$e]===0;)$e--;n.bl_count[$e]--,n.bl_count[$e+1]+=2,n.bl_count[U]--,ut-=2}while(ut>0);for($e=U;$e!==0;$e--)for(oe=n.bl_count[$e];oe!==0;)Re=n.heap[--Z],!(Re>l)&&(a[Re*2+1]!==$e&&(n.opt_len+=($e-a[Re*2+1])*a[Re*2],a[Re*2+1]=$e),oe--)}},Oa=(n,o,a)=>{const l=new Array(Ma+1);let A=0,p,N;for(p=1;p<=Ma;p++)A=A+a[p-1]<<1,l[p]=A;for(N=0;N<=o;N++){let E=n[N*2+1];E!==0&&(n[N*2]=ca(l[E]++,E))}},so=()=>{let n,o,a,l,A;const p=new Array(Ma+1);for(a=0,l=0;l<ua-1;l++)for(vl[l]=a,n=0;n<1<<Ps[l];n++)el[a++]=l;for(el[a-1]=l,A=0,l=0;l<16;l++)for(tc[l]=A,n=0;n<1<<mo[l];n++)Cs[A++]=l;for(A>>=7;l<_n;l++)for(tc[l]=A<<7,n=0;n<1<<mo[l]-7;n++)Cs[256+A++]=l;for(o=0;o<=Ma;o++)p[o]=0;for(n=0;n<=143;)Uo[n*2+1]=8,n++,p[8]++;for(;n<=255;)Uo[n*2+1]=9,n++,p[9]++;for(;n<=279;)Uo[n*2+1]=7,n++,p[7]++;for(;n<=287;)Uo[n*2+1]=8,n++,p[8]++;for(Oa(Uo,Vn+1,p),n=0;n<_n;n++)Ro[n*2+1]=5,Ro[n*2]=ca(n,5);Rl=new rc(Uo,Ps,Co+1,Vn,Ma),Zs=new rc(Ro,mo,0,_n,Ma),kc=new rc(new Array(0),xs,0,ki,Va)},Ws=n=>{let o;for(o=0;o<Vn;o++)n.dyn_ltree[o*2]=0;for(o=0;o<_n;o++)n.dyn_dtree[o*2]=0;for(o=0;o<ki;o++)n.bl_tree[o*2]=0;n.dyn_ltree[fa*2]=1,n.opt_len=n.static_len=0,n.sym_next=n.matches=0},Bs=n=>{n.bi_valid>8?Vs(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0},Ss=(n,o,a,l)=>{const A=o*2,p=a*2;return n[A]<n[p]||n[A]===n[p]&&l[o]<=l[a]},vs=(n,o,a)=>{const l=n.heap[a];let A=a<<1;for(;A<=n.heap_len&&(A<n.heap_len&&Ss(o,n.heap[A+1],n.heap[A],n.depth)&&A++,!Ss(o,l,n.heap[A],n.depth));)n.heap[a]=n.heap[A],a=A,A<<=1;n.heap[a]=l},to=(n,o,a)=>{let l,A,p=0,N,E;if(n.sym_next!==0)do l=n.pending_buf[n.sym_buf+p++]&255,l+=(n.pending_buf[n.sym_buf+p++]&255)<<8,A=n.pending_buf[n.sym_buf+p++],l===0?ni(n,A,o):(N=el[A],ni(n,N+Co+1,o),E=Ps[N],E!==0&&(A-=vl[N],os(n,A,E)),l--,N=Kl(l),ni(n,N,a),E=mo[N],E!==0&&(l-=tc[N],os(n,l,E)));while(p<n.sym_next);ni(n,fa,o)},Qa=(n,o)=>{const a=o.dyn_tree,l=o.stat_desc.static_tree,A=o.stat_desc.has_stree,p=o.stat_desc.elems;let N,E,U=-1,Z;for(n.heap_len=0,n.heap_max=Ji,N=0;N<p;N++)a[N*2]!==0?(n.heap[++n.heap_len]=U=N,n.depth[N]=0):a[N*2+1]=0;for(;n.heap_len<2;)Z=n.heap[++n.heap_len]=U<2?++U:0,a[Z*2]=1,n.depth[Z]=0,n.opt_len--,A&&(n.static_len-=l[Z*2+1]);for(o.max_code=U,N=n.heap_len>>1;N>=1;N--)vs(n,a,N);Z=p;do N=n.heap[1],n.heap[1]=n.heap[n.heap_len--],vs(n,a,1),E=n.heap[1],n.heap[--n.heap_max]=N,n.heap[--n.heap_max]=E,a[Z*2]=a[N*2]+a[E*2],n.depth[Z]=(n.depth[N]>=n.depth[E]?n.depth[N]:n.depth[E])+1,a[N*2+1]=a[E*2+1]=Z,n.heap[1]=Z++,vs(n,a,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],oa(n,o),Oa(a,U,n.bl_count)},ss=(n,o,a)=>{let l,A=-1,p,N=o[0*2+1],E=0,U=7,Z=4;for(N===0&&(U=138,Z=3),o[(a+1)*2+1]=65535,l=0;l<=a;l++)p=N,N=o[(l+1)*2+1],!(++E<U&&p===N)&&(E<Z?n.bl_tree[p*2]+=E:p!==0?(p!==A&&n.bl_tree[p*2]++,n.bl_tree[_o*2]++):E<=10?n.bl_tree[Bo*2]++:n.bl_tree[To*2]++,E=0,A=p,N===0?(U=138,Z=3):p===N?(U=6,Z=3):(U=7,Z=4))},ls=(n,o,a)=>{let l,A=-1,p,N=o[0*2+1],E=0,U=7,Z=4;for(N===0&&(U=138,Z=3),l=0;l<=a;l++)if(p=N,N=o[(l+1)*2+1],!(++E<U&&p===N)){if(E<Z)do ni(n,p,n.bl_tree);while(--E!==0);else p!==0?(p!==A&&(ni(n,p,n.bl_tree),E--),ni(n,_o,n.bl_tree),os(n,E-3,2)):E<=10?(ni(n,Bo,n.bl_tree),os(n,E-3,3)):(ni(n,To,n.bl_tree),os(n,E-11,7));E=0,A=p,N===0?(U=138,Z=3):p===N?(U=6,Z=3):(U=7,Z=4)}},Ls=n=>{let o;for(ss(n,n.dyn_ltree,n.l_desc.max_code),ss(n,n.dyn_dtree,n.d_desc.max_code),Qa(n,n.bl_desc),o=ki-1;o>=3&&n.bl_tree[Ts[o]*2+1]===0;o--);return n.opt_len+=3*(o+1)+5+5+4,o},Jo=(n,o,a,l)=>{let 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)},Io=n=>{let o=4093624447,a;for(a=0;a<=31;a++,o>>>=1)if(o&1&&n.dyn_ltree[a*2]!==0)return li;if(n.dyn_ltree[9*2]!==0||n.dyn_ltree[10*2]!==0||n.dyn_ltree[13*2]!==0)return un;for(a=32;a<Co;a++)if(n.dyn_ltree[a*2]!==0)return un;return li};let hA=!1;const ru=n=>{hA||(so(),hA=!0),n.l_desc=new Ql(n.dyn_ltree,Rl),n.d_desc=new Ql(n.dyn_dtree,Zs),n.bl_desc=new Ql(n.bl_tree,kc),n.bi_buf=0,n.bi_valid=0,Ws(n)},lc=(n,o,a,l)=>{os(n,(Qn<<1)+(l?1:0),3),Bs(n),Vs(n,a),Vs(n,~a),a&&n.pending_buf.set(n.window.subarray(o,o+a),n.pending),n.pending+=a},pA=n=>{os(n,fi<<1,3),ni(n,fa,Uo),ta(n)},cl=(n,o,a,l)=>{let A,p,N=0;n.level>0?(n.strm.data_type===sn&&(n.strm.data_type=Io(n)),Qa(n,n.l_desc),Qa(n,n.d_desc),N=Ls(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?lc(n,o,a,l):n.strategy===za||p===A?(os(n,(fi<<1)+(l?1:0),3),to(n,Uo,Ro)):(os(n,(qi<<1)+(l?1:0),3),Jo(n,n.l_desc.max_code+1,n.d_desc.max_code+1,N+1),to(n,n.dyn_ltree,n.dyn_dtree)),Ws(n),l&&Bs(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[(el[a]+Co+1)*2]++,n.dyn_dtree[Kl(o)*2]++),n.sym_next===n.sym_end);var tl=ru,bs=lc,qc=cl,Us=mA,PA=pA,cc={_tr_init:tl,_tr_stored_block:bs,_tr_flush_block:qc,_tr_tally:Us,_tr_align:PA},ro=(n,o,a,l)=>{let A=n&65535|0,p=n>>>16&65535|0,N=0;for(;a!==0;){N=a>2e3?2e3:a,a-=N;do A=A+o[l++]|0,p=p+A|0;while(--N);A%=65521,p%=65521}return A|p<<16|0};const Gs=()=>{let n,o=[];for(var a=0;a<256;a++){n=a;for(var l=0;l<8;l++)n=n&1?3988292384^n>>>1:n>>>1;o[a]=n}return o},gA=new Uint32Array(Gs());var cs=(n,o,a,l)=>{const A=gA,p=l+a;n^=-1;for(let N=l;N<p;N++)n=n>>>8^A[(n^o[N])&255];return n^-1},Ba={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ya={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:rs,_tr_stored_block:bo,_tr_flush_block:$o,_tr_tally:Zo,_tr_align:Do}=cc,{Z_NO_FLUSH:Es,Z_PARTIAL_FLUSH:nc,Z_FULL_FLUSH:Vc,Z_FINISH:Xs,Z_BLOCK:vA,Z_OK:wl,Z_STREAM_END:eA,Z_STREAM_ERROR:rl,Z_DATA_ERROR:_d,Z_BUF_ERROR:nu,Z_DEFAULT_COMPRESSION:$A,Z_FILTERED:Af,Z_HUFFMAN_ONLY:Wc,Z_RLE:Gu,Z_FIXED:Dc,Z_DEFAULT_STRATEGY:Id,Z_UNKNOWN:Yo,Z_DEFLATED:No}=ya,qo=9,bc=15,jl=8,ZA=256+1+29,Fd=30,Md=19,VA=2*ZA+1,WA=15,Fo=3,yA=258,GA=yA+Fo+1,b0=32,iu=42,Bh=57,uf=69,Ld=73,zf=91,Sh=103,_u=113,df=666,xl=1,Cl=2,Nc=3,Oc=4,y0=3,Iu=(n,o)=>(n.msg=Ba[o],o),Eh=n=>n*2-(n>4?9:0),Fu=n=>{let o=n.length;for(;--o>=0;)n[o]=0},kd=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 au=(n,o,a)=>(o<<n.hash_shift^a)&n.hash_mask;const tA=n=>{const o=n.state;let a=o.pending;a>n.avail_out&&(a=n.avail_out),a!==0&&(n.output.set(o.pending_buf.subarray(o.pending_out,o.pending_out+a),n.next_out),n.next_out+=a,o.pending_out+=a,n.total_out+=a,n.avail_out-=a,o.pending-=a,o.pending===0&&(o.pending_out=0))},yc=(n,o)=>{$o(n,n.block_start>=0?n.block_start:-1,n.strstart-n.block_start,o),n.block_start=n.strstart,tA(n.strm)},Vo=(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},$f=(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=ro(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)},Zf=(n,o)=>{let a=n.max_chain_length,l=n.strstart,A,p,N=n.prev_length,E=n.nice_match;const U=n.strstart>n.w_size-GA?n.strstart-(n.w_size-GA):0,Z=n.window,oe=n.w_mask,Re=n.prev,$e=n.strstart+yA;let ae=Z[l+N-1],mt=Z[l+N];n.prev_length>=n.good_match&&(a>>=2),E>n.lookahead&&(E=n.lookahead);do if(A=o,!(Z[A+N]!==mt||Z[A+N-1]!==ae||Z[A]!==Z[l]||Z[++A]!==Z[l+1])){l+=2,A++;do;while(Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&l<$e);if(p=yA-($e-l),l=$e-yA,p>N){if(n.match_start=o,N=p,p>=E)break;ae=Z[l+N-1],mt=Z[l+N]}}while((o=Re[o&oe])>U&&--a!==0);return N<=n.lookahead?N:n.lookahead},Pc=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),kd(n),l+=o),n.strm.avail_in===0)break;if(a=$f(n.strm,n.window,n.strstart+n.lookahead,l),n.lookahead+=a,n.lookahead+n.insert>=Fo)for(A=n.strstart-n.insert,n.ins_h=n.window[A],n.ins_h=au(n,n.ins_h,n.window[A+1]);n.insert&&(n.ins_h=au(n,n.ins_h,n.window[A+Fo-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<Fo)););}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,N=0,E=n.strm.avail_in;do{if(l=65535,p=n.bi_valid+42>>3,n.strm.avail_out<p||(p=n.strm.avail_out-p,A=n.strstart-n.block_start,l>A+n.strm.avail_in&&(l=A+n.strm.avail_in),l>p&&(l=p),l<a&&(l===0&&o!==Xs||o===Es||l!==A+n.strm.avail_in)))break;N=o===Xs&&l===A+n.strm.avail_in?1:0,bo(n,0,0,N),n.pending_buf[n.pending-4]=l,n.pending_buf[n.pending-3]=l>>8,n.pending_buf[n.pending-2]=~l,n.pending_buf[n.pending-1]=~l>>8,tA(n.strm),A&&(A>l&&(A=l),n.strm.output.set(n.window.subarray(n.block_start,n.block_start+A),n.strm.next_out),n.strm.next_out+=A,n.strm.avail_out-=A,n.strm.total_out+=A,n.block_start+=A,l-=A),l&&($f(n.strm,n.strm.output,n.strm.next_out,l),n.strm.next_out+=l,n.strm.avail_out-=l,n.strm.total_out+=l)}while(N===0);return E-=n.strm.avail_in,E&&(E>=n.w_size?(n.matches=2,n.window.set(n.strm.input.subarray(n.strm.next_in-n.w_size,n.strm.next_in),0),n.strstart=n.w_size,n.insert=n.strstart):(n.window_size-n.strstart<=E&&(n.strstart-=n.w_size,n.window.set(n.window.subarray(n.w_size,n.w_size+n.strstart),0),n.matches<2&&n.matches++,n.insert>n.strstart&&(n.insert=n.strstart)),n.window.set(n.strm.input.subarray(n.strm.next_in-E,n.strm.next_in),n.strstart),n.strstart+=E,n.insert+=E>n.w_size-n.insert?n.w_size-n.insert:E),n.block_start=n.strstart),n.high_water<n.strstart&&(n.high_water=n.strstart),N?Oc:o!==Es&&o!==Xs&&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&&($f(n.strm,n.window,n.strstart,p),n.strstart+=p,n.insert+=p>n.w_size-n.insert?n.w_size-n.insert:p),n.high_water<n.strstart&&(n.high_water=n.strstart),p=n.bi_valid+42>>3,p=n.pending_buf_size-p>65535?65535:n.pending_buf_size-p,a=p>n.w_size?n.w_size:p,A=n.strstart-n.block_start,(A>=a||(A||o===Xs)&&o!==Es&&n.strm.avail_in===0&&A<=p)&&(l=A>p?p:A,N=o===Xs&&n.strm.avail_in===0&&l===A?1:0,bo(n,n.block_start,l,N),n.block_start+=l,tA(n.strm)),N?Nc:xl)},ff=(n,o)=>{let a,l;for(;;){if(n.lookahead<GA){if(Pc(n),n.lookahead<GA&&o===Es)return xl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Fo&&(n.ins_h=au(n,n.ins_h,n.window[n.strstart+Fo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),a!==0&&n.strstart-a<=n.w_size-GA&&(n.match_length=Zf(n,a)),n.match_length>=Fo)if(l=Zo(n,n.strstart-n.match_start,n.match_length-Fo),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=Fo){n.match_length--;do n.strstart++,n.ins_h=au(n,n.ins_h,n.window[n.strstart+Fo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart;while(--n.match_length!==0);n.strstart++}else n.strstart+=n.match_length,n.match_length=0,n.ins_h=n.window[n.strstart],n.ins_h=au(n,n.ins_h,n.window[n.strstart+1]);else l=Zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(l&&(yc(n,!1),n.strm.avail_out===0))return xl}return n.insert=n.strstart<Fo-1?n.strstart:Fo-1,o===Xs?(yc(n,!0),n.strm.avail_out===0?Nc:Oc):n.sym_next&&(yc(n,!1),n.strm.avail_out===0)?xl:Cl},qu=(n,o)=>{let a,l,A;for(;;){if(n.lookahead<GA){if(Pc(n),n.lookahead<GA&&o===Es)return xl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Fo&&(n.ins_h=au(n,n.ins_h,n.window[n.strstart+Fo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),n.prev_length=n.match_length,n.prev_match=n.match_start,n.match_length=Fo-1,a!==0&&n.prev_length<n.max_lazy_match&&n.strstart-a<=n.w_size-GA&&(n.match_length=Zf(n,a),n.match_length<=5&&(n.strategy===Af||n.match_length===Fo&&n.strstart-n.match_start>4096)&&(n.match_length=Fo-1)),n.prev_length>=Fo&&n.match_length<=n.prev_length){A=n.strstart+n.lookahead-Fo,l=Zo(n,n.strstart-1-n.prev_match,n.prev_length-Fo),n.lookahead-=n.prev_length-1,n.prev_length-=2;do++n.strstart<=A&&(n.ins_h=au(n,n.ins_h,n.window[n.strstart+Fo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart);while(--n.prev_length!==0);if(n.match_available=0,n.match_length=Fo-1,n.strstart++,l&&(yc(n,!1),n.strm.avail_out===0))return xl}else if(n.match_available){if(l=Zo(n,0,n.window[n.strstart-1]),l&&yc(n,!1),n.strstart++,n.lookahead--,n.strm.avail_out===0)return xl}else n.match_available=1,n.strstart++,n.lookahead--}return n.match_available&&(l=Zo(n,0,n.window[n.strstart-1]),n.match_available=0),n.insert=n.strstart<Fo-1?n.strstart:Fo-1,o===Xs?(yc(n,!0),n.strm.avail_out===0?Nc:Oc):n.sym_next&&(yc(n,!1),n.strm.avail_out===0)?xl:Cl},w0=(n,o)=>{let a,l,A,p;const N=n.window;for(;;){if(n.lookahead<=yA){if(Pc(n),n.lookahead<=yA&&o===Es)return xl;if(n.lookahead===0)break}if(n.match_length=0,n.lookahead>=Fo&&n.strstart>0&&(A=n.strstart-1,l=N[A],l===N[++A]&&l===N[++A]&&l===N[++A])){p=n.strstart+yA;do;while(l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&A<p);n.match_length=yA-(p-A),n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=Fo?(a=Zo(n,1,n.match_length-Fo),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(a=Zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),a&&(yc(n,!1),n.strm.avail_out===0))return xl}return n.insert=0,o===Xs?(yc(n,!0),n.strm.avail_out===0?Nc:Oc):n.sym_next&&(yc(n,!1),n.strm.avail_out===0)?xl:Cl},x0=(n,o)=>{let a;for(;;){if(n.lookahead===0&&(Pc(n),n.lookahead===0)){if(o===Es)return xl;break}if(n.match_length=0,a=Zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,a&&(yc(n,!1),n.strm.avail_out===0))return xl}return n.insert=0,o===Xs?(yc(n,!0),n.strm.avail_out===0?Nc:Oc):n.sym_next&&(yc(n,!1),n.strm.avail_out===0)?xl:Cl};function zl(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 zl(0,0,0,0,Yu),new zl(4,4,8,4,ff),new zl(4,5,16,8,ff),new zl(4,6,32,32,ff),new zl(4,4,16,16,qu),new zl(8,16,32,32,qu),new zl(8,16,128,128,qu),new zl(8,32,128,256,qu),new zl(32,128,258,1024,qu),new zl(32,258,258,4096,qu)],C0=n=>{n.window_size=2*n.w_size,Fu(n.head),n.max_lazy_match=ed[n.level].max_lazy,n.good_match=ed[n.level].good_length,n.nice_match=ed[n.level].nice_length,n.max_chain_length=ed[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=Fo-1,n.match_available=0,n.ins_h=0};function ue(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=No,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(VA*2),this.dyn_dtree=new Uint16Array((2*Fd+1)*2),this.bl_tree=new Uint16Array((2*Md+1)*2),Fu(this.dyn_ltree),Fu(this.dyn_dtree),Fu(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),Fu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ZA+1),Fu(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!==iu&&o.status!==Bh&&o.status!==uf&&o.status!==Ld&&o.status!==zf&&o.status!==Sh&&o.status!==_u&&o.status!==df?1:0},Je=n=>{if(xe(n))return Iu(n,rl);n.total_in=n.total_out=0,n.data_type=Yo;const o=n.state;return o.pending=0,o.pending_out=0,o.wrap<0&&(o.wrap=-o.wrap),o.status=o.wrap===2?Bh:o.wrap?iu:_u,n.adler=o.wrap===2?0:1,o.last_flush=-2,rs(o),wl},ct=n=>{const o=Je(n);return o===wl&&C0(n.state),o},Bt=(n,o)=>xe(n)||n.state.wrap!==2?rl:(n.state.gzhead=o,wl),bt=(n,o,a,l,A,p)=>{if(!n)return rl;let N=1;if(o===$A&&(o=6),l<0?(N=0,l=-l):l>15&&(N=2,l-=16),A<1||A>qo||a!==No||l<8||l>15||o<0||o>9||p<0||p>Dc||l===8&&N!==1)return Iu(n,rl);l===8&&(l=9);const E=new ue;return n.state=E,E.strm=n,E.status=iu,E.wrap=N,E.gzhead=null,E.w_bits=l,E.w_size=1<<E.w_bits,E.w_mask=E.w_size-1,E.hash_bits=A+7,E.hash_size=1<<E.hash_bits,E.hash_mask=E.hash_size-1,E.hash_shift=~~((E.hash_bits+Fo-1)/Fo),E.window=new Uint8Array(E.w_size*2),E.head=new Uint16Array(E.hash_size),E.prev=new Uint16Array(E.w_size),E.lit_bufsize=1<<A+6,E.pending_buf_size=E.lit_bufsize*4,E.pending_buf=new Uint8Array(E.pending_buf_size),E.sym_buf=E.lit_bufsize,E.sym_end=(E.lit_bufsize-1)*3,E.level=o,E.strategy=p,E.method=a,ct(n)},$t=(n,o)=>bt(n,o,No,bc,jl,Id),zt=(n,o)=>{if(xe(n)||o>vA||o<0)return n?Iu(n,rl):rl;const a=n.state;if(!n.output||n.avail_in!==0&&!n.input||a.status===df&&o!==Xs)return Iu(n,n.avail_out===0?nu:rl);const l=a.last_flush;if(a.last_flush=o,a.pending!==0){if(tA(n),n.avail_out===0)return a.last_flush=-1,wl}else if(n.avail_in===0&&Eh(o)<=Eh(l)&&o!==Xs)return Iu(n,nu);if(a.status===df&&n.avail_in!==0)return Iu(n,nu);if(a.status===iu&&a.wrap===0&&(a.status=_u),a.status===iu){let A=No+(a.w_bits-8<<4)<<8,p=-1;if(a.strategy>=Wc||a.level<2?p=0:a.level<6?p=1:a.level===6?p=2:p=3,A|=p<<6,a.strstart!==0&&(A|=b0),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=_u,tA(n),a.pending!==0)return a.last_flush=-1,wl}if(a.status===Bh){if(n.adler=0,Vo(a,31),Vo(a,139),Vo(a,8),a.gzhead)Vo(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),Vo(a,a.gzhead.time&255),Vo(a,a.gzhead.time>>8&255),Vo(a,a.gzhead.time>>16&255),Vo(a,a.gzhead.time>>24&255),Vo(a,a.level===9?2:a.strategy>=Wc||a.level<2?4:0),Vo(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(Vo(a,a.gzhead.extra.length&255),Vo(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(n.adler=cs(n.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=uf;else if(Vo(a,0),Vo(a,0),Vo(a,0),Vo(a,0),Vo(a,0),Vo(a,a.level===9?2:a.strategy>=Wc||a.level<2?4:0),Vo(a,y0),a.status=_u,tA(n),a.pending!==0)return a.last_flush=-1,wl}if(a.status===uf){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,tA(n),a.pending!==0)return a.last_flush=-1,wl;A=0,p-=E}let N=new Uint8Array(a.gzhead.extra);a.pending_buf.set(N.subarray(a.gzindex,a.gzindex+p),a.pending),a.pending+=p,a.gzhead.hcrc&&a.pending>A&&(n.adler=cs(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex=0}a.status=Ld}if(a.status===Ld){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)),tA(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,Vo(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=zf}if(a.status===zf){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)),tA(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,Vo(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=Sh}if(a.status===Sh){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(tA(n),a.pending!==0))return a.last_flush=-1,wl;Vo(a,n.adler&255),Vo(a,n.adler>>8&255),n.adler=0}if(a.status=_u,tA(n),a.pending!==0)return a.last_flush=-1,wl}if(n.avail_in!==0||a.lookahead!==0||o!==Es&&a.status!==df){let A=a.level===0?Yu(a,o):a.strategy===Wc?x0(a,o):a.strategy===Gu?w0(a,o):ed[a.level].func(a,o);if((A===Nc||A===Oc)&&(a.status=df),A===xl||A===Nc)return n.avail_out===0&&(a.last_flush=-1),wl;if(A===Cl&&(o===nc?Do(a):o!==vA&&(bo(a,0,0,!1),o===Vc&&(Fu(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),tA(n),n.avail_out===0))return a.last_flush=-1,wl}return o!==Xs?wl:a.wrap<=0?eA:(a.wrap===2?(Vo(a,n.adler&255),Vo(a,n.adler>>8&255),Vo(a,n.adler>>16&255),Vo(a,n.adler>>24&255),Vo(a,n.total_in&255),Vo(a,n.total_in>>8&255),Vo(a,n.total_in>>16&255),Vo(a,n.total_in>>24&255)):(Ju(a,n.adler>>>16),Ju(a,n.adler&65535)),tA(n),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?wl:eA)},Qt=n=>{if(xe(n))return rl;const o=n.state.status;return n.state=null,o===_u?Iu(n,_d):wl},dr=(n,o)=>{let a=o.length;if(xe(n))return rl;const l=n.state,A=l.wrap;if(A===2||A===1&&l.status!==iu||l.lookahead)return rl;if(A===1&&(n.adler=ro(n.adler,o,a,0)),l.wrap=0,a>=l.w_size){A===0&&(Fu(l.head),l.strstart=0,l.block_start=0,l.insert=0);let U=new Uint8Array(l.w_size);U.set(o.subarray(a-l.w_size,a),0),o=U,a=l.w_size}const p=n.avail_in,N=n.next_in,E=n.input;for(n.avail_in=a,n.next_in=0,n.input=o,Pc(l);l.lookahead>=Fo;){let U=l.strstart,Z=l.lookahead-(Fo-1);do l.ins_h=au(l,l.ins_h,l.window[U+Fo-1]),l.prev[U&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=U,U++;while(--Z);l.strstart=U,l.lookahead=Fo-1,Pc(l)}return l.strstart+=l.lookahead,l.block_start=l.strstart,l.insert=l.lookahead,l.lookahead=0,l.match_length=l.prev_length=Fo-1,l.match_available=0,n.next_in=N,n.input=E,n.avail_in=p,l.wrap=A,wl};var Ir=$t,mr=bt,tn=ct,Vr=Je,Yr=Bt,On=zt,wn=Qt,In=dr,Cn="pako deflate (from Nodeca project)",zn={deflateInit:Ir,deflateInit2:mr,deflateReset:tn,deflateResetKeep:Vr,deflateSetHeader:Yr,deflate:On,deflateEnd:wn,deflateSetDictionary:In,deflateInfo:Cn};const Ti=(n,o)=>Object.prototype.hasOwnProperty.call(n,o);var ji=function(n){const o=Array.prototype.slice.call(arguments,1);for(;o.length;){const a=o.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(const l in a)Ti(a,l)&&(n[l]=a[l])}}return n},hi=n=>{let o=0;for(let l=0,A=n.length;l<A;l++)o+=n[l].length;const a=new Uint8Array(o);for(let l=0,A=0,p=n.length;l<p;l++){let N=n[l];a.set(N,A),A+=N.length}return a},na={assign:ji,flattenChunks:hi};let wa=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){wa=!1}const Jn=new Uint8Array(256);for(let n=0;n<256;n++)Jn[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Jn[254]=Jn[254]=1;var mi=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let o,a,l,A,p,N=n.length,E=0;for(A=0;A<N;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<N&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),E+=a<128?1:a<2048?2:a<65536?3:4;for(o=new Uint8Array(E),p=0,A=0;p<E;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<N&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),a<128?o[p++]=a:a<2048?(o[p++]=192|a>>>6,o[p++]=128|a&63):a<65536?(o[p++]=224|a>>>12,o[p++]=128|a>>>6&63,o[p++]=128|a&63):(o[p++]=240|a>>>18,o[p++]=128|a>>>12&63,o[p++]=128|a>>>6&63,o[p++]=128|a&63);return o};const ai=(n,o)=>{if(o<65534&&n.subarray&&wa)return String.fromCharCode.apply(null,n.length===o?n:n.subarray(0,o));let a="";for(let l=0;l<o;l++)a+=String.fromCharCode(n[l]);return a};var Pn=(n,o)=>{const a=o||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,o));let l,A;const p=new Array(a*2);for(A=0,l=0;l<a;){let N=n[l++];if(N<128){p[A++]=N;continue}let E=Jn[N];if(E>4){p[A++]=65533,l+=E-1;continue}for(N&=E===2?31:E===3?15:7;E>1&&l<a;)N=N<<6|n[l++]&63,E--;if(E>1){p[A++]=65533;continue}N<65536?p[A++]=N:(N-=65536,p[A++]=55296|N>>10&1023,p[A++]=56320|N&1023)}return ai(p,A)},oi=(n,o)=>{o=o||n.length,o>n.length&&(o=n.length);let a=o-1;for(;a>=0&&(n[a]&192)===128;)a--;return a<0||a===0?o:a+Jn[n[a]]>o?a:o},Vi={string2buf:mi,buf2string:Pn,utf8border:oi};function Pa(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ma=Pa;const Wi=Object.prototype.toString,{Z_NO_FLUSH:Ia,Z_SYNC_FLUSH:Ka,Z_FULL_FLUSH:es,Z_FINISH:lo,Z_OK:ys,Z_STREAM_END:As,Z_DEFAULT_COMPRESSION:ga,Z_DEFAULT_STRATEGY:ol,Z_DEFLATED:go}=ya;function ts(n){this.options=na.assign({level:ga,method:go,chunkSize:16384,windowBits:15,memLevel:8,strategy:ol},n||{});let o=this.options;o.raw&&o.windowBits>0?o.windowBits=-o.windowBits:o.gzip&&o.windowBits>0&&o.windowBits<16&&(o.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ma,this.strm.avail_out=0;let a=zn.deflateInit2(this.strm,o.level,o.method,o.windowBits,o.memLevel,o.strategy);if(a!==ys)throw new Error(Ba[a]);if(o.header&&zn.deflateSetHeader(this.strm,o.header),o.dictionary){let l;if(typeof o.dictionary=="string"?l=Vi.string2buf(o.dictionary):Wi.call(o.dictionary)==="[object ArrayBuffer]"?l=new Uint8Array(o.dictionary):l=o.dictionary,a=zn.deflateSetDictionary(this.strm,l),a!==ys)throw new Error(Ba[a]);this._dict_set=!0}}ts.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize;let A,p;if(this.ended)return!1;for(o===~~o?p=o:p=o===!0?lo:Ia,typeof n=="string"?a.input=Vi.string2buf(n):Wi.call(n)==="[object ArrayBuffer]"?a.input=new Uint8Array(n):a.input=n,a.next_in=0,a.avail_in=a.input.length;;){if(a.avail_out===0&&(a.output=new Uint8Array(l),a.next_out=0,a.avail_out=l),(p===Ka||p===es)&&a.avail_out<=6){this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;continue}if(A=zn.deflate(a,p),A===As)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),A=zn.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===ys;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},ts.prototype.onData=function(n){this.chunks.push(n)},ts.prototype.onEnd=function(n){n===ys&&(this.result=na.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function ns(n,o){const a=new ts(o);if(a.push(n,!0),a.err)throw a.msg||Ba[a.err];return a.result}function wc(n,o){return o=o||{},o.raw=!0,ns(n,o)}function si(n,o){return o=o||{},o.gzip=!0,ns(n,o)}var Gi=ts,zi=ns,Di=wc,yo=si,Ni=ya,Aa={Deflate:Gi,deflate:zi,deflateRaw:Di,gzip:yo,constants:Ni};const $a=16209,Wa=16191;var Fl=function(o,a){let l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut,yt,ot,Gt,Rt,Ft,Mr,rn,Wr,ar,Mt,Cr;const it=o.state;l=o.next_in,Mt=o.input,A=l+(o.avail_in-5),p=o.next_out,Cr=o.output,N=p-(a-o.avail_out),E=p+(o.avail_out-257),U=it.dmax,Z=it.wsize,oe=it.whave,Re=it.wnext,$e=it.window,ae=it.hold,mt=it.bits,ut=it.lencode,yt=it.distcode,ot=(1<<it.lenbits)-1,Gt=(1<<it.distbits)-1;e:do{mt<15&&(ae+=Mt[l++]<<mt,mt+=8,ae+=Mt[l++]<<mt,mt+=8),Rt=ut[ae&ot];t:for(;;){if(Ft=Rt>>>24,ae>>>=Ft,mt-=Ft,Ft=Rt>>>16&255,Ft===0)Cr[p++]=Rt&65535;else if(Ft&16){Mr=Rt&65535,Ft&=15,Ft&&(mt<Ft&&(ae+=Mt[l++]<<mt,mt+=8),Mr+=ae&(1<<Ft)-1,ae>>>=Ft,mt-=Ft),mt<15&&(ae+=Mt[l++]<<mt,mt+=8,ae+=Mt[l++]<<mt,mt+=8),Rt=yt[ae&Gt];r:for(;;){if(Ft=Rt>>>24,ae>>>=Ft,mt-=Ft,Ft=Rt>>>16&255,Ft&16){if(rn=Rt&65535,Ft&=15,mt<Ft&&(ae+=Mt[l++]<<mt,mt+=8,mt<Ft&&(ae+=Mt[l++]<<mt,mt+=8)),rn+=ae&(1<<Ft)-1,rn>U){o.msg="invalid distance too far back",it.mode=$a;break e}if(ae>>>=Ft,mt-=Ft,Ft=p-N,rn>Ft){if(Ft=rn-Ft,Ft>oe&&it.sane){o.msg="invalid distance too far back",it.mode=$a;break e}if(Wr=0,ar=$e,Re===0){if(Wr+=Z-Ft,Ft<Mr){Mr-=Ft;do Cr[p++]=$e[Wr++];while(--Ft);Wr=p-rn,ar=Cr}}else if(Re<Ft){if(Wr+=Z+Re-Ft,Ft-=Re,Ft<Mr){Mr-=Ft;do Cr[p++]=$e[Wr++];while(--Ft);if(Wr=0,Re<Mr){Ft=Re,Mr-=Ft;do Cr[p++]=$e[Wr++];while(--Ft);Wr=p-rn,ar=Cr}}}else if(Wr+=Re-Ft,Ft<Mr){Mr-=Ft;do Cr[p++]=$e[Wr++];while(--Ft);Wr=p-rn,ar=Cr}for(;Mr>2;)Cr[p++]=ar[Wr++],Cr[p++]=ar[Wr++],Cr[p++]=ar[Wr++],Mr-=3;Mr&&(Cr[p++]=ar[Wr++],Mr>1&&(Cr[p++]=ar[Wr++]))}else{Wr=p-rn;do Cr[p++]=Cr[Wr++],Cr[p++]=Cr[Wr++],Cr[p++]=Cr[Wr++],Mr-=3;while(Mr>2);Mr&&(Cr[p++]=Cr[Wr++],Mr>1&&(Cr[p++]=Cr[Wr++]))}}else if(Ft&64){o.msg="invalid distance code",it.mode=$a;break e}else{Rt=yt[(Rt&65535)+(ae&(1<<Ft)-1)];continue r}break}}else if(Ft&64)if(Ft&32){it.mode=Wa;break e}else{o.msg="invalid literal/length code",it.mode=$a;break e}else{Rt=ut[(Rt&65535)+(ae&(1<<Ft)-1)];continue t}break}}while(l<A&&p<E);Mr=mt>>3,l-=Mr,mt-=Mr<<3,ae&=(1<<mt)-1,o.next_in=l,o.next_out=p,o.avail_in=l<A?5+(A-l):5-(l-A),o.avail_out=p<E?257+(E-p):257-(p-E),it.hold=ae,it.bits=mt};const nl=15,Gc=852,Rs=592,Tc=0,Kn=1,Ac=2,Mu=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),co=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dn=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Mo=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var us=(n,o,a,l,A,p,N,E)=>{const U=E.bits;let Z=0,oe=0,Re=0,$e=0,ae=0,mt=0,ut=0,yt=0,ot=0,Gt=0,Rt,Ft,Mr,rn,Wr,ar=null,Mt;const Cr=new Uint16Array(nl+1),it=new Uint16Array(nl+1);let wt=null,Wt,Ht,Tr;for(Z=0;Z<=nl;Z++)Cr[Z]=0;for(oe=0;oe<l;oe++)Cr[o[a+oe]]++;for(ae=U,$e=nl;$e>=1&&Cr[$e]===0;$e--);if(ae>$e&&(ae=$e),$e===0)return A[p++]=1<<24|64<<16|0,A[p++]=1<<24|64<<16|0,E.bits=1,0;for(Re=1;Re<$e&&Cr[Re]===0;Re++);for(ae<Re&&(ae=Re),yt=1,Z=1;Z<=nl;Z++)if(yt<<=1,yt-=Cr[Z],yt<0)return-1;if(yt>0&&(n===Tc||$e!==1))return-1;for(it[1]=0,Z=1;Z<nl;Z++)it[Z+1]=it[Z]+Cr[Z];for(oe=0;oe<l;oe++)o[a+oe]!==0&&(N[it[o[a+oe]]++]=oe);if(n===Tc?(ar=wt=N,Mt=20):n===Kn?(ar=Mu,wt=co,Mt=257):(ar=dn,wt=Mo,Mt=0),Gt=0,oe=0,Z=Re,Wr=p,mt=ae,ut=0,Mr=-1,ot=1<<ae,rn=ot-1,n===Kn&&ot>Gc||n===Ac&&ot>Rs)return 1;for(;;){Wt=Z-ut,N[oe]+1<Mt?(Ht=0,Tr=N[oe]):N[oe]>=Mt?(Ht=wt[N[oe]-Mt],Tr=ar[N[oe]-Mt]):(Ht=96,Tr=0),Rt=1<<Z-ut,Ft=1<<mt,Re=Ft;do Ft-=Rt,A[Wr+(Gt>>ut)+Ft]=Wt<<24|Ht<<16|Tr|0;while(Ft!==0);for(Rt=1<<Z-1;Gt&Rt;)Rt>>=1;if(Rt!==0?(Gt&=Rt-1,Gt+=Rt):Gt=0,oe++,--Cr[Z]===0){if(Z===$e)break;Z=o[a+N[oe]]}if(Z>ae&&(Gt&rn)!==Mr){for(ut===0&&(ut=ae),Wr+=Re,mt=Z-ut,yt=1<<mt;mt+ut<$e&&(yt-=Cr[mt+ut],!(yt<=0));)mt++,yt<<=1;if(ot+=1<<mt,n===Kn&&ot>Gc||n===Ac&&ot>Rs)return 1;Mr=Gt&rn,A[Mr]=ae<<24|mt<<16|Wr-p|0}}return Gt!==0&&(A[Wr+Gt]=Z-ut<<24|64<<16|0),E.bits=ae,0};const ia=0,Bl=1,$l=2,{Z_FINISH:Uc,Z_BLOCK:xc,Z_TREES:Sl,Z_OK:ul,Z_STREAM_END:ou,Z_NEED_DICT:Ml,Z_STREAM_ERROR:Qs,Z_DATA_ERROR:El,Z_MEM_ERROR:il,Z_BUF_ERROR:ks,Z_DEFLATED:Cc}=ya,wA=16180,TA=16181,xA=16182,hf=16183,Vf=16184,ao=16185,Wo=16186,Zl=16187,ds=16188,Ll=16189,Vl=16190,Js=16191,CA=16192,pf=16193,mf=16194,td=16195,Ao=16196,_s=16197,BA=16198,SA=16199,Wl=16200,Wf=16201,UA=16202,Gf=16203,Xf=16204,rd=16205,Dd=16206,Nd=16207,nd=16208,zr=16209,Od=16210,gf=16211,Jf=852,vf=592,Ih=15,Yf=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function bl(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Lu=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.mode<wA||o.mode>gf?1:0},bf=n=>{if(Lu(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(Jf),o.distcode=o.distdyn=new Int32Array(vf),o.sane=1,o.back=-1,ul},id=n=>{if(Lu(n))return Qs;const o=n.state;return o.wsize=0,o.whave=0,o.wnext=0,bf(n)},yf=(n,o)=>{let a;if(Lu(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))},RA=(n,o)=>{if(!n)return Qs;const a=new bl;n.state=a,a.strm=n,a.window=null,a.mode=wA;const l=yf(n,o);return l!==ul&&(n.state=null),l},su=n=>RA(n,Ih);let fs=!0,Rc,Gl;const ku=n=>{if(fs){Rc=new Int32Array(512),Gl=new Int32Array(32);let o=0;for(;o<144;)n.lens[o++]=8;for(;o<256;)n.lens[o++]=9;for(;o<280;)n.lens[o++]=7;for(;o<288;)n.lens[o++]=8;for(us(Bl,n.lens,0,288,Rc,0,n.work,{bits:9}),o=0;o<32;)n.lens[o++]=5;us($l,n.lens,0,32,Gl,0,n.work,{bits:5}),fs=!1}n.lencode=Rc,n.lenbits=9,n.distcode=Gl,n.distbits=5},uo=(n,o,a,l)=>{let A;const p=n.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new Uint8Array(p.wsize)),l>=p.wsize?(p.window.set(o.subarray(a-p.wsize,a),0),p.wnext=0,p.whave=p.wsize):(A=p.wsize-p.wnext,A>l&&(A=l),p.window.set(o.subarray(a-l,a-l+A),p.wnext),l-=A,l?(p.window.set(o.subarray(a-l,a),0),p.wnext=l,p.whave=p.wsize):(p.wnext+=A,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=A))),0},wo=(n,o)=>{let a,l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut,yt=0,ot,Gt,Rt,Ft,Mr,rn,Wr,ar;const Mt=new Uint8Array(4);let Cr,it;const wt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Lu(n)||!n.output||!n.input&&n.avail_in!==0)return Qs;a=n.state,a.mode===Js&&(a.mode=CA),N=n.next_out,A=n.output,U=n.avail_out,p=n.next_in,l=n.input,E=n.avail_in,Z=a.hold,oe=a.bits,Re=E,$e=U,ar=ul;e:for(;;)switch(a.mode){case wA:if(a.wrap===0){a.mode=CA;break}for(;oe<16;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(a.wrap&2&&Z===35615){a.wbits===0&&(a.wbits=15),a.check=0,Mt[0]=Z&255,Mt[1]=Z>>>8&255,a.check=cs(a.check,Mt,2,0),Z=0,oe=0,a.mode=TA;break}if(a.head&&(a.head.done=!1),!(a.wrap&1)||(((Z&255)<<8)+(Z>>8))%31){n.msg="incorrect header check",a.mode=zr;break}if((Z&15)!==Cc){n.msg="unknown compression method",a.mode=zr;break}if(Z>>>=4,oe-=4,Wr=(Z&15)+8,a.wbits===0&&(a.wbits=Wr),Wr>15||Wr>a.wbits){n.msg="invalid window size",a.mode=zr;break}a.dmax=1<<a.wbits,a.flags=0,n.adler=a.check=1,a.mode=Z&512?Ll:Js,Z=0,oe=0;break;case TA:for(;oe<16;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(a.flags=Z,(a.flags&255)!==Cc){n.msg="unknown compression method",a.mode=zr;break}if(a.flags&57344){n.msg="unknown header flags set",a.mode=zr;break}a.head&&(a.head.text=Z>>8&1),a.flags&512&&a.wrap&4&&(Mt[0]=Z&255,Mt[1]=Z>>>8&255,a.check=cs(a.check,Mt,2,0)),Z=0,oe=0,a.mode=xA;case xA:for(;oe<32;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}a.head&&(a.head.time=Z),a.flags&512&&a.wrap&4&&(Mt[0]=Z&255,Mt[1]=Z>>>8&255,Mt[2]=Z>>>16&255,Mt[3]=Z>>>24&255,a.check=cs(a.check,Mt,4,0)),Z=0,oe=0,a.mode=hf;case hf:for(;oe<16;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}a.head&&(a.head.xflags=Z&255,a.head.os=Z>>8),a.flags&512&&a.wrap&4&&(Mt[0]=Z&255,Mt[1]=Z>>>8&255,a.check=cs(a.check,Mt,2,0)),Z=0,oe=0,a.mode=Vf;case Vf:if(a.flags&1024){for(;oe<16;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}a.length=Z,a.head&&(a.head.extra_len=Z),a.flags&512&&a.wrap&4&&(Mt[0]=Z&255,Mt[1]=Z>>>8&255,a.check=cs(a.check,Mt,2,0)),Z=0,oe=0}else a.head&&(a.head.extra=null);a.mode=ao;case ao:if(a.flags&1024&&(ae=a.length,ae>E&&(ae=E),ae&&(a.head&&(Wr=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(l.subarray(p,p+ae),Wr)),a.flags&512&&a.wrap&4&&(a.check=cs(a.check,l,ae,p)),E-=ae,p+=ae,a.length-=ae),a.length))break e;a.length=0,a.mode=Wo;case Wo:if(a.flags&2048){if(E===0)break e;ae=0;do Wr=l[p+ae++],a.head&&Wr&&a.length<65536&&(a.head.name+=String.fromCharCode(Wr));while(Wr&&ae<E);if(a.flags&512&&a.wrap&4&&(a.check=cs(a.check,l,ae,p)),E-=ae,p+=ae,Wr)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=Zl;case Zl:if(a.flags&4096){if(E===0)break e;ae=0;do Wr=l[p+ae++],a.head&&Wr&&a.length<65536&&(a.head.comment+=String.fromCharCode(Wr));while(Wr&&ae<E);if(a.flags&512&&a.wrap&4&&(a.check=cs(a.check,l,ae,p)),E-=ae,p+=ae,Wr)break e}else a.head&&(a.head.comment=null);a.mode=ds;case ds:if(a.flags&512){for(;oe<16;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(a.wrap&4&&Z!==(a.check&65535)){n.msg="header crc mismatch",a.mode=zr;break}Z=0,oe=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),n.adler=a.check=0,a.mode=Js;break;case Ll:for(;oe<32;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}n.adler=a.check=Yf(Z),Z=0,oe=0,a.mode=Vl;case Vl:if(a.havedict===0)return n.next_out=N,n.avail_out=U,n.next_in=p,n.avail_in=E,a.hold=Z,a.bits=oe,Ml;n.adler=a.check=1,a.mode=Js;case Js:if(o===xc||o===Sl)break e;case CA:if(a.last){Z>>>=oe&7,oe-=oe&7,a.mode=Dd;break}for(;oe<3;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}switch(a.last=Z&1,Z>>>=1,oe-=1,Z&3){case 0:a.mode=pf;break;case 1:if(ku(a),a.mode=SA,o===Sl){Z>>>=2,oe-=2;break e}break;case 2:a.mode=Ao;break;case 3:n.msg="invalid block type",a.mode=zr}Z>>>=2,oe-=2;break;case pf:for(Z>>>=oe&7,oe-=oe&7;oe<32;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if((Z&65535)!==(Z>>>16^65535)){n.msg="invalid stored block lengths",a.mode=zr;break}if(a.length=Z&65535,Z=0,oe=0,a.mode=mf,o===Sl)break e;case mf:a.mode=td;case td:if(ae=a.length,ae){if(ae>E&&(ae=E),ae>U&&(ae=U),ae===0)break e;A.set(l.subarray(p,p+ae),N),E-=ae,p+=ae,U-=ae,N+=ae,a.length-=ae;break}a.mode=Js;break;case Ao:for(;oe<14;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(a.nlen=(Z&31)+257,Z>>>=5,oe-=5,a.ndist=(Z&31)+1,Z>>>=5,oe-=5,a.ncode=(Z&15)+4,Z>>>=4,oe-=4,a.nlen>286||a.ndist>30){n.msg="too many length or distance symbols",a.mode=zr;break}a.have=0,a.mode=_s;case _s:for(;a.have<a.ncode;){for(;oe<3;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}a.lens[wt[a.have++]]=Z&7,Z>>>=3,oe-=3}for(;a.have<19;)a.lens[wt[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,Cr={bits:a.lenbits},ar=us(ia,a.lens,0,19,a.lencode,0,a.work,Cr),a.lenbits=Cr.bits,ar){n.msg="invalid code lengths set",a.mode=zr;break}a.have=0,a.mode=BA;case BA:for(;a.have<a.nlen+a.ndist;){for(;yt=a.lencode[Z&(1<<a.lenbits)-1],ot=yt>>>24,Gt=yt>>>16&255,Rt=yt&65535,!(ot<=oe);){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(Rt<16)Z>>>=ot,oe-=ot,a.lens[a.have++]=Rt;else{if(Rt===16){for(it=ot+2;oe<it;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(Z>>>=ot,oe-=ot,a.have===0){n.msg="invalid bit length repeat",a.mode=zr;break}Wr=a.lens[a.have-1],ae=3+(Z&3),Z>>>=2,oe-=2}else if(Rt===17){for(it=ot+3;oe<it;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}Z>>>=ot,oe-=ot,Wr=0,ae=3+(Z&7),Z>>>=3,oe-=3}else{for(it=ot+7;oe<it;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}Z>>>=ot,oe-=ot,Wr=0,ae=11+(Z&127),Z>>>=7,oe-=7}if(a.have+ae>a.nlen+a.ndist){n.msg="invalid bit length repeat",a.mode=zr;break}for(;ae--;)a.lens[a.have++]=Wr}}if(a.mode===zr)break;if(a.lens[256]===0){n.msg="invalid code -- missing end-of-block",a.mode=zr;break}if(a.lenbits=9,Cr={bits:a.lenbits},ar=us(Bl,a.lens,0,a.nlen,a.lencode,0,a.work,Cr),a.lenbits=Cr.bits,ar){n.msg="invalid literal/lengths set",a.mode=zr;break}if(a.distbits=6,a.distcode=a.distdyn,Cr={bits:a.distbits},ar=us($l,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,Cr),a.distbits=Cr.bits,ar){n.msg="invalid distances set",a.mode=zr;break}if(a.mode=SA,o===Sl)break e;case SA:a.mode=Wl;case Wl:if(E>=6&&U>=258){n.next_out=N,n.avail_out=U,n.next_in=p,n.avail_in=E,a.hold=Z,a.bits=oe,Fl(n,$e),N=n.next_out,A=n.output,U=n.avail_out,p=n.next_in,l=n.input,E=n.avail_in,Z=a.hold,oe=a.bits,a.mode===Js&&(a.back=-1);break}for(a.back=0;yt=a.lencode[Z&(1<<a.lenbits)-1],ot=yt>>>24,Gt=yt>>>16&255,Rt=yt&65535,!(ot<=oe);){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(Gt&&!(Gt&240)){for(Ft=ot,Mr=Gt,rn=Rt;yt=a.lencode[rn+((Z&(1<<Ft+Mr)-1)>>Ft)],ot=yt>>>24,Gt=yt>>>16&255,Rt=yt&65535,!(Ft+ot<=oe);){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}Z>>>=Ft,oe-=Ft,a.back+=Ft}if(Z>>>=ot,oe-=ot,a.back+=ot,a.length=Rt,Gt===0){a.mode=rd;break}if(Gt&32){a.back=-1,a.mode=Js;break}if(Gt&64){n.msg="invalid literal/length code",a.mode=zr;break}a.extra=Gt&15,a.mode=Wf;case Wf:if(a.extra){for(it=a.extra;oe<it;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}a.length+=Z&(1<<a.extra)-1,Z>>>=a.extra,oe-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=UA;case UA:for(;yt=a.distcode[Z&(1<<a.distbits)-1],ot=yt>>>24,Gt=yt>>>16&255,Rt=yt&65535,!(ot<=oe);){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(!(Gt&240)){for(Ft=ot,Mr=Gt,rn=Rt;yt=a.distcode[rn+((Z&(1<<Ft+Mr)-1)>>Ft)],ot=yt>>>24,Gt=yt>>>16&255,Rt=yt&65535,!(Ft+ot<=oe);){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}Z>>>=Ft,oe-=Ft,a.back+=Ft}if(Z>>>=ot,oe-=ot,a.back+=ot,Gt&64){n.msg="invalid distance code",a.mode=zr;break}a.offset=Rt,a.extra=Gt&15,a.mode=Gf;case Gf:if(a.extra){for(it=a.extra;oe<it;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}a.offset+=Z&(1<<a.extra)-1,Z>>>=a.extra,oe-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){n.msg="invalid distance too far back",a.mode=zr;break}a.mode=Xf;case Xf:if(U===0)break e;if(ae=$e-U,a.offset>ae){if(ae=a.offset-ae,ae>a.whave&&a.sane){n.msg="invalid distance too far back",a.mode=zr;break}ae>a.wnext?(ae-=a.wnext,mt=a.wsize-ae):mt=a.wnext-ae,ae>a.length&&(ae=a.length),ut=a.window}else ut=A,mt=N-a.offset,ae=a.length;ae>U&&(ae=U),U-=ae,a.length-=ae;do A[N++]=ut[mt++];while(--ae);a.length===0&&(a.mode=Wl);break;case rd:if(U===0)break e;A[N++]=a.length,U--,a.mode=Wl;break;case Dd:if(a.wrap){for(;oe<32;){if(E===0)break e;E--,Z|=l[p++]<<oe,oe+=8}if($e-=U,n.total_out+=$e,a.total+=$e,a.wrap&4&&$e&&(n.adler=a.check=a.flags?cs(a.check,A,$e,N-$e):ro(a.check,A,$e,N-$e)),$e=U,a.wrap&4&&(a.flags?Z:Yf(Z))!==a.check){n.msg="incorrect data check",a.mode=zr;break}Z=0,oe=0}a.mode=Nd;case Nd:if(a.wrap&&a.flags){for(;oe<32;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(a.wrap&4&&Z!==(a.total&4294967295)){n.msg="incorrect length check",a.mode=zr;break}Z=0,oe=0}a.mode=nd;case nd:ar=ou;break e;case zr:ar=El;break e;case Od:return il;case gf:default:return Qs}return n.next_out=N,n.avail_out=U,n.next_in=p,n.avail_in=E,a.hold=Z,a.bits=oe,(a.wsize||$e!==n.avail_out&&a.mode<zr&&(a.mode<Dd||o!==Uc))&&uo(n,n.output,n.next_out,$e-n.avail_out),Re-=n.avail_in,$e-=n.avail_out,n.total_in+=Re,n.total_out+=$e,a.total+=$e,a.wrap&4&&$e&&(n.adler=a.check=a.flags?cs(a.check,A,$e,n.next_out-$e):ro(a.check,A,$e,n.next_out-$e)),n.data_type=a.bits+(a.last?64:0)+(a.mode===Js?128:0)+(a.mode===SA||a.mode===mf?256:0),(Re===0&&$e===0||o===Uc)&&ar===ul&&(ar=ks),ar},rA=n=>{if(Lu(n))return Qs;let o=n.state;return o.window&&(o.window=null),n.state=null,ul},lu=(n,o)=>{if(Lu(n))return Qs;const a=n.state;return a.wrap&2?(a.head=o,o.done=!1,ul):Qs},XA=(n,o)=>{const a=o.length;let l,A,p;return Lu(n)||(l=n.state,l.wrap!==0&&l.mode!==Vl)?Qs:l.mode===Vl&&(A=1,A=ro(A,o,a,0),A!==l.check)?El:(p=uo(n,o,a,a),p?(l.mode=Od,il):(l.havedict=1,ul))};var B0=id,kl=yf,EA=bf,Fh=su,qf=RA,S0=wo,So=rA,wf=lu,Pd=XA,eh="pako inflate (from Nodeca project)",Ur={inflateReset:B0,inflateReset2:kl,inflateResetKeep:EA,inflateInit:Fh,inflateInit2:qf,inflate:S0,inflateEnd:So,inflateGetHeader:wf,inflateSetDictionary:Pd,inflateInfo:eh};function Dm(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Nm=Dm;const E0=Object.prototype.toString,{Z_NO_FLUSH:_0,Z_FINISH:Td,Z_OK:Mh,Z_STREAM_END:I0,Z_NEED_DICT:Xl,Z_STREAM_ERROR:ad,Z_DATA_ERROR:th,Z_MEM_ERROR:Lh}=ya;function kh(n){this.options=na.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const o=this.options;o.raw&&o.windowBits>=0&&o.windowBits<16&&(o.windowBits=-o.windowBits,o.windowBits===0&&(o.windowBits=-15)),o.windowBits>=0&&o.windowBits<16&&!(n&&n.windowBits)&&(o.windowBits+=32),o.windowBits>15&&o.windowBits<48&&(o.windowBits&15||(o.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ma,this.strm.avail_out=0;let a=Ur.inflateInit2(this.strm,o.windowBits);if(a!==Mh)throw new Error(Ba[a]);if(this.header=new Nm,Ur.inflateGetHeader(this.strm,this.header),o.dictionary&&(typeof o.dictionary=="string"?o.dictionary=Vi.string2buf(o.dictionary):E0.call(o.dictionary)==="[object ArrayBuffer]"&&(o.dictionary=new Uint8Array(o.dictionary)),o.raw&&(a=Ur.inflateSetDictionary(this.strm,o.dictionary),a!==Mh)))throw new Error(Ba[a])}kh.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize,A=this.options.dictionary;let p,N,E;if(this.ended)return!1;for(o===~~o?N=o:N=o===!0?Td:_0,E0.call(n)==="[object ArrayBuffer]"?a.input=new Uint8Array(n):a.input=n,a.next_in=0,a.avail_in=a.input.length;;){for(a.avail_out===0&&(a.output=new Uint8Array(l),a.next_out=0,a.avail_out=l),p=Ur.inflate(a,N),p===Xl&&A&&(p=Ur.inflateSetDictionary(a,A),p===Mh?p=Ur.inflate(a,N):p===th&&(p=Xl));a.avail_in>0&&p===I0&&a.state.wrap>0&&n[a.next_in]!==0;)Ur.inflateReset(a),p=Ur.inflate(a,N);switch(p){case ad:case th:case Xl:case Lh:return this.onEnd(p),this.ended=!0,!1}if(E=a.avail_out,a.next_out&&(a.avail_out===0||p===I0))if(this.options.to==="string"){let U=Vi.utf8border(a.output,a.next_out),Z=a.next_out-U,oe=Vi.buf2string(a.output,U);a.next_out=Z,a.avail_out=l-Z,Z&&a.output.set(a.output.subarray(U,U+Z),0),this.onData(oe)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(!(p===Mh&&E===0)){if(p===I0)return p=Ur.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,!0;if(a.avail_in===0)break}}return!0},kh.prototype.onData=function(n){this.chunks.push(n)},kh.prototype.onEnd=function(n){n===Mh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=na.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function rh(n,o){const a=new kh(o);if(a.push(n),a.err)throw a.msg||Ba[a.err];return a.result}function F0(n,o){return o=o||{},o.raw=!0,rh(n,o)}var fp=kh,M0=rh,nA=F0,Ud=rh,xf=ya,L0={Inflate:fp,inflate:M0,inflateRaw:nA,ungzip:Ud,constants:xf};const{Deflate:nh,deflate:Om,deflateRaw:Pm,gzip:Tm}=Aa,{Inflate:Um,inflate:hp,inflateRaw:Ds,ungzip:Zp}=L0;var Vp=nh,od=Om,Wp=Pm,ih=Tm,pp=Um,ah=hp,Dh=Ds,oh=Zp,Gp=ya,Rm={Deflate:Vp,deflate:od,deflateRaw:Wp,gzip:ih,Inflate:pp,inflate:ah,inflateRaw:Dh,ungzip:oh,constants:Gp};const Nh=[];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;Nh[n]=o}const k0=4294967295;function Qm(n,o,a){let l=n;for(let A=0;A<a;A++)l=Nh[(l^o[A])&255]^l>>>8;return l}function Xp(n,o){return(Qm(k0,n,o)^k0)>>>0}function Cf(n,o,a){const l=n.readUint32(),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 Km(n,o){n.writeUint32(Xp(new Uint8Array(n.buffer,n.byteOffset+n.offset-o,o),o))}function Dl(n,o,a){for(let l=0;l<a;l++)o[l]=n[l]}function Rd(n,o,a,l){let A=0;for(;A<l;A++)o[A]=n[A];for(;A<a;A++)o[A]=n[A]+o[A-l]&255}function Bf(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 Xc(n,o,a,l,A){let p=0;if(a.length===0){for(;p<A;p++)o[p]=n[p];for(;p<l;p++)o[p]=n[p]+o[p-A]&255}else{for(;p<A;p++)o[p]=n[p]+a[p]&255;for(;p<l;p++)o[p]=n[p]+cu(o[p-A],a[p],a[p-A])&255}}function cu(n,o,a){const l=n+o-a,A=Math.abs(l-n),p=Math.abs(l-o),N=Math.abs(l-a);return A<=p&&A<=N?n:p<=N?o:a}function _A(n,o,a,l,A,p){switch(n){case 0:Dl(o,a,A);break;case 1:Rd(o,a,A,p);break;case 2:Bf(o,a,l,A);break;case 3:sd(o,a,l,A,p);break;case 4:Xc(o,a,l,A,p);break;default:throw new Error(`Unsupported filter: ${n}`)}}const Du=new Uint16Array([255]),cd=new Uint8Array(Du.buffer)[0]===255;function sh(n){const{data:o,width:a,height:l,channels:A,depth:p}=n,N=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],E=Math.ceil(p/8)*A,U=new Uint8Array(l*a*E);let Z=0;for(let oe=0;oe<7;oe++){const Re=N[oe],$e=Math.ceil((a-Re.x)/Re.xStep),ae=Math.ceil((l-Re.y)/Re.yStep);if($e<=0||ae<=0)continue;const mt=$e*E,ut=new Uint8Array(mt);for(let yt=0;yt<ae;yt++){const ot=o[Z++],Gt=o.subarray(Z,Z+mt);Z+=mt;const Rt=new Uint8Array(mt);_A(ot,Gt,Rt,ut,mt,E),ut.set(Rt);for(let Ft=0;Ft<$e;Ft++){const Mr=Re.x+Ft*Re.xStep,rn=Re.y+yt*Re.yStep;if(!(Mr>=a||rn>=l))for(let Wr=0;Wr<E;Wr++)U[(rn*a+Mr)*E+Wr]=Rt[Ft*E+Wr]}}}if(p===16){const oe=new Uint16Array(U.buffer);if(cd)for(let Re=0;Re<oe.length;Re++)oe[Re]=Qd(oe[Re]);return oe}else return U}function Qd(n){return(n&255)<<8|n>>8&255}const Oh=new Uint16Array([255]),Ph=new Uint8Array(Oh.buffer)[0]===255,Jp=new Uint8Array(0);function mp(n){const{data:o,width:a,height:l,channels:A,depth:p}=n,N=Math.ceil(p/8)*A,E=Math.ceil(p/8*A*a),U=new Uint8Array(l*E);let Z=Jp,oe=0,Re,$e;for(let ae=0;ae<l;ae++){switch(Re=o.subarray(oe+1,oe+1+E),$e=U.subarray(ae*E,(ae+1)*E),o[oe]){case 0:Dl(Re,$e,E);break;case 1:Rd(Re,$e,E,N);break;case 2:Bf(Re,$e,Z,E);break;case 3:sd(Re,$e,Z,E,N);break;case 4:Xc(Re,$e,Z,E,N);break;default:throw new Error(`Unsupported filter: ${o[oe]}`)}Z=$e,oe+=E+1}if(p===16){const ae=new Uint16Array(U.buffer);if(Ph)for(let mt=0;mt<ae.length;mt++)ae[mt]=Yp(ae[mt]);return ae}else return U}function Yp(n){return(n&255)<<8|n>>8&255}const Th=Uint8Array.of(137,80,78,71,13,10,26,10);function Hm(n){n.writeBytes(Th)}function N0(n){if(!jm(n.readBytes(Th.length)))throw new Error("wrong PNG signature")}function jm(n){if(n.length<Th.length)return!1;for(let o=0;o<Th.length;o++)if(n[o]!==Th[o])return!1;return!0}const qp="tEXt",em=0,tm=new TextDecoder("latin1");function rm(n){if(Sf(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const gp=/^[\u0000-\u00FF]*$/;function Sf(n){if(!gp.test(n))throw new Error("invalid latin1 text")}function lh(n,o,a){const l=Nu(o);n[l]=vp(o,a-l.length-1)}function ch(n,o,a){rm(o),Sf(a);const l=o.length+1+a.length;n.writeUint32(l),n.writeChars(qp),n.writeChars(o),n.writeByte(em),n.writeChars(a),writeCrc(n,l+4)}function Nu(n){for(n.mark();n.readByte()!==em;);const o=n.offset;n.reset();const a=tm.decode(n.readBytes(o-n.offset-1));return n.skip(1),rm(a),a}function vp(n,o){return tm.decode(n.readBytes(o))}const IA={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},O0={UNKNOWN:-1,DEFLATE:0},nm={UNKNOWN:-1,ADAPTIVE:0},bp={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Uh={NONE:0,BACKGROUND:1,PREVIOUS:2},Rh={SOURCE:0,OVER:1};class zm extends Pi{constructor(a,l={}){super(a);zs(this,"_checkCrc");zs(this,"_inflator");zs(this,"_png");zs(this,"_apng");zs(this,"_end");zs(this,"_hasPalette");zs(this,"_palette");zs(this,"_hasTransparency");zs(this,"_transparency");zs(this,"_compressionMethod");zs(this,"_filterMethod");zs(this,"_interlaceMethod");zs(this,"_colorType");zs(this,"_isAnimated");zs(this,"_numberOfFrames");zs(this,"_numberOfPlays");zs(this,"_frames");zs(this,"_writingDataChunks");const{checkCrc:A=!1}=l;this._checkCrc=A,this._inflator=new pp,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=O0.UNKNOWN,this._filterMethod=nm.UNKNOWN,this._interlaceMethod=bp.UNKNOWN,this._colorType=IA.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(N0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeChunk(a,l)}return this.decodeImage(),this._png}decodeApng(){for(N0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeApngChunk(a,l)}return this.decodeApngImage(),this._apng}decodeChunk(a,l){const A=this.offset;switch(l){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(a);break;case"IDAT":this.decodeIDAT(a);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(a);break;case"iCCP":this.decodeiCCP(a);break;case qp:lh(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?Cf(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?Cf(this,a+4,l):this.skip(4)}decodeIHDR(){const a=this._png;a.width=this.readUint32(),a.height=this.readUint32(),a.depth=yp(this.readUint8());const l=this.readUint8();this._colorType=l;let 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!==O0.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=Nu(this),A=this.readUint8();if(A!==O0.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${A}`);const p=this.readBytes(a-l.length-2);this._png.iccEmbeddedProfile={name:l,profile:ah(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=mp({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 Uh.NONE:break;case Uh.BACKGROUND:for(let p=0;p<this._png.height;p++)for(let N=0;N<this._png.width;N++){const E=(p*a.width+N)*this._png.channels;for(let U=0;U<this._png.channels;U++)A.data[E+U]=0}break;case Uh.PREVIOUS:A.data.set(l.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(a,l){const A=1<<this._png.depth,p=(N,E)=>{const U=((N+l.yOffset)*this._png.width+l.xOffset+E)*this._png.channels,Z=(N*l.width+E)*this._png.channels;return{index:U,frameIndex:Z}};switch(l.blendOp){case Rh.SOURCE:for(let N=0;N<l.height;N++)for(let E=0;E<l.width;E++){const{index:U,frameIndex:Z}=p(N,E);for(let oe=0;oe<this._png.channels;oe++)a.data[U+oe]=l.data[Z+oe]}break;case Rh.OVER:for(let N=0;N<l.height;N++)for(let E=0;E<l.width;E++){const{index:U,frameIndex:Z}=p(N,E);for(let oe=0;oe<this._png.channels;oe++){const Re=l.data[Z+this._png.channels-1]/A,$e=oe%(this._png.channels-1)===0?1:l.data[Z+oe],ae=Math.floor(Re*$e+(1-Re)*a.data[U+oe]);a.data[U+oe]+=ae}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var l;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const a=this._isAnimated?((l=this._frames)==null?void 0:l.at(0)).data:this._inflator.result;if(this._filterMethod!==nm.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===bp.NO_INTERLACE)this._png.data=mp({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===bp.ADAM7)this._png.data=sh({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const a=this._inflator.result,l=this._frames.at(-1);l?l.data=a:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Uh.NONE,blendOp:Rh.SOURCE,data:a}),this._inflator=new pp,this._writingDataChunks=!1}}function yp(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}const hs={level:3};class Fi extends null{constructor(a,l={}){var A;super();zs(this,"_png");zs(this,"_zlibOptions");zs(this,"_colorType");zs(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=b1(b1({},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:N}=this._png,E=p<=8?Math.ceil(a*p/8)*A:Math.ceil(a*p/8*A/2),U=new IOBuffer().setBigEndian();let Z=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let $e=0;$e<l;$e++)U.writeByte(0),p===16?Z=Go(N,U,E,Z):Z=uc(N,U,E,Z);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Z=im(this._png,N,U,Z));const oe=U.toArray(),Re=deflate(oe,this._zlibOptions);this.encodeIDAT(Re)}_checkData(a){const{colorType:l,channels:A,depth:p}=P0(a,a.palette),N={width:Ou(a.width,"width"),height:Ou(a.height,"height"),channels:A,data:a.data,depth:p,text:a.text,palette:a.palette};this._colorType=l;const E=p<8?Math.ceil(N.width*p/8)*N.height*A:N.width*N.height*A;if(N.data.length!==E)throw new RangeError(`wrong data size. Found ${N.data.length}, expected ${E}`);return N}}function Ou(n,o){if(Number.isInteger(n)&&n>0)return n;throw new TypeError(`${o} must be a positive integer`)}function P0(n,o){const{channels:a=4,depth:l=8}=n;if(a!==4&&a!==3&&a!==2&&a!==1)throw new RangeError(`unsupported number of channels: ${a}`);const 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 uc(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:N,channels:E,depth:U}=n;let Z=0;U===16?Z=E*U/8/2:Z=E*U/8;for(let oe=0;oe<7;oe++){const Re=A[oe],$e=Math.floor((p-Re.x+Re.xStep-1)/Re.xStep),ae=Math.floor((N-Re.y+Re.yStep-1)/Re.yStep);if($e<=0||ae<=0)continue;const mt=$e*Z;for(let ut=0;ut<ae;ut++){const yt=Re.y+ut*Re.yStep,ot=U<=8?new Uint8Array(mt):new Uint16Array(mt);let Gt=0;for(let Rt=0;Rt<$e;Rt++){const Ft=Re.x+Rt*Re.xStep;if(Ft<p&&yt<N){const Mr=(yt*p+Ft)*Z;for(let rn=0;rn<Z;rn++)ot[Gt++]=o[Mr+rn]}}if(a.writeByte(0),U===8)a.writeBytes(ot);else if(U===16)for(const Rt of ot)a.writeByte(Rt>>8&255),a.writeByte(Rt&255)}}return l}function Go(n,o,a,l){for(let A=0;A<a;A++)o.writeUint16(n[l++]);return l}var sl;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(sl||(sl={}));function Ys(n,o){return new zm(n,o).decode()}function $m(n,o){return new PngEncoder(n,o).encode()}function T0(n,o){return new PngDecoder(n,o).decodeApng()}var Ga=function(){return typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:this}();function Ef(){Ga.console&&typeof Ga.console.log=="function"&&Ga.console.log.apply(Ga.console,arguments)}var Ns={log:Ef,warn:function(n){Ga.console&&(typeof Ga.console.warn=="function"?Ga.console.warn.apply(Ga.console,arguments):Ef.call(null,arguments))},error:function(n){Ga.console&&(typeof Ga.console.error=="function"?Ga.console.error.apply(Ga.console,arguments):Ef(n))}};function Kd(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(){Ns.error("could not download file")},l.send()}function U0(n){var o=new XMLHttpRequest;o.open("HEAD",n,!1);try{o.send()}catch(a){}return o.status>=200&&o.status<=299}function dc(n){try{n.dispatchEvent(new MouseEvent("click"))}catch(a){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}var Ad=Ga.saveAs||((typeof window=="undefined"?"undefined":(0,pe.Z)(window))!=="object"||window!==Ga?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(n,o,a){var l=Ga.URL||Ga.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?U0(A.href)?Kd(n,o,a):dc(A,A.target="_blank"):dc(A)):(A.href=l.createObjectURL(n),setTimeout(function(){l.revokeObjectURL(A.href)},4e4),setTimeout(function(){dc(A)},0))}:"msSaveOrOpenBlob"in navigator?function(n,o,a){if(o=o||n.name||"download",typeof n=="string")if(U0(n))Kd(n,o,a);else{var l=document.createElement("a");l.href=n,l.target="_blank",setTimeout(function(){dc(l)})}else navigator.msSaveOrOpenBlob(function(A,p){return p===void 0?p={autoBom:!1}:(0,pe.Z)(p)!=="object"&&(Ns.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 Kd(n,o,a);var A=n.type==="application/octet-stream",p=/constructor/i.test(Ga.HTMLElement)||Ga.safari,N=/CriOS\/[\d]+/.test(navigator.userAgent);if((N||A&&p)&&(typeof FileReader=="undefined"?"undefined":(0,pe.Z)(FileReader))==="object"){var E=new FileReader;E.onloadend=function(){var oe=E.result;oe=N?oe:oe.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=oe:location=oe,l=null},E.readAsDataURL(n)}else{var U=Ga.URL||Ga.webkitURL,Z=U.createObjectURL(n);l?l.location=Z:location.href=Z,l=null,setTimeout(function(){U.revokeObjectURL(Z)},4e4)}});function wp(n){var o;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var a=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(E){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(E){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(E){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}}],l=0;l<a.length;l++){var A=a[l].re,p=a[l].process,N=A.exec(n);N&&(o=p(N),this.r=o[0],this.g=o[1],this.b=o[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var E=this.r.toString(16),U=this.g.toString(16),Z=this.b.toString(16);return E.length==1&&(E="0"+E),U.length==1&&(U="0"+U),Z.length==1&&(Z="0"+Z),"#"+E+U+Z}}var gn=Ga.atob.bind(Ga),Ks=Ga.btoa.bind(Ga);function R0(n,o){var a=n[0],l=n[1],A=n[2],p=n[3];a=Qc(a,l,A,p,o[0],7,-680876936),p=Qc(p,a,l,A,o[1],12,-389564586),A=Qc(A,p,a,l,o[2],17,606105819),l=Qc(l,A,p,a,o[3],22,-1044525330),a=Qc(a,l,A,p,o[4],7,-176418897),p=Qc(p,a,l,A,o[5],12,1200080426),A=Qc(A,p,a,l,o[6],17,-1473231341),l=Qc(l,A,p,a,o[7],22,-45705983),a=Qc(a,l,A,p,o[8],7,1770035416),p=Qc(p,a,l,A,o[9],12,-1958414417),A=Qc(A,p,a,l,o[10],17,-42063),l=Qc(l,A,p,a,o[11],22,-1990404162),a=Qc(a,l,A,p,o[12],7,1804603682),p=Qc(p,a,l,A,o[13],12,-40341101),A=Qc(A,p,a,l,o[14],17,-1502002290),a=Bc(a,l=Qc(l,A,p,a,o[15],22,1236535329),A,p,o[1],5,-165796510),p=Bc(p,a,l,A,o[6],9,-1069501632),A=Bc(A,p,a,l,o[11],14,643717713),l=Bc(l,A,p,a,o[0],20,-373897302),a=Bc(a,l,A,p,o[5],5,-701558691),p=Bc(p,a,l,A,o[10],9,38016083),A=Bc(A,p,a,l,o[15],14,-660478335),l=Bc(l,A,p,a,o[4],20,-405537848),a=Bc(a,l,A,p,o[9],5,568446438),p=Bc(p,a,l,A,o[14],9,-1019803690),A=Bc(A,p,a,l,o[3],14,-187363961),l=Bc(l,A,p,a,o[8],20,1163531501),a=Bc(a,l,A,p,o[13],5,-1444681467),p=Bc(p,a,l,A,o[2],9,-51403784),A=Bc(A,p,a,l,o[7],14,1735328473),a=ic(a,l=Bc(l,A,p,a,o[12],20,-1926607734),A,p,o[5],4,-378558),p=ic(p,a,l,A,o[8],11,-2022574463),A=ic(A,p,a,l,o[11],16,1839030562),l=ic(l,A,p,a,o[14],23,-35309556),a=ic(a,l,A,p,o[1],4,-1530992060),p=ic(p,a,l,A,o[4],11,1272893353),A=ic(A,p,a,l,o[7],16,-155497632),l=ic(l,A,p,a,o[10],23,-1094730640),a=ic(a,l,A,p,o[13],4,681279174),p=ic(p,a,l,A,o[0],11,-358537222),A=ic(A,p,a,l,o[3],16,-722521979),l=ic(l,A,p,a,o[6],23,76029189),a=ic(a,l,A,p,o[9],4,-640364487),p=ic(p,a,l,A,o[12],11,-421815835),A=ic(A,p,a,l,o[15],16,530742520),a=fc(a,l=ic(l,A,p,a,o[2],23,-995338651),A,p,o[0],6,-198630844),p=fc(p,a,l,A,o[7],10,1126891415),A=fc(A,p,a,l,o[14],15,-1416354905),l=fc(l,A,p,a,o[5],21,-57434055),a=fc(a,l,A,p,o[12],6,1700485571),p=fc(p,a,l,A,o[3],10,-1894986606),A=fc(A,p,a,l,o[10],15,-1051523),l=fc(l,A,p,a,o[1],21,-2054922799),a=fc(a,l,A,p,o[8],6,1873313359),p=fc(p,a,l,A,o[15],10,-30611744),A=fc(A,p,a,l,o[6],15,-1560198380),l=fc(l,A,p,a,o[13],21,1309151649),a=fc(a,l,A,p,o[4],6,-145523070),p=fc(p,a,l,A,o[11],10,-1120210379),A=fc(A,p,a,l,o[2],15,718787259),l=fc(l,A,p,a,o[9],21,-343485551),n[0]=Jc(a,n[0]),n[1]=Jc(l,n[1]),n[2]=Jc(A,n[2]),n[3]=Jc(p,n[3])}function Q0(n,o,a,l,A,p){return o=Jc(Jc(o,n),Jc(l,p)),Jc(o<<A|o>>>32-A,a)}function Qc(n,o,a,l,A,p,N){return Q0(o&a|~o&l,n,o,A,p,N)}function Bc(n,o,a,l,A,p,N){return Q0(o&l|a&~l,n,o,A,p,N)}function ic(n,o,a,l,A,p,N){return Q0(o^a^l,n,o,A,p,N)}function fc(n,o,a,l,A,p,N){return Q0(a^(o|~l),n,o,A,p,N)}function am(n){var o,a=n.length,l=[1732584193,-271733879,-1732584194,271733878];for(o=64;o<=n.length;o+=64)R0(l,K0(n.substring(o-64,o)));n=n.substring(o-64);var 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(R0(l,A),o=0;o<16;o++)A[o]=0;return A[14]=8*a,R0(l,A),l}function K0(n){var o,a=[];for(o=0;o<64;o+=4)a[o>>2]=n.charCodeAt(o)+(n.charCodeAt(o+1)<<8)+(n.charCodeAt(o+2)<<16)+(n.charCodeAt(o+3)<<24);return a}var FA="0123456789abcdef".split("");function _f(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 If(n){return am(n).map(Nl).join("")}var xp=function(n){for(var o=0;o<n.length;o++)n[o]=_f(n[o]);return n.join("")}(am("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jc(n,o){if(xp){var a=(65535&n)+(65535&o);return(n>>16)+(o>>16)+(a>>16)<<16|65535&a}return n+o&4294967295}function hc(n,o){var a,l,A,p;if(n!==a){for(var N=(A=n,p=1+(256/n.length|0),new Array(p+1).join(A)),E=[],U=0;U<256;U++)E[U]=U;var Z=0;for(U=0;U<256;U++){var oe=E[U];Z=(Z+oe+N.charCodeAt(U))%256,E[U]=E[Z],E[Z]=oe}a=n,l=E}else E=l;var Re=o.length,$e=0,ae=0,mt="";for(U=0;U<Re;U++)ae=(ae+(oe=E[$e=($e+1)%256]))%256,E[$e]=E[ae],E[ae]=oe,N=E[(E[$e]+E[ae])%256],mt+=String.fromCharCode(o.charCodeAt(U)^N);return mt}var Qh={print:4,modify:8,copy:16,"annot-forms":32};function Pu(n,o,a,l){this.v=1,this.r=2;var A=192;n.forEach(function(E){if(Qh.perm!==void 0)throw new Error("Invalid permission: "+E);A+=Qh[E]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var p=(o+this.padding).substr(0,32),N=(a+this.padding).substr(0,32);this.O=this.processOwnerPassword(p,N),this.P=-(1+(255^A)),this.encryptionKey=If(p+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(l)).substr(0,5),this.U=hc(this.encryptionKey,this.padding)}function iA(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var o="",a=n.length,l=0;l<a;l++){var A=n.charCodeAt(l);o+=A<33||A===35||A===37||A===40||A===41||A===47||A===60||A===62||A===91||A===93||A===123||A===125||A>126?"#"+("0"+A.toString(16)).slice(-2):n[l]}return o}function Cp(n){if((0,pe.Z)(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var o={};this.subscribe=function(a,l,A){if(A=A||!1,typeof a!="string"||typeof l!="function"||typeof A!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");o.hasOwnProperty(a)||(o[a]={});var p=Math.random().toString(35);return o[a][p]=[l,!!A],p},this.unsubscribe=function(a){for(var l in o)if(o[l][a])return delete o[l][a],Object.keys(o[l]).length===0&&delete o[l],!0;return!1},this.publish=function(a){if(o.hasOwnProperty(a)){var l=Array.prototype.slice.call(arguments,1),A=[];for(var p in o[a]){var N=o[a][p];try{N[0].apply(n,l)}catch(E){Ga.console&&Ns.error("jsPDF PubSub Error",E.message,E)}N[1]&&A.push(p)}A.length&&A.forEach(this.unsubscribe)}},this.getTopics=function(){return o}}function Kh(n){if(!(this instanceof Kh))return new Kh(n);var o="opacity,stroke-opacity".split(",");for(var a in n)n.hasOwnProperty(a)&&o.indexOf(a)>=0&&(this[a]=n[a]);this.id="",this.objectNumber=-1}function Ah(n,o){this.gState=n,this.matrix=o,this.id="",this.objectNumber=-1}function Hd(n,o,a,l,A){if(!(this instanceof Hd))return new Hd(n,o,a,l,A);this.type=n==="axial"?2:3,this.coords=o,this.colors=a,Ah.call(this,l,A)}function jd(n,o,a,l,A){if(!(this instanceof jd))return new jd(n,o,a,l,A);this.boundingBox=n,this.xStep=o,this.yStep=a,this.stream="",this.cloneIndex=0,Ah.call(this,l,A)}function da(n){var o,a=typeof arguments[0]=="string"?arguments[0]:"p",l=arguments[1],A=arguments[2],p=arguments[3],N=[],E=1,U=16,Z="S",oe=null;(0,pe.Z)(n=n||{})==="object"&&(a=n.orientation,l=n.unit||l,A=n.format||A,p=n.compress||n.compressPdf||p,(oe=n.encryption||null)!==null&&(oe.userPassword=oe.userPassword||"",oe.ownerPassword=oe.ownerPassword||"",oe.userPermissions=oe.userPermissions||[]),E=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(o=n.precision),n.floatPrecision!==void 0&&(U=n.floatPrecision),Z=n.defaultPathOperation||"S"),N=n.filters||(p===!0?["FlateEncode"]:N),l=l||"mm",a=(""+(a||"P")).toLowerCase();var Re=n.putOnlyUsedFonts||!1,$e={},ae={internal:{},__private__:{}};ae.__private__.PubSub=Cp;var mt="1.3",ut=ae.__private__.getPdfVersion=function(){return mt};ae.__private__.setPdfVersion=function(z){mt=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]};ae.__private__.getPageFormats=function(){return yt};var ot=ae.__private__.getPageFormat=function(z){return yt[z]};A=A||"a4";var Gt="compat",Rt="advanced",Ft=Gt;function Mr(){this.saveGraphicsState(),gt(new ja(Eo,0,0,-Eo,0,fh()*Eo).toString()+" cm"),this.setFontSize(this.getFontSize()/Eo),Z="n",Ft=Rt}function rn(){this.restoreGraphicsState(),Z="S",Ft=Gt}var Wr=ae.__private__.combineFontStyleAndFontWeight=function(z,He){if(z=="bold"&&He=="normal"||z=="bold"&&He==400||z=="normal"&&He=="italic"||z=="bold"&&He=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return He&&(z=He==400||He==="normal"?z==="italic"?"italic":"normal":He!=700&&He!=="bold"||z!=="normal"?(He==700?"bold":He)+""+z:"bold"),z};ae.advancedAPI=function(z){var He=Ft===Gt;return He&&Mr.call(this),typeof z!="function"||(z(this),He&&rn.call(this)),this},ae.compatAPI=function(z){var He=Ft===Rt;return He&&rn.call(this),typeof z!="function"||(z(this),He&&Mr.call(this)),this},ae.isAdvancedAPI=function(){return Ft===Rt};var ar,Mt=function(z){if(Ft!==Rt)throw new Error(z+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Cr=ae.roundToPrecision=ae.__private__.roundToPrecision=function(z,He){var St=o||He;if(isNaN(z)||isNaN(St))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return z.toFixed(St).replace(/0+$/,"")};ar=ae.hpf=ae.__private__.hpf=typeof U=="number"?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(z,U)}:U==="smart"?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(z,z>-1&&z<1?16:5)}:function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(z,16)};var it=ae.f2=ae.__private__.f2=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f2");return Cr(z,2)},wt=ae.__private__.f3=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f3");return Cr(z,3)},Wt=ae.scale=ae.__private__.scale=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.scale");return Ft===Gt?z*Eo:Ft===Rt?z:void 0},Ht=function(z){return Wt(function(He){return Ft===Gt?fh()-He:Ft===Rt?He:void 0}(z))};ae.__private__.setPrecision=ae.setPrecision=function(z){typeof parseInt(z,10)=="number"&&(o=parseInt(z,10))};var Tr,Zr="00000000000000000000000000000000",Jr=ae.__private__.getFileId=function(){return Zr},Lr=ae.__private__.setFileId=function(z){return Zr=z!==void 0&&/^[a-fA-F0-9]{32}$/.test(z)?z.toUpperCase():Zr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),oe!==null&&(jc=new Pu(oe.userPermissions,oe.userPassword,oe.ownerPassword,Zr)),Zr};ae.setFileId=function(z){return Lr(z),this},ae.getFileId=function(){return Jr()};var Gr=ae.__private__.convertDateToPDFDate=function(z){var He=z.getTimezoneOffset(),St=He<0?"+":"-",Zt=Math.floor(Math.abs(He/60)),vr=Math.abs(He%60),fn=[St,Ot(Zt),"'",Ot(vr),"'"].join("");return["D:",z.getFullYear(),Ot(z.getMonth()+1),Ot(z.getDate()),Ot(z.getHours()),Ot(z.getMinutes()),Ot(z.getSeconds()),fn].join("")},$n=ae.__private__.convertPDFDateToDate=function(z){var He=parseInt(z.substr(2,4),10),St=parseInt(z.substr(6,2),10)-1,Zt=parseInt(z.substr(8,2),10),vr=parseInt(z.substr(10,2),10),fn=parseInt(z.substr(12,2),10),Sn=parseInt(z.substr(14,2),10);return new Date(He,St,Zt,vr,fn,Sn,0)},Bn=ae.__private__.setCreationDate=function(z){var He;if(z===void 0&&(z=new Date),z instanceof Date)He=Gr(z);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(z))throw new Error("Invalid argument passed to jsPDF.setCreationDate");He=z}return Tr=He},rt=ae.__private__.getCreationDate=function(z){var He=Tr;return z==="jsDate"&&(He=$n(Tr)),He};ae.setCreationDate=function(z){return Bn(z),this},ae.getCreationDate=function(z){return rt(z)};var It,Ot=ae.__private__.padd2=function(z){return("0"+parseInt(z)).slice(-2)},Jt=ae.__private__.padd2Hex=function(z){return("00"+(z=z.toString())).substr(z.length)},fr=0,Er=[],Kr=[],$r=0,mn=[],Hn=[],gi=!1,Ci=Kr;ae.__private__.setCustomOutputDestination=function(z){gi=!0,Ci=z};var Sa=function(z){gi||(Ci=z)};ae.__private__.resetCustomOutputDestination=function(){gi=!1,Ci=Kr};var gt=ae.__private__.out=function(z){return z=z.toString(),$r+=z.length+1,Ci.push(z),Ci},Li=ae.__private__.write=function(z){return gt(arguments.length===1?z.toString():Array.prototype.join.call(arguments," "))},Oo=ae.__private__.getArrayBuffer=function(z){for(var He=z.length,St=new ArrayBuffer(He),Zt=new Uint8Array(St);He--;)Zt[He]=z.charCodeAt(He);return St},Ha=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];ae.__private__.getStandardFonts=function(){return Ha};var Un=n.fontSize||16;ae.__private__.setFontSize=ae.setFontSize=function(z){return Un=Ft===Rt?z/Eo:z,this};var Da,Oi=ae.__private__.getFontSize=ae.getFontSize=function(){return Ft===Gt?Un:Un*Eo},xa=n.R2L||!1;ae.__private__.setR2L=ae.setR2L=function(z){return xa=z,this},ae.__private__.getR2L=ae.getR2L=function(){return xa};var La,is=ae.__private__.setZoomMode=function(z){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(z))Da=z;else if(isNaN(z)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(z)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+z+'" is not recognized.');Da=z}else Da=parseInt(z,10)};ae.__private__.getZoomMode=function(){return Da};var as,Ja=ae.__private__.setPageMode=function(z){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(z)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+z+'" is not recognized.');La=z};ae.__private__.getPageMode=function(){return La};var Xo=ae.__private__.setLayoutMode=function(z){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(z)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+z+'" is not recognized.');as=z};ae.__private__.getLayoutMode=function(){return as},ae.__private__.setDisplayMode=ae.setDisplayMode=function(z,He,St){return is(z),Xo(He),Ja(St),this};var Qo={title:"",subject:"",author:"",keywords:"",creator:""};ae.__private__.getDocumentProperty=function(z){if(Object.keys(Qo).indexOf(z)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Qo[z]},ae.__private__.getDocumentProperties=function(){return Qo},ae.__private__.setDocumentProperties=ae.setProperties=ae.setDocumentProperties=function(z){for(var He in Qo)Qo.hasOwnProperty(He)&&z[He]&&(Qo[He]=z[He]);return this},ae.__private__.setDocumentProperty=function(z,He){if(Object.keys(Qo).indexOf(z)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Qo[z]=He};var ha,Eo,Ca,pc,ws,Po={},Ko={},Ol=[],Ea={},dl={},Ya={},fo={},al=null,no=0,Na=[],Hs=new Cp(ae),Zh=n.hotfixes||[],Hc={},Mf={},Zd=[],ja=function z(He,St,Zt,vr,fn,Sn){if(!(this instanceof z))return new z(He,St,Zt,vr,fn,Sn);isNaN(He)&&(He=1),isNaN(St)&&(St=0),isNaN(Zt)&&(Zt=0),isNaN(vr)&&(vr=1),isNaN(fn)&&(fn=0),isNaN(Sn)&&(Sn=0),this._matrix=[He,St,Zt,vr,fn,Sn]};Object.defineProperty(ja.prototype,"sx",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(ja.prototype,"shy",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(ja.prototype,"shx",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(ja.prototype,"sy",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(ja.prototype,"tx",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(ja.prototype,"ty",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(ja.prototype,"a",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(ja.prototype,"b",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(ja.prototype,"c",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(ja.prototype,"d",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(ja.prototype,"e",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(ja.prototype,"f",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(ja.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ja.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ja.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ja.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ja.prototype.join=function(z){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ar).join(z)},ja.prototype.multiply=function(z){var He=z.sx*this.sx+z.shy*this.shx,St=z.sx*this.shy+z.shy*this.sy,Zt=z.shx*this.sx+z.sy*this.shx,vr=z.shx*this.shy+z.sy*this.sy,fn=z.tx*this.sx+z.ty*this.shx+this.tx,Sn=z.tx*this.shy+z.ty*this.sy+this.ty;return new ja(He,St,Zt,vr,fn,Sn)},ja.prototype.decompose=function(){var z=this.sx,He=this.shy,St=this.shx,Zt=this.sy,vr=this.tx,fn=this.ty,Sn=Math.sqrt(z*z+He*He),aa=(z/=Sn)*St+(He/=Sn)*Zt;St-=z*aa,Zt-=He*aa;var pa=Math.sqrt(St*St+Zt*Zt);return aa/=pa,z*(Zt/=pa)<He*(St/=pa)&&(z=-z,He=-He,aa=-aa,Sn=-Sn),{scale:new ja(Sn,0,0,pa,0,0),translate:new ja(1,0,0,1,vr,fn),rotate:new ja(z,He,-He,z,0,0),skew:new ja(1,0,aa,1,0,0)}},ja.prototype.toString=function(z){return this.join(" ")},ja.prototype.inversed=function(){var z=this.sx,He=this.shy,St=this.shx,Zt=this.sy,vr=this.tx,fn=this.ty,Sn=1/(z*Zt-He*St),aa=Zt*Sn,pa=-He*Sn,qa=-St*Sn,po=z*Sn;return new ja(aa,pa,qa,po,-aa*vr-qa*fn,-pa*vr-po*fn)},ja.prototype.applyToPoint=function(z){var He=z.x*this.sx+z.y*this.shx+this.tx,St=z.x*this.shy+z.y*this.sy+this.ty;return new Df(He,St)},ja.prototype.applyToRectangle=function(z){var He=this.applyToPoint(z),St=this.applyToPoint(new Df(z.x+z.w,z.y+z.h));return new ef(He.x,He.y,St.x-He.x,St.y-He.y)},ja.prototype.clone=function(){var z=this.sx,He=this.shy,St=this.shx,Zt=this.sy,vr=this.tx,fn=this.ty;return new ja(z,He,St,Zt,vr,fn)},ae.Matrix=ja;var Lf=ae.matrixMult=function(z,He){return He.multiply(z)},kf=new ja(1,0,0,1,0,0);ae.unitMatrix=ae.identityMatrix=kf;var mu=function(z,He){if(!dl[z]){var St=(He instanceof Hd?"Sh":"P")+(Object.keys(Ea).length+1).toString(10);He.id=St,dl[z]=St,Ea[St]=He,Hs.publish("addPattern",He)}};ae.ShadingPattern=Hd,ae.TilingPattern=jd,ae.addShadingPattern=function(z,He){return Mt("addShadingPattern()"),mu(z,He),this},ae.beginTilingPattern=function(z){Mt("beginTilingPattern()"),n0(z.boundingBox[0],z.boundingBox[1],z.boundingBox[2]-z.boundingBox[0],z.boundingBox[3]-z.boundingBox[1],z.matrix)},ae.endTilingPattern=function(z,He){Mt("endTilingPattern()"),He.stream=Hn[It].join(`
|
|
|
`),mu(z,He),Hs.publish("endTilingPattern",He),Zd.pop().restore()};var gu,ac=ae.__private__.newObject=function(){var z=Is();return fl(z,!0),z},Is=ae.__private__.newObjectDeferred=function(){return fr++,Er[fr]=function(){return $r},fr},fl=function(z,He){return He=typeof He=="boolean"&&He,Er[z]=$r,He&>(z+" 0 obj"),z},Vd=ae.__private__.newAdditionalObject=function(){var z={objId:Is(),content:""};return mn.push(z),z},Wd=Is(),Ru=Is(),vu=ae.__private__.decodeColorString=function(z){var He=z.split(" ");if(He.length!==2||He[1]!=="g"&&He[1]!=="G")He.length!==5||He[4]!=="k"&&He[4]!=="K"||(He=[(1-He[0])*(1-He[3]),(1-He[1])*(1-He[3]),(1-He[2])*(1-He[3]),"r"]);else{var St=parseFloat(He[0]);He=[St,St,St,"r"]}for(var Zt="#",vr=0;vr<3;vr++)Zt+=("0"+Math.floor(255*parseFloat(He[vr])).toString(16)).slice(-2);return Zt},lA=ae.__private__.encodeColorString=function(z){var He;typeof z=="string"&&(z={ch1:z});var St=z.ch1,Zt=z.ch2,vr=z.ch3,fn=z.ch4,Sn=z.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof St=="string"&&St.charAt(0)!=="#"){var aa=new wp(St);if(aa.ok)St=aa.toHex();else if(!/^\d*\.?\d*$/.test(St))throw new Error('Invalid color "'+St+'" passed to jsPDF.encodeColorString.')}if(typeof St=="string"&&/^#[0-9A-Fa-f]{3}$/.test(St)&&(St="#"+St[1]+St[1]+St[2]+St[2]+St[3]+St[3]),typeof St=="string"&&/^#[0-9A-Fa-f]{6}$/.test(St)){var pa=parseInt(St.substr(1),16);St=pa>>16&255,Zt=pa>>8&255,vr=255&pa}if(Zt===void 0||fn===void 0&&St===Zt&&Zt===vr)He=typeof St=="string"?St+" "+Sn[0]:z.precision===2?it(St/255)+" "+Sn[0]:wt(St/255)+" "+Sn[0];else if(fn===void 0||(0,pe.Z)(fn)==="object"){if(fn&&!isNaN(fn.a)&&fn.a===0)return["1.","1.","1.",Sn[1]].join(" ");He=typeof St=="string"?[St,Zt,vr,Sn[1]].join(" "):z.precision===2?[it(St/255),it(Zt/255),it(vr/255),Sn[1]].join(" "):[wt(St/255),wt(Zt/255),wt(vr/255),Sn[1]].join(" ")}else He=typeof St=="string"?[St,Zt,vr,fn,Sn[2]].join(" "):z.precision===2?[it(St),it(Zt),it(vr),it(fn),Sn[2]].join(" "):[wt(St),wt(Zt),wt(vr),wt(fn),Sn[2]].join(" ");return He},bu=ae.__private__.getFilters=function(){return N},Qu=ae.__private__.putStream=function(z){var He=(z=z||{}).data||"",St=z.filters||bu(),Zt=z.alreadyAppliedFilters||[],vr=z.addLength1||!1,fn=He.length,Sn=z.objectId,aa=function(hl){return hl};if(oe!==null&&Sn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");oe!==null&&(aa=jc.encryptor(Sn,0));var pa={};St===!0&&(St=["FlateEncode"]);var qa=z.additionalKeyValues||[],po=(pa=da.API.processDataByFilters!==void 0?da.API.processDataByFilters(He,St):{data:He,reverseChain:[]}).reverseChain+(Array.isArray(Zt)?Zt.join(" "):Zt.toString());if(pa.data.length!==0&&(qa.push({key:"Length",value:pa.data.length}),vr===!0&&qa.push({key:"Length1",value:fn})),po.length!=0)if(po.split("/").length-1==1)qa.push({key:"Filter",value:po});else{qa.push({key:"Filter",value:"["+po+"]"});for(var sa=0;sa<qa.length;sa+=1)if(qa[sa].key==="DecodeParms"){for(var Yl=[],_c=0;_c<pa.reverseChain.split("/").length-1;_c+=1)Yl.push("null");Yl.push(qa[sa].value),qa[sa].value="["+Yl.join(" ")+"]"}}gt("<<");for(var yl=0;yl<qa.length;yl++)gt("/"+qa[yl].key+" "+qa[yl].value);gt(">>"),pa.data.length!==0&&(gt("stream"),gt(aa(pa.data)),gt("endstream"))},Vh=ae.__private__.putPage=function(z){var He=z.number,St=z.data,Zt=z.objId,vr=z.contentsObjId;fl(Zt,!0),gt("<</Type /Page"),gt("/Parent "+z.rootDictionaryObjId+" 0 R"),gt("/Resources "+z.resourceDictionaryObjId+" 0 R"),gt("/MediaBox ["+parseFloat(ar(z.mediaBox.bottomLeftX))+" "+parseFloat(ar(z.mediaBox.bottomLeftY))+" "+ar(z.mediaBox.topRightX)+" "+ar(z.mediaBox.topRightY)+"]"),z.cropBox!==null&>("/CropBox ["+ar(z.cropBox.bottomLeftX)+" "+ar(z.cropBox.bottomLeftY)+" "+ar(z.cropBox.topRightX)+" "+ar(z.cropBox.topRightY)+"]"),z.bleedBox!==null&>("/BleedBox ["+ar(z.bleedBox.bottomLeftX)+" "+ar(z.bleedBox.bottomLeftY)+" "+ar(z.bleedBox.topRightX)+" "+ar(z.bleedBox.topRightY)+"]"),z.trimBox!==null&>("/TrimBox ["+ar(z.trimBox.bottomLeftX)+" "+ar(z.trimBox.bottomLeftY)+" "+ar(z.trimBox.topRightX)+" "+ar(z.trimBox.topRightY)+"]"),z.artBox!==null&>("/ArtBox ["+ar(z.artBox.bottomLeftX)+" "+ar(z.artBox.bottomLeftY)+" "+ar(z.artBox.topRightX)+" "+ar(z.artBox.topRightY)+"]"),typeof z.userUnit=="number"&&z.userUnit!==1&>("/UserUnit "+z.userUnit),Hs.publish("putPage",{objId:Zt,pageContext:Na[He],pageNumber:He,page:St}),gt("/Contents "+vr+" 0 R"),gt(">>"),gt("endobj");var fn=St.join(`
|
|
|
`);return Ft===Rt&&(fn+=`
|
|
|
Q`),fl(vr,!0),Qu({data:fn,filters:bu(),objectId:vr}),gt("endobj"),Zt},Gd=ae.__private__.putPages=function(){var z,He,St=[];for(z=1;z<=no;z++)Na[z].objId=Is(),Na[z].contentsObjId=Is();for(z=1;z<=no;z++)St.push(Vh({number:z,data:Hn[z],objId:Na[z].objId,contentsObjId:Na[z].contentsObjId,mediaBox:Na[z].mediaBox,cropBox:Na[z].cropBox,bleedBox:Na[z].bleedBox,trimBox:Na[z].trimBox,artBox:Na[z].artBox,userUnit:Na[z].userUnit,rootDictionaryObjId:Wd,resourceDictionaryObjId:Ru}));fl(Wd,!0),gt("<</Type /Pages");var Zt="/Kids [";for(He=0;He<no;He++)Zt+=St[He]+" 0 R ";gt(Zt+"]"),gt("/Count "+no),gt(">>"),gt("endobj"),Hs.publish("postPutPages")},Wh=function(z){Hs.publish("putFont",{font:z,out:gt,newObject:ac,putStream:Qu}),z.isAlreadyPutted!==!0&&(z.objectNumber=ac(),gt("<<"),gt("/Type /Font"),gt("/BaseFont /"+iA(z.postScriptName)),gt("/Subtype /Type1"),typeof z.encoding=="string"&>("/Encoding /"+z.encoding),gt("/FirstChar 32"),gt("/LastChar 255"),gt(">>"),gt("endobj"))},Gh=function(z){z.objectNumber=ac();var He=[];He.push({key:"Type",value:"/XObject"}),He.push({key:"Subtype",value:"/Form"}),He.push({key:"BBox",value:"["+[ar(z.x),ar(z.y),ar(z.x+z.width),ar(z.y+z.height)].join(" ")+"]"}),He.push({key:"Matrix",value:"["+z.matrix.toString()+"]"});var St=z.pages[1].join(`
|
|
|
`);Qu({data:St,additionalKeyValues:He,objectId:z.objectNumber}),gt("endobj")},z0=function(z,He){He||(He=21);var St=ac(),Zt=function(Sn,aa){var pa,qa=[],po=1/(aa-1);for(pa=0;pa<1;pa+=po)qa.push(pa);if(qa.push(1),Sn[0].offset!=0){var sa={offset:0,color:Sn[0].color};Sn.unshift(sa)}if(Sn[Sn.length-1].offset!=1){var Yl={offset:1,color:Sn[Sn.length-1].color};Sn.push(Yl)}for(var _c="",yl=0,hl=0;hl<qa.length;hl++){for(pa=qa[hl];pa>Sn[yl+1].offset;)yl++;var Ic=Sn[yl].offset,AA=(pa-Ic)/(Sn[yl+1].offset-Ic),Tf=Sn[yl].color,vd=Sn[yl+1].color;_c+=Jt(Math.round((1-AA)*Tf[0]+AA*vd[0]).toString(16))+Jt(Math.round((1-AA)*Tf[1]+AA*vd[1]).toString(16))+Jt(Math.round((1-AA)*Tf[2]+AA*vd[2]).toString(16))}return _c.trim()}(z.colors,He),vr=[];vr.push({key:"FunctionType",value:"0"}),vr.push({key:"Domain",value:"[0.0 1.0]"}),vr.push({key:"Size",value:"["+He+"]"}),vr.push({key:"BitsPerSample",value:"8"}),vr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),vr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qu({data:Zt,additionalKeyValues:vr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:St}),gt("endobj"),z.objectNumber=ac(),gt("<< /ShadingType "+z.type),gt("/ColorSpace /DeviceRGB");var fn="/Coords ["+ar(parseFloat(z.coords[0]))+" "+ar(parseFloat(z.coords[1]))+" ";z.type===2?fn+=ar(parseFloat(z.coords[2]))+" "+ar(parseFloat(z.coords[3])):fn+=ar(parseFloat(z.coords[2]))+" "+ar(parseFloat(z.coords[3]))+" "+ar(parseFloat(z.coords[4]))+" "+ar(parseFloat(z.coords[5])),gt(fn+="]"),z.matrix&>("/Matrix ["+z.matrix.toString()+"]"),gt("/Function "+St+" 0 R"),gt("/Extend [true true]"),gt(">>"),gt("endobj")},Xh=function(z,He){var St=Is(),Zt=ac();He.push({resourcesOid:St,objectOid:Zt}),z.objectNumber=Zt;var vr=[];vr.push({key:"Type",value:"/Pattern"}),vr.push({key:"PatternType",value:"1"}),vr.push({key:"PaintType",value:"1"}),vr.push({key:"TilingType",value:"1"}),vr.push({key:"BBox",value:"["+z.boundingBox.map(ar).join(" ")+"]"}),vr.push({key:"XStep",value:ar(z.xStep)}),vr.push({key:"YStep",value:ar(z.yStep)}),vr.push({key:"Resources",value:St+" 0 R"}),z.matrix&&vr.push({key:"Matrix",value:"["+z.matrix.toString()+"]"}),Qu({data:z.stream,additionalKeyValues:vr,objectId:z.objectNumber}),gt("endobj")},_p=function(z){for(var He in z.objectNumber=ac(),gt("<<"),z)switch(He){case"opacity":gt("/ca "+it(z[He]));break;case"stroke-opacity":gt("/CA "+it(z[He]))}gt(">>"),gt("endobj")},Ip=function(z){fl(z.resourcesOid,!0),gt("<<"),gt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var He in gt("/Font <<"),Po)Po.hasOwnProperty(He)&&(Re===!1||Re===!0&&$e.hasOwnProperty(He))&>("/"+He+" "+Po[He].objectNumber+" 0 R");gt(">>")}(),function(){if(Object.keys(Ea).length>0){for(var He in gt("/Shading <<"),Ea)Ea.hasOwnProperty(He)&&Ea[He]instanceof Hd&&Ea[He].objectNumber>=0&>("/"+He+" "+Ea[He].objectNumber+" 0 R");Hs.publish("putShadingPatternDict"),gt(">>")}}(),function(He){if(Object.keys(Ea).length>0){for(var St in gt("/Pattern <<"),Ea)Ea.hasOwnProperty(St)&&Ea[St]instanceof ae.TilingPattern&&Ea[St].objectNumber>=0&&Ea[St].objectNumber<He&>("/"+St+" "+Ea[St].objectNumber+" 0 R");Hs.publish("putTilingPatternDict"),gt(">>")}}(z.objectOid),function(){if(Object.keys(Ya).length>0){var He;for(He in gt("/ExtGState <<"),Ya)Ya.hasOwnProperty(He)&&Ya[He].objectNumber>=0&>("/"+He+" "+Ya[He].objectNumber+" 0 R");Hs.publish("putGStateDict"),gt(">>")}}(),function(){for(var He in gt("/XObject <<"),Hc)Hc.hasOwnProperty(He)&&Hc[He].objectNumber>=0&>("/"+He+" "+Hc[He].objectNumber+" 0 R");Hs.publish("putXobjectDict"),gt(">>")}(),gt(">>"),gt("endobj")},fm=function(z){Ko[z.fontName]=Ko[z.fontName]||{},Ko[z.fontName][z.fontStyle]=z.id},hm=function(z,He,St,Zt,vr){var fn={id:"F"+(Object.keys(Po).length+1).toString(10),postScriptName:z,fontName:He,fontStyle:St,encoding:Zt,isStandardFont:vr||!1,metadata:{}};return Hs.publish("addFont",{font:fn,instance:this}),Po[fn.id]=fn,fm(fn),fn.id},eu=ae.__private__.pdfEscape=ae.pdfEscape=function(z,He){return function(St,Zt){var vr,fn,Sn,aa,pa,qa,po,sa,Yl;if(Sn=(Zt=Zt||{}).sourceEncoding||"Unicode",pa=Zt.outputEncoding,(Zt.autoencode||pa)&&Po[ha].metadata&&Po[ha].metadata[Sn]&&Po[ha].metadata[Sn].encoding&&(aa=Po[ha].metadata[Sn].encoding,!pa&&Po[ha].encoding&&(pa=Po[ha].encoding),!pa&&aa.codePages&&(pa=aa.codePages[0]),typeof pa=="string"&&(pa=aa[pa]),pa)){for(po=!1,qa=[],vr=0,fn=St.length;vr<fn;vr++)(sa=pa[St.charCodeAt(vr)])?qa.push(String.fromCharCode(sa)):qa.push(St[vr]),qa[vr].charCodeAt(0)>>8&&(po=!0);St=qa.join("")}for(vr=St.length;po===void 0&&vr!==0;)St.charCodeAt(vr-1)>>8&&(po=!0),vr--;if(!po)return St;for(qa=Zt.noBOM?[]:[254,255],vr=0,fn=St.length;vr<fn;vr++){if((Yl=(sa=St.charCodeAt(vr))>>8)>>8)throw new Error("Character at position "+vr+" of string '"+St+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");qa.push(Yl),qa.push(sa-(Yl<<8))}return String.fromCharCode.apply(void 0,qa)}(z,He).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Jh=ae.__private__.beginPage=function(z){Hn[++no]=[],Na[no]={objId:0,contentsObjId:0,userUnit:Number(E),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(z[0]),topRightY:Number(z[1])}},$0(no),Sa(Hn[It])},Fp=function(z,He){var St,Zt,vr;switch(a=He||a,typeof z=="string"&&(St=ot(z.toLowerCase()),Array.isArray(St)&&(Zt=St[0],vr=St[1])),Array.isArray(z)&&(Zt=z[0]*Eo,vr=z[1]*Eo),isNaN(Zt)&&(Zt=A[0],vr=A[1]),(Zt>14400||vr>14400)&&(Ns.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Zt=Math.min(14400,Zt),vr=Math.min(14400,vr)),A=[Zt,vr],a.substr(0,1)){case"l":vr>Zt&&(A=[vr,Zt]);break;case"p":Zt>vr&&(A=[vr,Zt])}Jh(A),ho(J0),gt(Y0),r0!==0&>(r0+" J"),Np!==0&>(Np+" j"),Hs.publish("addPage",{pageNumber:no})},Mp=function(z){z>0&&z<=no&&(Hn.splice(z,1),Na.splice(z,1),no--,It>no&&(It=no),this.setPage(It))},$0=function(z){z>0&&z<=no&&(It=z)},Z0=ae.__private__.getNumberOfPages=ae.getNumberOfPages=function(){return Hn.length-1},Lp=function(z,He,St){var Zt,vr=void 0;return St=St||{},z=z!==void 0?z:Po[ha].fontName,He=He!==void 0?He:Po[ha].fontStyle,Zt=z.toLowerCase(),Ko[Zt]!==void 0&&Ko[Zt][He]!==void 0?vr=Ko[Zt][He]:Ko[z]!==void 0&&Ko[z][He]!==void 0?vr=Ko[z][He]:St.disableWarning===!1&&Ns.warn("Unable to look up font label for font '"+z+"', '"+He+"'. Refer to getFontList() for available fonts."),vr||St.noFallback||(vr=Ko.times[He])==null&&(vr=Ko.times.normal),vr},kA=ae.__private__.putInfo=function(){var z=ac(),He=function(Zt){return Zt};for(var St in oe!==null&&(He=jc.encryptor(z,0)),gt("<<"),gt("/Producer ("+eu(He("jsPDF "+da.version))+")"),Qo)Qo.hasOwnProperty(St)&&Qo[St]&>("/"+St.substr(0,1).toUpperCase()+St.substr(1)+" ("+eu(He(Qo[St]))+")");gt("/CreationDate ("+eu(He(Tr))+")"),gt(">>"),gt("endobj")},Xd=ae.__private__.putCatalog=function(z){var He=(z=z||{}).rootDictionaryObjId||Wd;switch(ac(),gt("<<"),gt("/Type /Catalog"),gt("/Pages "+He+" 0 R"),Da||(Da="fullwidth"),Da){case"fullwidth":gt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":gt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":gt("/OpenAction [3 0 R /Fit]");break;case"original":gt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var St=""+Da;St.substr(St.length-1)==="%"&&(Da=parseInt(Da)/100),typeof Da=="number"&>("/OpenAction [3 0 R /XYZ null null "+it(Da)+"]")}switch(as||(as="continuous"),as){case"continuous":gt("/PageLayout /OneColumn");break;case"single":gt("/PageLayout /SinglePage");break;case"two":case"twoleft":gt("/PageLayout /TwoColumnLeft");break;case"tworight":gt("/PageLayout /TwoColumnRight")}La&>("/PageMode /"+La),Hs.publish("putCatalog"),gt(">>"),gt("endobj")},V0=ae.__private__.putTrailer=function(){gt("trailer"),gt("<<"),gt("/Size "+(fr+1)),gt("/Root "+fr+" 0 R"),gt("/Info "+(fr-1)+" 0 R"),oe!==null&>("/Encrypt "+jc.oid+" 0 R"),gt("/ID [ <"+Zr+"> <"+Zr+"> ]"),gt(">>")},oc=ae.__private__.putHeader=function(){gt("%PDF-"+mt),gt("%\xBA\xDF\xAC\xE0")},kp=ae.__private__.putXRef=function(){var z="0000000000";gt("xref"),gt("0 "+(fr+1)),gt("0000000000 65535 f ");for(var He=1;He<=fr;He++)typeof Er[He]=="function"?gt((z+Er[He]()).slice(-10)+" 00000 n "):Er[He]!==void 0?gt((z+Er[He]).slice(-10)+" 00000 n "):gt("0000000000 00000 n ")},Jd=ae.__private__.buildDocument=function(){var z;fr=0,$r=0,Kr=[],Er=[],mn=[],Wd=Is(),Ru=Is(),Sa(Kr),Hs.publish("buildDocument"),oc(),Gd(),function(){Hs.publish("putAdditionalObjects");for(var St=0;St<mn.length;St++){var Zt=mn[St];fl(Zt.objId,!0),gt(Zt.content),gt("endobj")}Hs.publish("postPutAdditionalObjects")}(),z=[],function(){for(var St in Po)Po.hasOwnProperty(St)&&(Re===!1||Re===!0&&$e.hasOwnProperty(St))&&Wh(Po[St])}(),function(){var St;for(St in Ya)Ya.hasOwnProperty(St)&&_p(Ya[St])}(),function(){for(var St in Hc)Hc.hasOwnProperty(St)&&Gh(Hc[St])}(),function(St){var Zt;for(Zt in Ea)Ea.hasOwnProperty(Zt)&&(Ea[Zt]instanceof Hd?z0(Ea[Zt]):Ea[Zt]instanceof jd&&Xh(Ea[Zt],St))}(z),Hs.publish("putResources"),z.forEach(Ip),Ip({resourcesOid:Ru,objectOid:Number.MAX_SAFE_INTEGER}),Hs.publish("postPutResources"),oe!==null&&(jc.oid=ac(),gt("<<"),gt("/Filter /Standard"),gt("/V "+jc.v),gt("/R "+jc.r),gt("/U <"+jc.toHexString(jc.U)+">"),gt("/O <"+jc.toHexString(jc.O)+">"),gt("/P "+jc.P),gt(">>"),gt("endobj")),kA(),Xd();var He=$r;return kp(),V0(),gt("startxref"),gt(""+He),gt("%%EOF"),Sa(Hn[It]),Kr.join(`
|
|
|
`)},Yh=ae.__private__.getBlob=function(z){return new Blob([Oo(z)],{type:"application/pdf"})},pm=ae.output=ae.__private__.output=(gu=function(z,He){switch(typeof(He=He||{})=="string"?He={filename:He}:He.filename=He.filename||"generated.pdf",z){case void 0:return Jd();case"save":ae.save(He.filename);break;case"arraybuffer":return Oo(Jd());case"blob":return Yh(Jd());case"bloburi":case"bloburl":if(Ga.URL!==void 0&&typeof Ga.URL.createObjectURL=="function")return Ga.URL&&Ga.URL.createObjectURL(Yh(Jd()))||void 0;Ns.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var St="",Zt=Jd();try{St=Ks(Zt)}catch(_c){St=Ks(unescape(encodeURIComponent(Zt)))}return"data:application/pdf;filename="+He.filename+";base64,"+St;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ga)==="[object Window]"){var vr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",fn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';He.pdfObjectUrl&&(vr=He.pdfObjectUrl,fn="");var Sn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+vr+'"'+fn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(He)+");<\/script></body></html>",aa=Ga.open();return aa!==null&&aa.document.write(Sn),aa}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ga)==="[object Window]"){var pa='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(He.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+He.filename+'" width="500px" height="400px" /></body></html>',qa=Ga.open();if(qa!==null){qa.document.write(pa);var po=this;qa.document.documentElement.querySelector("#pdfViewer").onload=function(){qa.document.title=He.filename,qa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(po.output("bloburl"))}}return qa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ga)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var sa='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",He)+'"></iframe></body></html>',Yl=Ga.open();if(Yl!==null&&(Yl.document.write(sa),Yl.document.title=He.filename),Yl||typeof safari=="undefined")return Yl;break;case"datauri":case"dataurl":return Ga.document.location.href=this.output("datauristring",He);default:return null}},gu.foo=function(){try{return gu.apply(this,arguments)}catch(St){var z=St.stack||"";~z.indexOf(" at ")&&(z=z.split(" at ")[1]);var He="Error in function "+z.split(`
|
|
|
`)[0].split("<")[0]+": "+St.message;if(!Ga.console)throw new Error(He);Ga.console.error(He,St),Ga.alert&&alert(He)}},gu.foo.bar=gu,gu.foo),DA=function(z){return Array.isArray(Zh)===!0&&Zh.indexOf(z)>-1};switch(l){case"pt":Eo=1;break;case"mm":Eo=72/25.4;break;case"cm":Eo=72/2.54;break;case"in":Eo=72;break;case"px":Eo=DA("px_scaling")==1?.75:96/72;break;case"pc":case"em":Eo=12;break;case"ex":Eo=6;break;default:if(typeof l!="number")throw new Error("Invalid unit: "+l);Eo=l}var jc=null;Bn(),Lr();var Yd=ae.__private__.getPageInfo=ae.getPageInfo=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Na[z].objId,pageNumber:z,pageContext:Na[z]}},mm=ae.__private__.getPageInfoByObjId=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var He in Na)if(Na[He].objId===z)break;return Yd(He)},W0=ae.__private__.getCurrentPageInfo=ae.getCurrentPageInfo=function(){return{objId:Na[It].objId,pageNumber:It,pageContext:Na[It]}};ae.addPage=function(){return Fp.apply(this,arguments),this},ae.setPage=function(){return $0.apply(this,arguments),Sa.call(this,Hn[It]),this},ae.insertPage=function(z){return this.addPage(),this.movePage(It,z),this},ae.movePage=function(z,He){var St,Zt;if(z>He){St=Hn[z],Zt=Na[z];for(var vr=z;vr>He;vr--)Hn[vr]=Hn[vr-1],Na[vr]=Na[vr-1];Hn[He]=St,Na[He]=Zt,this.setPage(He)}else if(z<He){St=Hn[z],Zt=Na[z];for(var fn=z;fn<He;fn++)Hn[fn]=Hn[fn+1],Na[fn]=Na[fn+1];Hn[He]=St,Na[He]=Zt,this.setPage(He)}return this},ae.deletePage=function(){return Mp.apply(this,arguments),this},ae.__private__.text=ae.text=function(z,He,St,Zt,vr){var fn,Sn,aa,pa,qa,po,sa,Yl,_c,yl=(Zt=Zt||{}).scope||this;if(typeof z=="number"&&typeof He=="number"&&(typeof St=="string"||Array.isArray(St))){var hl=St;St=He,He=z,z=hl}if(arguments[3]instanceof ja==0?(aa=arguments[4],pa=arguments[5],(0,pe.Z)(sa=arguments[3])==="object"&&sa!==null||(typeof aa=="string"&&(pa=aa,aa=null),typeof sa=="string"&&(pa=sa,sa=null),typeof sa=="number"&&(aa=sa,sa=null),Zt={flags:sa,angle:aa,align:pa})):(Mt("The transform parameter of text() with a Matrix value"),_c=vr),isNaN(He)||isNaN(St)||z==null)throw new Error("Invalid arguments passed to jsPDF.text");if(z.length===0)return yl;var Ic,AA="",Tf=typeof Zt.lineHeightFactor=="number"?Zt.lineHeightFactor:e0,vd=yl.internal.scaleFactor;function vo(qs){return qs=qs.split(" ").join(Array(Zt.TabLen||9).join(" ")),eu(qs,sa)}function bd(qs){for(var pl,gc=qs.concat(),zc=[],Qf=gc.length;Qf--;)typeof(pl=gc.shift())=="string"?zc.push(pl):Array.isArray(qs)&&(pl.length===1||pl[1]===void 0&&pl[2]===void 0)?zc.push(pl[0]):zc.push([pl[0],pl[1],pl[2]]);return zc}function yd(qs,pl){var gc;if(typeof qs=="string")gc=pl(qs)[0];else if(Array.isArray(qs)){for(var zc,Qf,Rp=qs.concat(),$u=[],Bm=Rp.length;Bm--;)typeof(zc=Rp.shift())=="string"?$u.push(pl(zc)[0]):Array.isArray(zc)&&typeof zc[0]=="string"&&(Qf=pl(zc[0],zc[1],zc[2]),$u.push([Qf[0],Qf[1],Qf[2]]));gc=$u}return gc}var rf=!1,Ku=!0;if(typeof z=="string")rf=!0;else if(Array.isArray(z)){var Uf=z.concat();Sn=[];for(var hh,mc=Uf.length;mc--;)(typeof(hh=Uf.shift())!="string"||Array.isArray(hh)&&typeof hh[0]!="string")&&(Ku=!1);rf=Ku}if(rf===!1)throw new Error('Type of text must be string or Array. "'+z+'" is not recognized.');typeof z=="string"&&(z=z.match(/[\r?\n]/)?z.split(/\r\n|\r|\n/g):[z]);var i0=Un/yl.internal.scaleFactor,ph=i0*(Tf-1);switch(Zt.baseline){case"bottom":St-=ph;break;case"top":St+=i0-ph;break;case"hanging":St+=i0-2*ph;break;case"middle":St+=i0/2-ph}if((po=Zt.maxWidth||0)>0&&(typeof z=="string"?z=yl.splitTextToSize(z,po):Object.prototype.toString.call(z)==="[object Array]"&&(z=z.reduce(function(qs,pl){return qs.concat(yl.splitTextToSize(pl,po))},[]))),fn={text:z,x:He,y:St,options:Zt,mutex:{pdfEscape:eu,activeFontKey:ha,fonts:Po,activeFontSize:Un}},Hs.publish("preProcessText",fn),z=fn.text,aa=(Zt=fn.options).angle,_c instanceof ja==0&&aa&&typeof aa=="number"){aa*=Math.PI/180,Zt.rotationDirection===0&&(aa=-aa),Ft===Rt&&(aa=-aa);var Tp=Math.cos(aa),io=Math.sin(aa);_c=new ja(Tp,io,-io,Tp,0,0)}else aa&&aa instanceof ja&&(_c=aa);Ft!==Rt||_c||(_c=kf),(qa=Zt.charSpace||qd)!==void 0&&(AA+=ar(Wt(qa))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Yl=Zt.horizontalScale)!==void 0&&(AA+=ar(100*Yl)+` Tz
|
|
|
`),Zt.lang;var Fc=-1,yu=Zt.renderingMode!==void 0?Zt.renderingMode:Zt.stroke,nf=yl.internal.getCurrentPageInfo().pageContext;switch(yu){case 0:case!1:case"fill":Fc=0;break;case 1:case!0:case"stroke":Fc=1;break;case 2:case"fillThenStroke":Fc=2;break;case 3:case"invisible":Fc=3;break;case 4:case"fillAndAddForClipping":Fc=4;break;case 5:case"strokeAndAddPathForClipping":Fc=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Fc=6;break;case 7:case"addToPathForClipping":Fc=7}var wm=nf.usedRenderingMode!==void 0?nf.usedRenderingMode:-1;Fc!==-1?AA+=Fc+` Tr
|
|
|
`:wm!==-1&&(AA+=`0 Tr
|
|
|
`),Fc!==-1&&(nf.usedRenderingMode=Fc),pa=Zt.align||"left";var ms,a0=Un*Tf,Tl=yl.internal.pageSize.getWidth(),xm=Po[ha];qa=Zt.charSpace||qd,po=Zt.maxWidth||0,sa=Object.assign({autoencode:!0,noBOM:!0},Zt.flags);var mh=[],o0=function(qs){return yl.getStringUnitWidth(qs,{font:xm,charSpace:qa,fontSize:Un,doKerning:!1})*Un/vd};if(Object.prototype.toString.call(z)==="[object Array]"){var NA;Sn=bd(z),pa!=="left"&&(ms=Sn.map(o0));var wu,s0=0;if(pa==="right"){He-=ms[0],z=[],mc=Sn.length;for(var gh=0;gh<mc;gh++)gh===0?(wu=md(He),NA=gd(St)):(wu=Wt(s0-ms[gh]),NA=-a0),z.push([Sn[gh],wu,NA]),s0=ms[gh]}else if(pa==="center"){He-=ms[0]/2,z=[],mc=Sn.length;for(var af=0;af<mc;af++)af===0?(wu=md(He),NA=gd(St)):(wu=Wt((s0-ms[af])/2),NA=-a0),z.push([Sn[af],wu,NA]),s0=ms[af]}else if(pa==="left"){z=[],mc=Sn.length;for(var of=0;of<mc;of++)z.push(Sn[of])}else if(pa==="justify"&&xm.encoding==="Identity-H"){z=[],mc=Sn.length,po=po!==0?po:Tl;for(var tp=0,ql=0;ql<mc;ql++)if(NA=ql===0?gd(St):-a0,wu=ql===0?md(He):tp,ql<mc-1){var Cm=Wt((po-ms[ql])/(Sn[ql].split(" ").length-1)),Hu=Sn[ql].split(" ");z.push([Hu[0]+" ",wu,NA]),tp=0;for(var ju=1;ju<Hu.length;ju++){var l0=(o0(Hu[ju-1]+" "+Hu[ju])-o0(Hu[ju]))*vd+Cm;ju==Hu.length-1?z.push([Hu[ju],l0,0]):z.push([Hu[ju]+" ",l0,0]),tp-=l0}}else z.push([Sn[ql],wu,NA]);z.push(["",tp,0])}else{if(pa!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(z=[],mc=Sn.length,po=po!==0?po:Tl,ql=0;ql<mc;ql++){NA=ql===0?gd(St):-a0,wu=ql===0?md(He):0;var rp=Sn[ql].split(" ").length-1,Up=rp>0?(po-ms[ql])/rp:0;ql<mc-1?mh.push(ar(Wt(Up))):mh.push(0),z.push([Sn[ql],wu,NA])}}}(typeof Zt.R2L=="boolean"?Zt.R2L:xa)===!0&&(z=yd(z,function(qs,pl,gc){return[qs.split("").reverse().join(""),pl,gc]})),fn={text:z,x:He,y:St,options:Zt,mutex:{pdfEscape:eu,activeFontKey:ha,fonts:Po,activeFontSize:Un}},Hs.publish("postProcessText",fn),z=fn.text,Ic=fn.mutex.isHex||!1;var np=Po[ha].encoding;np!=="WinAnsiEncoding"&&np!=="StandardEncoding"||(z=yd(z,function(qs,pl,gc){return[vo(qs),pl,gc]})),Sn=bd(z),z=[];for(var Rf,vh,gs,bh=Array.isArray(Sn[0])?1:0,yh="",c0=function(qs,pl,gc){var zc="";return gc instanceof ja?(gc=typeof Zt.angle=="number"?Lf(gc,new ja(1,0,0,1,qs,pl)):Lf(new ja(1,0,0,1,qs,pl),gc),Ft===Rt&&(gc=Lf(new ja(1,0,0,-1,0,0),gc)),zc=gc.join(" ")+` Tm
|
|
|
`):zc=ar(qs)+" "+ar(pl)+` Td
|
|
|
`,zc},zu=0;zu<Sn.length;zu++){switch(yh="",bh){case 1:gs=(Ic?"<":"(")+Sn[zu][0]+(Ic?">":")"),Rf=parseFloat(Sn[zu][1]),vh=parseFloat(Sn[zu][2]);break;case 0:gs=(Ic?"<":"(")+Sn[zu]+(Ic?">":")"),Rf=md(He),vh=gd(St)}mh!==void 0&&mh[zu]!==void 0&&(yh=mh[zu]+` Tw
|
|
|
`),zu===0?z.push(yh+c0(Rf,vh,_c)+gs):bh===0?z.push(yh+gs):bh===1&&z.push(yh+c0(Rf,vh,_c)+gs)}z=bh===0?z.join(` Tj
|
|
|
T* `):z.join(` Tj
|
|
|
`),z+=` Tj
|
|
|
`;var sf=`BT
|
|
|
/`;return sf+=ha+" "+Un+` Tf
|
|
|
`,sf+=ar(Un*Tf)+` TL
|
|
|
`,sf+=t0+`
|
|
|
`,sf+=AA,sf+=z,gt(sf+="ET"),$e[ha]=!0,yl};var tg=ae.__private__.clip=ae.clip=function(z){return gt(z==="evenodd"?"W*":"W"),this};ae.clipEvenOdd=function(){return tg("evenodd")},ae.__private__.discardPath=ae.discardPath=function(){return gt("n"),this};var hd=ae.__private__.isValidStyle=function(z){var He=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(z)!==-1&&(He=!0),He};ae.__private__.setDefaultPathOperation=ae.setDefaultPathOperation=function(z){return hd(z)&&(Z=z),this};var gm=ae.__private__.getStyle=ae.getStyle=function(z){var He=Z;switch(z){case"D":case"S":He="S";break;case"F":He="f";break;case"FD":case"DF":He="B";break;case"f":case"f*":case"B":case"B*":He=z}return He},vm=ae.close=function(){return gt("h"),this};ae.stroke=function(){return gt("S"),this},ae.fill=function(z){return QA("f",z),this},ae.fillEvenOdd=function(z){return QA("f*",z),this},ae.fillStroke=function(z){return QA("B",z),this},ae.fillStrokeEvenOdd=function(z){return QA("B*",z),this};var QA=function(z,He){(0,pe.Z)(He)==="object"?Pl(He,z):gt(z)},ps=function(z){z===null||Ft===Rt&&z===void 0||(z=gm(z),gt(z))};function cA(z,He,St,Zt,vr){var fn=new jd(He||this.boundingBox,St||this.xStep,Zt||this.yStep,this.gState,vr||this.matrix);fn.stream=this.stream;var Sn=z+"$$"+this.cloneIndex+++"$$";return mu(Sn,fn),fn}var Pl=function(z,He){var St=dl[z.key],Zt=Ea[St];if(Zt instanceof Hd)gt("q"),gt(G0(He)),Zt.gState&&ae.setGState(Zt.gState),gt(z.matrix.toString()+" cm"),gt("/"+St+" sh"),gt("Q");else if(Zt instanceof jd){var vr=new ja(1,0,0,-1,0,fh());z.matrix&&(vr=vr.multiply(z.matrix||kf),St=cA.call(Zt,z.key,z.boundingBox,z.xStep,z.yStep,vr).id),gt("q"),gt("/Pattern cs"),gt("/"+St+" scn"),Zt.gState&&ae.setGState(Zt.gState),gt(He),gt("Q")}},G0=function(z){switch(z){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},X0=ae.moveTo=function(z,He){return gt(ar(Wt(z))+" "+ar(Ht(He))+" m"),this},qh=ae.lineTo=function(z,He){return gt(ar(Wt(z))+" "+ar(Ht(He))+" l"),this},pd=ae.curveTo=function(z,He,St,Zt,vr,fn){return gt([ar(Wt(z)),ar(Ht(He)),ar(Wt(St)),ar(Ht(Zt)),ar(Wt(vr)),ar(Ht(fn)),"c"].join(" ")),this};ae.__private__.line=ae.line=function(z,He,St,Zt,vr){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||!hd(vr))throw new Error("Invalid arguments passed to jsPDF.line");return Ft===Gt?this.lines([[St-z,Zt-He]],z,He,[1,1],vr||"S"):this.lines([[St-z,Zt-He]],z,He,[1,1]).stroke()},ae.__private__.lines=ae.lines=function(z,He,St,Zt,vr,fn){var Sn,aa,pa,qa,po,sa,Yl,_c,yl,hl,Ic,AA;if(typeof z=="number"&&(AA=St,St=He,He=z,z=AA),Zt=Zt||[1,1],fn=fn||!1,isNaN(He)||isNaN(St)||!Array.isArray(z)||!Array.isArray(Zt)||!hd(vr)||typeof fn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(X0(He,St),Sn=Zt[0],aa=Zt[1],qa=z.length,hl=He,Ic=St,pa=0;pa<qa;pa++)(po=z[pa]).length===2?(hl=po[0]*Sn+hl,Ic=po[1]*aa+Ic,qh(hl,Ic)):(sa=po[0]*Sn+hl,Yl=po[1]*aa+Ic,_c=po[2]*Sn+hl,yl=po[3]*aa+Ic,hl=po[4]*Sn+hl,Ic=po[5]*aa+Ic,pd(sa,Yl,_c,yl,hl,Ic));return fn&&vm(),ps(vr),this},ae.path=function(z){for(var He=0;He<z.length;He++){var St=z[He],Zt=St.c;switch(St.op){case"m":X0(Zt[0],Zt[1]);break;case"l":qh(Zt[0],Zt[1]);break;case"c":pd.apply(this,Zt);break;case"h":vm()}}return this},ae.__private__.rect=ae.rect=function(z,He,St,Zt,vr){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||!hd(vr))throw new Error("Invalid arguments passed to jsPDF.rect");return Ft===Gt&&(Zt=-Zt),gt([ar(Wt(z)),ar(Ht(He)),ar(Wt(St)),ar(Wt(Zt)),"re"].join(" ")),ps(vr),this},ae.__private__.triangle=ae.triangle=function(z,He,St,Zt,vr,fn,Sn){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||isNaN(vr)||isNaN(fn)||!hd(Sn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[St-z,Zt-He],[vr-St,fn-Zt],[z-vr,He-fn]],z,He,[1,1],Sn,!0),this},ae.__private__.roundedRect=ae.roundedRect=function(z,He,St,Zt,vr,fn,Sn){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||isNaN(vr)||isNaN(fn)||!hd(Sn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var aa=4/3*(Math.SQRT2-1);return vr=Math.min(vr,.5*St),fn=Math.min(fn,.5*Zt),this.lines([[St-2*vr,0],[vr*aa,0,vr,fn-fn*aa,vr,fn],[0,Zt-2*fn],[0,fn*aa,-vr*aa,fn,-vr,fn],[2*vr-St,0],[-vr*aa,0,-vr,-fn*aa,-vr,-fn],[0,2*fn-Zt],[0,-fn*aa,vr*aa,-fn,vr,-fn]],z+vr,He,[1,1],Sn,!0),this},ae.__private__.ellipse=ae.ellipse=function(z,He,St,Zt,vr){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||!hd(vr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var fn=4/3*(Math.SQRT2-1)*St,Sn=4/3*(Math.SQRT2-1)*Zt;return X0(z+St,He),pd(z+St,He-Sn,z+fn,He-Zt,z,He-Zt),pd(z-fn,He-Zt,z-St,He-Sn,z-St,He),pd(z-St,He+Sn,z-fn,He+Zt,z,He+Zt),pd(z+fn,He+Zt,z+St,He+Sn,z+St,He),ps(vr),this},ae.__private__.circle=ae.circle=function(z,He,St,Zt){if(isNaN(z)||isNaN(He)||isNaN(St)||!hd(Zt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(z,He,St,St,Zt)},ae.setFont=function(z,He,St){return St&&(He=Wr(He,St)),ha=Lp(z,He,{disableWarning:!1}),this};var rg=ae.__private__.getFont=ae.getFont=function(){return Po[Lp.apply(ae,arguments)]};ae.__private__.getFontList=ae.getFontList=function(){var z,He,St={};for(z in Ko)if(Ko.hasOwnProperty(z))for(He in St[z]=[],Ko[z])Ko[z].hasOwnProperty(He)&&St[z].push(He);return St},ae.addFont=function(z,He,St,Zt,vr){var fn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&fn.indexOf(arguments[3])!==-1?vr=arguments[3]:arguments[3]&&fn.indexOf(arguments[3])==-1&&(St=Wr(St,Zt)),hm.call(this,z,He,St,vr=vr||"Identity-H")};var e0,J0=n.lineWidth||.200025,ng=ae.__private__.getLineWidth=ae.getLineWidth=function(){return J0},ho=ae.__private__.setLineWidth=ae.setLineWidth=function(z){return J0=z,gt(ar(Wt(z))+" w"),this};ae.__private__.setLineDash=da.API.setLineDash=da.API.setLineDashPattern=function(z,He){if(z=z||[],He=He||0,isNaN(He)||!Array.isArray(z))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return z=z.map(function(St){return ar(Wt(St))}).join(" "),He=ar(Wt(He)),gt("["+z+"] "+He+" d"),this};var ig=ae.__private__.getLineHeight=ae.getLineHeight=function(){return Un*e0};ae.__private__.getLineHeight=ae.getLineHeight=function(){return Un*e0};var ag=ae.__private__.setLineHeightFactor=ae.setLineHeightFactor=function(z){return typeof(z=z||1.15)=="number"&&(e0=z),this},og=ae.__private__.getLineHeightFactor=ae.getLineHeightFactor=function(){return e0};ag(n.lineHeight);var md=ae.__private__.getHorizontalCoordinate=function(z){return Wt(z)},gd=ae.__private__.getVerticalCoordinate=function(z){return Ft===Rt?z:Na[It].mediaBox.topRightY-Na[It].mediaBox.bottomLeftY-Wt(z)},sg=ae.__private__.getHorizontalCoordinateString=ae.getHorizontalCoordinateString=function(z){return ar(md(z))},Dp=ae.__private__.getVerticalCoordinateString=ae.getVerticalCoordinateString=function(z){return ar(gd(z))},Y0=n.strokeColor||"0 G";ae.__private__.getStrokeColor=ae.getDrawColor=function(){return vu(Y0)},ae.__private__.setStrokeColor=ae.setDrawColor=function(z,He,St,Zt){return Y0=lA({ch1:z,ch2:He,ch3:St,ch4:Zt,pdfColorType:"draw",precision:2}),gt(Y0),this};var dh=n.fillColor||"0 g";ae.__private__.getFillColor=ae.getFillColor=function(){return vu(dh)},ae.__private__.setFillColor=ae.setFillColor=function(z,He,St,Zt){return dh=lA({ch1:z,ch2:He,ch3:St,ch4:Zt,pdfColorType:"fill",precision:2}),gt(dh),this};var t0=n.textColor||"0 g",lg=ae.__private__.getTextColor=ae.getTextColor=function(){return vu(t0)};ae.__private__.setTextColor=ae.setTextColor=function(z,He,St,Zt){return t0=lA({ch1:z,ch2:He,ch3:St,ch4:Zt,pdfColorType:"text",precision:3}),this};var qd=n.charSpace,bm=ae.__private__.getCharSpace=ae.getCharSpace=function(){return parseFloat(qd||0)};ae.__private__.setCharSpace=ae.setCharSpace=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qd=z,this};var r0=0;ae.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},ae.__private__.setLineCap=ae.setLineCap=function(z){var He=ae.CapJoinStyles[z];if(He===void 0)throw new Error("Line cap style of '"+z+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return r0=He,gt(He+" J"),this};var Np=0;ae.__private__.setLineJoin=ae.setLineJoin=function(z){var He=ae.CapJoinStyles[z];if(He===void 0)throw new Error("Line join style of '"+z+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Np=He,gt(He+" j"),this},ae.__private__.setLineMiterLimit=ae.__private__.setMiterLimit=ae.setLineMiterLimit=ae.setMiterLimit=function(z){if(z=z||0,isNaN(z))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return gt(ar(Wt(z))+" M"),this},ae.GState=Kh,ae.setGState=function(z){(z=typeof z=="string"?Ya[fo[z]]:ym(null,z)).equals(al)||(gt("/"+z.id+" gs"),al=z)};var ym=function(z,He){if(!z||!fo[z]){var St=!1;for(var Zt in Ya)if(Ya.hasOwnProperty(Zt)&&Ya[Zt].equals(He)){St=!0;break}if(St)He=Ya[Zt];else{var vr="GS"+(Object.keys(Ya).length+1).toString(10);Ya[vr]=He,He.id=vr}return z&&(fo[z]=He.id),Hs.publish("addGState",He),He}};ae.addGState=function(z,He){return ym(z,He),this},ae.saveGraphicsState=function(){return gt("q"),Ol.push({key:ha,size:Un,color:t0}),this},ae.restoreGraphicsState=function(){gt("Q");var z=Ol.pop();return ha=z.key,Un=z.size,t0=z.color,al=null,this},ae.setCurrentTransformationMatrix=function(z){return gt(z.toString()+" cm"),this},ae.comment=function(z){return gt("#"+z),this};var Df=function(z,He){var St=z||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return St},set:function(fn){isNaN(fn)||(St=parseFloat(fn))}});var Zt=He||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Zt},set:function(fn){isNaN(fn)||(Zt=parseFloat(fn))}});var vr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return vr},set:function(fn){vr=fn.toString()}}),this},ef=function(z,He,St,Zt){Df.call(this,z,He),this.type="rect";var vr=St||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return vr},set:function(Sn){isNaN(Sn)||(vr=parseFloat(Sn))}});var fn=Zt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return fn},set:function(Sn){isNaN(Sn)||(fn=parseFloat(Sn))}}),this},KA=function(){this.page=no,this.currentPage=It,this.pages=Hn.slice(0),this.pagesContext=Na.slice(0),this.x=Ca,this.y=pc,this.matrix=ws,this.width=q0(It),this.height=Op(It),this.outputDestination=Ci,this.id="",this.objectNumber=-1};KA.prototype.restore=function(){no=this.page,It=this.currentPage,Na=this.pagesContext,Hn=this.pages,Ca=this.x,pc=this.y,ws=this.matrix,ep(It,this.width),tf(It,this.height),Ci=this.outputDestination};var n0=function(z,He,St,Zt,vr){Zd.push(new KA),no=It=0,Hn=[],Ca=z,pc=He,ws=vr,Jh([St,Zt])};for(var Nf in ae.beginFormObject=function(z,He,St,Zt,vr){return n0(z,He,St,Zt,vr),this},ae.endFormObject=function(z){return function(He){if(Mf[He])Zd.pop().restore();else{var St=new KA,Zt="Xo"+(Object.keys(Hc).length+1).toString(10);St.id=Zt,Mf[He]=Zt,Hc[Zt]=St,Hs.publish("addFormObject",St),Zd.pop().restore()}}(z),this},ae.doFormObject=function(z,He){var St=Hc[Mf[z]];return gt("q"),gt(He.toString()+" cm"),gt("/"+St.id+" Do"),gt("Q"),this},ae.getFormObject=function(z){var He=Hc[Mf[z]];return{x:He.x,y:He.y,width:He.width,height:He.height,matrix:He.matrix}},ae.save=function(z,He){return z=z||"generated.pdf",(He=He||{}).returnPromise=He.returnPromise||!1,He.returnPromise===!1?(Ad(Yh(Jd()),z),typeof Ad.unload=="function"&&Ga.setTimeout&&setTimeout(Ad.unload,911),this):new Promise(function(St,Zt){try{var vr=Ad(Yh(Jd()),z);typeof Ad.unload=="function"&&Ga.setTimeout&&setTimeout(Ad.unload,911),St(vr)}catch(fn){Zt(fn.message)}})},da.API)da.API.hasOwnProperty(Nf)&&(Nf==="events"&&da.API.events.length?function(z,He){var St,Zt,vr;for(vr=He.length-1;vr!==-1;vr--)St=He[vr][0],Zt=He[vr][1],z.subscribe.apply(z,[St].concat(typeof Zt=="function"?[Zt]:Zt))}(Hs,da.API.events):ae[Nf]=da.API[Nf]);function q0(z){return Na[z].mediaBox.topRightX-Na[z].mediaBox.bottomLeftX}function ep(z,He){Na[z].mediaBox.topRightX=He+Na[z].mediaBox.bottomLeftX}function Op(z){return Na[z].mediaBox.topRightY-Na[z].mediaBox.bottomLeftY}function tf(z,He){Na[z].mediaBox.topRightY=He+Na[z].mediaBox.bottomLeftY}var Of=ae.getPageWidth=function(z){return q0(z=z||It)/Eo},Pf=ae.setPageWidth=function(z,He){ep(z,He*Eo)},fh=ae.getPageHeight=function(z){return Op(z=z||It)/Eo},Pp=ae.setPageHeight=function(z,He){tf(z,He*Eo)};return ae.internal={pdfEscape:eu,getStyle:gm,getFont:rg,getFontSize:Oi,getCharSpace:bm,getTextColor:lg,getLineHeight:ig,getLineHeightFactor:og,getLineWidth:ng,write:Li,getHorizontalCoordinate:md,getVerticalCoordinate:gd,getCoordinateString:sg,getVerticalCoordinateString:Dp,collections:{},newObject:ac,newAdditionalObject:Vd,newObjectDeferred:Is,newObjectDeferredBegin:fl,getFilters:bu,putStream:Qu,events:Hs,scaleFactor:Eo,pageSize:{getWidth:function(){return Of(It)},setWidth:function(z){Pf(It,z)},getHeight:function(){return fh(It)},setHeight:function(z){Pp(It,z)}},encryptionOptions:oe,encryption:jc,getEncryptor:function(z){return oe!==null?jc.encryptor(z,0):function(He){return He}},output:pm,getNumberOfPages:Z0,get pages(){return Hn},out:gt,f2:it,f3:wt,getPageInfo:Yd,getPageInfoByObjId:mm,getCurrentPageInfo:W0,getPDFVersion:ut,Point:Df,Rectangle:ef,Matrix:ja,hasHotfix:DA},Object.defineProperty(ae.internal.pageSize,"width",{get:function(){return Of(It)},set:function(z){Pf(It,z)},enumerable:!0,configurable:!0}),Object.defineProperty(ae.internal.pageSize,"height",{get:function(){return fh(It)},set:function(z){Pp(It,z)},enumerable:!0,configurable:!0}),function(z){for(var He=0,St=Ha.length;He<St;He++){var Zt=hm.call(this,z[He][0],z[He][1],z[He][2],Ha[He][3],!0);Re===!1&&($e[Zt]=!0);var vr=z[He][0].split("-");fm({id:Zt,fontName:vr[0],fontStyle:vr[1]||""})}Hs.publish("addFonts",{fonts:Po,dictionary:Ko})}.call(ae,Ha),ha="F1",Fp(A,a),Hs.publish("initialized"),ae}Pu.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},Pu.prototype.toHexString=function(n){return n.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Pu.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("")},Pu.prototype.processOwnerPassword=function(n,o){return hc(If(o).substr(0,5),n)},Pu.prototype.encryptor=function(n,o){var a=If(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&o,o>>8&255)).substr(0,10);return function(l){return hc(a,l)}},Kh.prototype.equals=function(n){var o,a="id,objectNumber,equals";if(!n||(0,pe.Z)(n)!==(0,pe.Z)(this))return!1;var l=0;for(o in this)if(!(a.indexOf(o)>=0)){if(this.hasOwnProperty(o)&&!n.hasOwnProperty(o)||this[o]!==n[o])return!1;l++}for(o in n)n.hasOwnProperty(o)&&a.indexOf(o)<0&&l--;return l===0},da.API={events:[]},da.version="3.0.4";var ll=da.API,Ff=1,ud=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},JA=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ka=function(n){return n.toFixed(2)},zd=function(n){return n.toFixed(5)};ll.__acroform__={};var aA=function(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n},H0=function(n){return n*Ff},Au=function(n){var o=new qr,a=ei.internal.getHeight(n)||0,l=ei.internal.getWidth(n)||0;return o.BBox=[0,0,Number(ka(l)),Number(ka(a))],o},Zm=ll.__acroform__.setBit=function(n,o){if(n=n||0,o=o||0,isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<o},Vm=ll.__acroform__.clearBit=function(n,o){if(n=n||0,o=o||0,isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<o)},Wm=ll.__acroform__.getBit=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<o?1:0},Jl=ll.__acroform__.getBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Wm(n,o-1)},b=ll.__acroform__.setBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Zm(n,o-1)},f=ll.__acroform__.clearBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Vm(n,o-1)},w=ll.__acroform__.calculateCoordinates=function(n,o){var a=o.internal.getHorizontalCoordinate,l=o.internal.getVerticalCoordinate,A=n[0],p=n[1],N=n[2],E=n[3],U={};return U.lowerLeft_X=a(A)||0,U.lowerLeft_Y=l(p+E)||0,U.upperRight_X=a(A+N)||0,U.upperRight_Y=l(p)||0,[Number(ka(U.lowerLeft_X)),Number(ka(U.lowerLeft_Y)),Number(ka(U.upperRight_X)),Number(ka(U.upperRight_Y))]},y=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var o=[],a=n._V||n.DV,l=re(n,a),A=n.scope.internal.getFont(n.fontName,n.fontStyle).id;o.push("/Tx BMC"),o.push("q"),o.push("BT"),o.push(n.scope.__private__.encodeColorString(n.color)),o.push("/"+A+" "+ka(l.fontSize)+" Tf"),o.push("1 0 0 1 0 0 Tm"),o.push(l.text),o.push("ET"),o.push("Q"),o.push("EMC");var p=Au(n);return p.scope=n.scope,p.stream=o.join(`
|
|
|
`),p}},re=function(n,o){var a=n.fontSize===0?n.maxFontSize:n.fontSize,l={text:"",fontSize:""},A=(o=(o=o.substr(0,1)=="("?o.substr(1):o).substr(o.length-1)==")"?o.substr(0,o.length-1):o).split(" ");A=n.multiline?A.map(function(it){return it.split(`
|
|
|
`)}):A.map(function(it){return[it]});var p=a,N=ei.internal.getHeight(n)||0;N=N<0?-N:N;var E=ei.internal.getWidth(n)||0;E=E<0?-E:E;var U=function(it,wt,Wt){if(it+1<A.length){var Ht=wt+" "+A[it+1][0];return _e(Ht,n,Wt).width<=E-4}return!1};p++;e:for(;p>0;){o="",p--;var Z,oe,Re=_e("3",n,p).height,$e=n.multiline?N-p:(N-Re)/2,ae=$e+=2,mt=0,ut=0,yt=0;if(p<=0){o=`(...) Tj
|
|
|
`,o+="% Width of Text: "+_e(o,n,p=12).width+", FieldWidth:"+E+`
|
|
|
`;break}for(var ot="",Gt=0,Rt=0;Rt<A.length;Rt++)if(A.hasOwnProperty(Rt)){var Ft=!1;if(A[Rt].length!==1&&yt!==A[Rt].length-1){if((Re+2)*(Gt+2)+2>N)continue e;ot+=A[Rt][yt],Ft=!0,ut=Rt,Rt--}else{ot=(ot+=A[Rt][yt]+" ").substr(ot.length-1)==" "?ot.substr(0,ot.length-1):ot;var Mr=parseInt(Rt),rn=U(Mr,ot,p),Wr=Rt>=A.length-1;if(rn&&!Wr){ot+=" ",yt=0;continue}if(rn||Wr){if(Wr)ut=Mr;else if(n.multiline&&(Re+2)*(Gt+2)+2>N)continue e}else{if(!n.multiline||(Re+2)*(Gt+2)+2>N)continue e;ut=Mr}}for(var ar="",Mt=mt;Mt<=ut;Mt++){var Cr=A[Mt];if(n.multiline){if(Mt===ut){ar+=Cr[yt]+" ",yt=(yt+1)%Cr.length;continue}if(Mt===mt){ar+=Cr[Cr.length-1]+" ";continue}}ar+=Cr[0]+" "}switch(ar=ar.substr(ar.length-1)==" "?ar.substr(0,ar.length-1):ar,oe=_e(ar,n,p).width,n.textAlign){case"right":Z=E-oe-2;break;case"center":Z=(E-oe)/2;break;default:Z=2}o+=ka(Z)+" "+ka(ae)+` Td
|
|
|
`,o+="("+ud(ar)+`) Tj
|
|
|
`,o+=-ka(Z)+` 0 Td
|
|
|
`,ae=-(p+2),oe=0,mt=Ft?ut:ut+1,Gt++,ot=""}break}return l.text=o,l.fontSize=p,l},_e=function(n,o,a){var l=o.scope.internal.getFont(o.fontName,o.fontStyle),A=o.scope.getStringUnitWidth(n,{font:l,fontSize:parseFloat(a),charSpace:0})*parseFloat(a);return{height:o.scope.getStringUnitWidth("3",{font:l,fontSize:parseFloat(a),charSpace:0})*parseFloat(a)*1.5,width:A}},Ve={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ht=function(n,o){var a={type:"reference",object:n};o.internal.getPageInfo(n.page).pageContext.annotations.find(function(l){return l.type===a.type&&l.object===a.object})===void 0&&o.internal.getPageInfo(n.page).pageContext.annotations.push(a)},pt=function(n,o){if(o.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(Tn.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(Ve)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ff=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Ui,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(a){a.internal.events.unsubscribe(a.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete a.internal.acroformPlugin.acroFormDictionaryRoot._eventID,a.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(a){a.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var l=a.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var A in l)if(l.hasOwnProperty(A)){var p=l[A];p.objId=void 0,p.hasAnnotation&&ht(p,a)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(a){if(a.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");a.internal.write("/AcroForm "+a.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(a){(function(l,A){var p=!l;for(var N in l||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),A.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),l=l||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(l.hasOwnProperty(N)){var E=l[N],U=[],Z=E.Rect;if(E.Rect&&(E.Rect=w(E.Rect,A)),A.internal.newObjectDeferredBegin(E.objId,!0),E.DA=ei.createDefaultAppearanceStream(E),(0,pe.Z)(E)==="object"&&typeof E.getKeyValueListForStream=="function"&&(U=E.getKeyValueListForStream()),E.Rect=Z,E.hasAppearanceStream&&!E.appearanceStreamContent){var oe=y(E);U.push({key:"AP",value:"<</N "+oe+">>"}),A.internal.acroformPlugin.xForms.push(oe)}if(E.appearanceStreamContent){var Re="";for(var $e in E.appearanceStreamContent)if(E.appearanceStreamContent.hasOwnProperty($e)){var ae=E.appearanceStreamContent[$e];if(Re+="/"+$e+" ",Re+="<<",Object.keys(ae).length>=1||Array.isArray(ae)){for(var N in ae)if(ae.hasOwnProperty(N)){var mt=ae[N];typeof mt=="function"&&(mt=mt.call(A,E)),Re+="/"+N+" "+mt+" ",A.internal.acroformPlugin.xForms.indexOf(mt)>=0||A.internal.acroformPlugin.xForms.push(mt)}}else typeof(mt=ae)=="function"&&(mt=mt.call(A,E)),Re+="/"+N+" "+mt,A.internal.acroformPlugin.xForms.indexOf(mt)>=0||A.internal.acroformPlugin.xForms.push(mt);Re+=">>"}U.push({key:"AP",value:`<<
|
|
|
`+Re+">>"})}A.internal.putStream({additionalKeyValues:U,objectId:E.objId}),A.internal.out("endobj")}p&&function(ut,yt){for(var ot in ut)if(ut.hasOwnProperty(ot)){var Gt=ot,Rt=ut[ot];yt.internal.newObjectDeferredBegin(Rt.objId,!0),(0,pe.Z)(Rt)==="object"&&typeof Rt.putStream=="function"&&Rt.putStream(),delete ut[Gt]}}(A.internal.acroformPlugin.xForms,A)})(a,n)}),n.internal.acroformPlugin.isInitialized=!0}},qt=ll.__acroform__.arrayToPdfArray=function(n,o,a){var l=function(N){return N};if(Array.isArray(n)){for(var A="[",p=0;p<n.length;p++)switch(p!==0&&(A+=" "),(0,pe.Z)(n[p])){case"boolean":case"number":case"object":A+=n[p].toString();break;case"string":n[p].substr(0,1)!=="/"?(o!==void 0&&a&&(l=a.internal.getEncryptor(o)),A+="("+ud(l(n[p].toString()))+")"):A+=n[p].toString()}return A+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ar=function(n,o,a){var l=function(A){return A};return o!==void 0&&a&&(l=a.internal.getEncryptor(o)),(n=n||"").toString(),"("+ud(l(n))+")"},pr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};pr.prototype.toString=function(){return this.objId+" 0 R"},pr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},pr.prototype.getKeyValueListForStream=function(){var n=[],o=Object.getOwnPropertyNames(this).filter(function(p){return p!="content"&&p!="appearanceStreamContent"&&p!="scope"&&p!="objId"&&p.substring(0,1)!="_"});for(var a in o)if(Object.getOwnPropertyDescriptor(this,o[a]).configurable===!1){var l=o[a],A=this[l];A&&(Array.isArray(A)?n.push({key:l,value:qt(A,this.objId,this.scope)}):A instanceof pr?(A.scope=this.scope,n.push({key:l,value:A.objId+" 0 R"})):typeof A!="function"&&n.push({key:l,value:A}))}return n};var qr=function(){pr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var n,o=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return o},set:function(a){o=a}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(a){n=a.trim()},get:function(){return n||null}})};aA(qr,pr);var Ui=function(){pr.call(this);var n,o=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return o.length>0?o:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return o}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(n){var a=function(l){return l};return this.scope&&(a=this.scope.internal.getEncryptor(this.objId)),"("+ud(a(n))+")"}},set:function(a){n=a}})};aA(Ui,pr);var Tn=function n(){pr.call(this);var o=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return o},set:function(ot){if(isNaN(ot))throw new Error('Invalid value "'+ot+'" for attribute F supplied.');o=ot}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Jl(o,3)},set:function(ot){ot?this.F=b(o,3):this.F=f(o,3)}});var a=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return a},set:function(ot){if(isNaN(ot))throw new Error('Invalid value "'+ot+'" for attribute Ff supplied.');a=ot}});var l=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(l.length!==0)return l},set:function(ot){l=ot!==void 0?ot:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[0])?0:l[0]},set:function(ot){l[0]=ot}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[1])?0:l[1]},set:function(ot){l[1]=ot}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[2])?0:l[2]},set:function(ot){l[2]=ot}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[3])?0:l[3]},set:function(ot){l[3]=ot}});var A="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return A},set:function(ot){switch(ot){case"/Btn":case"/Tx":case"/Ch":case"/Sig":A=ot;break;default:throw new Error('Invalid value "'+ot+'" for attribute FT supplied.')}}});var p=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!p||p.length<1){if(this instanceof Mi)return;p="FieldObject"+n.FieldNum++}var ot=function(Gt){return Gt};return this.scope&&(ot=this.scope.internal.getEncryptor(this.objId)),"("+ud(ot(p))+")"},set:function(ot){p=ot.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return p},set:function(ot){p=ot}});var N="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return N},set:function(ot){N=ot}});var E="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return E},set:function(ot){E=ot}});var U=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return U},set:function(ot){U=ot}});var Z=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Z===void 0?50/Ff:Z},set:function(ot){Z=ot}});var oe="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return oe},set:function(ot){oe=ot}});var Re="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Re||this instanceof Mi||this instanceof eo))return Ar(Re,this.objId,this.scope)},set:function(ot){ot=ot.toString(),Re=ot}});var $e=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if($e)return this instanceof Ta==0?Ar($e,this.objId,this.scope):$e},set:function(ot){ot=ot.toString(),$e=this instanceof Ta==0?ot.substr(0,1)==="("?JA(ot.substr(1,ot.length-2)):JA(ot):ot}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ta==1?JA($e.substr(1,$e.length-1)):$e},set:function(ot){ot=ot.toString(),$e=this instanceof Ta==1?"/"+ot:ot}});var ae=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ae)return ae},set:function(ot){this.V=ot}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ae)return this instanceof Ta==0?Ar(ae,this.objId,this.scope):ae},set:function(ot){ot=ot.toString(),ae=this instanceof Ta==0?ot.substr(0,1)==="("?JA(ot.substr(1,ot.length-2)):JA(ot):ot}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ta==1?JA(ae.substr(1,ae.length-1)):ae},set:function(ot){ot=ot.toString(),ae=this instanceof Ta==1?"/"+ot:ot}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var mt,ut=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return ut},set:function(ot){ot=!!ot,ut=ot}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(mt)return mt},set:function(ot){mt=ot}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,1)},set:function(ot){ot?this.Ff=b(this.Ff,1):this.Ff=f(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,2)},set:function(ot){ot?this.Ff=b(this.Ff,2):this.Ff=f(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,3)},set:function(ot){ot?this.Ff=b(this.Ff,3):this.Ff=f(this.Ff,3)}});var yt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(yt!==null)return yt},set:function(ot){if([0,1,2].indexOf(ot)===-1)throw new Error('Invalid value "'+ot+'" for attribute Q supplied.');yt=ot}}),Object.defineProperty(this,"textAlign",{get:function(){var ot;switch(yt){case 0:default:ot="left";break;case 1:ot="center";break;case 2:ot="right"}return ot},configurable:!0,enumerable:!0,set:function(ot){switch(ot){case"right":case 2:yt=2;break;case"center":case 1:yt=1;break;default:yt=0}}})};aA(Tn,pr);var pi=function(){Tn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(a){n=a}});var o=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return qt(o,this.objId,this.scope)},set:function(a){var l,A;A=[],typeof(l=a)=="string"&&(A=function(p,N,E){E||(E=1);for(var U,Z=[];U=N.exec(p);)Z.push(U[E]);return Z}(l,/\((.*?)\)/g)),o=A}}),this.getOptions=function(){return o},this.setOptions=function(a){o=a,this.sort&&o.sort()},this.addOption=function(a){a=(a=a||"").toString(),o.push(a),this.sort&&o.sort()},this.removeOption=function(a,l){for(l=l||!1,a=(a=a||"").toString();o.indexOf(a)!==-1&&(o.splice(o.indexOf(a),1),l!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,18)},set:function(a){a?this.Ff=b(this.Ff,18):this.Ff=f(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,19)},set:function(a){this.combo===!0&&(a?this.Ff=b(this.Ff,19):this.Ff=f(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,20)},set:function(a){a?(this.Ff=b(this.Ff,20),o.sort()):this.Ff=f(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,22)},set:function(a){a?this.Ff=b(this.Ff,22):this.Ff=f(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,23)},set:function(a){a?this.Ff=b(this.Ff,23):this.Ff=f(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,27)},set:function(a){a?this.Ff=b(this.Ff,27):this.Ff=f(this.Ff,27)}}),this.hasAppearanceStream=!1};aA(pi,Tn);var Xa=function(){pi.call(this),this.fontName="helvetica",this.combo=!1};aA(Xa,pi);var ea=function(){Xa.call(this),this.combo=!0};aA(ea,Xa);var Yi=function(){ea.call(this),this.edit=!0};aA(Yi,ea);var Ta=function(){Tn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,15)},set:function(a){a?this.Ff=b(this.Ff,15):this.Ff=f(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,16)},set:function(a){a?this.Ff=b(this.Ff,16):this.Ff=f(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,17)},set:function(a){a?this.Ff=b(this.Ff,17):this.Ff=f(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,26)},set:function(a){a?this.Ff=b(this.Ff,26):this.Ff=f(this.Ff,26)}});var n,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(p){return p};if(this.scope&&(a=this.scope.internal.getEncryptor(this.objId)),Object.keys(o).length!==0){var l,A=[];for(l in A.push("<<"),o)A.push("/"+l+" ("+ud(a(o[l]))+")");return A.push(">>"),A.join(`
|
|
|
`)}},set:function(a){(0,pe.Z)(a)==="object"&&(o=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(a){typeof a=="string"&&(o.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(a){n="/"+a}})};aA(Ta,Tn);var oo=function(){Ta.call(this),this.pushButton=!0};aA(oo,Ta);var Fa=function(){Ta.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(o){n=o!==void 0?o:[]}})};aA(Fa,Ta);var Mi=function(){var n,o;Tn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(A){o=A}});var a,l={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(E){return E};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var p,N=[];for(p in N.push("<<"),l)N.push("/"+p+" ("+ud(A(l[p]))+")");return N.push(">>"),N.join(`
|
|
|
`)},set:function(A){(0,pe.Z)(A)==="object"&&(l=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return l.CA||""},set:function(A){typeof A=="string"&&(l.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return a.substr(1,a.length-1)},set:function(A){a="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ei.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};aA(Mi,Tn),Fa.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var o in this.Kids)if(this.Kids.hasOwnProperty(o)){var a=this.Kids[o];a.appearanceStreamContent=n.createAppearanceStream(a.optionName),a.caption=n.getCA()}},Fa.prototype.createOption=function(n){var o=new Mi;return o.Parent=this,o.optionName=n,this.Kids.push(o),Sc.call(this.scope,o),o};var Lo=function(){Ta.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ei.CheckBox.createAppearanceStream()};aA(Lo,Ta);var eo=function(){Tn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,13)},set:function(o){o?this.Ff=b(this.Ff,13):this.Ff=f(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,21)},set:function(o){o?this.Ff=b(this.Ff,21):this.Ff=f(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,23)},set:function(o){o?this.Ff=b(this.Ff,23):this.Ff=f(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,24)},set:function(o){o?this.Ff=b(this.Ff,24):this.Ff=f(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,25)},set:function(o){o?this.Ff=b(this.Ff,25):this.Ff=f(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,26)},set:function(o){o?this.Ff=b(this.Ff,26):this.Ff=f(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(o){n=o}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(o){Number.isInteger(o)&&(n=o)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};aA(eo,Tn);var Ua=function(){eo.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,14)},set:function(n){n?this.Ff=b(this.Ff,14):this.Ff=f(this.Ff,14)}}),this.password=!0};aA(Ua,eo);var ei={CheckBox:{createAppearanceStream:function(){return{N:{On:ei.CheckBox.YesNormal},D:{On:ei.CheckBox.YesPushDown,Off:ei.CheckBox.OffPushDown}}},YesPushDown:function(n){var o=Au(n);o.scope=n.scope;var a=[],l=n.scope.internal.getFont(n.fontName,n.fontStyle).id,A=n.scope.__private__.encodeColorString(n.color),p=re(n,n.caption);return a.push("0.749023 g"),a.push("0 0 "+ka(ei.internal.getWidth(n))+" "+ka(ei.internal.getHeight(n))+" re"),a.push("f"),a.push("BMC"),a.push("q"),a.push("0 0 1 rg"),a.push("/"+l+" "+ka(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=Au(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=ei.internal.getHeight(n),N=ei.internal.getWidth(n),E=re(n,n.caption);return A.push("1 g"),A.push("0 0 "+ka(N)+" "+ka(p)+" re"),A.push("f"),A.push("q"),A.push("0 0 1 rg"),A.push("0 0 "+ka(N-1)+" "+ka(p-1)+" re"),A.push("W"),A.push("n"),A.push("0 g"),A.push("BT"),A.push("/"+a+" "+ka(E.fontSize)+" Tf "+l),A.push(E.text),A.push("ET"),A.push("Q"),o.stream=A.join(`
|
|
|
`),o},OffPushDown:function(n){var o=Au(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+ka(ei.internal.getWidth(n))+" "+ka(ei.internal.getHeight(n))+" re"),a.push("f"),o.stream=a.join(`
|
|
|
`),o}},RadioButton:{Circle:{createAppearanceStream:function(n){var o={D:{Off:ei.RadioButton.Circle.OffPushDown},N:{}};return o.N[n]=ei.RadioButton.Circle.YesNormal,o.D[n]=ei.RadioButton.Circle.YesPushDown,o},getCA:function(){return"l"},YesNormal:function(n){var o=Au(n);o.scope=n.scope;var a=[],l=ei.internal.getWidth(n)<=ei.internal.getHeight(n)?ei.internal.getWidth(n)/4:ei.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=ei.internal.Bezier_C,p=Number((l*A).toFixed(5));return a.push("q"),a.push("1 0 0 1 "+zd(ei.internal.getWidth(n)/2)+" "+zd(ei.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=Au(n);o.scope=n.scope;var a=[],l=ei.internal.getWidth(n)<=ei.internal.getHeight(n)?ei.internal.getWidth(n)/4:ei.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),p=Number((A*ei.internal.Bezier_C).toFixed(5)),N=Number((l*ei.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+zd(ei.internal.getWidth(n)/2)+" "+zd(ei.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(ei.internal.getWidth(n)/2)+" "+zd(ei.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+N+" "+N+" "+l+" 0 "+l+" c"),a.push("-"+N+" "+l+" -"+l+" "+N+" -"+l+" 0 c"),a.push("-"+l+" -"+N+" -"+N+" -"+l+" 0 -"+l+" c"),a.push(N+" -"+l+" "+l+" -"+N+" "+l+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
|
|
|
`),o},OffPushDown:function(n){var o=Au(n);o.scope=n.scope;var a=[],l=ei.internal.getWidth(n)<=ei.internal.getHeight(n)?ei.internal.getWidth(n)/4:ei.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),p=Number((A*ei.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+zd(ei.internal.getWidth(n)/2)+" "+zd(ei.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:ei.RadioButton.Cross.OffPushDown},N:{}};return o.N[n]=ei.RadioButton.Cross.YesNormal,o.D[n]=ei.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(n){var o=Au(n);o.scope=n.scope;var a=[],l=ei.internal.calculateCross(n);return a.push("q"),a.push("1 1 "+ka(ei.internal.getWidth(n)-2)+" "+ka(ei.internal.getHeight(n)-2)+" re"),a.push("W"),a.push("n"),a.push(ka(l.x1.x)+" "+ka(l.x1.y)+" m"),a.push(ka(l.x2.x)+" "+ka(l.x2.y)+" l"),a.push(ka(l.x4.x)+" "+ka(l.x4.y)+" m"),a.push(ka(l.x3.x)+" "+ka(l.x3.y)+" l"),a.push("s"),a.push("Q"),o.stream=a.join(`
|
|
|
`),o},YesPushDown:function(n){var o=Au(n);o.scope=n.scope;var a=ei.internal.calculateCross(n),l=[];return l.push("0.749023 g"),l.push("0 0 "+ka(ei.internal.getWidth(n))+" "+ka(ei.internal.getHeight(n))+" re"),l.push("f"),l.push("q"),l.push("1 1 "+ka(ei.internal.getWidth(n)-2)+" "+ka(ei.internal.getHeight(n)-2)+" re"),l.push("W"),l.push("n"),l.push(ka(a.x1.x)+" "+ka(a.x1.y)+" m"),l.push(ka(a.x2.x)+" "+ka(a.x2.y)+" l"),l.push(ka(a.x4.x)+" "+ka(a.x4.y)+" m"),l.push(ka(a.x3.x)+" "+ka(a.x3.y)+" l"),l.push("s"),l.push("Q"),o.stream=l.join(`
|
|
|
`),o},OffPushDown:function(n){var o=Au(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+ka(ei.internal.getWidth(n))+" "+ka(ei.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}};ei.internal={Bezier_C:.551915024494,calculateCross:function(n){var o=ei.internal.getWidth(n),a=ei.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}}}},ei.internal.getWidth=function(n){var o=0;return(0,pe.Z)(n)==="object"&&(o=H0(n.Rect[2])),o},ei.internal.getHeight=function(n){var o=0;return(0,pe.Z)(n)==="object"&&(o=H0(n.Rect[3])),o};var Sc=ll.addField=function(n){if(pt(this,n),!(n instanceof Tn))throw new Error("Invalid argument passed to jsPDF.addField.");var o;return(o=n).scope.internal.acroformPlugin.printedOut&&(o.scope.internal.acroformPlugin.printedOut=!1,o.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),o.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(o),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};ll.AcroFormChoiceField=pi,ll.AcroFormListBox=Xa,ll.AcroFormComboBox=ea,ll.AcroFormEditBox=Yi,ll.AcroFormButton=Ta,ll.AcroFormPushButton=oo,ll.AcroFormRadioButton=Fa,ll.AcroFormCheckBox=Lo,ll.AcroFormTextField=eo,ll.AcroFormPasswordField=Ua,ll.AcroFormAppearance=ei,ll.AcroForm={ChoiceField:pi,ListBox:Xa,ComboBox:ea,EditBox:Yi,Button:Ta,PushButton:oo,RadioButton:Fa,CheckBox:Lo,TextField:eo,PasswordField:Ua,Appearance:ei},da.AcroForm={ChoiceField:pi,ListBox:Xa,ComboBox:ea,EditBox:Yi,Button:Ta,PushButton:oo,RadioButton:Fa,CheckBox:Lo,TextField:eo,PasswordField:Ua,Appearance:ei};var oA=da.AcroForm;function xo(n){return n.reduce(function(o,a,l){return o[a]=l,o},{})}(function(n){var o="addImage_";n.__addimage__={};var a="UNKNOWN",l={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},A=n.__addimage__.getImageFileTypeByImageData=function(it,wt){var Wt,Ht,Tr,Zr,Jr,Lr=a;if((wt=wt||a)==="RGBA"||it.data!==void 0&&it.data instanceof Uint8ClampedArray&&"height"in it&&"width"in it)return"RGBA";if(rn(it))for(Jr in l)for(Tr=l[Jr],Wt=0;Wt<Tr.length;Wt+=1){for(Zr=!0,Ht=0;Ht<Tr[Wt].length;Ht+=1)if(Tr[Wt][Ht]!==void 0&&Tr[Wt][Ht]!==it[Ht]){Zr=!1;break}if(Zr===!0){Lr=Jr;break}}else for(Jr in l)for(Tr=l[Jr],Wt=0;Wt<Tr.length;Wt+=1){for(Zr=!0,Ht=0;Ht<Tr[Wt].length;Ht+=1)if(Tr[Wt][Ht]!==void 0&&Tr[Wt][Ht]!==it.charCodeAt(Ht)){Zr=!1;break}if(Zr===!0){Lr=Jr;break}}return Lr===a&&wt!==a&&(Lr=wt),Lr},p=function it(wt){for(var Wt=this.internal.write,Ht=this.internal.putStream,Tr=(0,this.internal.getFilters)();Tr.indexOf("FlateEncode")!==-1;)Tr.splice(Tr.indexOf("FlateEncode"),1);wt.objectId=this.internal.newObject();var Zr=[];if(Zr.push({key:"Type",value:"/XObject"}),Zr.push({key:"Subtype",value:"/Image"}),Zr.push({key:"Width",value:wt.width}),Zr.push({key:"Height",value:wt.height}),wt.colorSpace===ot.INDEXED?Zr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(wt.palette.length/3-1)+" "+("sMask"in wt&&wt.sMask!==void 0?wt.objectId+2:wt.objectId+1)+" 0 R]"}):(Zr.push({key:"ColorSpace",value:"/"+wt.colorSpace}),wt.colorSpace===ot.DEVICE_CMYK&&Zr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Zr.push({key:"BitsPerComponent",value:wt.bitsPerComponent}),"decodeParameters"in wt&&wt.decodeParameters!==void 0&&Zr.push({key:"DecodeParms",value:"<<"+wt.decodeParameters+">>"}),"transparency"in wt&&Array.isArray(wt.transparency)&&wt.transparency.length>0){for(var Jr="",Lr=0,Gr=wt.transparency.length;Lr<Gr;Lr++)Jr+=wt.transparency[Lr]+" "+wt.transparency[Lr]+" ";Zr.push({key:"Mask",value:"["+Jr+"]"})}wt.sMask!==void 0&&Zr.push({key:"SMask",value:wt.objectId+1+" 0 R"});var $n=wt.filter!==void 0?["/"+wt.filter]:void 0;if(Ht({data:wt.data,additionalKeyValues:Zr,alreadyAppliedFilters:$n,objectId:wt.objectId}),Wt("endobj"),"sMask"in wt&&wt.sMask!==void 0){var Bn,rt=(Bn=wt.sMaskBitsPerComponent)!==null&&Bn!==void 0?Bn:wt.bitsPerComponent,It={width:wt.width,height:wt.height,colorSpace:"DeviceGray",bitsPerComponent:rt,data:wt.sMask};"filter"in wt&&(It.decodeParameters="/Predictor ".concat(wt.predictor," /Colors 1 /BitsPerComponent ").concat(rt," /Columns ").concat(wt.width),It.filter=wt.filter),it.call(this,It)}if(wt.colorSpace===ot.INDEXED){var Ot=this.internal.newObject();Ht({data:ar(new Uint8Array(wt.palette)),objectId:Ot}),Wt("endobj")}},N=function(){var it=this.internal.collections[o+"images"];for(var wt in it)p.call(this,it[wt])},E=function(){var it,wt=this.internal.collections[o+"images"],Wt=this.internal.write;for(var Ht in wt)Wt("/I"+(it=wt[Ht]).index,it.objectId,"0","R")},U=function(){this.internal.collections[o+"images"]||(this.internal.collections[o+"images"]={},this.internal.events.subscribe("putResources",N),this.internal.events.subscribe("putXobjectDict",E))},Z=function(){var it=this.internal.collections[o+"images"];return U.call(this),it},oe=function(){return Object.keys(this.internal.collections[o+"images"]).length},Re=function(it){return typeof n["process"+it.toUpperCase()]=="function"},$e=function(it){return(0,pe.Z)(it)==="object"&&it.nodeType===1},ae=function(it,wt){if(it.nodeName==="IMG"&&it.hasAttribute("src")){var Wt=""+it.getAttribute("src");if(Wt.indexOf("data:image/")===0)return gn(unescape(Wt).split("base64,").pop());var Ht=n.loadFile(Wt,!0);if(Ht!==void 0)return Ht}if(it.nodeName==="CANVAS"){if(it.width===0||it.height===0)throw new Error("Given canvas must have data. Canvas width: "+it.width+", height: "+it.height);var Tr;switch(wt){case"PNG":Tr="image/png";break;case"WEBP":Tr="image/webp";break;default:Tr="image/jpeg"}return gn(it.toDataURL(Tr,1).split("base64,").pop())}},mt=function(it){var wt=this.internal.collections[o+"images"];if(wt){for(var Wt in wt)if(it===wt[Wt].alias)return wt[Wt]}},ut=function(it,wt,Wt){return it||wt||(it=-96,wt=-96),it<0&&(it=-1*Wt.width*72/it/this.internal.scaleFactor),wt<0&&(wt=-1*Wt.height*72/wt/this.internal.scaleFactor),it===0&&(it=wt*Wt.width/Wt.height),wt===0&&(wt=it*Wt.height/Wt.width),[it,wt]},yt=function(it,wt,Wt,Ht,Tr,Zr){var Jr=ut.call(this,Wt,Ht,Tr),Lr=this.internal.getCoordinateString,Gr=this.internal.getVerticalCoordinateString,$n=Z.call(this);if(Wt=Jr[0],Ht=Jr[1],$n[Tr.index]=Tr,Zr){Zr*=Math.PI/180;var Bn=Math.cos(Zr),rt=Math.sin(Zr),It=function(Jt){return Jt.toFixed(4)},Ot=[It(Bn),It(rt),It(-1*rt),It(Bn),0,0,"cm"]}this.internal.write("q"),Zr?(this.internal.write([1,"0","0",1,Lr(it),Gr(wt+Ht),"cm"].join(" ")),this.internal.write(Ot.join(" ")),this.internal.write([Lr(Wt),"0","0",Lr(Ht),"0","0","cm"].join(" "))):this.internal.write([Lr(Wt),"0","0",Lr(Ht),Lr(it),Gr(wt+Ht),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Tr.index+" Do"),this.internal.write("Q")},ot=n.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};n.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Gt=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Rt=n.__addimage__.sHashCode=function(it){var wt,Wt,Ht=0;if(typeof it=="string")for(Wt=it.length,wt=0;wt<Wt;wt++)Ht=(Ht<<5)-Ht+it.charCodeAt(wt),Ht|=0;else if(rn(it))for(Wt=it.byteLength/2,wt=0;wt<Wt;wt++)Ht=(Ht<<5)-Ht+it[wt],Ht|=0;return Ht},Ft=n.__addimage__.validateStringAsBase64=function(it){(it=it||"").toString().trim();var wt=!0;return it.length===0&&(wt=!1),it.length%4!=0&&(wt=!1),/^[A-Za-z0-9+/]+$/.test(it.substr(0,it.length-2))===!1&&(wt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(it.substr(-2))===!1&&(wt=!1),wt},Mr=n.__addimage__.extractImageFromDataUrl=function(it){if(it==null||!(it=it.trim()).startsWith("data:"))return null;var wt=it.indexOf(",");return wt<0?null:it.substring(0,wt).trim().endsWith("base64")?it.substring(wt+1):null};n.__addimage__.isArrayBuffer=function(it){return it instanceof ArrayBuffer};var rn=n.__addimage__.isArrayBufferView=function(it){return it instanceof Int8Array||it instanceof Uint8Array||it instanceof Uint8ClampedArray||it instanceof Int16Array||it instanceof Uint16Array||it instanceof Int32Array||it instanceof Uint32Array||it instanceof Float32Array||it instanceof Float64Array},Wr=n.__addimage__.binaryStringToUint8Array=function(it){for(var wt=it.length,Wt=new Uint8Array(wt),Ht=0;Ht<wt;Ht++)Wt[Ht]=it.charCodeAt(Ht);return Wt},ar=n.__addimage__.arrayBufferToBinaryString=function(it){for(var wt="",Wt=rn(it)?it:new Uint8Array(it),Ht=0;Ht<Wt.length;Ht+=8192)wt+=String.fromCharCode.apply(null,Wt.subarray(Ht,Ht+8192));return wt};n.addImage=function(){var it,wt,Wt,Ht,Tr,Zr,Jr,Lr,Gr;if(typeof arguments[1]=="number"?(wt=a,Wt=arguments[1],Ht=arguments[2],Tr=arguments[3],Zr=arguments[4],Jr=arguments[5],Lr=arguments[6],Gr=arguments[7]):(wt=arguments[1],Wt=arguments[2],Ht=arguments[3],Tr=arguments[4],Zr=arguments[5],Jr=arguments[6],Lr=arguments[7],Gr=arguments[8]),(0,pe.Z)(it=arguments[0])==="object"&&!$e(it)&&"imageData"in it){var $n=it;it=$n.imageData,wt=$n.format||wt||a,Wt=$n.x||Wt||0,Ht=$n.y||Ht||0,Tr=$n.w||$n.width||Tr,Zr=$n.h||$n.height||Zr,Jr=$n.alias||Jr,Lr=$n.compression||Lr,Gr=$n.rotation||$n.angle||Gr}var Bn=this.internal.getFilters();if(Lr===void 0&&Bn.indexOf("FlateEncode")!==-1&&(Lr="SLOW"),isNaN(Wt)||isNaN(Ht))throw new Error("Invalid coordinates passed to jsPDF.addImage");U.call(this);var rt=Mt.call(this,it,wt,Jr,Lr);return yt.call(this,Wt,Ht,Tr,Zr,rt,Gr),this};var Mt=function(it,wt,Wt,Ht){var Tr,Zr,Jr;if(typeof it=="string"&&A(it)===a){it=unescape(it);var Lr=Cr(it,!1);(Lr!==""||(Lr=n.loadFile(it,!0))!==void 0)&&(it=Lr)}if($e(it)&&(it=ae(it,wt)),wt=A(it,wt),!Re(wt))throw new Error("addImage does not support files of type '"+wt+"', please ensure that a plugin for '"+wt+"' support is added.");if(((Jr=Wt)==null||Jr.length===0)&&(Wt=function(Gr){return typeof Gr=="string"||rn(Gr)?Rt(Gr):rn(Gr.data)?Rt(Gr.data):null}(it)),(Tr=mt.call(this,Wt))||(it instanceof Uint8Array||wt==="RGBA"||(Zr=it,it=Wr(it)),Tr=this["process"+wt.toUpperCase()](it,oe.call(this),Wt,function(Gr){return Gr&&typeof Gr=="string"&&(Gr=Gr.toUpperCase()),Gr in n.image_compression?Gr:Gt.NONE}(Ht),Zr)),!Tr)throw new Error("An unknown error occurred whilst processing the image.");return Tr},Cr=n.__addimage__.convertBase64ToBinaryString=function(it,wt){wt=typeof wt!="boolean"||wt;var Wt,Ht="";if(typeof it=="string"){var Tr;Wt=(Tr=Mr(it))!==null&&Tr!==void 0?Tr:it;try{Ht=gn(Wt)}catch(Zr){if(wt)throw Ft(Wt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Zr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ht};n.getImageProperties=function(it){var wt,Wt,Ht="";if($e(it)&&(it=ae(it)),typeof it=="string"&&A(it)===a&&((Ht=Cr(it,!1))===""&&(Ht=n.loadFile(it)||""),it=Ht),Wt=A(it),!Re(Wt))throw new Error("addImage does not support files of type '"+Wt+"', please ensure that a plugin for '"+Wt+"' support is added.");if(it instanceof Uint8Array||(it=Wr(it)),!(wt=this["process"+Wt.toUpperCase()](it)))throw new Error("An unknown error occurred whilst processing the image");return wt.fileType=Wt,wt}})(da.API),function(n){var o=function(a){if(a!==void 0&&a!="")return!0};da.API.events.push(["addPage",function(a){this.internal.getPageInfo(a.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(a){for(var l,A,p,N=this.internal.getCoordinateString,E=this.internal.getVerticalCoordinateString,U=this.internal.getPageInfoByObjId(a.objId),Z=a.pageContext.annotations,oe=!1,Re=0;Re<Z.length&&!oe;Re++)switch((l=Z[Re]).type){case"link":(o(l.options.url)||o(l.options.pageNumber))&&(oe=!0);break;case"reference":case"text":case"freetext":oe=!0}if(oe!=0){this.internal.write("/Annots [");for(var $e=0;$e<Z.length;$e++){l=Z[$e];var ae=this.internal.pdfEscape,mt=this.internal.getEncryptor(a.objId);switch(l.type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var ut=this.internal.newAdditionalObject(),yt=this.internal.newAdditionalObject(),ot=this.internal.getEncryptor(ut.objId),Gt=l.title||"Note";p="<</Type /Annot /Subtype /Text "+(A="/Rect ["+N(l.bounds.x)+" "+E(l.bounds.y+l.bounds.h)+" "+N(l.bounds.x+l.bounds.w)+" "+E(l.bounds.y)+"] ")+"/Contents ("+ae(ot(l.contents))+")",p+=" /Popup "+yt.objId+" 0 R",p+=" /P "+U.objId+" 0 R",p+=" /T ("+ae(ot(Gt))+") >>",ut.content=p;var Rt=ut.objId+" 0 R";p="<</Type /Annot /Subtype /Popup "+(A="/Rect ["+N(l.bounds.x+30)+" "+E(l.bounds.y+l.bounds.h)+" "+N(l.bounds.x+l.bounds.w+30)+" "+E(l.bounds.y)+"] ")+" /Parent "+Rt,l.open&&(p+=" /Open true"),p+=" >>",yt.content=p,this.internal.write(ut.objId,"0 R",yt.objId,"0 R");break;case"freetext":A="/Rect ["+N(l.bounds.x)+" "+E(l.bounds.y)+" "+N(l.bounds.x+l.bounds.w)+" "+E(l.bounds.y+l.bounds.h)+"] ";var Ft=l.color||"#000000";p="<</Type /Annot /Subtype /FreeText "+A+"/Contents ("+ae(mt(l.contents))+")",p+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Ft+")",p+=" /Border [0 0 0]",p+=" >>",this.internal.write(p);break;case"link":if(l.options.name){var Mr=this.annotations._nameMap[l.options.name];l.options.pageNumber=Mr.page,l.options.top=Mr.y}else l.options.top||(l.options.top=0);if(A="/Rect ["+l.finalBounds.x+" "+l.finalBounds.y+" "+l.finalBounds.w+" "+l.finalBounds.h+"] ",p="",l.options.url)p="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /A <</S /URI /URI ("+ae(mt(l.options.url))+") >>";else if(l.options.pageNumber)switch(p="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(l.options.pageNumber).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":p+=" /Fit]";break;case"FitH":p+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,p+=" /FitV "+l.options.left+"]";break;default:var rn=E(l.options.top);l.options.left=l.options.left||0,l.options.zoom===void 0&&(l.options.zoom=0),p+=" /XYZ "+l.options.left+" "+rn+" "+l.options.zoom+"]"}p!=""&&(p+=" >>",this.internal.write(p))}}this.internal.write("]")}}]),n.createAnnotation=function(a){var l=this.internal.getCurrentPageInfo();switch(a.type){case"link":this.link(a.bounds.x,a.bounds.y,a.bounds.w,a.bounds.h,a);break;case"text":case"freetext":l.pageContext.annotations.push(a)}},n.link=function(a,l,A,p,N){var E=this.internal.getCurrentPageInfo(),U=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString;E.pageContext.annotations.push({finalBounds:{x:U(a),y:Z(l),w:U(a+A),h:Z(l+p)},options:N,type:"link"})},n.textWithLink=function(a,l,A,p){var N,E,U=this.getTextWidth(a),Z=this.internal.getLineHeight()/this.internal.scaleFactor;if(p.maxWidth!==void 0){E=p.maxWidth;var oe=this.splitTextToSize(a,E).length;N=Math.ceil(Z*oe)}else E=U,N=Z;return this.text(a,l,A,p),A+=.2*Z,p.align==="center"&&(l-=U/2),p.align==="right"&&(l-=U),this.link(l,A-Z,E,N,p),U},n.getTextWidth=function(a){var l=this.internal.getFontSize();return this.getStringUnitWidth(a)*l/this.internal.scaleFactor}}(da.API),function(n){var o={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},a={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},l={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},A=[1570,1571,1573,1575];n.__arabicParser__={};var p=n.__arabicParser__.isInArabicSubstitutionA=function(ut){return o[ut.charCodeAt(0)]!==void 0},N=n.__arabicParser__.isArabicLetter=function(ut){return typeof ut=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(ut)},E=n.__arabicParser__.isArabicEndLetter=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length<=2},U=n.__arabicParser__.isArabicAlfLetter=function(ut){return N(ut)&&A.indexOf(ut.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=1};var Z=n.__arabicParser__.arabicLetterHasFinalForm=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=3};var oe=n.__arabicParser__.arabicLetterHasMedialForm=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length==4},Re=n.__arabicParser__.resolveLigatures=function(ut){var yt=0,ot=a,Gt="",Rt=0;for(yt=0;yt<ut.length;yt+=1)ot[ut.charCodeAt(yt)]!==void 0?(Rt++,typeof(ot=ot[ut.charCodeAt(yt)])=="number"&&(Gt+=String.fromCharCode(ot),ot=a,Rt=0),yt===ut.length-1&&(ot=a,Gt+=ut.charAt(yt-(Rt-1)),yt-=Rt-1,Rt=0)):(ot=a,Gt+=ut.charAt(yt-Rt),yt-=Rt,Rt=0);return Gt};n.__arabicParser__.isArabicDiacritic=function(ut){return ut!==void 0&&l[ut.charCodeAt(0)]!==void 0};var $e=n.__arabicParser__.getCorrectForm=function(ut,yt,ot){return N(ut)?p(ut)===!1?-1:!Z(ut)||!N(yt)&&!N(ot)||!N(ot)&&E(yt)||E(ut)&&!N(yt)||E(ut)&&U(yt)||E(ut)&&E(yt)?0:oe(ut)&&N(yt)&&!E(yt)&&N(ot)&&Z(ot)?3:E(ut)||!N(ot)?1:2:-1},ae=function(ut){var yt=0,ot=0,Gt=0,Rt="",Ft="",Mr="",rn=(ut=ut||"").split("\\s+"),Wr=[];for(yt=0;yt<rn.length;yt+=1){for(Wr.push(""),ot=0;ot<rn[yt].length;ot+=1)Rt=rn[yt][ot],Ft=rn[yt][ot-1],Mr=rn[yt][ot+1],N(Rt)?(Gt=$e(Rt,Ft,Mr),Wr[yt]+=Gt!==-1?String.fromCharCode(o[Rt.charCodeAt(0)][Gt]):Rt):Wr[yt]+=Rt;Wr[yt]=Re(Wr[yt])}return Wr.join(" ")},mt=n.__arabicParser__.processArabic=n.processArabic=function(){var ut,yt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,ot=[];if(Array.isArray(yt)){var Gt=0;for(ot=[],Gt=0;Gt<yt.length;Gt+=1)Array.isArray(yt[Gt])?ot.push([ae(yt[Gt][0]),yt[Gt][1],yt[Gt][2]]):ot.push([ae(yt[Gt])]);ut=ot}else ut=ae(yt);return typeof arguments[0]=="string"?ut:(arguments[0].text=ut,arguments[0])};n.events.push(["preProcessText",mt])}(da.API),da.API.autoPrint=function(n){var o;return(n=n||{}).variant=n.variant||"non-conform",n.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){o=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+o+" 0 R")})),this},function(n){var o=function(){var a=void 0;Object.defineProperty(this,"pdf",{get:function(){return a},set:function(E){a=E}});var l=150;Object.defineProperty(this,"width",{get:function(){return l},set:function(E){l=isNaN(E)||Number.isInteger(E)===!1||E<0?150:E,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=l+1)}});var A=300;Object.defineProperty(this,"height",{get:function(){return A},set:function(E){A=isNaN(E)||Number.isInteger(E)===!1||E<0?300:E,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=A+1)}});var p=[];Object.defineProperty(this,"childNodes",{get:function(){return p},set:function(E){p=E}});var N={};Object.defineProperty(this,"style",{get:function(){return N},set:function(E){N=E}}),Object.defineProperty(this,"parentNode",{})};o.prototype.getContext=function(a,l){var A;if((a=a||"2d")!=="2d")return null;for(A in l)this.pdf.context2d.hasOwnProperty(A)&&(this.pdf.context2d[A]=l[A]);return this.pdf.context2d._canvas=this,this.pdf.context2d},o.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new o,this.canvas.pdf=this}])}(da.API),function(n){var o={left:0,top:0,bottom:0,right:0},a=!1,l=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},o),this.internal.__cell__.margins.width=this.getPageWidth(),A.call(this))},A=function(){this.internal.__cell__.lastCell=new p,this.internal.__cell__.pages=1},p=function(){var U=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return U},set:function(ut){U=ut}});var Z=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Z},set:function(ut){Z=ut}});var oe=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return oe},set:function(ut){oe=ut}});var Re=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Re},set:function(ut){Re=ut}});var $e=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return $e},set:function(ut){$e=ut}});var ae=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ae},set:function(ut){ae=ut}});var mt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return mt},set:function(ut){mt=ut}}),this};p.prototype.clone=function(){return new p(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},p.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(U){return l.call(this),this.internal.__cell__.headerFunction=typeof U=="function"?U:void 0,this},n.getTextDimensions=function(U,Z){l.call(this);var oe=(Z=Z||{}).fontSize||this.getFontSize(),Re=Z.font||this.getFont(),$e=Z.scaleFactor||this.internal.scaleFactor,ae=0,mt=0,ut=0,yt=this;if(!Array.isArray(U)&&typeof U!="string"){if(typeof U!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");U=String(U)}var ot=Z.maxWidth;ot>0?typeof U=="string"?U=this.splitTextToSize(U,ot):Object.prototype.toString.call(U)==="[object Array]"&&(U=U.reduce(function(Rt,Ft){return Rt.concat(yt.splitTextToSize(Ft,ot))},[])):U=Array.isArray(U)?U:[U];for(var Gt=0;Gt<U.length;Gt++)ae<(ut=this.getStringUnitWidth(U[Gt],{font:Re})*oe)&&(ae=ut);return ae!==0&&(mt=U.length),{w:ae/=$e,h:Math.max((mt*oe*this.getLineHeightFactor()-oe*(this.getLineHeightFactor()-1))/$e,0)}},n.cellAddPage=function(){l.call(this),this.addPage();var U=this.internal.__cell__.margins||o;return this.internal.__cell__.lastCell=new p(U.left,U.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var N=n.cell=function(){var U;U=arguments[0]instanceof p?arguments[0]:new p(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),l.call(this);var Z=this.internal.__cell__.lastCell,oe=this.internal.__cell__.padding,Re=this.internal.__cell__.margins||o,$e=this.internal.__cell__.tableHeaderRow,ae=this.internal.__cell__.printHeaders;return Z.lineNumber!==void 0&&(Z.lineNumber===U.lineNumber?(U.x=(Z.x||0)+(Z.width||0),U.y=Z.y||0):Z.y+Z.height+U.height+Re.bottom>this.getPageHeight()?(this.cellAddPage(),U.y=Re.top,ae&&$e&&(this.printHeaderRow(U.lineNumber,!0),U.y+=$e[0].height)):U.y=Z.y+Z.height||U.y),U.text[0]!==void 0&&(this.rect(U.x,U.y,U.width,U.height,a===!0?"FD":void 0),U.align==="right"?this.text(U.text,U.x+U.width-oe,U.y+oe,{align:"right",baseline:"top"}):U.align==="center"?this.text(U.text,U.x+U.width/2,U.y+oe,{align:"center",baseline:"top",maxWidth:U.width-oe-oe}):this.text(U.text,U.x+oe,U.y+oe,{align:"left",baseline:"top",maxWidth:U.width-oe-oe})),this.internal.__cell__.lastCell=U,this};n.table=function(U,Z,oe,Re,$e){if(l.call(this),!oe)throw new Error("No data for PDF table.");var ae,mt,ut,yt,ot=[],Gt=[],Rt=[],Ft={},Mr={},rn=[],Wr=[],ar=($e=$e||{}).autoSize||!1,Mt=$e.printHeaders!==!1,Cr=$e.css&&$e.css["font-size"]!==void 0?16*$e.css["font-size"]:$e.fontSize||12,it=$e.margins||Object.assign({width:this.getPageWidth()},o),wt=typeof $e.padding=="number"?$e.padding:3,Wt=$e.headerBackgroundColor||"#c8c8c8",Ht=$e.headerTextColor||"#000";if(A.call(this),this.internal.__cell__.printHeaders=Mt,this.internal.__cell__.margins=it,this.internal.__cell__.table_font_size=Cr,this.internal.__cell__.padding=wt,this.internal.__cell__.headerBackgroundColor=Wt,this.internal.__cell__.headerTextColor=Ht,this.setFontSize(Cr),Re==null)Gt=ot=Object.keys(oe[0]),Rt=ot.map(function(){return"left"});else if(Array.isArray(Re)&&(0,pe.Z)(Re[0])==="object")for(ot=Re.map(function($n){return $n.name}),Gt=Re.map(function($n){return $n.prompt||$n.name||""}),Rt=Re.map(function($n){return $n.align||"left"}),ae=0;ae<Re.length;ae+=1)Mr[Re[ae].name]=.7499990551181103*Re[ae].width;else Array.isArray(Re)&&typeof Re[0]=="string"&&(Gt=ot=Re,Rt=ot.map(function(){return"left"}));if(ar||Array.isArray(Re)&&typeof Re[0]=="string")for(ae=0;ae<ot.length;ae+=1){for(Ft[yt=ot[ae]]=oe.map(function($n){return $n[yt]}),this.setFont(void 0,"bold"),rn.push(this.getTextDimensions(Gt[ae],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),mt=Ft[yt],this.setFont(void 0,"normal"),ut=0;ut<mt.length;ut+=1)rn.push(this.getTextDimensions(mt[ut],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Mr[yt]=Math.max.apply(null,rn)+wt+wt,rn=[]}if(Mt){var Tr={};for(ae=0;ae<ot.length;ae+=1)Tr[ot[ae]]={},Tr[ot[ae]].text=Gt[ae],Tr[ot[ae]].align=Rt[ae];var Zr=E.call(this,Tr,Mr);Wr=ot.map(function($n){return new p(U,Z,Mr[$n],Zr,Tr[$n].text,void 0,Tr[$n].align)}),this.setTableHeaderRow(Wr),this.printHeaderRow(1,!1)}var Jr=Re.reduce(function($n,Bn){return $n[Bn.name]=Bn.align,$n},{});for(ae=0;ae<oe.length;ae+=1){"rowStart"in $e&&$e.rowStart instanceof Function&&$e.rowStart({row:ae,data:oe[ae]},this);var Lr=E.call(this,oe[ae],Mr);for(ut=0;ut<ot.length;ut+=1){var Gr=oe[ae][ot[ut]];"cellStart"in $e&&$e.cellStart instanceof Function&&$e.cellStart({row:ae,col:ut,data:Gr},this),N.call(this,new p(U,Z,Mr[ot[ut]],Lr,Gr,ae+2,Jr[ot[ut]]))}}return this.internal.__cell__.table_x=U,this.internal.__cell__.table_y=Z,this};var E=function(U,Z){var oe=this.internal.__cell__.padding,Re=this.internal.__cell__.table_font_size,$e=this.internal.scaleFactor;return Object.keys(U).map(function(ae){var mt=U[ae];return this.splitTextToSize(mt.hasOwnProperty("text")?mt.text:mt,Z[ae]-oe-oe)},this).map(function(ae){return this.getLineHeightFactor()*ae.length*Re/$e+oe+oe},this).reduce(function(ae,mt){return Math.max(ae,mt)},0)};n.setTableHeaderRow=function(U){l.call(this),this.internal.__cell__.tableHeaderRow=U},n.printHeaderRow=function(U,Z){if(l.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var oe;if(a=!0,typeof this.internal.__cell__.headerFunction=="function"){var Re=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new p(Re[0],Re[1],Re[2],Re[3],void 0,-1)}this.setFont(void 0,"bold");for(var $e=[],ae=0;ae<this.internal.__cell__.tableHeaderRow.length;ae+=1){oe=this.internal.__cell__.tableHeaderRow[ae].clone(),Z&&(oe.y=this.internal.__cell__.margins.top||0,$e.push(oe)),oe.lineNumber=U;var mt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),N.call(this,oe),this.setTextColor(mt)}$e.length>0&&this.setTableHeaderRow($e),this.setFont(void 0,"normal"),a=!1}}(da.API);var Ec={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dd=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Yc=xo(dd),sA=[100,200,300,400,500,600,700,800,900],uu=xo(sA);function YA(n){var o=n.family.replace(/"|'/g,"").toLowerCase(),a=function(p){return Ec[p=p||"normal"]?p:"normal"}(n.style),l=function(p){return p?typeof p=="number"?p>=100&&p<=900&&p%100==0?p:400:/^\d00$/.test(p)?parseInt(p):p==="bold"?700:400:400}(n.weight),A=function(p){return typeof Yc[p=p||"normal"]=="number"?p:"normal"}(n.stretch);return{family:o,style:a,weight:l,stretch:A,src:n.src||[],ref:n.ref||{name:o,style:[A,a,l].join(" ")}}}function du(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 Tu={"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 Uu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function $d(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 Kc,vg,Hh,jh,om,bg,Gm,yg,Xm=["times"];function sm(n,o,a,l,A){var p=4,N=xg;switch(A){case da.API.image_compression.FAST:p=1,N=wg;break;case da.API.image_compression.MEDIUM:p=6,N=j0;break;case da.API.image_compression.SLOW:p=9,N=Jm}n=function(U,Z,oe,Re){for(var $e,ae=U.length/Z,mt=new Uint8Array(U.length+ae),ut=[Jg,wg,xg,j0,Jm],yt=0;yt<ae;yt+=1){var ot=yt*Z,Gt=U.subarray(ot,ot+Z);if(Re)mt.set(Re(Gt,oe,$e),ot+yt);else{for(var Rt=ut.length,Ft=[],Mr=0;Mr<Rt;Mr+=1)Ft[Mr]=ut[Mr](Gt,oe,$e);var rn=Bp(Ft.concat());mt.set(Ft[rn],ot+yt)}$e=Gt}return mt}(n,o,Math.ceil(a*l/8),N);var E=ii(n,{level:p});return da.API.__addimage__.arrayBufferToBinaryString(E)}function Jg(n){var o=Array.apply([],n);return o.unshift(0),o}function wg(n,o){var a=n.length,l=[];l[0]=1;for(var A=0;A<a;A+=1){var p=n[A-o]||0;l[A+1]=n[A]-p+256&255}return l}function xg(n,o,a){var l=n.length,A=[];A[0]=2;for(var p=0;p<l;p+=1){var N=a&&a[p]||0;A[p+1]=n[p]-N+256&255}return A}function j0(n,o,a){var l=n.length,A=[];A[0]=3;for(var p=0;p<l;p+=1){var N=n[p-o]||0,E=a&&a[p]||0;A[p+1]=n[p]+256-(N+E>>>1)&255}return A}function Jm(n,o,a){var l=n.length,A=[];A[0]=4;for(var p=0;p<l;p+=1){var N=lm(n[p-o]||0,a&&a[p]||0,a&&a[p-o]||0);A[p+1]=n[p]-N+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 Bp(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),N=(1<<a)-1;return Sp(n,A)>>p&N}function zh(n,o,a,l){var A=a*l,p=Math.floor(A/8),N=16-(A-8*p+l),E=(1<<l)-1,U=(o&E)<<N;(function(Z,oe,Re){if(oe+1<Z.byteLength)Z.setUint16(oe,Re,!1);else{var $e=Re>>8&255;Z.setUint8(oe,$e)}})(n,p,Sp(n,p)&~(E<<N)&65535|U)}function Sp(n,o){return o+1<n.byteLength?n.getUint16(o,!1):n.getUint8(o)<<8}function Ym(n){var o=0;if(n[o++]!==71||n[o++]!==73||n[o++]!==70||n[o++]!==56||(n[o++]+1&253)!=56||n[o++]!==97)throw new Error("Invalid GIF 87a/89a header.");var a=n[o++]|n[o++]<<8,l=n[o++]|n[o++]<<8,A=n[o++],p=A>>7,N=1<<1+(7&A);n[o++],n[o++];var E=null,U=null;p&&(E=o,U=N,o+=3*N);var Z=!0,oe=[],Re=0,$e=null,ae=0,mt=null;for(this.width=a,this.height=l;Z&&o<n.length;)switch(n[o++]){case 33:switch(n[o++]){case 255:if(n[o]!==11||n[o+1]==78&&n[o+2]==69&&n[o+3]==84&&n[o+4]==83&&n[o+5]==67&&n[o+6]==65&&n[o+7]==80&&n[o+8]==69&&n[o+9]==50&&n[o+10]==46&&n[o+11]==48&&n[o+12]==3&&n[o+13]==1&&n[o+16]==0)o+=14,mt=n[o++]|n[o++]<<8,o++;else for(o+=12;;){if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}break;case 249:if(n[o++]!==4||n[o+4]!==0)throw new Error("Invalid graphics extension block.");var ut=n[o++];Re=n[o++]|n[o++]<<8,$e=n[o++],1&ut||($e=null),ae=ut>>2&7,o++;break;case 254:for(;;){if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}break;default:throw new Error("Unknown graphic control label: 0x"+n[o-1].toString(16))}break;case 44:var yt=n[o++]|n[o++]<<8,ot=n[o++]|n[o++]<<8,Gt=n[o++]|n[o++]<<8,Rt=n[o++]|n[o++]<<8,Ft=n[o++],Mr=Ft>>6&1,rn=1<<1+(7&Ft),Wr=E,ar=U,Mt=!1;Ft>>7&&(Mt=!0,Wr=o,ar=rn,o+=3*rn);var Cr=o;for(o++;;){var it;if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}oe.push({x:yt,y:ot,width:Gt,height:Rt,has_local_palette:Mt,palette_offset:Wr,palette_size:ar,data_offset:Cr,data_length:o-Cr,transparent_index:$e,interlaced:!!Mr,delay:Re,disposal:ae});break;case 59:Z=!1;break;default:throw new Error("Unknown gif block: 0x"+n[o-1].toString(16))}this.numFrames=function(){return oe.length},this.loopCount=function(){return mt},this.frameInfo=function(wt){if(wt<0||wt>=oe.length)throw new Error("Frame index out of range.");return oe[wt]},this.decodeAndBlitFrameBGRA=function(wt,Wt){var Ht=this.frameInfo(wt),Tr=Ht.width*Ht.height,Zr=new Uint8Array(Tr);Cg(n,Ht.data_offset,Zr,Tr);var Jr=Ht.palette_offset,Lr=Ht.transparent_index;Lr===null&&(Lr=256);var Gr=Ht.width,$n=a-Gr,Bn=Gr,rt=4*(Ht.y*a+Ht.x),It=4*((Ht.y+Ht.height)*a+Ht.x),Ot=rt,Jt=4*$n;Ht.interlaced===!0&&(Jt+=4*a*7);for(var fr=8,Er=0,Kr=Zr.length;Er<Kr;++Er){var $r=Zr[Er];if(Bn===0&&(Bn=Gr,(Ot+=Jt)>=It&&(Jt=4*$n+4*a*(fr-1),Ot=rt+(Gr+$n)*(fr<<1),fr>>=1)),$r===Lr)Ot+=4;else{var mn=n[Jr+3*$r],Hn=n[Jr+3*$r+1],gi=n[Jr+3*$r+2];Wt[Ot++]=gi,Wt[Ot++]=Hn,Wt[Ot++]=mn,Wt[Ot++]=255}--Bn}},this.decodeAndBlitFrameRGBA=function(wt,Wt){var Ht=this.frameInfo(wt),Tr=Ht.width*Ht.height,Zr=new Uint8Array(Tr);Cg(n,Ht.data_offset,Zr,Tr);var Jr=Ht.palette_offset,Lr=Ht.transparent_index;Lr===null&&(Lr=256);var Gr=Ht.width,$n=a-Gr,Bn=Gr,rt=4*(Ht.y*a+Ht.x),It=4*((Ht.y+Ht.height)*a+Ht.x),Ot=rt,Jt=4*$n;Ht.interlaced===!0&&(Jt+=4*a*7);for(var fr=8,Er=0,Kr=Zr.length;Er<Kr;++Er){var $r=Zr[Er];if(Bn===0&&(Bn=Gr,(Ot+=Jt)>=It&&(Jt=4*$n+4*a*(fr-1),Ot=rt+(Gr+$n)*(fr<<1),fr>>=1)),$r===Lr)Ot+=4;else{var mn=n[Jr+3*$r],Hn=n[Jr+3*$r+1],gi=n[Jr+3*$r+2];Wt[Ot++]=mn,Wt[Ot++]=Hn,Wt[Ot++]=gi,Wt[Ot++]=255}--Bn}}}function Cg(n,o,a,l){for(var A=n[o++],p=1<<A,N=p+1,E=N+1,U=A+1,Z=(1<<U)-1,oe=0,Re=0,$e=0,ae=n[o++],mt=new Int32Array(4096),ut=null;;){for(;oe<16&&ae!==0;)Re|=n[o++]<<oe,oe+=8,ae===1?ae=n[o++]:--ae;if(oe<U)break;var yt=Re&Z;if(Re>>=U,oe-=U,yt!==p){if(yt===N)break;for(var ot=yt<E?yt:ut,Gt=0,Rt=ot;Rt>p;)Rt=mt[Rt]>>8,++Gt;var Ft=Rt;if($e+Gt+(ot!==yt?1:0)>l)return void Ns.log("Warning, gif stream longer than expected.");a[$e++]=Ft;var Mr=$e+=Gt;for(ot!==yt&&(a[$e++]=Ft),Rt=ot;Gt--;)Rt=mt[Rt],a[--Mr]=255&Rt,Rt>>=8;ut!==null&&E<4096&&(mt[E++]=ut<<8|Ft,E>=Z+1&&U<12&&(++U,Z=Z<<1|1)),ut=yt}else E=N+1,Z=(1<<(U=A+1))-1,ut=null}return $e!==l&&Ns.log("Warning, gif stream shorter than expected."),a}function qm(n){var o,a,l,A,p,N=Math.floor,E=new Array(64),U=new Array(64),Z=new Array(64),oe=new Array(64),Re=new Array(65535),$e=new Array(65535),ae=new Array(64),mt=new Array(64),ut=[],yt=0,ot=7,Gt=new Array(64),Rt=new Array(64),Ft=new Array(64),Mr=new Array(256),rn=new Array(2048),Wr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],ar=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Mt=[0,1,2,3,4,5,6,7,8,9,10,11],Cr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],it=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],wt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Wt=[0,1,2,3,4,5,6,7,8,9,10,11],Ht=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Tr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Zr(rt,It){for(var Ot=0,Jt=0,fr=new Array,Er=1;Er<=16;Er++){for(var Kr=1;Kr<=rt[Er];Kr++)fr[It[Jt]]=[],fr[It[Jt]][0]=Ot,fr[It[Jt]][1]=Er,Jt++,Ot++;Ot*=2}return fr}function Jr(rt){for(var It=rt[0],Ot=rt[1]-1;Ot>=0;)It&1<<Ot&&(yt|=1<<ot),Ot--,--ot<0&&(yt==255?(Lr(255),Lr(0)):Lr(yt),ot=7,yt=0)}function Lr(rt){ut.push(rt)}function Gr(rt){Lr(rt>>8&255),Lr(255&rt)}function $n(rt,It,Ot,Jt,fr){for(var Er,Kr=fr[0],$r=fr[240],mn=function(Un,Da){var Oi,xa,La,is,as,Ja,Xo,Qo,ha,Eo,Ca=0;for(ha=0;ha<8;++ha){Oi=Un[Ca],xa=Un[Ca+1],La=Un[Ca+2],is=Un[Ca+3],as=Un[Ca+4],Ja=Un[Ca+5],Xo=Un[Ca+6];var pc=Oi+(Qo=Un[Ca+7]),ws=Oi-Qo,Po=xa+Xo,Ko=xa-Xo,Ol=La+Ja,Ea=La-Ja,dl=is+as,Ya=is-as,fo=pc+dl,al=pc-dl,no=Po+Ol,Na=Po-Ol;Un[Ca]=fo+no,Un[Ca+4]=fo-no;var Hs=.707106781*(Na+al);Un[Ca+2]=al+Hs,Un[Ca+6]=al-Hs;var Zh=.382683433*((fo=Ya+Ea)-(Na=Ko+ws)),Hc=.5411961*fo+Zh,Mf=1.306562965*Na+Zh,Zd=.707106781*(no=Ea+Ko),ja=ws+Zd,Lf=ws-Zd;Un[Ca+5]=Lf+Hc,Un[Ca+3]=Lf-Hc,Un[Ca+1]=ja+Mf,Un[Ca+7]=ja-Mf,Ca+=8}for(Ca=0,ha=0;ha<8;++ha){Oi=Un[Ca],xa=Un[Ca+8],La=Un[Ca+16],is=Un[Ca+24],as=Un[Ca+32],Ja=Un[Ca+40],Xo=Un[Ca+48];var kf=Oi+(Qo=Un[Ca+56]),mu=Oi-Qo,gu=xa+Xo,ac=xa-Xo,Is=La+Ja,fl=La-Ja,Vd=is+as,Wd=is-as,Ru=kf+Vd,vu=kf-Vd,lA=gu+Is,bu=gu-Is;Un[Ca]=Ru+lA,Un[Ca+32]=Ru-lA;var Qu=.707106781*(bu+vu);Un[Ca+16]=vu+Qu,Un[Ca+48]=vu-Qu;var Vh=.382683433*((Ru=Wd+fl)-(bu=ac+mu)),Gd=.5411961*Ru+Vh,Wh=1.306562965*bu+Vh,Gh=.707106781*(lA=fl+ac),z0=mu+Gh,Xh=mu-Gh;Un[Ca+40]=Xh+Gd,Un[Ca+24]=Xh-Gd,Un[Ca+8]=z0+Wh,Un[Ca+56]=z0-Wh,Ca++}for(ha=0;ha<64;++ha)Eo=Un[ha]*Da[ha],ae[ha]=Eo>0?Eo+.5|0:Eo-.5|0;return ae}(rt,It),Hn=0;Hn<64;++Hn)mt[Wr[Hn]]=mn[Hn];var gi=mt[0]-Ot;Ot=mt[0],gi==0?Jr(Jt[0]):(Jr(Jt[$e[Er=32767+gi]]),Jr(Re[Er]));for(var Ci=63;Ci>0&&mt[Ci]==0;)Ci--;if(Ci==0)return Jr(Kr),Ot;for(var Sa,gt=1;gt<=Ci;){for(var Li=gt;mt[gt]==0&><=Ci;)++gt;var Oo=gt-Li;if(Oo>=16){Sa=Oo>>4;for(var Ha=1;Ha<=Sa;++Ha)Jr($r);Oo&=15}Er=32767+mt[gt],Jr(fr[(Oo<<4)+$e[Er]]),Jr(Re[Er]),gt++}return Ci!=63&&Jr(Kr),Ot}function Bn(rt){rt=Math.min(Math.max(rt,1),100),p!=rt&&(function(It){for(var Ot=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Jt=0;Jt<64;Jt++){var fr=N((Ot[Jt]*It+50)/100);fr=Math.min(Math.max(fr,1),255),E[Wr[Jt]]=fr}for(var Er=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Kr=0;Kr<64;Kr++){var $r=N((Er[Kr]*It+50)/100);$r=Math.min(Math.max($r,1),255),U[Wr[Kr]]=$r}for(var mn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Hn=0,gi=0;gi<8;gi++)for(var Ci=0;Ci<8;Ci++)Z[Hn]=1/(E[Wr[Hn]]*mn[gi]*mn[Ci]*8),oe[Hn]=1/(U[Wr[Hn]]*mn[gi]*mn[Ci]*8),Hn++}(rt<50?Math.floor(5e3/rt):Math.floor(200-2*rt)),p=rt)}this.encode=function(rt,It){It&&Bn(It),ut=new Array,yt=0,ot=7,Gr(65496),Gr(65504),Gr(16),Lr(74),Lr(70),Lr(73),Lr(70),Lr(0),Lr(1),Lr(1),Lr(0),Gr(1),Gr(1),Lr(0),Lr(0),function(){Gr(65499),Gr(132),Lr(0);for(var xa=0;xa<64;xa++)Lr(E[xa]);Lr(1);for(var La=0;La<64;La++)Lr(U[La])}(),function(xa,La){Gr(65472),Gr(17),Lr(8),Gr(La),Gr(xa),Lr(3),Lr(1),Lr(17),Lr(0),Lr(2),Lr(17),Lr(1),Lr(3),Lr(17),Lr(1)}(rt.width,rt.height),function(){Gr(65476),Gr(418),Lr(0);for(var xa=0;xa<16;xa++)Lr(ar[xa+1]);for(var La=0;La<=11;La++)Lr(Mt[La]);Lr(16);for(var is=0;is<16;is++)Lr(Cr[is+1]);for(var as=0;as<=161;as++)Lr(it[as]);Lr(1);for(var Ja=0;Ja<16;Ja++)Lr(wt[Ja+1]);for(var Xo=0;Xo<=11;Xo++)Lr(Wt[Xo]);Lr(17);for(var Qo=0;Qo<16;Qo++)Lr(Ht[Qo+1]);for(var ha=0;ha<=161;ha++)Lr(Tr[ha])}(),Gr(65498),Gr(12),Lr(3),Lr(1),Lr(0),Lr(2),Lr(17),Lr(3),Lr(17),Lr(0),Lr(63),Lr(0);var Ot=0,Jt=0,fr=0;yt=0,ot=7,this.encode.displayName="_encode_";for(var Er,Kr,$r,mn,Hn,gi,Ci,Sa,gt,Li=rt.data,Oo=rt.width,Ha=rt.height,Un=4*Oo,Da=0;Da<Ha;){for(Er=0;Er<Un;){for(Hn=Un*Da+Er,Ci=-1,Sa=0,gt=0;gt<64;gt++)gi=Hn+(Sa=gt>>3)*Un+(Ci=4*(7>)),Da+Sa>=Ha&&(gi-=Un*(Da+1+Sa-Ha)),Er+Ci>=Un&&(gi-=Er+Ci-Un+4),Kr=Li[gi++],$r=Li[gi++],mn=Li[gi++],Gt[gt]=(rn[Kr]+rn[$r+256|0]+rn[mn+512|0]>>16)-128,Rt[gt]=(rn[Kr+768|0]+rn[$r+1024|0]+rn[mn+1280|0]>>16)-128,Ft[gt]=(rn[Kr+1280|0]+rn[$r+1536|0]+rn[mn+1792|0]>>16)-128;Ot=$n(Gt,Z,Ot,o,l),Jt=$n(Rt,oe,Jt,a,A),fr=$n(Ft,oe,fr,a,A),Er+=32}Da+=8}if(ot>=0){var Oi=[];Oi[1]=ot+1,Oi[0]=(1<<ot+1)-1,Jr(Oi)}return Gr(65497),new Uint8Array(ut)},n=n||50,function(){for(var rt=String.fromCharCode,It=0;It<256;It++)Mr[It]=rt(It)}(),o=Zr(ar,Mt),a=Zr(wt,Wt),l=Zr(Cr,it),A=Zr(Ht,Tr),function(){for(var rt=1,It=2,Ot=1;Ot<=15;Ot++){for(var Jt=rt;Jt<It;Jt++)$e[32767+Jt]=Ot,Re[32767+Jt]=[],Re[32767+Jt][1]=Ot,Re[32767+Jt][0]=Jt;for(var fr=-(It-1);fr<=-rt;fr++)$e[32767+fr]=Ot,Re[32767+fr]=[],Re[32767+fr][1]=Ot,Re[32767+fr][0]=It-1+fr;rt<<=1,It<<=1}}(),function(){for(var rt=0;rt<256;rt++)rn[rt]=19595*rt,rn[rt+256|0]=38470*rt,rn[rt+512|0]=7471*rt+32768,rn[rt+768|0]=-11059*rt,rn[rt+1024|0]=-21709*rt,rn[rt+1280|0]=32768*rt+8421375,rn[rt+1536|0]=-27439*rt,rn[rt+1792|0]=-5329*rt}(),Bn(n)}function fu(n,o){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.buffer),this.is_with_alpha=!!o,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ep(n){function o(Mt){if(!Mt)throw Error("assert :P")}function a(Mt,Cr,it){for(var wt=0;4>wt;wt++)if(Mt[Cr+wt]!=it.charCodeAt(wt))return!0;return!1}function l(Mt,Cr,it,wt,Wt){for(var Ht=0;Ht<Wt;Ht++)Mt[Cr+Ht]=it[wt+Ht]}function A(Mt,Cr,it,wt){for(var Wt=0;Wt<wt;Wt++)Mt[Cr+Wt]=it}function p(Mt){return new Int32Array(Mt)}function N(Mt,Cr){for(var it=[],wt=0;wt<Mt;wt++)it.push(new Cr);return it}function E(Mt,Cr){var it=[];return function wt(Wt,Ht,Tr){for(var Zr=Tr[Ht],Jr=0;Jr<Zr&&(Wt.push(Tr.length>Ht+1?[]:new Cr),!(Tr.length<Ht+1));Jr++)wt(Wt[Jr],Ht+1,Tr)}(it,0,Mt),it}var U=function(){var Mt=this;function Cr(h,B){for(var Q=1<<B-1>>>0;h&Q;)Q>>>=1;return Q?(h&Q-1)+Q:h}function it(h,B,Q,ve,Ke){o(!(ve%Q));do h[B+(ve-=Q)]=Ke;while(0<ve)}function wt(h,B,Q,ve,Ke){if(o(2328>=Ke),512>=Ke)var Ze=p(512);else if((Ze=p(Ke))==null)return 0;return function(We,at,At,ft,Kt,br){var xt,ir,gr=at,Xr=1<<At,Sr=p(16),ln=p(16);for(o(Kt!=0),o(ft!=null),o(We!=null),o(0<At),ir=0;ir<Kt;++ir){if(15<ft[ir])return 0;++Sr[ft[ir]]}if(Sr[0]==Kt)return 0;for(ln[1]=0,xt=1;15>xt;++xt){if(Sr[xt]>1<<xt)return 0;ln[xt+1]=ln[xt]+Sr[xt]}for(ir=0;ir<Kt;++ir)xt=ft[ir],0<ft[ir]&&(br[ln[xt]++]=ir);if(ln[15]==1)return(ft=new Wt).g=0,ft.value=br[0],it(We,gr,1,Xr,ft),Xr;var vn,Zn=-1,Mn=Xr-1,_a=0,la=1,jo=1,va=1<<At;for(ir=0,xt=1,Kt=2;xt<=At;++xt,Kt<<=1){if(la+=jo<<=1,0>(jo-=Sr[xt]))return 0;for(;0<Sr[xt];--Sr[xt])(ft=new Wt).g=xt,ft.value=br[ir++],it(We,gr+_a,Kt,va,ft),_a=Cr(_a,xt)}for(xt=At+1,Kt=2;15>=xt;++xt,Kt<<=1){if(la+=jo<<=1,0>(jo-=Sr[xt]))return 0;for(;0<Sr[xt];--Sr[xt]){if(ft=new Wt,(_a&Mn)!=Zn){for(gr+=va,vn=1<<(Zn=xt)-At;15>Zn&&!(0>=(vn-=Sr[Zn]));)++Zn,vn<<=1;Xr+=va=1<<(vn=Zn-At),We[at+(Zn=_a&Mn)].g=vn+At,We[at+Zn].value=gr-at-Zn}ft.g=xt-At,ft.value=br[ir++],it(We,gr+(_a>>At),Kt,va,ft),_a=Cr(_a,xt)}}return la!=2*ln[15]-1?0:Xr}(h,B,Q,ve,Ke,Ze)}function Wt(){this.value=this.g=0}function Ht(){this.value=this.g=0}function Tr(){this.G=N(5,Wt),this.H=p(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=N(o0,Ht)}function Zr(h,B,Q,ve){o(h!=null),o(B!=null),o(2147483648>ve),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=B,h.pa=Q,h.Jd=B,h.Yc=Q+ve,h.Zc=4<=ve?Q+ve-4+1:Q,Kr(h)}function Jr(h,B){for(var Q=0;0<B--;)Q|=mn(h,128)<<B;return Q}function Lr(h,B){var Q=Jr(h,B);return $r(h)?-Q:Q}function Gr(h,B,Q,ve){var Ke,Ze=0;for(o(h!=null),o(B!=null),o(4294967288>ve),h.Sb=ve,h.Ra=0,h.u=0,h.h=0,4<ve&&(ve=4),Ke=0;Ke<ve;++Ke)Ze+=B[Q+Ke]<<8*Ke;h.Ra=Ze,h.bb=ve,h.oa=B,h.pa=Q}function $n(h){for(;8<=h.u&&h.bb<h.Sb;)h.Ra>>>=8,h.Ra+=h.oa[h.pa+h.bb]<<s0-8>>>0,++h.bb,h.u-=8;Jt(h)&&(h.h=1,h.u=0)}function Bn(h,B){if(o(0<=B),!h.h&&B<=wu){var Q=Ot(h)&NA[B];return h.u+=B,$n(h),Q}return h.h=1,h.u=0}function rt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function It(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Ot(h){return h.Ra>>>(h.u&s0-1)>>>0}function Jt(h){return o(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>s0}function fr(h,B){h.u=B,h.h=Jt(h)}function Er(h){h.u>=gh&&(o(h.u>=gh),$n(h))}function Kr(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 $r(h){return Jr(h,1)}function mn(h,B){var Q=h.Ca;0>h.b&&Kr(h);var ve=h.b,Ke=Q*B>>>8,Ze=(h.I>>>ve>Ke)+0;for(Ze?(Q-=Ke,h.I-=Ke+1<<ve>>>0):Q=Ke+1,ve=Q,Ke=0;256<=ve;)Ke+=8,ve>>=8;return ve=7^Ke+af[ve],h.b-=ve,h.Ca=(Q<<ve)-1,Ze}function Hn(h,B,Q){h[B+0]=Q>>24&255,h[B+1]=Q>>16&255,h[B+2]=Q>>8&255,h[B+3]=255&Q}function gi(h,B){return h[B+0]|h[B+1]<<8}function Ci(h,B){return gi(h,B)|h[B+2]<<16}function Sa(h,B){return gi(h,B)|gi(h,B+2)<<16}function gt(h,B){var Q=1<<B;return o(h!=null),o(0<B),h.X=p(Q),h.X==null?0:(h.Mb=32-B,h.Xa=B,1)}function Li(h,B){o(h!=null),o(B!=null),o(h.Xa==B.Xa),l(B.X,0,h.X,0,1<<B.Xa)}function Oo(){this.X=[],this.Xa=this.Mb=0}function Ha(h,B,Q,ve){o(Q!=null),o(ve!=null);var Ke=Q[0],Ze=ve[0];return Ke==0&&(Ke=(h*Ze+B/2)/B),Ze==0&&(Ze=(B*Ke+h/2)/h),0>=Ke||0>=Ze?0:(Q[0]=Ke,ve[0]=Ze,1)}function Un(h,B){return h+(1<<B)-1>>>B}function Da(h,B){return((4278255360&h)+(4278255360&B)>>>0&4278255360)+((16711935&h)+(16711935&B)>>>0&16711935)>>>0}function Oi(h,B){Mt[B]=function(Q,ve,Ke,Ze,We,at,At){var ft;for(ft=0;ft<We;++ft){var Kt=Mt[h](at[At+ft-1],Ke,Ze+ft);at[At+ft]=Da(Q[ve+ft],Kt)}}}function xa(){this.ud=this.hd=this.jd=0}function La(h,B){return((4278124286&(h^B))>>>1)+(h&B)>>>0}function is(h){return 0<=h&&256>h?h:0>h?0:255<h?255:void 0}function as(h,B){return is(h+(h-B+.5>>1))}function Ja(h,B,Q){return Math.abs(B-Q)-Math.abs(h-Q)}function Xo(h,B,Q,ve,Ke,Ze,We){for(ve=Ze[We-1],Q=0;Q<Ke;++Q)Ze[We+Q]=ve=Da(h[B+Q],ve)}function Qo(h,B,Q,ve,Ke){var Ze;for(Ze=0;Ze<Q;++Ze){var We=h[B+Ze],at=We>>8&255,At=16711935&(At=(At=16711935&We)+((at<<16)+at));ve[Ke+Ze]=(4278255360&We)+At>>>0}}function ha(h,B){B.jd=255&h,B.hd=h>>8&255,B.ud=h>>16&255}function Eo(h,B,Q,ve,Ke,Ze){var We;for(We=0;We<ve;++We){var at=B[Q+We],At=at>>>8,ft=at,Kt=255&(Kt=(Kt=at>>>16)+((h.jd<<24>>24)*(At<<24>>24)>>>5));ft=255&(ft=(ft+=(h.hd<<24>>24)*(At<<24>>24)>>>5)+((h.ud<<24>>24)*(Kt<<24>>24)>>>5)),Ke[Ze+We]=(4278255360&at)+(Kt<<16)+ft}}function Ca(h,B,Q,ve,Ke){Mt[B]=function(Ze,We,at,At,ft,Kt,br,xt,ir){for(At=br;At<xt;++At)for(br=0;br<ir;++br)ft[Kt++]=Ke(at[ve(Ze[We++])])},Mt[h]=function(Ze,We,at,At,ft,Kt,br){var xt=8>>Ze.b,ir=Ze.Ea,gr=Ze.K[0],Xr=Ze.w;if(8>xt)for(Ze=(1<<Ze.b)-1,Xr=(1<<xt)-1;We<at;++We){var Sr,ln=0;for(Sr=0;Sr<ir;++Sr)Sr&Ze||(ln=ve(At[ft++])),Kt[br++]=Ke(gr[ln&Xr]),ln>>=xt}else Mt["VP8LMapColor"+Q](At,ft,gr,Xr,Kt,br,We,at,ir)}}function pc(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=h[B++];ve[Ke++]=Ze>>16&255,ve[Ke++]=Ze>>8&255,ve[Ke++]=255&Ze}}function ws(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=h[B++];ve[Ke++]=Ze>>16&255,ve[Ke++]=Ze>>8&255,ve[Ke++]=255&Ze,ve[Ke++]=Ze>>24&255}}function Po(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=(We=h[B++])>>16&240|We>>12&15,We=240&We|We>>28&15;ve[Ke++]=Ze,ve[Ke++]=We}}function Ko(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=(We=h[B++])>>16&248|We>>13&7,We=We>>5&224|We>>3&31;ve[Ke++]=Ze,ve[Ke++]=We}}function Ol(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=h[B++];ve[Ke++]=255&Ze,ve[Ke++]=Ze>>8&255,ve[Ke++]=Ze>>16&255}}function Ea(h,B,Q,ve,Ke,Ze){if(Ze==0)for(Q=B+Q;B<Q;)Hn(ve,((Ze=h[B++])[0]>>24|Ze[1]>>8&65280|Ze[2]<<8&16711680|Ze[3]<<24)>>>0),Ke+=32;else l(ve,Ke,h,B,Q)}function dl(h,B){Mt[B][0]=Mt[h+"0"],Mt[B][1]=Mt[h+"1"],Mt[B][2]=Mt[h+"2"],Mt[B][3]=Mt[h+"3"],Mt[B][4]=Mt[h+"4"],Mt[B][5]=Mt[h+"5"],Mt[B][6]=Mt[h+"6"],Mt[B][7]=Mt[h+"7"],Mt[B][8]=Mt[h+"8"],Mt[B][9]=Mt[h+"9"],Mt[B][10]=Mt[h+"10"],Mt[B][11]=Mt[h+"11"],Mt[B][12]=Mt[h+"12"],Mt[B][13]=Mt[h+"13"],Mt[B][14]=Mt[h+"0"],Mt[B][15]=Mt[h+"0"]}function Ya(h){return h==dg||h==lf||h==sc||h==d0}function fo(){this.eb=[],this.size=this.A=this.fb=0}function al(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function no(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new fo,this.f.kb=new al,this.sd=null}function Na(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Hs(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Zh(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function Hc(h,B){var Q=h.T,ve=B.ba.f.RGBA,Ke=ve.eb,Ze=ve.fb+h.ka*ve.A,We=Zu[B.ba.S],at=h.y,At=h.O,ft=h.f,Kt=h.N,br=h.ea,xt=h.W,ir=B.cc,gr=B.dc,Xr=B.Mc,Sr=B.Nc,ln=h.ka,vn=h.ka+h.T,Zn=h.U,Mn=Zn+1>>1;for(ln==0?We(at,At,null,null,ft,Kt,br,xt,ft,Kt,br,xt,Ke,Ze,null,null,Zn):(We(B.ec,B.fc,at,At,ir,gr,Xr,Sr,ft,Kt,br,xt,Ke,Ze-ve.A,Ke,Ze,Zn),++Q);ln+2<vn;ln+=2)ir=ft,gr=Kt,Xr=br,Sr=xt,Kt+=h.Rc,xt+=h.Rc,Ze+=2*ve.A,We(at,(At+=2*h.fa)-h.fa,at,At,ir,gr,Xr,Sr,ft,Kt,br,xt,Ke,Ze-ve.A,Ke,Ze,Zn);return At+=h.fa,h.j+vn<h.o?(l(B.ec,B.fc,at,At,Zn),l(B.cc,B.dc,ft,Kt,Mn),l(B.Mc,B.Nc,br,xt,Mn),Q--):1&vn||We(at,At,null,null,ft,Kt,br,xt,ft,Kt,br,xt,Ke,Ze+ve.A,null,null,Zn),Q}function Mf(h,B,Q){var ve=h.F,Ke=[h.J];if(ve!=null){var Ze=h.U,We=B.ba.S,at=We==ap||We==sc;B=B.ba.f.RGBA;var At=[0],ft=h.ka;At[0]=h.T,h.Kb&&(ft==0?--At[0]:(--ft,Ke[0]-=h.width),h.j+h.ka+h.T==h.o&&(At[0]=h.o-h.j-ft));var Kt=B.eb;ft=B.fb+ft*B.A,h=cg(ve,Ke[0],h.width,Ze,At,Kt,ft+(at?0:3),B.A),o(Q==At),h&&Ya(We)&&Qp(Kt,ft,at,Ze,At,B.A)}return 0}function Zd(h){var B=h.ma,Q=B.ba.S,ve=11>Q,Ke=Q==Mm||Q==Kp||Q==ap||Q==ug||Q==12||Ya(Q);if(B.memory=null,B.Ib=null,B.Jb=null,B.Nd=null,!Tl(B.Oa,h,Ke?11:12))return 0;if(Ke&&Ya(Q)&&bd(),h.da)alert("todo:use_scaling");else{if(ve){if(B.Ib=Zh,h.Kb){if(Q=h.U+1>>1,B.memory=p(h.U+2*Q),B.memory==null)return 0;B.ec=B.memory,B.fc=0,B.cc=B.ec,B.dc=B.fc+h.U,B.Mc=B.cc,B.Nc=B.dc+Q,B.Ib=Hc,bd()}}else alert("todo:EmitYUV");Ke&&(B.Jb=Mf,ve&&vd())}if(ve&&!nt){for(h=0;256>h;++h)vt[h]=89858*(h-128)+k>>d,En[h]=-22014*(h-128)+k,Br[h]=-45773*(h-128),Et[h]=113618*(h-128)+k>>d;for(h=j;h<X;++h)B=76283*(h-16)+k>>d,wr[h-j]=kA(B,255),nn[h-j]=kA(B+8>>4,15);nt=1}return 1}function ja(h){var B=h.ma,Q=h.U,ve=h.T;return o(!(1&h.ka)),0>=Q||0>=ve?0:(Q=B.Ib(h,B),B.Jb!=null&&B.Jb(h,B,Q),B.Dc+=Q,1)}function Lf(h){h.ma.memory=null}function kf(h,B,Q,ve){return Bn(h,8)!=47?0:(B[0]=Bn(h,14)+1,Q[0]=Bn(h,14)+1,ve[0]=Bn(h,1),Bn(h,3)!=0?0:!h.h)}function mu(h,B){if(4>h)return h+1;var Q=h-2>>1;return(2+(1&h)<<Q)+Bn(B,Q)+1}function gu(h,B){return 120<B?B-120:1<=(Q=((Q=Rg[B-1])>>4)*h+(8-(15&Q)))?Q:1;var Q}function ac(h,B,Q){var ve=Ot(Q),Ke=h[B+=255&ve].g-8;return 0<Ke&&(fr(Q,Q.u+8),ve=Ot(Q),B+=h[B].value,B+=ve&(1<<Ke)-1),fr(Q,Q.u+h[B].g),h[B].value}function Is(h,B,Q){return Q.g+=h.g,Q.value+=h.value<<B>>>0,o(8>=Q.g),h.g}function fl(h,B,Q){var ve=h.xc;return o((B=ve==0?0:h.vc[h.md*(Q>>ve)+(B>>ve)])<h.Wb),h.Ya[B]}function Vd(h,B,Q,ve){var Ke=h.ab,Ze=h.c*B,We=h.C;B=We+B;var at=Q,At=ve;for(ve=h.Ta,Q=h.Ua;0<Ke--;){var ft=h.gc[Ke],Kt=We,br=B,xt=at,ir=At,gr=(At=ve,at=Q,ft.Ea);switch(o(Kt<br),o(br<=ft.nc),ft.hc){case 2:ql(xt,ir,(br-Kt)*gr,At,at);break;case 0:var Xr=Kt,Sr=br,ln=At,vn=at,Zn=(va=ft).Ea;Xr==0&&(of(xt,ir,null,null,1,ln,vn),Xo(xt,ir+1,0,0,Zn-1,ln,vn+1),ir+=Zn,vn+=Zn,++Xr);for(var Mn=1<<va.b,_a=Mn-1,la=Un(Zn,va.b),jo=va.K,va=va.w+(Xr>>va.b)*la;Xr<Sr;){var Fs=jo,uA=va,zo=1;for(tp(xt,ir,ln,vn-Zn,1,ln,vn);zo<Zn;){var ba=(zo&~_a)+Mn;ba>Zn&&(ba=Zn),(0,rp[Fs[uA++]>>8&15])(xt,ir+ +zo,ln,vn+zo-Zn,ba-zo,ln,vn+zo),zo=ba}ir+=Zn,vn+=Zn,++Xr&_a||(va+=la)}br!=ft.nc&&l(At,at-gr,At,at+(br-Kt-1)*gr,gr);break;case 1:for(gr=xt,Sr=ir,Zn=(xt=ft.Ea)-(vn=xt&~(ln=(ir=1<<ft.b)-1)),Xr=Un(xt,ft.b),Mn=ft.K,ft=ft.w+(Kt>>ft.b)*Xr;Kt<br;){for(_a=Mn,la=ft,jo=new xa,va=Sr+vn,Fs=Sr+xt;Sr<va;)ha(_a[la++],jo),Up(jo,gr,Sr,ir,At,at),Sr+=ir,at+=ir;Sr<Fs&&(ha(_a[la++],jo),Up(jo,gr,Sr,Zn,At,at),Sr+=Zn,at+=Zn),++Kt&ln||(ft+=Xr)}break;case 3:if(xt==At&&ir==at&&0<ft.b){for(Sr=At,xt=gr=at+(br-Kt)*gr-(vn=(br-Kt)*Un(ft.Ea,ft.b)),ir=At,ln=at,Xr=[],vn=(Zn=vn)-1;0<=vn;--vn)Xr[vn]=ir[ln+vn];for(vn=Zn-1;0<=vn;--vn)Sr[xt+vn]=Xr[vn];Cm(ft,Kt,br,At,gr,At,at)}else Cm(ft,Kt,br,xt,ir,At,at)}at=ve,At=Q}At!=Q&&l(ve,Q,at,At,Ze)}function Wd(h,B){var Q=h.V,ve=h.Ba+h.c*h.C,Ke=B-h.C;if(o(B<=h.l.o),o(16>=Ke),0<Ke){var Ze=h.l,We=h.Ta,at=h.Ua,At=Ze.width;if(Vd(h,Ke,Q,ve),Ke=at=[at],o((Q=h.C)<(ve=B)),o(Ze.v<Ze.va),ve>Ze.o&&(ve=Ze.o),Q<Ze.j){var ft=Ze.j-Q;Q=Ze.j,Ke[0]+=ft*At}if(Q>=ve?Q=0:(Ke[0]+=4*Ze.v,Ze.ka=Q-Ze.j,Ze.U=Ze.va-Ze.v,Ze.T=ve-Q,Q=1),Q){if(at=at[0],11>(Q=h.ca).S){var Kt=Q.f.RGBA,br=(ve=Q.S,Ke=Ze.U,Ze=Ze.T,ft=Kt.eb,Kt.A),xt=Ze;for(Kt=Kt.fb+h.Ma*Kt.A;0<xt--;){var ir=We,gr=at,Xr=Ke,Sr=ft,ln=Kt;switch(ve){case Fm:np(ir,gr,Xr,Sr,ln);break;case Mm:Rf(ir,gr,Xr,Sr,ln);break;case dg:Rf(ir,gr,Xr,Sr,ln),Qp(Sr,ln,0,Xr,1,0);break;case Pg:bh(ir,gr,Xr,Sr,ln);break;case Kp:Ea(ir,gr,Xr,Sr,ln,1);break;case lf:Ea(ir,gr,Xr,Sr,ln,1),Qp(Sr,ln,0,Xr,1,0);break;case ap:Ea(ir,gr,Xr,Sr,ln,0);break;case sc:Ea(ir,gr,Xr,Sr,ln,0),Qp(Sr,ln,1,Xr,1,0);break;case ug:vh(ir,gr,Xr,Sr,ln);break;case d0:vh(ir,gr,Xr,Sr,ln),Lg(Sr,ln,Xr,1,0);break;case Ho:gs(ir,gr,Xr,Sr,ln);break;default:o(0)}at+=At,Kt+=br}h.Ma+=Ze}else alert("todo:EmitRescaledRowsYUVA");o(h.Ma<=Q.height)}}h.C=B,o(h.C<=h.i)}function Ru(h){var B;if(0<h.ua)return 0;for(B=0;B<h.Wb;++B){var Q=h.Ya[B].G,ve=h.Ya[B].H;if(0<Q[1][ve[1]+0].g||0<Q[2][ve[2]+0].g||0<Q[3][ve[3]+0].g)return 0}return 1}function vu(h,B,Q,ve,Ke,Ze){if(h.Z!=0){var We=h.qd,at=h.rd;for(o(xh[h.Z]!=null);B<Q;++B)xh[h.Z](We,at,ve,Ke,ve,Ke,Ze),We=ve,at=Ke,Ke+=Ze;h.qd=We,h.rd=at}}function lA(h,B){var Q=h.l.ma,ve=Q.Z==0||Q.Z==1?h.l.j:h.C;if(ve=h.C<ve?ve:h.C,o(B<=h.l.o),B>ve){var Ke=h.l.width,Ze=Q.ca,We=Q.tb+Ke*ve,at=h.V,At=h.Ba+h.c*ve,ft=h.gc;o(h.ab==1),o(ft[0].hc==3),ju(ft[0],ve,B,at,At,Ze,We),vu(Q,ve,B,Ze,We,Ke)}h.C=h.Ma=B}function bu(h,B,Q,ve,Ke,Ze,We){var at=h.$/ve,At=h.$%ve,ft=h.m,Kt=h.s,br=Q+h.$,xt=br;Ke=Q+ve*Ke;var ir=Q+ve*Ze,gr=280+Kt.ua,Xr=h.Pb?at:16777216,Sr=0<Kt.ua?Kt.Wa:null,ln=Kt.wc,vn=br<ir?fl(Kt,At,at):null;o(h.C<Ze),o(ir<=Ke);var Zn=!1;e:for(;;){for(;Zn||br<ir;){var Mn=0;if(at>=Xr){var _a=br-Q;o((Xr=h).Pb),Xr.wd=Xr.m,Xr.xd=_a,0<Xr.s.ua&&Li(Xr.s.Wa,Xr.s.vb),Xr=at+Kg}if(At&ln||(vn=fl(Kt,At,at)),o(vn!=null),vn.Qb&&(B[br]=vn.qb,Zn=!0),!Zn)if(Er(ft),vn.jc){Mn=ft,_a=B;var la=br,jo=vn.pd[Ot(Mn)&o0-1];o(vn.jc),256>jo.g?(fr(Mn,Mn.u+jo.g),_a[la]=jo.value,Mn=0):(fr(Mn,Mn.u+jo.g-256),o(256<=jo.value),Mn=jo.value),Mn==0&&(Zn=!0)}else Mn=ac(vn.G[0],vn.H[0],ft);if(ft.h)break;if(Zn||256>Mn){if(!Zn)if(vn.nd)B[br]=(vn.qb|Mn<<8)>>>0;else{if(Er(ft),Zn=ac(vn.G[1],vn.H[1],ft),Er(ft),_a=ac(vn.G[2],vn.H[2],ft),la=ac(vn.G[3],vn.H[3],ft),ft.h)break;B[br]=(la<<24|Zn<<16|Mn<<8|_a)>>>0}if(Zn=!1,++br,++At>=ve&&(At=0,++at,We!=null&&at<=Ze&&!(at%16)&&We(h,at),Sr!=null))for(;xt<br;)Mn=B[xt++],Sr.X[(506832829*Mn&4294967295)>>>Sr.Mb]=Mn}else if(280>Mn){if(Mn=mu(Mn-256,ft),_a=ac(vn.G[4],vn.H[4],ft),Er(ft),_a=gu(ve,_a=mu(_a,ft)),ft.h)break;if(br-Q<_a||Ke-br<Mn)break e;for(la=0;la<Mn;++la)B[br+la]=B[br+la-_a];for(br+=Mn,At+=Mn;At>=ve;)At-=ve,++at,We!=null&&at<=Ze&&!(at%16)&&We(h,at);if(o(br<=Ke),At&ln&&(vn=fl(Kt,At,at)),Sr!=null)for(;xt<br;)Mn=B[xt++],Sr.X[(506832829*Mn&4294967295)>>>Sr.Mb]=Mn}else{if(!(Mn<gr))break e;for(Zn=Mn-280,o(Sr!=null);xt<br;)Mn=B[xt++],Sr.X[(506832829*Mn&4294967295)>>>Sr.Mb]=Mn;Mn=br,o(!(Zn>>>(_a=Sr).Xa)),B[Mn]=_a.X[Zn],Zn=!0}Zn||o(ft.h==Jt(ft))}if(h.Pb&&ft.h&&br<Ke)o(h.m.h),h.a=5,h.m=h.wd,h.$=h.xd,0<h.s.ua&&Li(h.s.vb,h.s.Wa);else{if(ft.h)break e;We!=null&&We(h,at>Ze?Ze:at),h.a=0,h.$=br-Q}return 1}return h.a=3,0}function Qu(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 Vh(){var h=new qa;return h==null?null:(h.a=0,h.xb=c1,dl("Predictor","VP8LPredictors"),dl("Predictor","VP8LPredictors_C"),dl("PredictorAdd","VP8LPredictorsAdd"),dl("PredictorAdd","VP8LPredictorsAdd_C"),ql=Qo,Up=Eo,np=pc,Rf=ws,vh=Po,gs=Ko,bh=Ol,Mt.VP8LMapColor32b=Hu,Mt.VP8LMapColor8b=l0,h)}function Gd(h,B,Q,ve,Ke){var Ze=1,We=[h],at=[B],At=ve.m,ft=ve.s,Kt=null,br=0;e:for(;;){if(Q)for(;Ze&&Bn(At,1);){var xt=We,ir=at,gr=ve,Xr=1,Sr=gr.m,ln=gr.gc[gr.ab],vn=Bn(Sr,2);if(gr.Oc&1<<vn)Ze=0;else{switch(gr.Oc|=1<<vn,ln.hc=vn,ln.Ea=xt[0],ln.nc=ir[0],ln.K=[null],++gr.ab,o(4>=gr.ab),vn){case 0:case 1:ln.b=Bn(Sr,3)+2,Xr=Gd(Un(ln.Ea,ln.b),Un(ln.nc,ln.b),0,gr,ln.K),ln.K=ln.K[0];break;case 3:var Zn,Mn=Bn(Sr,8)+1,_a=16<Mn?0:4<Mn?1:2<Mn?2:3;if(xt[0]=Un(ln.Ea,_a),ln.b=_a,Zn=Xr=Gd(Mn,1,0,gr,ln.K)){var la,jo=Mn,va=ln,Fs=1<<(8>>va.b),uA=p(Fs);if(uA==null)Zn=0;else{var zo=va.K[0],ba=va.w;for(uA[0]=va.K[0][0],la=1;la<1*jo;++la)uA[la]=Da(zo[ba+la],uA[la-1]);for(;la<4*Fs;++la)uA[la]=0;va.K[0]=null,va.K[0]=uA,Zn=1}}Xr=Zn;break;case 2:break;default:o(0)}Ze=Xr}}if(We=We[0],at=at[0],Ze&&Bn(At,1)&&!(Ze=1<=(br=Bn(At,4))&&11>=br)){ve.a=3;break e}var Ei;if(Ei=Ze)t:{var $c,ko,Os,ec=ve,HA=We,Cu=at,Mc=br,tu=Q,Bu=ec.m,dA=ec.s,js=[null],ml=1,Lc=0,gl=Qg[Mc];r:for(;;){if(tu&&Bn(Bu,1)){var jA=Bn(Bu,3)+2,Hf=Un(HA,jA),Zc=Un(Cu,jA),Vu=Hf*Zc;if(!Gd(Hf,Zc,0,ec,js))break r;for(js=js[0],dA.xc=jA,$c=0;$c<Vu;++$c){var Il=js[$c]>>8&65535;js[$c]=Il,Il>=ml&&(ml=Il+1)}}if(Bu.h)break r;for(ko=0;5>ko;++ko){var fA=f0[ko];!ko&&0<Mc&&(fA+=1<<Mc),Lc<fA&&(Lc=fA)}var xd=N(ml*gl,Wt),Su=ml,Cd=N(Su,Tr);if(Cd==null)var Bd=null;else o(65536>=Su),Bd=Cd;var Wu=p(Lc);if(Bd==null||Wu==null||xd==null){ec.a=1;break r}var Sd=xd;for($c=Os=0;$c<ml;++$c){var Ul=Bd[$c],Ed=Ul.G,jf=Ul.H,jp=0,p0=1,zA=0;for(ko=0;5>ko;++ko){fA=f0[ko],Ed[ko]=Sd,jf[ko]=Os,!ko&&0<Mc&&(fA+=1<<Mc);i:{var jg,A1=fA,zg=ec,hg=Wu,hv=Sd,pv=Os,u1=0,lp=zg.m,mv=Bn(lp,1);if(A(hg,0,0,A1),mv){var gv=Bn(lp,1)+1,vv=Bn(lp,1),x1=Bn(lp,vv==0?1:8);hg[x1]=1,gv==2&&(hg[x1=Bn(lp,8)]=1);var $g=1}else{var C1=p(19),B1=Bn(lp,4)+4;if(19<B1){zg.a=3;var Zg=0;break i}for(jg=0;jg<B1;++jg)C1[Ug[jg]]=Bn(lp,3);var d1=void 0,pg=void 0,S1=zg,bv=C1,Vg=A1,E1=hg,f1=0,cp=S1.m,_1=8,I1=N(128,Wt);n:for(;wt(I1,0,7,bv,19);){if(Bn(cp,1)){var yv=2+2*Bn(cp,3);if((d1=2+Bn(cp,yv))>Vg)break n}else d1=Vg;for(pg=0;pg<Vg&&d1--;){Er(cp);var F1=I1[0+(127&Ot(cp))];fr(cp,cp.u+F1.g);var Lm=F1.value;if(16>Lm)E1[pg++]=Lm,Lm!=0&&(_1=Lm);else{var wv=Lm==16,M1=Lm-16,xv=Hp[M1],L1=Bn(cp,Kf[M1])+xv;if(pg+L1>Vg)break n;for(var Cv=wv?_1:0;0<L1--;)E1[pg++]=Cv}}f1=1;break n}f1||(S1.a=3),$g=f1}($g=$g&&!lp.h)&&(u1=wt(hv,pv,8,hg,A1)),$g&&u1!=0?Zg=u1:(zg.a=3,Zg=0)}if(Zg==0)break r;if(p0&&Tg[ko]==1&&(p0=Sd[Os].g==0),jp+=Sd[Os].g,Os+=Zg,3>=ko){var mg,h1=Wu[0];for(mg=1;mg<fA;++mg)Wu[mg]>h1&&(h1=Wu[mg]);zA+=h1}}if(Ul.nd=p0,Ul.Qb=0,p0&&(Ul.qb=(Ed[3][jf[3]+0].value<<24|Ed[1][jf[1]+0].value<<16|Ed[2][jf[2]+0].value)>>>0,jp==0&&256>Ed[0][jf[0]+0].value&&(Ul.Qb=1,Ul.qb+=Ed[0][jf[0]+0].value<<8)),Ul.jc=!Ul.Qb&&6>zA,Ul.jc){var Wg,m0=Ul;for(Wg=0;Wg<o0;++Wg){var Ap=Wg,up=m0.pd[Ap],Gg=m0.G[0][m0.H[0]+Ap];256<=Gg.value?(up.g=Gg.g+256,up.value=Gg.value):(up.g=0,up.value=0,Ap>>=Is(Gg,8,up),Ap>>=Is(m0.G[1][m0.H[1]+Ap],16,up),Ap>>=Is(m0.G[2][m0.H[2]+Ap],0,up),Is(m0.G[3][m0.H[3]+Ap],24,up))}}}dA.vc=js,dA.Wb=ml,dA.Ya=Bd,dA.yc=xd,Ei=1;break t}Ei=0}if(!(Ze=Ei)){ve.a=3;break e}if(0<br){if(ft.ua=1<<br,!gt(ft.Wa,br)){ve.a=1,Ze=0;break e}}else ft.ua=0;var p1=ve,k1=We,Bv=at,m1=p1.s,g1=m1.xc;if(p1.c=k1,p1.i=Bv,m1.md=Un(k1,g1),m1.wc=g1==0?-1:(1<<g1)-1,Q){ve.xb=y1;break e}if((Kt=p(We*at))==null){ve.a=1,Ze=0;break e}Ze=(Ze=bu(ve,Kt,0,We,at,at,null))&&!At.h;break e}return Ze?(Ke!=null?Ke[0]=Kt:(o(Kt==null),o(Q)),ve.$=0,Q||Qu(ft)):Qu(ft),Ze}function Wh(h,B){var Q=h.c*h.i,ve=Q+B+16*B;return o(h.c<=B),h.V=p(ve),h.V==null?(h.Ta=null,h.Ua=0,h.a=1,0):(h.Ta=h.V,h.Ua=h.Ba+Q+B,1)}function Gh(h,B){var Q=h.C,ve=B-Q,Ke=h.V,Ze=h.Ba+h.c*Q;for(o(B<=h.l.o);0<ve;){var We=16<ve?16:ve,at=h.l.ma,At=h.l.width,ft=At*We,Kt=at.ca,br=at.tb+At*Q,xt=h.Ta,ir=h.Ua;Vd(h,We,Ke,Ze),kg(xt,ir,Kt,br,ft),vu(at,Q,Q+We,Kt,br,At),ve-=We,Ke+=We*h.c,Q+=We}o(Q==B),h.C=h.Ma=B}function z0(){this.ub=this.yd=this.td=this.Rb=0}function Xh(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function _p(){this.Fb=this.Bb=this.Cb=0,this.Zb=p(4),this.Lb=p(4)}function Ip(){this.Yb=function(){var h=[];return function B(Q,ve,Ke){for(var Ze=Ke[ve],We=0;We<Ze&&(Q.push(Ke.length>ve+1?[]:0),!(Ke.length<ve+1));We++)B(Q[We],ve+1,Ke)}(h,0,[3,11]),h}()}function fm(){this.jb=p(3),this.Wc=E([4,8],Ip),this.Xc=E([4,17],Ip)}function hm(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new p(4),this.od=new p(4)}function eu(){this.ld=this.La=this.dd=this.tc=0}function Jh(){this.Na=this.la=0}function Fp(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Mp(){this.ad=p(384),this.Za=0,this.Ob=p(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function $0(){this.uc=this.M=this.Nb=0,this.wa=Array(new eu),this.Y=0,this.ya=Array(new Mp),this.aa=0,this.l=new Xd}function Z0(){this.y=p(16),this.f=p(8),this.ea=p(8)}function Lp(){this.cb=this.a=0,this.sc="",this.m=new rt,this.Od=new z0,this.Kc=new Xh,this.ed=new hm,this.Qa=new _p,this.Ic=this.$c=this.Aa=0,this.D=new $0,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=N(8,rt),this.ia=0,this.pb=N(4,Fp),this.Pa=new fm,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Z0),this.Hd=0,this.rb=Array(new Jh),this.sb=0,this.wa=Array(new 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 Mp),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 kA(h,B){return 0>h?0:h>B?B:h}function Xd(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function V0(){var h=new Lp;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,sp||(sp=Yh)),h}function oc(h,B,Q){return h.a==0&&(h.a=B,h.sc=Q,h.cb=0),0}function kp(h,B,Q){return 3<=Q&&h[B+0]==157&&h[B+1]==1&&h[B+2]==42}function Jd(h,B){if(h==null)return 0;if(h.a=0,h.sc="OK",B==null)return oc(h,2,"null VP8Io passed to VP8GetHeaders()");var Q=B.data,ve=B.w,Ke=B.ha;if(4>Ke)return oc(h,7,"Truncated header.");var Ze=Q[ve+0]|Q[ve+1]<<8|Q[ve+2]<<16,We=h.Od;if(We.Rb=!(1&Ze),We.td=Ze>>1&7,We.yd=Ze>>4&1,We.ub=Ze>>5,3<We.td)return oc(h,3,"Incorrect keyframe parameters.");if(!We.yd)return oc(h,4,"Frame not displayable.");ve+=3,Ke-=3;var at=h.Kc;if(We.Rb){if(7>Ke)return oc(h,7,"cannot parse picture header");if(!kp(Q,ve,Ke))return oc(h,3,"Bad code word");at.c=16383&(Q[ve+4]<<8|Q[ve+3]),at.Td=Q[ve+4]>>6,at.i=16383&(Q[ve+6]<<8|Q[ve+5]),at.Ud=Q[ve+6]>>6,ve+=7,Ke-=7,h.za=at.c+15>>4,h.Ub=at.i+15>>4,B.width=at.c,B.height=at.i,B.Da=0,B.j=0,B.v=0,B.va=B.width,B.o=B.height,B.da=0,B.ib=B.width,B.hb=B.height,B.U=B.width,B.T=B.height,A((Ze=h.Pa).jb,0,255,Ze.jb.length),o((Ze=h.Qa)!=null),Ze.Cb=0,Ze.Bb=0,Ze.Fb=1,A(Ze.Zb,0,0,Ze.Zb.length),A(Ze.Lb,0,0,Ze.Lb)}if(We.ub>Ke)return oc(h,7,"bad partition length");Zr(Ze=h.m,Q,ve,We.ub),ve+=We.ub,Ke-=We.ub,We.Rb&&(at.Ld=$r(Ze),at.Kd=$r(Ze)),at=h.Qa;var At,ft=h.Pa;if(o(Ze!=null),o(at!=null),at.Cb=$r(Ze),at.Cb){if(at.Bb=$r(Ze),$r(Ze)){for(at.Fb=$r(Ze),At=0;4>At;++At)at.Zb[At]=$r(Ze)?Lr(Ze,7):0;for(At=0;4>At;++At)at.Lb[At]=$r(Ze)?Lr(Ze,6):0}if(at.Bb)for(At=0;3>At;++At)ft.jb[At]=$r(Ze)?Jr(Ze,8):255}else at.Bb=0;if(Ze.Ka)return oc(h,3,"cannot parse segment header");if((at=h.ed).zd=$r(Ze),at.Tb=Jr(Ze,6),at.wb=Jr(Ze,3),at.Pc=$r(Ze),at.Pc&&$r(Ze)){for(ft=0;4>ft;++ft)$r(Ze)&&(at.vd[ft]=Lr(Ze,6));for(ft=0;4>ft;++ft)$r(Ze)&&(at.od[ft]=Lr(Ze,6))}if(h.L=at.Tb==0?0:at.zd?1:2,Ze.Ka)return oc(h,3,"cannot parse filter header");var Kt=Ke;if(Ke=At=ve,ve=At+Kt,at=Kt,h.Xb=(1<<Jr(h.m,2))-1,Kt<3*(ft=h.Xb))Q=7;else{for(At+=3*ft,at-=3*ft,Kt=0;Kt<ft;++Kt){var br=Q[Ke+0]|Q[Ke+1]<<8|Q[Ke+2]<<16;br>at&&(br=at),Zr(h.Jc[+Kt],Q,At,br),At+=br,at-=br,Ke+=3}Zr(h.Jc[+ft],Q,At,at),Q=At<ve?0:5}if(Q!=0)return oc(h,Q,"cannot parse partitions");for(Q=Jr(At=h.m,7),Ke=$r(At)?Lr(At,4):0,ve=$r(At)?Lr(At,4):0,at=$r(At)?Lr(At,4):0,ft=$r(At)?Lr(At,4):0,At=$r(At)?Lr(At,4):0,Kt=h.Qa,br=0;4>br;++br){if(Kt.Cb){var xt=Kt.Zb[br];Kt.Fb||(xt+=Q)}else{if(0<br){h.pb[br]=h.pb[0];continue}xt=Q}var ir=h.pb[br];ir.Sc[0]=fg[kA(xt+Ke,127)],ir.Sc[1]=op[kA(xt+0,127)],ir.Eb[0]=2*fg[kA(xt+ve,127)],ir.Eb[1]=101581*op[kA(xt+at,127)]>>16,8>ir.Eb[1]&&(ir.Eb[1]=8),ir.Qc[0]=fg[kA(xt+ft,117)],ir.Qc[1]=op[kA(xt+At,127)],ir.lc=xt+At}if(!We.Rb)return oc(h,4,"Not a key frame.");for($r(Ze),We=h.Pa,Q=0;4>Q;++Q){for(Ke=0;8>Ke;++Ke)for(ve=0;3>ve;++ve)for(at=0;11>at;++at)ft=mn(Ze,s1[Q][Ke][ve][at])?Jr(Ze,8):o1[Q][Ke][ve][at],We.Wc[Q][Ke].Yb[ve][at]=ft;for(Ke=0;17>Ke;++Ke)We.Xc[Q][Ke]=We.Wc[Q][l1[Ke]]}return h.kc=$r(Ze),h.kc&&(h.Bd=Jr(Ze,8)),h.cb=1}function Yh(h,B,Q,ve,Ke,Ze,We){var at=B[Ke].Yb[Q];for(Q=0;16>Ke;++Ke){if(!mn(h,at[Q+0]))return Ke;for(;!mn(h,at[Q+1]);)if(at=B[++Ke].Yb[0],Q=0,Ke==16)return 16;var At=B[Ke+1].Yb;if(mn(h,at[Q+2])){var ft=h,Kt=0;if(mn(ft,(xt=at)[(br=Q)+3]))if(mn(ft,xt[br+6])){for(at=0,br=2*(Kt=mn(ft,xt[br+8]))+(xt=mn(ft,xt[br+9+Kt])),Kt=0,xt=i1[br];xt[at];++at)Kt+=Kt+mn(ft,xt[at]);Kt+=3+(8<<br)}else mn(ft,xt[br+7])?(Kt=7+2*mn(ft,165),Kt+=mn(ft,145)):Kt=5+mn(ft,159);else Kt=mn(ft,xt[br+4])?3+mn(ft,xt[br+5]):2;at=At[2]}else Kt=1,at=At[1];At=We+a1[Ke],0>(ft=h).b&&Kr(ft);var br,xt=ft.b,ir=(br=ft.Ca>>1)-(ft.I>>xt)>>31;--ft.b,ft.Ca+=ir,ft.Ca|=1,ft.I-=(br+1&ir)<<xt,Ze[At]=((Kt^ir)-ir)*ve[(0<Ke)+0]}return 16}function pm(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 DA(h,B,Q,ve,Ke){Ke=h[B+Q+32*ve]+(Ke>>3),h[B+Q+32*ve]=-256&Ke?0>Ke?0:255:Ke}function jc(h,B,Q,ve,Ke,Ze){DA(h,B,0,Q,ve+Ke),DA(h,B,1,Q,ve+Ze),DA(h,B,2,Q,ve-Ze),DA(h,B,3,Q,ve-Ke)}function Yd(h){return(20091*h>>16)+h}function mm(h,B,Q,ve){var Ke,Ze=0,We=p(16);for(Ke=0;4>Ke;++Ke){var at=h[B+0]+h[B+8],At=h[B+0]-h[B+8],ft=(35468*h[B+4]>>16)-Yd(h[B+12]),Kt=Yd(h[B+4])+(35468*h[B+12]>>16);We[Ze+0]=at+Kt,We[Ze+1]=At+ft,We[Ze+2]=At-ft,We[Ze+3]=at-Kt,Ze+=4,B++}for(Ke=Ze=0;4>Ke;++Ke)at=(h=We[Ze+0]+4)+We[Ze+8],At=h-We[Ze+8],ft=(35468*We[Ze+4]>>16)-Yd(We[Ze+12]),DA(Q,ve,0,0,at+(Kt=Yd(We[Ze+4])+(35468*We[Ze+12]>>16))),DA(Q,ve,1,0,At+ft),DA(Q,ve,2,0,At-ft),DA(Q,ve,3,0,at-Kt),Ze++,ve+=32}function W0(h,B,Q,ve){var Ke=h[B+0]+4,Ze=35468*h[B+4]>>16,We=Yd(h[B+4]),at=35468*h[B+1]>>16;jc(Q,ve,0,Ke+We,h=Yd(h[B+1]),at),jc(Q,ve,1,Ke+Ze,h,at),jc(Q,ve,2,Ke-Ze,h,at),jc(Q,ve,3,Ke-We,h,at)}function tg(h,B,Q,ve,Ke){mm(h,B,Q,ve),Ke&&mm(h,B+16,Q,ve+4)}function hd(h,B,Q,ve){c0(h,B+0,Q,ve,1),c0(h,B+32,Q,ve+128,1)}function gm(h,B,Q,ve){var Ke;for(h=h[B+0]+4,Ke=0;4>Ke;++Ke)for(B=0;4>B;++B)DA(Q,ve,B,Ke,h)}function vm(h,B,Q,ve){h[B+0]&&qs(h,B+0,Q,ve),h[B+16]&&qs(h,B+16,Q,ve+4),h[B+32]&&qs(h,B+32,Q,ve+128),h[B+48]&&qs(h,B+48,Q,ve+128+4)}function QA(h,B,Q,ve){var Ke,Ze=p(16);for(Ke=0;4>Ke;++Ke){var We=h[B+0+Ke]+h[B+12+Ke],at=h[B+4+Ke]+h[B+8+Ke],At=h[B+4+Ke]-h[B+8+Ke],ft=h[B+0+Ke]-h[B+12+Ke];Ze[0+Ke]=We+at,Ze[8+Ke]=We-at,Ze[4+Ke]=ft+At,Ze[12+Ke]=ft-At}for(Ke=0;4>Ke;++Ke)We=(h=Ze[0+4*Ke]+3)+Ze[3+4*Ke],at=Ze[1+4*Ke]+Ze[2+4*Ke],At=Ze[1+4*Ke]-Ze[2+4*Ke],ft=h-Ze[3+4*Ke],Q[ve+0]=We+at>>3,Q[ve+16]=ft+At>>3,Q[ve+32]=We-at>>3,Q[ve+48]=ft-At>>3,ve+=64}function ps(h,B,Q){var ve,Ke=B-32,Ze=xu,We=255-h[Ke-1];for(ve=0;ve<Q;++ve){var at,At=Ze,ft=We+h[B-1];for(at=0;at<Q;++at)h[B+at]=At[ft+h[Ke+at]];B+=32}}function cA(h,B){ps(h,B,4)}function Pl(h,B){ps(h,B,8)}function G0(h,B){ps(h,B,16)}function X0(h,B){var Q;for(Q=0;16>Q;++Q)l(h,B+32*Q,h,B-32,16)}function qh(h,B){var Q;for(Q=16;0<Q;--Q)A(h,B,h[B-1],16),B+=32}function pd(h,B,Q){var ve;for(ve=0;16>ve;++ve)A(B,Q+32*ve,h,16)}function rg(h,B){var Q,ve=16;for(Q=0;16>Q;++Q)ve+=h[B-1+32*Q]+h[B+Q-32];pd(ve>>5,h,B)}function e0(h,B){var Q,ve=8;for(Q=0;16>Q;++Q)ve+=h[B-1+32*Q];pd(ve>>4,h,B)}function J0(h,B){var Q,ve=8;for(Q=0;16>Q;++Q)ve+=h[B+Q-32];pd(ve>>4,h,B)}function ng(h,B){pd(128,h,B)}function ho(h,B,Q){return h+2*B+Q+2>>2}function ig(h,B){var Q,ve=B-32;for(ve=new Uint8Array([ho(h[ve-1],h[ve+0],h[ve+1]),ho(h[ve+0],h[ve+1],h[ve+2]),ho(h[ve+1],h[ve+2],h[ve+3]),ho(h[ve+2],h[ve+3],h[ve+4])]),Q=0;4>Q;++Q)l(h,B+32*Q,ve,0,ve.length)}function ag(h,B){var Q=h[B-1],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96];Hn(h,B+0,16843009*ho(h[B-1-32],Q,ve)),Hn(h,B+32,16843009*ho(Q,ve,Ke)),Hn(h,B+64,16843009*ho(ve,Ke,Ze)),Hn(h,B+96,16843009*ho(Ke,Ze,Ze))}function og(h,B){var Q,ve=4;for(Q=0;4>Q;++Q)ve+=h[B+Q-32]+h[B-1+32*Q];for(ve>>=3,Q=0;4>Q;++Q)A(h,B+32*Q,ve,4)}function md(h,B){var Q=h[B-1+0],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1-32],We=h[B+0-32],at=h[B+1-32],At=h[B+2-32],ft=h[B+3-32];h[B+0+96]=ho(ve,Ke,h[B-1+96]),h[B+1+96]=h[B+0+64]=ho(Q,ve,Ke),h[B+2+96]=h[B+1+64]=h[B+0+32]=ho(Ze,Q,ve),h[B+3+96]=h[B+2+64]=h[B+1+32]=h[B+0+0]=ho(We,Ze,Q),h[B+3+64]=h[B+2+32]=h[B+1+0]=ho(at,We,Ze),h[B+3+32]=h[B+2+0]=ho(At,at,We),h[B+3+0]=ho(ft,At,at)}function gd(h,B){var Q=h[B+1-32],ve=h[B+2-32],Ke=h[B+3-32],Ze=h[B+4-32],We=h[B+5-32],at=h[B+6-32],At=h[B+7-32];h[B+0+0]=ho(h[B+0-32],Q,ve),h[B+1+0]=h[B+0+32]=ho(Q,ve,Ke),h[B+2+0]=h[B+1+32]=h[B+0+64]=ho(ve,Ke,Ze),h[B+3+0]=h[B+2+32]=h[B+1+64]=h[B+0+96]=ho(Ke,Ze,We),h[B+3+32]=h[B+2+64]=h[B+1+96]=ho(Ze,We,at),h[B+3+64]=h[B+2+96]=ho(We,at,At),h[B+3+96]=ho(at,At,At)}function sg(h,B){var Q=h[B-1+0],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1-32],We=h[B+0-32],at=h[B+1-32],At=h[B+2-32],ft=h[B+3-32];h[B+0+0]=h[B+1+64]=Ze+We+1>>1,h[B+1+0]=h[B+2+64]=We+at+1>>1,h[B+2+0]=h[B+3+64]=at+At+1>>1,h[B+3+0]=At+ft+1>>1,h[B+0+96]=ho(Ke,ve,Q),h[B+0+64]=ho(ve,Q,Ze),h[B+0+32]=h[B+1+96]=ho(Q,Ze,We),h[B+1+32]=h[B+2+96]=ho(Ze,We,at),h[B+2+32]=h[B+3+96]=ho(We,at,At),h[B+3+32]=ho(at,At,ft)}function Dp(h,B){var Q=h[B+0-32],ve=h[B+1-32],Ke=h[B+2-32],Ze=h[B+3-32],We=h[B+4-32],at=h[B+5-32],At=h[B+6-32],ft=h[B+7-32];h[B+0+0]=Q+ve+1>>1,h[B+1+0]=h[B+0+64]=ve+Ke+1>>1,h[B+2+0]=h[B+1+64]=Ke+Ze+1>>1,h[B+3+0]=h[B+2+64]=Ze+We+1>>1,h[B+0+32]=ho(Q,ve,Ke),h[B+1+32]=h[B+0+96]=ho(ve,Ke,Ze),h[B+2+32]=h[B+1+96]=ho(Ke,Ze,We),h[B+3+32]=h[B+2+96]=ho(Ze,We,at),h[B+3+64]=ho(We,at,At),h[B+3+96]=ho(at,At,ft)}function Y0(h,B){var Q=h[B-1+0],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96];h[B+0+0]=Q+ve+1>>1,h[B+2+0]=h[B+0+32]=ve+Ke+1>>1,h[B+2+32]=h[B+0+64]=Ke+Ze+1>>1,h[B+1+0]=ho(Q,ve,Ke),h[B+3+0]=h[B+1+32]=ho(ve,Ke,Ze),h[B+3+32]=h[B+1+64]=ho(Ke,Ze,Ze),h[B+3+64]=h[B+2+64]=h[B+0+96]=h[B+1+96]=h[B+2+96]=h[B+3+96]=Ze}function dh(h,B){var Q=h[B-1+0],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96],We=h[B-1-32],at=h[B+0-32],At=h[B+1-32],ft=h[B+2-32];h[B+0+0]=h[B+2+32]=Q+We+1>>1,h[B+0+32]=h[B+2+64]=ve+Q+1>>1,h[B+0+64]=h[B+2+96]=Ke+ve+1>>1,h[B+0+96]=Ze+Ke+1>>1,h[B+3+0]=ho(at,At,ft),h[B+2+0]=ho(We,at,At),h[B+1+0]=h[B+3+32]=ho(Q,We,at),h[B+1+32]=h[B+3+64]=ho(ve,Q,We),h[B+1+64]=h[B+3+96]=ho(Ke,ve,Q),h[B+1+96]=ho(Ze,Ke,ve)}function t0(h,B){var Q;for(Q=0;8>Q;++Q)l(h,B+32*Q,h,B-32,8)}function lg(h,B){var Q;for(Q=0;8>Q;++Q)A(h,B,h[B-1],8),B+=32}function qd(h,B,Q){var ve;for(ve=0;8>ve;++ve)A(B,Q+32*ve,h,8)}function bm(h,B){var Q,ve=8;for(Q=0;8>Q;++Q)ve+=h[B+Q-32]+h[B-1+32*Q];qd(ve>>4,h,B)}function r0(h,B){var Q,ve=4;for(Q=0;8>Q;++Q)ve+=h[B+Q-32];qd(ve>>3,h,B)}function Np(h,B){var Q,ve=4;for(Q=0;8>Q;++Q)ve+=h[B-1+32*Q];qd(ve>>3,h,B)}function ym(h,B){qd(128,h,B)}function Df(h,B,Q){var ve=h[B-Q],Ke=h[B+0],Ze=3*(Ke-ve)+u0[1020+h[B-2*Q]-h[B+Q]],We=Im[112+(Ze+4>>3)];h[B-Q]=xu[255+ve+Im[112+(Ze+3>>3)]],h[B+0]=xu[255+Ke-We]}function ef(h,B,Q,ve){var Ke=h[B+0],Ze=h[B+Q];return vc[255+h[B-2*Q]-h[B-Q]]>ve||vc[255+Ze-Ke]>ve}function KA(h,B,Q,ve){return 4*vc[255+h[B-Q]-h[B+0]]+vc[255+h[B-2*Q]-h[B+Q]]<=ve}function n0(h,B,Q,ve,Ke){var Ze=h[B-3*Q],We=h[B-2*Q],at=h[B-Q],At=h[B+0],ft=h[B+Q],Kt=h[B+2*Q],br=h[B+3*Q];return 4*vc[255+at-At]+vc[255+We-ft]>ve?0:vc[255+h[B-4*Q]-Ze]<=Ke&&vc[255+Ze-We]<=Ke&&vc[255+We-at]<=Ke&&vc[255+br-Kt]<=Ke&&vc[255+Kt-ft]<=Ke&&vc[255+ft-At]<=Ke}function Nf(h,B,Q,ve){var Ke=2*ve+1;for(ve=0;16>ve;++ve)KA(h,B+ve,Q,Ke)&&Df(h,B+ve,Q)}function q0(h,B,Q,ve){var Ke=2*ve+1;for(ve=0;16>ve;++ve)KA(h,B+ve*Q,1,Ke)&&Df(h,B+ve*Q,1)}function ep(h,B,Q,ve){var Ke;for(Ke=3;0<Ke;--Ke)Nf(h,B+=4*Q,Q,ve)}function Op(h,B,Q,ve){var Ke;for(Ke=3;0<Ke;--Ke)q0(h,B+=4,Q,ve)}function tf(h,B,Q,ve,Ke,Ze,We,at){for(Ze=2*Ze+1;0<Ke--;){if(n0(h,B,Q,Ze,We))if(ef(h,B,Q,at))Df(h,B,Q);else{var At=h,ft=B,Kt=Q,br=At[ft-2*Kt],xt=At[ft-Kt],ir=At[ft+0],gr=At[ft+Kt],Xr=At[ft+2*Kt],Sr=27*(vn=u0[1020+3*(ir-xt)+u0[1020+br-gr]])+63>>7,ln=18*vn+63>>7,vn=9*vn+63>>7;At[ft-3*Kt]=xu[255+At[ft-3*Kt]+vn],At[ft-2*Kt]=xu[255+br+ln],At[ft-Kt]=xu[255+xt+Sr],At[ft+0]=xu[255+ir-Sr],At[ft+Kt]=xu[255+gr-ln],At[ft+2*Kt]=xu[255+Xr-vn]}B+=ve}}function Of(h,B,Q,ve,Ke,Ze,We,at){for(Ze=2*Ze+1;0<Ke--;){if(n0(h,B,Q,Ze,We))if(ef(h,B,Q,at))Df(h,B,Q);else{var At=h,ft=B,Kt=Q,br=At[ft-Kt],xt=At[ft+0],ir=At[ft+Kt],gr=Im[112+(4+(Xr=3*(xt-br))>>3)],Xr=Im[112+(Xr+3>>3)],Sr=gr+1>>1;At[ft-2*Kt]=xu[255+At[ft-2*Kt]+Sr],At[ft-Kt]=xu[255+br+Xr],At[ft+0]=xu[255+xt-gr],At[ft+Kt]=xu[255+ir-Sr]}B+=ve}}function Pf(h,B,Q,ve,Ke,Ze){tf(h,B,Q,1,16,ve,Ke,Ze)}function fh(h,B,Q,ve,Ke,Ze){tf(h,B,1,Q,16,ve,Ke,Ze)}function Pp(h,B,Q,ve,Ke,Ze){var We;for(We=3;0<We;--We)Of(h,B+=4*Q,Q,1,16,ve,Ke,Ze)}function z(h,B,Q,ve,Ke,Ze){var We;for(We=3;0<We;--We)Of(h,B+=4,1,Q,16,ve,Ke,Ze)}function He(h,B,Q,ve,Ke,Ze,We,at){tf(h,B,Ke,1,8,Ze,We,at),tf(Q,ve,Ke,1,8,Ze,We,at)}function St(h,B,Q,ve,Ke,Ze,We,at){tf(h,B,1,Ke,8,Ze,We,at),tf(Q,ve,1,Ke,8,Ze,We,at)}function Zt(h,B,Q,ve,Ke,Ze,We,at){Of(h,B+4*Ke,Ke,1,8,Ze,We,at),Of(Q,ve+4*Ke,Ke,1,8,Ze,We,at)}function vr(h,B,Q,ve,Ke,Ze,We,at){Of(h,B+4,1,Ke,8,Ze,We,at),Of(Q,ve+4,1,Ke,8,Ze,We,at)}function fn(){this.ba=new no,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Hs,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Sn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function aa(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function pa(){this.ua=0,this.Wa=new Oo,this.vb=new Oo,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Tr,this.yc=new Wt}function qa(){this.xb=this.a=0,this.l=new Xd,this.ca=new no,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new It,this.Pb=0,this.wd=new It,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new pa,this.ab=0,this.gc=N(4,aa),this.Oc=0}function po(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Xd,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function sa(h,B,Q,ve,Ke,Ze,We){for(h=h==null?0:h[B+0],B=0;B<We;++B)Ke[Ze+B]=h+Q[ve+B]&255,h=Ke[Ze+B]}function Yl(h,B,Q,ve,Ke,Ze,We){var at;if(h==null)sa(null,null,Q,ve,Ke,Ze,We);else for(at=0;at<We;++at)Ke[Ze+at]=h[B+at]+Q[ve+at]&255}function _c(h,B,Q,ve,Ke,Ze,We){if(h==null)sa(null,null,Q,ve,Ke,Ze,We);else{var at,At=h[B+0],ft=At,Kt=At;for(at=0;at<We;++at)ft=Kt+(At=h[B+at])-ft,Kt=Q[ve+at]+(-256&ft?0>ft?0:255:ft)&255,ft=At,Ke[Ze+at]=Kt}}function yl(h,B,Q,ve){var Ke=B.width,Ze=B.o;if(o(h!=null&&B!=null),0>Q||0>=ve||Q+ve>Ze)return null;if(!h.Cc){if(h.ga==null){var We;if(h.ga=new po,(We=h.ga==null)||(We=B.width*B.o,o(h.Gb.length==0),h.Gb=p(We),h.Uc=0,h.Gb==null?We=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,We=1),We=!We),!We){We=h.ga;var at=h.Fa,At=h.P,ft=h.qc,Kt=h.mb,br=h.nb,xt=At+1,ir=ft-1,gr=We.l;if(o(at!=null&&Kt!=null&&B!=null),xh[0]=null,xh[1]=sa,xh[2]=Yl,xh[3]=_c,We.ca=Kt,We.tb=br,We.c=B.width,We.i=B.height,o(0<We.c&&0<We.i),1>=ft)B=0;else if(We.$a=3&at[At+0],We.Z=at[At+0]>>2&3,We.Lc=at[At+0]>>4&3,At=at[At+0]>>6&3,0>We.$a||1<We.$a||4<=We.Z||1<We.Lc||At)B=0;else if(gr.put=ja,gr.ac=Zd,gr.bc=Lf,gr.ma=We,gr.width=B.width,gr.height=B.height,gr.Da=B.Da,gr.v=B.v,gr.va=B.va,gr.j=B.j,gr.o=B.o,We.$a)e:{o(We.$a==1),B=Vh();t:for(;;){if(B==null){B=0;break e}if(o(We!=null),We.mc=B,B.c=We.c,B.i=We.i,B.l=We.l,B.l.ma=We,B.l.width=We.c,B.l.height=We.i,B.a=0,Gr(B.m,at,xt,ir),!Gd(We.c,We.i,1,B,null)||(B.ab==1&&B.gc[0].hc==3&&Ru(B.s)?(We.ic=1,at=B.c*B.i,B.Ta=null,B.Ua=0,B.V=p(at),B.Ba=0,B.V==null?(B.a=1,B=0):B=1):(We.ic=0,B=Wh(B,We.c)),!B))break t;B=1;break e}We.mc=null,B=0}else B=ir>=We.c*We.i;We=!B}if(We)return null;h.ga.Lc!=1?h.Ga=0:ve=Ze-Q}o(h.ga!=null),o(Q+ve<=Ze);e:{if(B=(at=h.ga).c,Ze=at.l.o,at.$a==0){if(xt=h.rc,ir=h.Vc,gr=h.Fa,At=h.P+1+Q*B,ft=h.mb,Kt=h.nb+Q*B,o(At<=h.P+h.qc),at.Z!=0)for(o(xh[at.Z]!=null),We=0;We<ve;++We)xh[at.Z](xt,ir,gr,At,ft,Kt,B),xt=ft,ir=Kt,Kt+=B,At+=B;else for(We=0;We<ve;++We)l(ft,Kt,gr,At,B),xt=ft,ir=Kt,Kt+=B,At+=B;h.rc=xt,h.Vc=ir}else{if(o(at.mc!=null),B=Q+ve,o((We=at.mc)!=null),o(B<=We.i),We.C>=B)B=1;else if(at.ic||vd(),at.ic){at=We.V,xt=We.Ba,ir=We.c;var Xr=We.i,Sr=(gr=1,At=We.$/ir,ft=We.$%ir,Kt=We.m,br=We.s,We.$),ln=ir*Xr,vn=ir*B,Zn=br.wc,Mn=Sr<vn?fl(br,ft,At):null;o(Sr<=ln),o(B<=Xr),o(Ru(br));t:for(;;){for(;!Kt.h&&Sr<vn;){if(ft&Zn||(Mn=fl(br,ft,At)),o(Mn!=null),Er(Kt),256>(Xr=ac(Mn.G[0],Mn.H[0],Kt)))at[xt+Sr]=Xr,++Sr,++ft>=ir&&(ft=0,++At<=B&&!(At%16)&&lA(We,At));else{if(!(280>Xr)){gr=0;break t}Xr=mu(Xr-256,Kt);var _a,la=ac(Mn.G[4],Mn.H[4],Kt);if(Er(Kt),!(Sr>=(la=gu(ir,la=mu(la,Kt)))&&ln-Sr>=Xr)){gr=0;break t}for(_a=0;_a<Xr;++_a)at[xt+Sr+_a]=at[xt+Sr+_a-la];for(Sr+=Xr,ft+=Xr;ft>=ir;)ft-=ir,++At<=B&&!(At%16)&&lA(We,At);Sr<vn&&ft&Zn&&(Mn=fl(br,ft,At))}o(Kt.h==Jt(Kt))}lA(We,At>B?B:At);break t}!gr||Kt.h&&Sr<ln?(gr=0,We.a=Kt.h?5:3):We.$=Sr,B=gr}else B=bu(We,We.V,We.Ba,We.c,We.i,B,Gh);if(!B){ve=0;break e}}Q+ve>=Ze&&(h.Cc=1),ve=1}if(!ve)return null;if(h.Cc&&((ve=h.ga)!=null&&(ve.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+Q*Ke}function hl(h,B,Q,ve,Ke,Ze){for(;0<Ke--;){var We,at=h,At=B+(Q?1:0),ft=h,Kt=B+(Q?0:3);for(We=0;We<ve;++We){var br=ft[Kt+4*We];br!=255&&(br*=32897,at[At+4*We+0]=at[At+4*We+0]*br>>23,at[At+4*We+1]=at[At+4*We+1]*br>>23,at[At+4*We+2]=at[At+4*We+2]*br>>23)}B+=Ze}}function Ic(h,B,Q,ve,Ke){for(;0<ve--;){var Ze;for(Ze=0;Ze<Q;++Ze){var We=h[B+2*Ze+0],at=15&(ft=h[B+2*Ze+1]),At=4369*at,ft=(240&ft|ft>>4)*At>>16;h[B+2*Ze+0]=(240&We|We>>4)*At>>16&240|(15&We|We<<4)*At>>16>>4&15,h[B+2*Ze+1]=240&ft|at}B+=Ke}}function AA(h,B,Q,ve,Ke,Ze,We,at){var At,ft,Kt=255;for(ft=0;ft<Ke;++ft){for(At=0;At<ve;++At){var br=h[B+At];Ze[We+4*At]=br,Kt&=br}B+=Q,We+=at}return Kt!=255}function Tf(h,B,Q,ve,Ke){var Ze;for(Ze=0;Ze<Ke;++Ze)Q[ve+Ze]=h[B+Ze]>>8}function vd(){Qp=hl,Lg=Ic,cg=AA,kg=Tf}function vo(h,B,Q){Mt[h]=function(ve,Ke,Ze,We,at,At,ft,Kt,br,xt,ir,gr,Xr,Sr,ln,vn,Zn){var Mn,_a=Zn-1>>1,la=at[At+0]|ft[Kt+0]<<16,jo=br[xt+0]|ir[gr+0]<<16;o(ve!=null);var va=3*la+jo+131074>>2;for(B(ve[Ke+0],255&va,va>>16,Xr,Sr),Ze!=null&&(va=3*jo+la+131074>>2,B(Ze[We+0],255&va,va>>16,ln,vn)),Mn=1;Mn<=_a;++Mn){var Fs=at[At+Mn]|ft[Kt+Mn]<<16,uA=br[xt+Mn]|ir[gr+Mn]<<16,zo=la+Fs+jo+uA+524296,ba=zo+2*(Fs+jo)>>3;va=ba+la>>1,la=(zo=zo+2*(la+uA)>>3)+Fs>>1,B(ve[Ke+2*Mn-1],255&va,va>>16,Xr,Sr+(2*Mn-1)*Q),B(ve[Ke+2*Mn-0],255&la,la>>16,Xr,Sr+(2*Mn-0)*Q),Ze!=null&&(va=zo+jo>>1,la=ba+uA>>1,B(Ze[We+2*Mn-1],255&va,va>>16,ln,vn+(2*Mn-1)*Q),B(Ze[We+2*Mn+0],255&la,la>>16,ln,vn+(2*Mn+0)*Q)),la=Fs,jo=uA}1&Zn||(va=3*la+jo+131074>>2,B(ve[Ke+Zn-1],255&va,va>>16,Xr,Sr+(Zn-1)*Q),Ze!=null&&(va=3*jo+la+131074>>2,B(Ze[We+Zn-1],255&va,va>>16,ln,vn+(Zn-1)*Q)))}}function bd(){Zu[Fm]=w1,Zu[Mm]=t,Zu[Pg]=e,Zu[Kp]=r,Zu[ap]=i,Zu[ug]=s,Zu[Ho]=c,Zu[dg]=t,Zu[lf]=r,Zu[sc]=i,Zu[d0]=s}function yd(h){return h&~Pe?0>h?0:255:h>>ce}function rf(h,B){return yd((19077*h>>8)+(26149*B>>8)-14234)}function Ku(h,B,Q){return yd((19077*h>>8)-(6419*B>>8)-(13320*Q>>8)+8708)}function Uf(h,B){return yd((19077*h>>8)+(33050*B>>8)-17685)}function hh(h,B,Q,ve,Ke){ve[Ke+0]=rf(h,Q),ve[Ke+1]=Ku(h,B,Q),ve[Ke+2]=Uf(h,B)}function mc(h,B,Q,ve,Ke){ve[Ke+0]=Uf(h,B),ve[Ke+1]=Ku(h,B,Q),ve[Ke+2]=rf(h,Q)}function i0(h,B,Q,ve,Ke){var Ze=Ku(h,B,Q);B=Ze<<3&224|Uf(h,B)>>3,ve[Ke+0]=248&rf(h,Q)|Ze>>5,ve[Ke+1]=B}function ph(h,B,Q,ve,Ke){var Ze=240&Uf(h,B)|15;ve[Ke+0]=240&rf(h,Q)|Ku(h,B,Q)>>4,ve[Ke+1]=Ze}function Tp(h,B,Q,ve,Ke){ve[Ke+0]=255,hh(h,B,Q,ve,Ke+1)}function io(h,B,Q,ve,Ke){mc(h,B,Q,ve,Ke),ve[Ke+3]=255}function Fc(h,B,Q,ve,Ke){hh(h,B,Q,ve,Ke),ve[Ke+3]=255}function yu(h,B,Q){Mt[h]=function(ve,Ke,Ze,We,at,At,ft,Kt,br){for(var xt=Kt+(-2&br)*Q;Kt!=xt;)B(ve[Ke+0],Ze[We+0],at[At+0],ft,Kt),B(ve[Ke+1],Ze[We+0],at[At+0],ft,Kt+Q),Ke+=2,++We,++At,Kt+=2*Q;1&br&&B(ve[Ke+0],Ze[We+0],at[At+0],ft,Kt)}}function nf(h,B,Q){return Q==0?h==0?B==0?6:5:B==0?4:0:Q}function wm(h,B,Q,ve,Ke){switch(h>>>30){case 3:c0(B,Q,ve,Ke,0);break;case 2:zu(B,Q,ve,Ke);break;case 1:qs(B,Q,ve,Ke)}}function ms(h,B){var Q,ve,Ke=B.M,Ze=B.Nb,We=h.oc,at=h.pc+40,At=h.oc,ft=h.pc+584,Kt=h.oc,br=h.pc+600;for(Q=0;16>Q;++Q)We[at+32*Q-1]=129;for(Q=0;8>Q;++Q)At[ft+32*Q-1]=129,Kt[br+32*Q-1]=129;for(0<Ke?We[at-1-32]=At[ft-1-32]=Kt[br-1-32]=129:(A(We,at-32-1,127,21),A(At,ft-32-1,127,9),A(Kt,br-32-1,127,9)),ve=0;ve<h.za;++ve){var xt=B.ya[B.aa+ve];if(0<ve){for(Q=-1;16>Q;++Q)l(We,at+32*Q-4,We,at+32*Q+12,4);for(Q=-1;8>Q;++Q)l(At,ft+32*Q-4,At,ft+32*Q+4,4),l(Kt,br+32*Q-4,Kt,br+32*Q+4,4)}var ir=h.Gd,gr=h.Hd+ve,Xr=xt.ad,Sr=xt.Hc;if(0<Ke&&(l(We,at-32,ir[gr].y,0,16),l(At,ft-32,ir[gr].f,0,8),l(Kt,br-32,ir[gr].ea,0,8)),xt.Za){var ln=We,vn=at-32+16;for(0<Ke&&(ve>=h.za-1?A(ln,vn,ir[gr].y[15],4):l(ln,vn,ir[gr+1].y,0,4)),Q=0;4>Q;Q++)ln[vn+128+Q]=ln[vn+256+Q]=ln[vn+384+Q]=ln[vn+0+Q];for(Q=0;16>Q;++Q,Sr<<=2)ln=We,vn=at+Fn[Q],wd[xt.Ob[Q]](ln,vn),wm(Sr,Xr,16*+Q,ln,vn)}else if(ln=nf(ve,Ke,xt.Ob[0]),wh[ln](We,at),Sr!=0)for(Q=0;16>Q;++Q,Sr<<=2)wm(Sr,Xr,16*+Q,We,at+Fn[Q]);for(Q=xt.Gc,ln=nf(ve,Ke,xt.Dd),OA[ln](At,ft),OA[ln](Kt,br),Sr=Xr,ln=At,vn=ft,255&(xt=0|Q)&&(170&xt?sf(Sr,256,ln,vn):pl(Sr,256,ln,vn)),xt=Kt,Sr=br,255&(Q>>=8)&&(170&Q?sf(Xr,320,xt,Sr):pl(Xr,320,xt,Sr)),Ke<h.Ub-1&&(l(ir[gr].y,0,We,at+480,16),l(ir[gr].f,0,At,ft+224,8),l(ir[gr].ea,0,Kt,br+224,8)),Q=8*Ze*h.B,ir=h.sa,gr=h.ta+16*ve+16*Ze*h.R,Xr=h.qa,xt=h.ra+8*ve+Q,Sr=h.Ha,ln=h.Ia+8*ve+Q,Q=0;16>Q;++Q)l(ir,gr+Q*h.R,We,at+32*Q,16);for(Q=0;8>Q;++Q)l(Xr,xt+Q*h.B,At,ft+32*Q,8),l(Sr,ln+Q*h.B,Kt,br+32*Q,8)}}function a0(h,B,Q,ve,Ke,Ze,We,at,At){var ft=[0],Kt=[0],br=0,xt=At!=null?At.kd:0,ir=At!=null?At:new Sn;if(h==null||12>Q)return 7;ir.data=h,ir.w=B,ir.ha=Q,B=[B],Q=[Q],ir.gb=[ir.gb];e:{var gr=B,Xr=Q,Sr=ir.gb;if(o(h!=null),o(Xr!=null),o(Sr!=null),Sr[0]=0,12<=Xr[0]&&!a(h,gr[0],"RIFF")){if(a(h,gr[0]+8,"WEBP")){Sr=3;break e}var ln=Sa(h,gr[0]+4);if(12>ln||4294967286<ln){Sr=3;break e}if(xt&&ln>Xr[0]-8){Sr=7;break e}Sr[0]=ln,gr[0]+=12,Xr[0]-=12}Sr=0}if(Sr!=0)return Sr;for(ln=0<ir.gb[0],Q=Q[0];;){e:{var vn=h;Xr=B,Sr=Q;var Zn=ft,Mn=Kt,_a=gr=[0];if((va=br=[br])[0]=0,8>Sr[0])Sr=7;else{if(!a(vn,Xr[0],"VP8X")){if(Sa(vn,Xr[0]+4)!=10){Sr=3;break e}if(18>Sr[0]){Sr=7;break e}var la=Sa(vn,Xr[0]+8),jo=1+Ci(vn,Xr[0]+12);if(2147483648<=jo*(vn=1+Ci(vn,Xr[0]+15))){Sr=3;break e}_a!=null&&(_a[0]=la),Zn!=null&&(Zn[0]=jo),Mn!=null&&(Mn[0]=vn),Xr[0]+=18,Sr[0]-=18,va[0]=1}Sr=0}}if(br=br[0],gr=gr[0],Sr!=0)return Sr;if(Xr=!!(2&gr),!ln&&br)return 3;if(Ze!=null&&(Ze[0]=!!(16&gr)),We!=null&&(We[0]=Xr),at!=null&&(at[0]=0),We=ft[0],gr=Kt[0],br&&Xr&&At==null){Sr=0;break}if(4>Q){Sr=7;break}if(ln&&br||!ln&&!br&&!a(h,B[0],"ALPH")){Q=[Q],ir.na=[ir.na],ir.P=[ir.P],ir.Sa=[ir.Sa];e:{la=h,Sr=B,ln=Q;var va=ir.gb;Zn=ir.na,Mn=ir.P,_a=ir.Sa,jo=22,o(la!=null),o(ln!=null),vn=Sr[0];var Fs=ln[0];for(o(Zn!=null),o(_a!=null),Zn[0]=null,Mn[0]=null,_a[0]=0;;){if(Sr[0]=vn,ln[0]=Fs,8>Fs){Sr=7;break e}var uA=Sa(la,vn+4);if(4294967286<uA){Sr=3;break e}var zo=8+uA+1&-2;if(jo+=zo,0<va&&jo>va){Sr=3;break e}if(!a(la,vn,"VP8 ")||!a(la,vn,"VP8L")){Sr=0;break e}if(Fs[0]<zo){Sr=7;break e}a(la,vn,"ALPH")||(Zn[0]=la,Mn[0]=vn+8,_a[0]=uA),vn+=zo,Fs-=zo}}if(Q=Q[0],ir.na=ir.na[0],ir.P=ir.P[0],ir.Sa=ir.Sa[0],Sr!=0)break}Q=[Q],ir.Ja=[ir.Ja],ir.xa=[ir.xa];e:if(va=h,Sr=B,ln=Q,Zn=ir.gb[0],Mn=ir.Ja,_a=ir.xa,la=Sr[0],vn=!a(va,la,"VP8 "),jo=!a(va,la,"VP8L"),o(va!=null),o(ln!=null),o(Mn!=null),o(_a!=null),8>ln[0])Sr=7;else{if(vn||jo){if(va=Sa(va,la+4),12<=Zn&&va>Zn-12){Sr=3;break e}if(xt&&va>ln[0]-8){Sr=7;break e}Mn[0]=va,Sr[0]+=8,ln[0]-=8,_a[0]=jo}else _a[0]=5<=ln[0]&&va[la+0]==47&&!(va[la+4]>>5),Mn[0]=ln[0];Sr=0}if(Q=Q[0],ir.Ja=ir.Ja[0],ir.xa=ir.xa[0],B=B[0],Sr!=0)break;if(4294967286<ir.Ja)return 3;if(at==null||Xr||(at[0]=ir.xa?2:1),We=[We],gr=[gr],ir.xa){if(5>Q){Sr=7;break}at=We,xt=gr,Xr=Ze,h==null||5>Q?h=0:5<=Q&&h[B+0]==47&&!(h[B+4]>>5)?(ln=[0],va=[0],Zn=[0],Gr(Mn=new It,h,B,Q),kf(Mn,ln,va,Zn)?(at!=null&&(at[0]=ln[0]),xt!=null&&(xt[0]=va[0]),Xr!=null&&(Xr[0]=Zn[0]),h=1):h=0):h=0}else{if(10>Q){Sr=7;break}at=gr,h==null||10>Q||!kp(h,B+3,Q-3)?h=0:(xt=h[B+0]|h[B+1]<<8|h[B+2]<<16,Xr=16383&(h[B+7]<<8|h[B+6]),h=16383&(h[B+9]<<8|h[B+8]),1&xt||3<(xt>>1&7)||!(xt>>4&1)||xt>>5>=ir.Ja||!Xr||!h?h=0:(We&&(We[0]=Xr),at&&(at[0]=h),h=1))}if(!h||(We=We[0],gr=gr[0],br&&(ft[0]!=We||Kt[0]!=gr)))return 3;At!=null&&(At[0]=ir,At.offset=B-At.w,o(4294967286>B-At.w),o(At.offset==At.ha-Q));break}return Sr==0||Sr==7&&br&&At==null?(Ze!=null&&(Ze[0]|=ir.na!=null&&0<ir.na.length),ve!=null&&(ve[0]=We),Ke!=null&&(Ke[0]=gr),0):Sr}function Tl(h,B,Q){var ve=B.width,Ke=B.height,Ze=0,We=0,at=ve,At=Ke;if(B.Da=h!=null&&0<h.Da,B.Da&&(at=h.cd,At=h.bd,Ze=h.v,We=h.j,11>Q||(Ze&=-2,We&=-2),0>Ze||0>We||0>=at||0>=At||Ze+at>ve||We+At>Ke))return 0;if(B.v=Ze,B.j=We,B.va=Ze+at,B.o=We+At,B.U=at,B.T=At,B.da=h!=null&&0<h.da,B.da){if(!Ha(at,At,Q=[h.ib],Ze=[h.hb]))return 0;B.ib=Q[0],B.hb=Ze[0]}return B.ob=h!=null&&h.ob,B.Kb=h==null||!h.Sd,B.da&&(B.ob=B.ib<3*ve/4&&B.hb<3*Ke/4,B.Kb=0),1}function xm(h){if(h==null)return 2;if(11>h.S){var B=h.f.RGBA;B.fb+=(h.height-1)*B.A,B.A=-B.A}else B=h.f.kb,h=h.height,B.O+=(h-1)*B.fa,B.fa=-B.fa,B.N+=(h-1>>1)*B.Ab,B.Ab=-B.Ab,B.W+=(h-1>>1)*B.Db,B.Db=-B.Db,B.F!=null&&(B.J+=(h-1)*B.lb,B.lb=-B.lb);return 0}function mh(h,B,Q,ve){if(ve==null||0>=h||0>=B)return 2;if(Q!=null){if(Q.Da){var Ke=Q.cd,Ze=Q.bd,We=-2&Q.v,at=-2&Q.j;if(0>We||0>at||0>=Ke||0>=Ze||We+Ke>h||at+Ze>B)return 2;h=Ke,B=Ze}if(Q.da){if(!Ha(h,B,Ke=[Q.ib],Ze=[Q.hb]))return 2;h=Ke[0],B=Ze[0]}}ve.width=h,ve.height=B;e:{var At=ve.width,ft=ve.height;if(h=ve.S,0>=At||0>=ft||!(h>=Fm&&13>h))h=2;else{if(0>=ve.Rd&&ve.sd==null){We=Ze=Ke=B=0;var Kt=(at=At*Qi[h])*ft;if(11>h||(Ze=(ft+1)/2*(B=(At+1)/2),h==12&&(We=(Ke=At)*ft)),(ft=p(Kt+2*Ze+We))==null){h=1;break e}ve.sd=ft,11>h?((At=ve.f.RGBA).eb=ft,At.fb=0,At.A=at,At.size=Kt):((At=ve.f.kb).y=ft,At.O=0,At.fa=at,At.Fd=Kt,At.f=ft,At.N=0+Kt,At.Ab=B,At.Cd=Ze,At.ea=ft,At.W=0+Kt+Ze,At.Db=B,At.Ed=Ze,h==12&&(At.F=ft,At.J=0+Kt+2*Ze),At.Tc=We,At.lb=Ke)}if(B=1,Ke=ve.S,Ze=ve.width,We=ve.height,Ke>=Fm&&13>Ke)if(11>Ke)h=ve.f.RGBA,B&=(at=Math.abs(h.A))*(We-1)+Ze<=h.size,B&=at>=Ze*Qi[Ke],B&=h.eb!=null;else{h=ve.f.kb,at=(Ze+1)/2,Kt=(We+1)/2,At=Math.abs(h.fa),ft=Math.abs(h.Ab);var br=Math.abs(h.Db),xt=Math.abs(h.lb),ir=xt*(We-1)+Ze;B&=At*(We-1)+Ze<=h.Fd,B&=ft*(Kt-1)+at<=h.Cd,B=(B&=br*(Kt-1)+at<=h.Ed)&At>=Ze&ft>=at&br>=at,B&=h.y!=null,B&=h.f!=null,B&=h.ea!=null,Ke==12&&(B&=xt>=Ze,B&=ir<=h.Tc,B&=h.F!=null)}else B=0;h=B?0:2}}return h!=0||Q!=null&&Q.fd&&(h=xm(ve)),h}var o0=64,NA=[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],wu=24,s0=32,gh=8,af=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Oi("Predictor0","PredictorAdd0"),Mt.Predictor0=function(){return 4278190080},Mt.Predictor1=function(h){return h},Mt.Predictor2=function(h,B,Q){return B[Q+0]},Mt.Predictor3=function(h,B,Q){return B[Q+1]},Mt.Predictor4=function(h,B,Q){return B[Q-1]},Mt.Predictor5=function(h,B,Q){return La(La(h,B[Q+1]),B[Q+0])},Mt.Predictor6=function(h,B,Q){return La(h,B[Q-1])},Mt.Predictor7=function(h,B,Q){return La(h,B[Q+0])},Mt.Predictor8=function(h,B,Q){return La(B[Q-1],B[Q+0])},Mt.Predictor9=function(h,B,Q){return La(B[Q+0],B[Q+1])},Mt.Predictor10=function(h,B,Q){return La(La(h,B[Q-1]),La(B[Q+0],B[Q+1]))},Mt.Predictor11=function(h,B,Q){var ve=B[Q+0];return 0>=Ja(ve>>24&255,h>>24&255,(B=B[Q-1])>>24&255)+Ja(ve>>16&255,h>>16&255,B>>16&255)+Ja(ve>>8&255,h>>8&255,B>>8&255)+Ja(255&ve,255&h,255&B)?ve:h},Mt.Predictor12=function(h,B,Q){var ve=B[Q+0];return(is((h>>24&255)+(ve>>24&255)-((B=B[Q-1])>>24&255))<<24|is((h>>16&255)+(ve>>16&255)-(B>>16&255))<<16|is((h>>8&255)+(ve>>8&255)-(B>>8&255))<<8|is((255&h)+(255&ve)-(255&B)))>>>0},Mt.Predictor13=function(h,B,Q){var ve=B[Q-1];return(as((h=La(h,B[Q+0]))>>24&255,ve>>24&255)<<24|as(h>>16&255,ve>>16&255)<<16|as(h>>8&255,ve>>8&255)<<8|as(255&h,255&ve))>>>0};var of=Mt.PredictorAdd0;Mt.PredictorAdd1=Xo,Oi("Predictor2","PredictorAdd2"),Oi("Predictor3","PredictorAdd3"),Oi("Predictor4","PredictorAdd4"),Oi("Predictor5","PredictorAdd5"),Oi("Predictor6","PredictorAdd6"),Oi("Predictor7","PredictorAdd7"),Oi("Predictor8","PredictorAdd8"),Oi("Predictor9","PredictorAdd9"),Oi("Predictor10","PredictorAdd10"),Oi("Predictor11","PredictorAdd11"),Oi("Predictor12","PredictorAdd12"),Oi("Predictor13","PredictorAdd13");var tp=Mt.PredictorAdd2;Ca("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),Ca("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var ql,Cm=Mt.ColorIndexInverseTransform,Hu=Mt.MapARGB,ju=Mt.VP8LColorIndexInverseTransformAlpha,l0=Mt.MapAlpha,rp=Mt.VP8LPredictorsAdd=[];rp.length=16,(Mt.VP8LPredictors=[]).length=16,(Mt.VP8LPredictorsAdd_C=[]).length=16,(Mt.VP8LPredictors_C=[]).length=16;var Up,np,Rf,vh,gs,bh,yh,c0,zu,sf,qs,pl,gc,zc,Qf,Rp,$u,Bm,Fg,ip,Mg,Sm,Em,A0,Qp,Lg,cg,kg,Dg=p(511),Ng=p(2041),Og=p(225),Ag=p(767),_m=0,u0=Ng,Im=Og,xu=Ag,vc=Dg,Fm=0,Mm=1,Pg=2,Kp=3,ap=4,ug=5,Ho=6,dg=7,lf=8,sc=9,d0=10,Kf=[2,3,7],Hp=[3,3,11],f0=[280,256,256,256,40],Tg=[0,1,1,1,0],Ug=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Rg=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Qg=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Kg=8,fg=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],op=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],sp=null,i1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],a1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],h0=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],o1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Hg=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],s1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],l1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],wh=[],wd=[],OA=[],y1=1,c1=2,xh=[],Zu=[];vo("UpsampleRgbLinePair",hh,3),vo("UpsampleBgrLinePair",mc,3),vo("UpsampleRgbaLinePair",Fc,4),vo("UpsampleBgraLinePair",io,4),vo("UpsampleArgbLinePair",Tp,4),vo("UpsampleRgba4444LinePair",ph,2),vo("UpsampleRgb565LinePair",i0,2);var w1=Mt.UpsampleRgbLinePair,e=Mt.UpsampleBgrLinePair,t=Mt.UpsampleRgbaLinePair,r=Mt.UpsampleBgraLinePair,i=Mt.UpsampleArgbLinePair,s=Mt.UpsampleRgba4444LinePair,c=Mt.UpsampleRgb565LinePair,d=16,k=1<<d-1,j=-227,X=482,ce=6,Pe=(256<<ce)-1,nt=0,vt=p(256),Et=p(256),Br=p(256),En=p(256),wr=p(X-j),nn=p(X-j);yu("YuvToRgbRow",hh,3),yu("YuvToBgrRow",mc,3),yu("YuvToRgbaRow",Fc,4),yu("YuvToBgraRow",io,4),yu("YuvToArgbRow",Tp,4),yu("YuvToRgba4444Row",ph,2),yu("YuvToRgb565Row",i0,2);var Fn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],cn=[0,2,8],Bi=[8,7,6,4,4,2,2,2,1,1,1,1],ra=1;this.WebPDecodeRGBA=function(h,B,Q,ve,Ke){var Ze=Mm,We=new fn,at=new no;We.ba=at,at.S=Ze,at.width=[at.width],at.height=[at.height];var At=at.width,ft=at.height,Kt=new Na;if(Kt==null||h==null)var br=2;else o(Kt!=null),br=a0(h,B,Q,Kt.width,Kt.height,Kt.Pd,Kt.Qd,Kt.format,null);if(br!=0?At=0:(At!=null&&(At[0]=Kt.width[0]),ft!=null&&(ft[0]=Kt.height[0]),At=1),At){at.width=at.width[0],at.height=at.height[0],ve!=null&&(ve[0]=at.width),Ke!=null&&(Ke[0]=at.height);e:{if(ve=new Xd,(Ke=new Sn).data=h,Ke.w=B,Ke.ha=Q,Ke.kd=1,B=[0],o(Ke!=null),((h=a0(Ke.data,Ke.w,Ke.ha,null,null,null,B,null,Ke))==0||h==7)&&B[0]&&(h=4),(B=h)==0){if(o(We!=null),ve.data=Ke.data,ve.w=Ke.w+Ke.offset,ve.ha=Ke.ha-Ke.offset,ve.put=ja,ve.ac=Zd,ve.bc=Lf,ve.ma=We,Ke.xa){if((h=Vh())==null){We=1;break e}if(function(xt,ir){var gr=[0],Xr=[0],Sr=[0];t:for(;;){if(xt==null)return 0;if(ir==null)return xt.a=2,0;if(xt.l=ir,xt.a=0,Gr(xt.m,ir.data,ir.w,ir.ha),!kf(xt.m,gr,Xr,Sr)){xt.a=3;break t}if(xt.xb=c1,ir.width=gr[0],ir.height=Xr[0],!Gd(gr[0],Xr[0],1,xt,null))break t;return 1}return o(xt.a!=0),0}(h,ve)){if(ve=(B=mh(ve.width,ve.height,We.Oa,We.ba))==0){t:{ve=h;r:for(;;){if(ve==null){ve=0;break t}if(o(ve.s.yc!=null),o(ve.s.Ya!=null),o(0<ve.s.Wb),o((Q=ve.l)!=null),o((Ke=Q.ma)!=null),ve.xb!=0){if(ve.ca=Ke.ba,ve.tb=Ke.tb,o(ve.ca!=null),!Tl(Ke.Oa,Q,Kp)){ve.a=2;break r}if(!Wh(ve,Q.width)||Q.da)break r;if((Q.da||Ya(ve.ca.S))&&vd(),11>ve.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ve.ca.f.kb.F!=null&&vd()),ve.Pb&&0<ve.s.ua&&ve.s.vb.X==null&&!gt(ve.s.vb,ve.s.Wa.Xa)){ve.a=1;break r}ve.xb=0}if(!bu(ve,ve.V,ve.Ba,ve.c,ve.i,Q.o,Wd))break r;Ke.Dc=ve.Ma,ve=1;break t}o(ve.a!=0),ve=0}ve=!ve}ve&&(B=h.a)}else B=h.a}else{if((h=new V0)==null){We=1;break e}if(h.Fa=Ke.na,h.P=Ke.P,h.qc=Ke.Sa,Jd(h,ve)){if((B=mh(ve.width,ve.height,We.Oa,We.ba))==0){if(h.Aa=0,Q=We.Oa,o((Ke=h)!=null),Q!=null){if(0<(At=0>(At=Q.Md)?0:100<At?255:255*At/100)){for(ft=Kt=0;4>ft;++ft)12>(br=Ke.pb[ft]).lc&&(br.ia=At*Bi[0>br.lc?0:br.lc]>>3),Kt|=br.ia;Kt&&(alert("todo:VP8InitRandom"),Ke.ia=1)}Ke.Ga=Q.Id,100<Ke.Ga?Ke.Ga=100:0>Ke.Ga&&(Ke.Ga=0)}(function(xt,ir){if(xt==null)return 0;if(ir==null)return oc(xt,2,"NULL VP8Io parameter in VP8Decode().");if(!xt.cb&&!Jd(xt,ir))return 0;if(o(xt.cb),ir.ac==null||ir.ac(ir)){ir.ob&&(xt.L=0);var gr=cn[xt.L];if(xt.L==2?(xt.yb=0,xt.zb=0):(xt.yb=ir.v-gr>>4,xt.zb=ir.j-gr>>4,0>xt.yb&&(xt.yb=0),0>xt.zb&&(xt.zb=0)),xt.Va=ir.o+15+gr>>4,xt.Hb=ir.va+15+gr>>4,xt.Hb>xt.za&&(xt.Hb=xt.za),xt.Va>xt.Ub&&(xt.Va=xt.Ub),0<xt.L){var Xr=xt.ed;for(gr=0;4>gr;++gr){var Sr;if(xt.Qa.Cb){var ln=xt.Qa.Lb[gr];xt.Qa.Fb||(ln+=Xr.Tb)}else ln=Xr.Tb;for(Sr=0;1>=Sr;++Sr){var vn=xt.gd[gr][Sr],Zn=ln;if(Xr.Pc&&(Zn+=Xr.vd[0],Sr&&(Zn+=Xr.od[0])),0<(Zn=0>Zn?0:63<Zn?63:Zn)){var Mn=Zn;0<Xr.wb&&(Mn=4<Xr.wb?Mn>>2:Mn>>1)>9-Xr.wb&&(Mn=9-Xr.wb),1>Mn&&(Mn=1),vn.dd=Mn,vn.tc=2*Zn+Mn,vn.ld=40<=Zn?2:15<=Zn?1:0}else vn.tc=0;vn.La=Sr}}}gr=0}else oc(xt,6,"Frame setup failed"),gr=xt.a;if(gr=gr==0){if(gr){xt.$c=0,0<xt.Aa||(xt.Ic=ra);t:{gr=xt.Ic,Xr=4*(Mn=xt.za);var _a=32*Mn,la=Mn+1,jo=0<xt.L?Mn*(0<xt.Aa?2:1):0,va=(xt.Aa==2?2:1)*Mn;if((vn=Xr+832+(Sr=3*(16*gr+cn[xt.L])/2*_a)+(ln=xt.Fa!=null&&0<xt.Fa.length?xt.Kc.c*xt.Kc.i:0))!=vn)gr=0;else{if(vn>xt.Vb){if(xt.Vb=0,xt.Ec=p(vn),xt.Fc=0,xt.Ec==null){gr=oc(xt,1,"no memory during frame initialization.");break t}xt.Vb=vn}vn=xt.Ec,Zn=xt.Fc,xt.Ac=vn,xt.Bc=Zn,Zn+=Xr,xt.Gd=N(_a,Z0),xt.Hd=0,xt.rb=N(la+1,Jh),xt.sb=1,xt.wa=jo?N(jo,eu):null,xt.Y=0,xt.D.Nb=0,xt.D.wa=xt.wa,xt.D.Y=xt.Y,0<xt.Aa&&(xt.D.Y+=Mn),o(!0),xt.oc=vn,xt.pc=Zn,Zn+=832,xt.ya=N(va,Mp),xt.aa=0,xt.D.ya=xt.ya,xt.D.aa=xt.aa,xt.Aa==2&&(xt.D.aa+=Mn),xt.R=16*Mn,xt.B=8*Mn,Mn=(_a=cn[xt.L])*xt.R,_a=_a/2*xt.B,xt.sa=vn,xt.ta=Zn+Mn,xt.qa=xt.sa,xt.ra=xt.ta+16*gr*xt.R+_a,xt.Ha=xt.qa,xt.Ia=xt.ra+8*gr*xt.B+_a,xt.$c=0,Zn+=Sr,xt.mb=ln?vn:null,xt.nb=ln?Zn:null,o(Zn+ln<=xt.Fc+xt.Vb),pm(xt),A(xt.Ac,xt.Bc,0,Xr),gr=1}}if(gr){if(ir.ka=0,ir.y=xt.sa,ir.O=xt.ta,ir.f=xt.qa,ir.N=xt.ra,ir.ea=xt.Ha,ir.Vd=xt.Ia,ir.fa=xt.R,ir.Rc=xt.B,ir.F=null,ir.J=0,!_m){for(gr=-255;255>=gr;++gr)Dg[255+gr]=0>gr?-gr:gr;for(gr=-1020;1020>=gr;++gr)Ng[1020+gr]=-128>gr?-128:127<gr?127:gr;for(gr=-112;112>=gr;++gr)Og[112+gr]=-16>gr?-16:15<gr?15:gr;for(gr=-255;510>=gr;++gr)Ag[255+gr]=0>gr?0:255<gr?255:gr;_m=1}yh=QA,c0=tg,sf=hd,qs=gm,pl=vm,zu=W0,gc=Pf,zc=fh,Qf=He,Rp=St,$u=Pp,Bm=z,Fg=Zt,ip=vr,Mg=Nf,Sm=q0,Em=ep,A0=Op,wd[0]=og,wd[1]=cA,wd[2]=ig,wd[3]=ag,wd[4]=md,wd[5]=sg,wd[6]=gd,wd[7]=Dp,wd[8]=dh,wd[9]=Y0,wh[0]=rg,wh[1]=G0,wh[2]=X0,wh[3]=qh,wh[4]=e0,wh[5]=J0,wh[6]=ng,OA[0]=bm,OA[1]=Pl,OA[2]=t0,OA[3]=lg,OA[4]=Np,OA[5]=r0,OA[6]=ym,gr=1}else gr=0}gr&&(gr=function(Fs,uA){for(Fs.M=0;Fs.M<Fs.Va;++Fs.M){var zo,ba=Fs.Jc[Fs.M&Fs.Xb],Ei=Fs.m,$c=Fs;for(zo=0;zo<$c.za;++zo){var ko=Ei,Os=$c,ec=Os.Ac,HA=Os.Bc+4*zo,Cu=Os.zc,Mc=Os.ya[Os.aa+zo];if(Os.Qa.Bb?Mc.$b=mn(ko,Os.Pa.jb[0])?2+mn(ko,Os.Pa.jb[2]):mn(ko,Os.Pa.jb[1]):Mc.$b=0,Os.kc&&(Mc.Ad=mn(ko,Os.Bd)),Mc.Za=!mn(ko,145)+0,Mc.Za){var tu=Mc.Ob,Bu=0;for(Os=0;4>Os;++Os){var dA,js=Cu[0+Os];for(dA=0;4>dA;++dA){js=Hg[ec[HA+dA]][js];for(var ml=h0[mn(ko,js[0])];0<ml;)ml=h0[2*ml+mn(ko,js[ml])];js=-ml,ec[HA+dA]=js}l(tu,Bu,ec,HA,4),Bu+=4,Cu[0+Os]=js}}else js=mn(ko,156)?mn(ko,128)?1:3:mn(ko,163)?2:0,Mc.Ob[0]=js,A(ec,HA,js,4),A(Cu,0,js,4);Mc.Dd=mn(ko,142)?mn(ko,114)?mn(ko,183)?1:3:2:0}if($c.m.Ka)return oc(Fs,7,"Premature end-of-partition0 encountered.");for(;Fs.ja<Fs.za;++Fs.ja){if($c=ba,ko=(Ei=Fs).rb[Ei.sb-1],ec=Ei.rb[Ei.sb+Ei.ja],zo=Ei.ya[Ei.aa+Ei.ja],HA=Ei.kc?zo.Ad:0)ko.la=ec.la=0,zo.Za||(ko.Na=ec.Na=0),zo.Hc=0,zo.Gc=0,zo.ia=0;else{var Lc,gl;if(ko=ec,ec=$c,HA=Ei.Pa.Xc,Cu=Ei.ya[Ei.aa+Ei.ja],Mc=Ei.pb[Cu.$b],Os=Cu.ad,tu=0,Bu=Ei.rb[Ei.sb-1],js=dA=0,A(Os,tu,0,384),Cu.Za)var jA=0,Hf=HA[3];else{ml=p(16);var Zc=ko.Na+Bu.Na;if(Zc=sp(ec,HA[1],Zc,Mc.Eb,0,ml,0),ko.Na=Bu.Na=(0<Zc)+0,1<Zc)yh(ml,0,Os,tu);else{var Vu=ml[0]+3>>3;for(ml=0;256>ml;ml+=16)Os[tu+ml]=Vu}jA=1,Hf=HA[0]}var Il=15&ko.la,fA=15&Bu.la;for(ml=0;4>ml;++ml){var xd=1&fA;for(Vu=gl=0;4>Vu;++Vu)Il=Il>>1|(xd=(Zc=sp(ec,Hf,Zc=xd+(1&Il),Mc.Sc,jA,Os,tu))>jA)<<7,gl=gl<<2|(3<Zc?3:1<Zc?2:Os[tu+0]!=0),tu+=16;Il>>=4,fA=fA>>1|xd<<7,dA=(dA<<8|gl)>>>0}for(Hf=Il,jA=fA>>4,Lc=0;4>Lc;Lc+=2){for(gl=0,Il=ko.la>>4+Lc,fA=Bu.la>>4+Lc,ml=0;2>ml;++ml){for(xd=1&fA,Vu=0;2>Vu;++Vu)Zc=xd+(1&Il),Il=Il>>1|(xd=0<(Zc=sp(ec,HA[2],Zc,Mc.Qc,0,Os,tu)))<<3,gl=gl<<2|(3<Zc?3:1<Zc?2:Os[tu+0]!=0),tu+=16;Il>>=2,fA=fA>>1|xd<<5}js|=gl<<4*Lc,Hf|=Il<<4<<Lc,jA|=(240&fA)<<Lc}ko.la=Hf,Bu.la=jA,Cu.Hc=dA,Cu.Gc=js,Cu.ia=43690&js?0:Mc.ia,HA=!(dA|js)}if(0<Ei.L&&(Ei.wa[Ei.Y+Ei.ja]=Ei.gd[zo.$b][zo.Za],Ei.wa[Ei.Y+Ei.ja].La|=!HA),$c.Ka)return oc(Fs,7,"Premature end-of-file encountered.")}if(pm(Fs),Ei=uA,$c=1,zo=(ba=Fs).D,ko=0<ba.L&&ba.M>=ba.zb&&ba.M<=ba.Va,ba.Aa==0)t:{if(zo.M=ba.M,zo.uc=ko,ms(ba,zo),$c=1,zo=(gl=ba.D).Nb,ko=(js=cn[ba.L])*ba.R,ec=js/2*ba.B,ml=16*zo*ba.R,Vu=8*zo*ba.B,HA=ba.sa,Cu=ba.ta-ko+ml,Mc=ba.qa,Os=ba.ra-ec+Vu,tu=ba.Ha,Bu=ba.Ia-ec+Vu,fA=(Il=gl.M)==0,dA=Il>=ba.Va-1,ba.Aa==2&&ms(ba,gl),gl.uc)for(xd=(Zc=ba).D.M,o(Zc.D.uc),gl=Zc.yb;gl<Zc.Hb;++gl){jA=gl,Hf=xd;var Su=(Cd=(zA=Zc).D).Nb;Lc=zA.R;var Cd=Cd.wa[Cd.Y+jA],Bd=zA.sa,Wu=zA.ta+16*Su*Lc+16*jA,Sd=Cd.dd,Ul=Cd.tc;if(Ul!=0)if(o(3<=Ul),zA.L==1)0<jA&&Sm(Bd,Wu,Lc,Ul+4),Cd.La&&A0(Bd,Wu,Lc,Ul),0<Hf&&Mg(Bd,Wu,Lc,Ul+4),Cd.La&&Em(Bd,Wu,Lc,Ul);else{var Ed=zA.B,jf=zA.qa,jp=zA.ra+8*Su*Ed+8*jA,p0=zA.Ha,zA=zA.Ia+8*Su*Ed+8*jA;Su=Cd.ld,0<jA&&(zc(Bd,Wu,Lc,Ul+4,Sd,Su),Rp(jf,jp,p0,zA,Ed,Ul+4,Sd,Su)),Cd.La&&(Bm(Bd,Wu,Lc,Ul,Sd,Su),ip(jf,jp,p0,zA,Ed,Ul,Sd,Su)),0<Hf&&(gc(Bd,Wu,Lc,Ul+4,Sd,Su),Qf(jf,jp,p0,zA,Ed,Ul+4,Sd,Su)),Cd.La&&($u(Bd,Wu,Lc,Ul,Sd,Su),Fg(jf,jp,p0,zA,Ed,Ul,Sd,Su))}}if(ba.ia&&alert("todo:DitherRow"),Ei.put!=null){if(gl=16*Il,Il=16*(Il+1),fA?(Ei.y=ba.sa,Ei.O=ba.ta+ml,Ei.f=ba.qa,Ei.N=ba.ra+Vu,Ei.ea=ba.Ha,Ei.W=ba.Ia+Vu):(gl-=js,Ei.y=HA,Ei.O=Cu,Ei.f=Mc,Ei.N=Os,Ei.ea=tu,Ei.W=Bu),dA||(Il-=js),Il>Ei.o&&(Il=Ei.o),Ei.F=null,Ei.J=null,ba.Fa!=null&&0<ba.Fa.length&&gl<Il&&(Ei.J=yl(ba,Ei,gl,Il-gl),Ei.F=ba.mb,Ei.F==null&&Ei.F.length==0)){$c=oc(ba,3,"Could not decode alpha data.");break t}gl<Ei.j&&(js=Ei.j-gl,gl=Ei.j,o(!(1&js)),Ei.O+=ba.R*js,Ei.N+=ba.B*(js>>1),Ei.W+=ba.B*(js>>1),Ei.F!=null&&(Ei.J+=Ei.width*js)),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,$c=Ei.put(Ei))}zo+1!=ba.Ic||dA||(l(ba.sa,ba.ta-ko,HA,Cu+16*ba.R,ko),l(ba.qa,ba.ra-ec,Mc,Os+8*ba.B,ec),l(ba.Ha,ba.Ia-ec,tu,Bu+8*ba.B,ec))}if(!$c)return oc(Fs,6,"Output aborted.")}return 1}(xt,ir)),ir.bc!=null&&ir.bc(ir),gr&=1}return gr?(xt.cb=0,gr):0})(h,ve)||(B=h.a)}}else B=h.a}B==0&&We.Oa!=null&&We.Oa.fd&&(B=xm(We.ba))}We=B}Ze=We!=0?null:11>Ze?at.f.RGBA.eb:at.f.kb.y}else Ze=null;return Ze};var Qi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Z(Mt,Cr){for(var it="",wt=0;wt<4;wt++)it+=String.fromCharCode(Mt[Cr++]);return it}function oe(Mt,Cr){return Mt[Cr+0]|Mt[Cr+1]<<8}function Re(Mt,Cr){return(Mt[Cr+0]|Mt[Cr+1]<<8|Mt[Cr+2]<<16)>>>0}function $e(Mt,Cr){return(Mt[Cr+0]|Mt[Cr+1]<<8|Mt[Cr+2]<<16|Mt[Cr+3]<<24)>>>0}new U;var ae=[0],mt=[0],ut=[],yt=new U,ot=n,Gt=function(Mt,Cr){var it={},wt=0,Wt=!1,Ht=0,Tr=0;if(it.frames=[],!function(rt,It){for(var Ot=0;Ot<4;Ot++)if(rt[It+Ot]!="RIFF".charCodeAt(Ot))return!0;return!1}(Mt,Cr)){for($e(Mt,Cr+=4),Cr+=8;Cr<Mt.length;){var Zr=Z(Mt,Cr),Jr=$e(Mt,Cr+=4);Cr+=4;var Lr=Jr+(1&Jr);switch(Zr){case"VP8 ":case"VP8L":it.frames[wt]===void 0&&(it.frames[wt]={}),(Bn=it.frames[wt]).src_off=Wt?Tr:Cr-8,Bn.src_size=Ht+Jr+8,wt++,Wt&&(Wt=!1,Ht=0,Tr=0);break;case"VP8X":(Bn=it.header={}).feature_flags=Mt[Cr];var Gr=Cr+4;Bn.canvas_width=1+Re(Mt,Gr),Gr+=3,Bn.canvas_height=1+Re(Mt,Gr),Gr+=3;break;case"ALPH":Wt=!0,Ht=Lr+8,Tr=Cr-8;break;case"ANIM":(Bn=it.header).bgcolor=$e(Mt,Cr),Gr=Cr+4,Bn.loop_count=oe(Mt,Gr),Gr+=2;break;case"ANMF":var $n,Bn;(Bn=it.frames[wt]={}).offset_x=2*Re(Mt,Cr),Cr+=3,Bn.offset_y=2*Re(Mt,Cr),Cr+=3,Bn.width=1+Re(Mt,Cr),Cr+=3,Bn.height=1+Re(Mt,Cr),Cr+=3,Bn.duration=Re(Mt,Cr),Cr+=3,$n=Mt[Cr++],Bn.dispose=1&$n,Bn.blend=$n>>1&1}Zr!="ANMF"&&(Cr+=Lr)}return it}}(ot,0);Gt.response=ot,Gt.rgbaoutput=!0,Gt.dataurl=!1;var Rt=Gt.header?Gt.header:null,Ft=Gt.frames?Gt.frames:null;if(Rt){Rt.loop_counter=Rt.loop_count,ae=[Rt.canvas_height],mt=[Rt.canvas_width];for(var Mr=0;Mr<Ft.length&&Ft[Mr].blend!=0;Mr++);}var rn=Ft[0],Wr=yt.WebPDecodeRGBA(ot,rn.src_off,rn.src_size,mt,ae);rn.rgba=Wr,rn.imgwidth=mt[0],rn.imgheight=ae[0];for(var ar=0;ar<mt[0]*ae[0]*4;ar++)ut[ar]=Wr[ar];return this.width=mt,this.height=ae,this.data=ut,this}(function(n){var o,a,l,A,p,N,E,U,Z,oe=function(rt){return rt=rt||{},this.isStrokeTransparent=rt.isStrokeTransparent||!1,this.strokeOpacity=rt.strokeOpacity||1,this.strokeStyle=rt.strokeStyle||"#000000",this.fillStyle=rt.fillStyle||"#000000",this.isFillTransparent=rt.isFillTransparent||!1,this.fillOpacity=rt.fillOpacity||1,this.font=rt.font||"10px sans-serif",this.textBaseline=rt.textBaseline||"alphabetic",this.textAlign=rt.textAlign||"left",this.lineWidth=rt.lineWidth||1,this.lineJoin=rt.lineJoin||"miter",this.lineCap=rt.lineCap||"butt",this.path=rt.path||[],this.transform=rt.transform!==void 0?rt.transform.clone():new U,this.globalCompositeOperation=rt.globalCompositeOperation||"normal",this.globalAlpha=rt.globalAlpha||1,this.clip_path=rt.clip_path||[],this.currentPoint=rt.currentPoint||new N,this.miterLimit=rt.miterLimit||10,this.lastPoint=rt.lastPoint||new N,this.lineDashOffset=rt.lineDashOffset||0,this.lineDash=rt.lineDash||[],this.margin=rt.margin||[0,0,0,0],this.prevPageLastElemOffset=rt.prevPageLastElemOffset||0,this.ignoreClearRect=typeof rt.ignoreClearRect!="boolean"||rt.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new Re(this),o=this.internal.f2,a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,A=this.internal.getHorizontalCoordinate,p=this.internal.getVerticalCoordinate,N=this.internal.Point,E=this.internal.Rectangle,U=this.internal.Matrix,Z=new oe}]);var Re=function(rt){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var It=rt;Object.defineProperty(this,"pdf",{get:function(){return It}});var Ot=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ot},set:function(gt){Ot=!!gt}});var Jt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Jt},set:function(gt){Jt=!!gt}});var fr=0;Object.defineProperty(this,"posX",{get:function(){return fr},set:function(gt){isNaN(gt)||(fr=gt)}});var Er=0;Object.defineProperty(this,"posY",{get:function(){return Er},set:function(gt){isNaN(gt)||(Er=gt)}}),Object.defineProperty(this,"margin",{get:function(){return Z.margin},set:function(gt){var Li;typeof gt=="number"?Li=[gt,gt,gt,gt]:((Li=new Array(4))[0]=gt[0],Li[1]=gt.length>=2?gt[1]:Li[0],Li[2]=gt.length>=3?gt[2]:Li[0],Li[3]=gt.length>=4?gt[3]:Li[1]),Z.margin=Li}});var Kr=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Kr},set:function(gt){Kr=gt}});var $r=0;Object.defineProperty(this,"lastBreak",{get:function(){return $r},set:function(gt){$r=gt}});var mn=[];Object.defineProperty(this,"pageBreaks",{get:function(){return mn},set:function(gt){mn=gt}}),Object.defineProperty(this,"ctx",{get:function(){return Z},set:function(gt){gt instanceof oe&&(Z=gt)}}),Object.defineProperty(this,"path",{get:function(){return Z.path},set:function(gt){Z.path=gt}});var Hn=[];Object.defineProperty(this,"ctxStack",{get:function(){return Hn},set:function(gt){Hn=gt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(gt){var Li;Li=$e(gt),this.ctx.fillStyle=Li.style,this.ctx.isFillTransparent=Li.a===0,this.ctx.fillOpacity=Li.a,this.pdf.setFillColor(Li.r,Li.g,Li.b,{a:Li.a}),this.pdf.setTextColor(Li.r,Li.g,Li.b,{a:Li.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(gt){var Li=$e(gt);this.ctx.strokeStyle=Li.style,this.ctx.isStrokeTransparent=Li.a===0,this.ctx.strokeOpacity=Li.a,Li.a===0?this.pdf.setDrawColor(255,255,255):(Li.a,this.pdf.setDrawColor(Li.r,Li.g,Li.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(gt){["butt","round","square"].indexOf(gt)!==-1&&(this.ctx.lineCap=gt,this.pdf.setLineCap(gt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(gt){isNaN(gt)||(this.ctx.lineWidth=gt,this.pdf.setLineWidth(gt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(gt){["bevel","round","miter"].indexOf(gt)!==-1&&(this.ctx.lineJoin=gt,this.pdf.setLineJoin(gt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(gt){isNaN(gt)||(this.ctx.miterLimit=gt,this.pdf.setMiterLimit(gt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(gt){this.ctx.textBaseline=gt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(gt){["right","end","center","left","start"].indexOf(gt)!==-1&&(this.ctx.textAlign=gt)}});var gi=null,Ci=null,Sa=null;Object.defineProperty(this,"fontFaces",{get:function(){return Sa},set:function(gt){gi=null,Ci=null,Sa=gt}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(gt){var Li;if(this.ctx.font=gt,(Li=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(gt))!==null){var Oo=Li[1];Li[2];var Ha=Li[3],Un=Li[4];Li[5];var Da=Li[6],Oi=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Un)[2];Un=Math.floor(Oi==="px"?parseFloat(Un)*this.pdf.internal.scaleFactor:Oi==="em"?parseFloat(Un)*this.pdf.getFontSize():parseFloat(Un)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Un);var xa=function(Ca){var pc,ws,Po=[],Ko=Ca.trim();if(Ko==="")return Xm;if(Ko in MA)return[MA[Ko]];for(;Ko!=="";){switch(ws=null,pc=(Ko=$d(Ko)).charAt(0)){case'"':case"'":ws=qA(Ko.substring(1),pc);break;default:ws=fd(Ko)}if(ws===null||(Po.push(ws[0]),(Ko=$d(ws[1]))!==""&&Ko.charAt(0)!==","))return Xm;Ko=Ko.replace(/^,/,"")}return Po}(Da);if(this.fontFaces){var La=function(Ca,pc){var ws=Ca.getFontList(),Po=JSON.stringify(ws);if(gi===null||Ci!==Po){var Ko=function(Ol){var Ea=[];return Object.keys(Ol).forEach(function(dl){Ol[dl].forEach(function(Ya){var fo=null;switch(Ya){case"bold":fo={family:dl,weight:"bold"};break;case"italic":fo={family:dl,style:"italic"};break;case"bolditalic":fo={family:dl,weight:"bold",style:"italic"};break;case"":case"normal":fo={family:dl}}fo!==null&&(fo.ref={name:dl,style:Ya},Ea.push(fo))})}),Ea}(ws);gi=function(Ol){for(var Ea={},dl=0;dl<Ol.length;++dl){var Ya=YA(Ol[dl]),fo=Ya.family,al=Ya.stretch,no=Ya.style,Na=Ya.weight;Ea[fo]=Ea[fo]||{},Ea[fo][al]=Ea[fo][al]||{},Ea[fo][al][no]=Ea[fo][al][no]||{},Ea[fo][al][no][Na]=Ya}return Ea}(Ko.concat(pc)),Ci=Po}return gi}(this.pdf,this.fontFaces),is=xa.map(function(Ca){return{family:Ca,stretch:"normal",weight:Ha,style:Oo}}),as=function(Ca,pc,ws){for(var Po=(ws=ws||{}).defaultFontFamily||"times",Ko=Object.assign({},Tu,ws.genericFontFamilies||{}),Ol=null,Ea=null,dl=0;dl<pc.length;++dl)if(Ko[(Ol=YA(pc[dl])).family]&&(Ol.family=Ko[Ol.family]),Ca.hasOwnProperty(Ol.family)){Ea=Ca[Ol.family];break}if(!(Ea=Ea||Ca[Po]))throw new Error("Could not find a font-family for the rule '"+Uu(Ol)+"' and default family '"+Po+"'.");if(Ea=function(Ya,fo){if(fo[Ya])return fo[Ya];var al=Yc[Ya],no=al<=Yc.normal?-1:1,Na=du(fo,dd,al,no);if(!Na)throw new Error("Could not find a matching font-stretch value for "+Ya);return Na}(Ol.stretch,Ea),Ea=function(Ya,fo){if(fo[Ya])return fo[Ya];for(var al=Ec[Ya],no=0;no<al.length;++no)if(fo[al[no]])return fo[al[no]];throw new Error("Could not find a matching font-style for "+Ya)}(Ol.style,Ea),!(Ea=function(Ya,fo){if(fo[Ya])return fo[Ya];if(Ya===400&&fo[500])return fo[500];if(Ya===500&&fo[400])return fo[400];var al=uu[Ya],no=du(fo,sA,al,Ya<400?-1:1);if(!no)throw new Error("Could not find a matching font-weight for value "+Ya);return no}(Ol.weight,Ea)))throw new Error("Failed to resolve a font for the rule '"+Uu(Ol)+"'.");return Ea}(La,is);this.pdf.setFont(as.ref.name,as.ref.style)}else{var Ja="";(Ha==="bold"||parseInt(Ha,10)>=700||Oo==="bold")&&(Ja="bold"),Oo==="italic"&&(Ja+="italic"),Ja.length===0&&(Ja="normal");for(var Xo="",Qo={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ha=0;ha<xa.length;ha++){if(this.pdf.internal.getFont(xa[ha],Ja,{noFallback:!0,disableWarning:!0})!==void 0){Xo=xa[ha];break}if(Ja==="bolditalic"&&this.pdf.internal.getFont(xa[ha],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Xo=xa[ha],Ja="bold";else if(this.pdf.internal.getFont(xa[ha],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Xo=xa[ha],Ja="normal";break}}if(Xo===""){for(var Eo=0;Eo<xa.length;Eo++)if(Qo[xa[Eo]]){Xo=Qo[xa[Eo]];break}}Xo=Xo===""?"Times":Xo,this.pdf.setFont(Xo,Ja)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(gt){this.ctx.globalCompositeOperation=gt}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(gt){this.ctx.globalAlpha=gt}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(gt){this.ctx.lineDashOffset=gt,Bn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(gt){this.ctx.lineDash=gt,Bn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(gt){this.ctx.ignoreClearRect=!!gt}})};Re.prototype.setLineDash=function(rt){this.lineDash=rt},Re.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Re.prototype.fill=function(){Ft.call(this,"fill",!1)},Re.prototype.stroke=function(){Ft.call(this,"stroke",!1)},Re.prototype.beginPath=function(){this.path=[{type:"begin"}]},Re.prototype.moveTo=function(rt,It){if(isNaN(rt)||isNaN(It))throw Ns.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ot=this.ctx.transform.applyToPoint(new N(rt,It));this.path.push({type:"mt",x:Ot.x,y:Ot.y}),this.ctx.lastPoint=new N(rt,It)},Re.prototype.closePath=function(){var rt=new N(0,0),It=0;for(It=this.path.length-1;It!==-1;It--)if(this.path[It].type==="begin"&&(0,pe.Z)(this.path[It+1])==="object"&&typeof this.path[It+1].x=="number"){rt=new N(this.path[It+1].x,this.path[It+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new N(rt.x,rt.y)},Re.prototype.lineTo=function(rt,It){if(isNaN(rt)||isNaN(It))throw Ns.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ot=this.ctx.transform.applyToPoint(new N(rt,It));this.path.push({type:"lt",x:Ot.x,y:Ot.y}),this.ctx.lastPoint=new N(Ot.x,Ot.y)},Re.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Ft.call(this,null,!0)},Re.prototype.quadraticCurveTo=function(rt,It,Ot,Jt){if(isNaN(Ot)||isNaN(Jt)||isNaN(rt)||isNaN(It))throw Ns.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var fr=this.ctx.transform.applyToPoint(new N(Ot,Jt)),Er=this.ctx.transform.applyToPoint(new N(rt,It));this.path.push({type:"qct",x1:Er.x,y1:Er.y,x:fr.x,y:fr.y}),this.ctx.lastPoint=new N(fr.x,fr.y)},Re.prototype.bezierCurveTo=function(rt,It,Ot,Jt,fr,Er){if(isNaN(fr)||isNaN(Er)||isNaN(rt)||isNaN(It)||isNaN(Ot)||isNaN(Jt))throw Ns.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Kr=this.ctx.transform.applyToPoint(new N(fr,Er)),$r=this.ctx.transform.applyToPoint(new N(rt,It)),mn=this.ctx.transform.applyToPoint(new N(Ot,Jt));this.path.push({type:"bct",x1:$r.x,y1:$r.y,x2:mn.x,y2:mn.y,x:Kr.x,y:Kr.y}),this.ctx.lastPoint=new N(Kr.x,Kr.y)},Re.prototype.arc=function(rt,It,Ot,Jt,fr,Er){if(isNaN(rt)||isNaN(It)||isNaN(Ot)||isNaN(Jt)||isNaN(fr))throw Ns.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Er=!!Er,!this.ctx.transform.isIdentity){var Kr=this.ctx.transform.applyToPoint(new N(rt,It));rt=Kr.x,It=Kr.y;var $r=this.ctx.transform.applyToPoint(new N(0,Ot)),mn=this.ctx.transform.applyToPoint(new N(0,0));Ot=Math.sqrt(Math.pow($r.x-mn.x,2)+Math.pow($r.y-mn.y,2))}Math.abs(fr-Jt)>=2*Math.PI&&(Jt=0,fr=2*Math.PI),this.path.push({type:"arc",x:rt,y:It,radius:Ot,startAngle:Jt,endAngle:fr,counterclockwise:Er})},Re.prototype.arcTo=function(rt,It,Ot,Jt,fr){throw new Error("arcTo not implemented.")},Re.prototype.rect=function(rt,It,Ot,Jt){if(isNaN(rt)||isNaN(It)||isNaN(Ot)||isNaN(Jt))throw Ns.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(rt,It),this.lineTo(rt+Ot,It),this.lineTo(rt+Ot,It+Jt),this.lineTo(rt,It+Jt),this.lineTo(rt,It),this.lineTo(rt+Ot,It),this.lineTo(rt,It)},Re.prototype.fillRect=function(rt,It,Ot,Jt){if(isNaN(rt)||isNaN(It)||isNaN(Ot)||isNaN(Jt))throw Ns.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ae.call(this)){var fr={};this.lineCap!=="butt"&&(fr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(fr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(rt,It,Ot,Jt),this.fill(),fr.hasOwnProperty("lineCap")&&(this.lineCap=fr.lineCap),fr.hasOwnProperty("lineJoin")&&(this.lineJoin=fr.lineJoin)}},Re.prototype.strokeRect=function(rt,It,Ot,Jt){if(isNaN(rt)||isNaN(It)||isNaN(Ot)||isNaN(Jt))throw Ns.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");mt.call(this)||(this.beginPath(),this.rect(rt,It,Ot,Jt),this.stroke())},Re.prototype.clearRect=function(rt,It,Ot,Jt){if(isNaN(rt)||isNaN(It)||isNaN(Ot)||isNaN(Jt))throw Ns.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(rt,It,Ot,Jt))},Re.prototype.save=function(rt){rt=typeof rt!="boolean"||rt;for(var It=this.pdf.internal.getCurrentPageInfo().pageNumber,Ot=0;Ot<this.pdf.internal.getNumberOfPages();Ot++)this.pdf.setPage(Ot+1),this.pdf.internal.out("q");if(this.pdf.setPage(It),rt){this.ctx.fontSize=this.pdf.internal.getFontSize();var Jt=new oe(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Jt}},Re.prototype.restore=function(rt){rt=typeof rt!="boolean"||rt;for(var It=this.pdf.internal.getCurrentPageInfo().pageNumber,Ot=0;Ot<this.pdf.internal.getNumberOfPages();Ot++)this.pdf.setPage(Ot+1),this.pdf.internal.out("Q");this.pdf.setPage(It),rt&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Re.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var $e=function(rt){var It,Ot,Jt,fr;if(rt.isCanvasGradient===!0&&(rt=rt.getColor()),!rt)return{r:0,g:0,b:0,a:0,style:rt};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(rt))It=0,Ot=0,Jt=0,fr=0;else{var Er=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(rt);if(Er!==null)It=parseInt(Er[1]),Ot=parseInt(Er[2]),Jt=parseInt(Er[3]),fr=1;else if((Er=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(rt))!==null)It=parseInt(Er[1]),Ot=parseInt(Er[2]),Jt=parseInt(Er[3]),fr=parseFloat(Er[4]);else{if(fr=1,typeof rt=="string"&&rt.charAt(0)!=="#"){var Kr=new wp(rt);rt=Kr.ok?Kr.toHex():"#000000"}rt.length===4?(It=rt.substring(1,2),It+=It,Ot=rt.substring(2,3),Ot+=Ot,Jt=rt.substring(3,4),Jt+=Jt):(It=rt.substring(1,3),Ot=rt.substring(3,5),Jt=rt.substring(5,7)),It=parseInt(It,16),Ot=parseInt(Ot,16),Jt=parseInt(Jt,16)}}return{r:It,g:Ot,b:Jt,a:fr,style:rt}},ae=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},mt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Re.prototype.fillText=function(rt,It,Ot,Jt){if(isNaN(It)||isNaN(Ot)||typeof rt!="string")throw Ns.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Jt=isNaN(Jt)?void 0:Jt,!ae.call(this)){var fr=Lr(this.ctx.transform.rotation),Er=this.ctx.transform.scaleX;wt.call(this,{text:rt,x:It,y:Ot,scale:Er,angle:fr,align:this.textAlign,maxWidth:Jt})}},Re.prototype.strokeText=function(rt,It,Ot,Jt){if(isNaN(It)||isNaN(Ot)||typeof rt!="string")throw Ns.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!mt.call(this)){Jt=isNaN(Jt)?void 0:Jt;var fr=Lr(this.ctx.transform.rotation),Er=this.ctx.transform.scaleX;wt.call(this,{text:rt,x:It,y:Ot,scale:Er,renderingMode:"stroke",angle:fr,align:this.textAlign,maxWidth:Jt})}},Re.prototype.measureText=function(rt){if(typeof rt!="string")throw Ns.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var It=this.pdf,Ot=this.pdf.internal.scaleFactor,Jt=It.internal.getFontSize(),fr=It.getStringUnitWidth(rt)*Jt/It.internal.scaleFactor;return new function(Er){var Kr=(Er=Er||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Kr}}),this}({width:fr*=Math.round(96*Ot/72*1e4)/1e4})},Re.prototype.scale=function(rt,It){if(isNaN(rt)||isNaN(It))throw Ns.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ot=new U(rt,0,0,It,0,0);this.ctx.transform=this.ctx.transform.multiply(Ot)},Re.prototype.rotate=function(rt){if(isNaN(rt))throw Ns.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var It=new U(Math.cos(rt),Math.sin(rt),-Math.sin(rt),Math.cos(rt),0,0);this.ctx.transform=this.ctx.transform.multiply(It)},Re.prototype.translate=function(rt,It){if(isNaN(rt)||isNaN(It))throw Ns.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ot=new U(1,0,0,1,rt,It);this.ctx.transform=this.ctx.transform.multiply(Ot)},Re.prototype.transform=function(rt,It,Ot,Jt,fr,Er){if(isNaN(rt)||isNaN(It)||isNaN(Ot)||isNaN(Jt)||isNaN(fr)||isNaN(Er))throw Ns.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Kr=new U(rt,It,Ot,Jt,fr,Er);this.ctx.transform=this.ctx.transform.multiply(Kr)},Re.prototype.setTransform=function(rt,It,Ot,Jt,fr,Er){rt=isNaN(rt)?1:rt,It=isNaN(It)?0:It,Ot=isNaN(Ot)?0:Ot,Jt=isNaN(Jt)?1:Jt,fr=isNaN(fr)?0:fr,Er=isNaN(Er)?0:Er,this.ctx.transform=new U(rt,It,Ot,Jt,fr,Er)};var ut=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Re.prototype.drawImage=function(rt,It,Ot,Jt,fr,Er,Kr,$r,mn){var Hn=this.pdf.getImageProperties(rt),gi=1,Ci=1,Sa=1,gt=1;Jt!==void 0&&$r!==void 0&&(Sa=$r/Jt,gt=mn/fr,gi=Hn.width/Jt*$r/Jt,Ci=Hn.height/fr*mn/fr),Er===void 0&&(Er=It,Kr=Ot,It=0,Ot=0),Jt!==void 0&&$r===void 0&&($r=Jt,mn=fr),Jt===void 0&&$r===void 0&&($r=Hn.width,mn=Hn.height);var Li=this.ctx.transform.decompose(),Oo=Lr(Li.rotate.shx),Ha=new U,Un=(Ha=(Ha=(Ha=Ha.multiply(Li.translate)).multiply(Li.skew)).multiply(Li.scale)).applyToRectangle(new E(Er-It*Sa,Kr-Ot*gt,Jt*gi,fr*Ci));if(this.autoPaging){for(var Da,Oi=yt.call(this,Un),xa=[],La=0;La<Oi.length;La+=1)xa.indexOf(Oi[La])===-1&&xa.push(Oi[La]);Rt(xa);for(var is=xa[0],as=xa[xa.length-1],Ja=is;Ja<as+1;Ja++){this.pdf.setPage(Ja);var Xo=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Qo=Ja===1?this.posY+this.margin[0]:this.margin[0],ha=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Eo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ca=Ja===1?0:ha+(Ja-2)*Eo;if(this.ctx.clip_path.length!==0){var pc=this.path;Da=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Da,this.posX+this.margin[3],-Ca+Qo+this.ctx.prevPageLastElemOffset),Mr.call(this,"fill",!0),this.path=pc}var ws=JSON.parse(JSON.stringify(Un));ws=Gt([ws],this.posX+this.margin[3],-Ca+Qo+this.ctx.prevPageLastElemOffset)[0];var Po=(Ja>is||Ja<as)&&ut.call(this);Po&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xo,Eo,null).clip().discardPath()),this.pdf.addImage(rt,"JPEG",ws.x,ws.y,ws.w,ws.h,null,null,Oo),Po&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(rt,"JPEG",Un.x,Un.y,Un.w,Un.h,null,null,Oo)};var yt=function(rt,It,Ot){var Jt=[];It=It||this.pdf.internal.pageSize.width,Ot=Ot||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var fr=this.posY+this.ctx.prevPageLastElemOffset;switch(rt.type){default:case"mt":case"lt":Jt.push(Math.floor((rt.y+fr)/Ot)+1);break;case"arc":Jt.push(Math.floor((rt.y+fr-rt.radius)/Ot)+1),Jt.push(Math.floor((rt.y+fr+rt.radius)/Ot)+1);break;case"qct":var Er=Gr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,rt.x1,rt.y1,rt.x,rt.y);Jt.push(Math.floor((Er.y+fr)/Ot)+1),Jt.push(Math.floor((Er.y+Er.h+fr)/Ot)+1);break;case"bct":var Kr=$n(this.ctx.lastPoint.x,this.ctx.lastPoint.y,rt.x1,rt.y1,rt.x2,rt.y2,rt.x,rt.y);Jt.push(Math.floor((Kr.y+fr)/Ot)+1),Jt.push(Math.floor((Kr.y+Kr.h+fr)/Ot)+1);break;case"rect":Jt.push(Math.floor((rt.y+fr)/Ot)+1),Jt.push(Math.floor((rt.y+rt.h+fr)/Ot)+1)}for(var $r=0;$r<Jt.length;$r+=1)for(;this.pdf.internal.getNumberOfPages()<Jt[$r];)ot.call(this);return Jt},ot=function(){var rt=this.fillStyle,It=this.strokeStyle,Ot=this.font,Jt=this.lineCap,fr=this.lineWidth,Er=this.lineJoin;this.pdf.addPage(),this.fillStyle=rt,this.strokeStyle=It,this.font=Ot,this.lineCap=Jt,this.lineWidth=fr,this.lineJoin=Er},Gt=function(rt,It,Ot){for(var Jt=0;Jt<rt.length;Jt++)switch(rt[Jt].type){case"bct":rt[Jt].x2+=It,rt[Jt].y2+=Ot;case"qct":rt[Jt].x1+=It,rt[Jt].y1+=Ot;default:rt[Jt].x+=It,rt[Jt].y+=Ot}return rt},Rt=function(rt){return rt.sort(function(It,Ot){return It-Ot})},Ft=function(rt,It){var Ot=this.fillStyle,Jt=this.strokeStyle,fr=this.lineCap,Er=this.lineWidth,Kr=Math.abs(Er*this.ctx.transform.scaleX),$r=this.lineJoin;if(this.autoPaging){for(var mn,Hn,gi=JSON.parse(JSON.stringify(this.path)),Ci=JSON.parse(JSON.stringify(this.path)),Sa=[],gt=0;gt<Ci.length;gt++)if(Ci[gt].x!==void 0)for(var Li=yt.call(this,Ci[gt]),Oo=0;Oo<Li.length;Oo+=1)Sa.indexOf(Li[Oo])===-1&&Sa.push(Li[Oo]);for(var Ha=0;Ha<Sa.length;Ha++)for(;this.pdf.internal.getNumberOfPages()<Sa[Ha];)ot.call(this);Rt(Sa);for(var Un=Sa[0],Da=Sa[Sa.length-1],Oi=Un;Oi<Da+1;Oi++){this.pdf.setPage(Oi),this.fillStyle=Ot,this.strokeStyle=Jt,this.lineCap=fr,this.lineWidth=Kr,this.lineJoin=$r;var xa=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],La=Oi===1?this.posY+this.margin[0]:this.margin[0],is=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],as=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ja=Oi===1?0:is+(Oi-2)*as;if(this.ctx.clip_path.length!==0){var Xo=this.path;mn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(mn,this.posX+this.margin[3],-Ja+La+this.ctx.prevPageLastElemOffset),Mr.call(this,rt,!0),this.path=Xo}if(Hn=JSON.parse(JSON.stringify(gi)),this.path=Gt(Hn,this.posX+this.margin[3],-Ja+La+this.ctx.prevPageLastElemOffset),It===!1||Oi===0){var Qo=(Oi>Un||Oi<Da)&&ut.call(this);Qo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xa,as,null).clip().discardPath()),Mr.call(this,rt,It),Qo&&this.pdf.restoreGraphicsState()}this.lineWidth=Er}this.path=gi}else this.lineWidth=Kr,Mr.call(this,rt,It),this.lineWidth=Er},Mr=function(rt,It){if((rt!=="stroke"||It||!mt.call(this))&&(rt==="stroke"||It||!ae.call(this))){for(var Ot,Jt,fr=[],Er=this.path,Kr=0;Kr<Er.length;Kr++){var $r=Er[Kr];switch($r.type){case"begin":fr.push({begin:!0});break;case"close":fr.push({close:!0});break;case"mt":fr.push({start:$r,deltas:[],abs:[]});break;case"lt":var mn=fr.length;if(Er[Kr-1]&&!isNaN(Er[Kr-1].x)&&(Ot=[$r.x-Er[Kr-1].x,$r.y-Er[Kr-1].y],mn>0)){for(;mn>=0;mn--)if(fr[mn-1].close!==!0&&fr[mn-1].begin!==!0){fr[mn-1].deltas.push(Ot),fr[mn-1].abs.push($r);break}}break;case"bct":Ot=[$r.x1-Er[Kr-1].x,$r.y1-Er[Kr-1].y,$r.x2-Er[Kr-1].x,$r.y2-Er[Kr-1].y,$r.x-Er[Kr-1].x,$r.y-Er[Kr-1].y],fr[fr.length-1].deltas.push(Ot);break;case"qct":var Hn=Er[Kr-1].x+2/3*($r.x1-Er[Kr-1].x),gi=Er[Kr-1].y+2/3*($r.y1-Er[Kr-1].y),Ci=$r.x+2/3*($r.x1-$r.x),Sa=$r.y+2/3*($r.y1-$r.y),gt=$r.x,Li=$r.y;Ot=[Hn-Er[Kr-1].x,gi-Er[Kr-1].y,Ci-Er[Kr-1].x,Sa-Er[Kr-1].y,gt-Er[Kr-1].x,Li-Er[Kr-1].y],fr[fr.length-1].deltas.push(Ot);break;case"arc":fr.push({deltas:[],abs:[],arc:!0}),Array.isArray(fr[fr.length-1].abs)&&fr[fr.length-1].abs.push($r)}}Jt=It?null:rt==="stroke"?"stroke":"fill";for(var Oo=!1,Ha=0;Ha<fr.length;Ha++)if(fr[Ha].arc)for(var Un=fr[Ha].abs,Da=0;Da<Un.length;Da++){var Oi=Un[Da];Oi.type==="arc"?ar.call(this,Oi.x,Oi.y,Oi.radius,Oi.startAngle,Oi.endAngle,Oi.counterclockwise,void 0,It,!Oo):Wt.call(this,Oi.x,Oi.y),Oo=!0}else if(fr[Ha].close===!0)this.pdf.internal.out("h"),Oo=!1;else if(fr[Ha].begin!==!0){var xa=fr[Ha].start.x,La=fr[Ha].start.y;Ht.call(this,fr[Ha].deltas,xa,La),Oo=!0}Jt&&Mt.call(this,Jt),It&&Cr.call(this)}},rn=function(rt){var It=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ot=It*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return rt-Ot;case"top":return rt+It-Ot;case"hanging":return rt+It-2*Ot;case"middle":return rt+It/2-Ot;default:return rt}},Wr=function(rt){return rt+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Re.prototype.createLinearGradient=function(){var rt=function(){};return rt.colorStops=[],rt.addColorStop=function(It,Ot){this.colorStops.push([It,Ot])},rt.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},rt.isCanvasGradient=!0,rt},Re.prototype.createPattern=function(){return this.createLinearGradient()},Re.prototype.createRadialGradient=function(){return this.createLinearGradient()};var ar=function(rt,It,Ot,Jt,fr,Er,Kr,$r,mn){for(var Hn=Zr.call(this,Ot,Jt,fr,Er),gi=0;gi<Hn.length;gi++){var Ci=Hn[gi];gi===0&&(mn?it.call(this,Ci.x1+rt,Ci.y1+It):Wt.call(this,Ci.x1+rt,Ci.y1+It)),Tr.call(this,rt,It,Ci.x2,Ci.y2,Ci.x3,Ci.y3,Ci.x4,Ci.y4)}$r?Cr.call(this):Mt.call(this,Kr)},Mt=function(rt){switch(rt){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Cr=function(){this.pdf.clip(),this.pdf.discardPath()},it=function(rt,It){this.pdf.internal.out(a(rt)+" "+l(It)+" m")},wt=function(rt){var It;switch(rt.align){case"right":case"end":It="right";break;case"center":It="center";break;default:It="left"}var Ot,Jt,fr,Er=this.pdf.getTextDimensions(rt.text),Kr=rn.call(this,rt.y),$r=Wr.call(this,Kr)-Er.h,mn=this.ctx.transform.applyToPoint(new N(rt.x,Kr));if(this.autoPaging){var Hn=this.ctx.transform.decompose(),gi=new U;gi=(gi=(gi=gi.multiply(Hn.translate)).multiply(Hn.skew)).multiply(Hn.scale);for(var Ci=this.ctx.transform.applyToRectangle(new E(rt.x,Kr,Er.w,Er.h)),Sa=gi.applyToRectangle(new E(rt.x,$r,Er.w,Er.h)),gt=yt.call(this,Sa),Li=[],Oo=0;Oo<gt.length;Oo+=1)Li.indexOf(gt[Oo])===-1&&Li.push(gt[Oo]);Rt(Li);for(var Ha=Li[0],Un=Li[Li.length-1],Da=Ha;Da<Un+1;Da++){this.pdf.setPage(Da);var Oi=Da===1?this.posY+this.margin[0]:this.margin[0],xa=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],La=this.pdf.internal.pageSize.height-this.margin[2],is=La-this.margin[0],as=this.pdf.internal.pageSize.width-this.margin[1],Ja=as-this.margin[3],Xo=Da===1?0:xa+(Da-2)*is;if(this.ctx.clip_path.length!==0){var Qo=this.path;Ot=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Ot,this.posX+this.margin[3],-1*Xo+Oi),Mr.call(this,"fill",!0),this.path=Qo}var ha=Gt([JSON.parse(JSON.stringify(Sa))],this.posX+this.margin[3],-Xo+Oi+this.ctx.prevPageLastElemOffset)[0];rt.scale>=.01&&(Jt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Jt*rt.scale),fr=this.lineWidth,this.lineWidth=fr*rt.scale);var Eo=this.autoPaging!=="text";if(Eo||ha.y+ha.h<=La){if(Eo||ha.y>=Oi&&ha.x<=as){var Ca=Eo?rt.text:this.pdf.splitTextToSize(rt.text,rt.maxWidth||as-ha.x)[0],pc=Gt([JSON.parse(JSON.stringify(Ci))],this.posX+this.margin[3],-Xo+Oi+this.ctx.prevPageLastElemOffset)[0],ws=Eo&&(Da>Ha||Da<Un)&&ut.call(this);ws&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ja,is,null).clip().discardPath()),this.pdf.text(Ca,pc.x,pc.y,{angle:rt.angle,align:It,renderingMode:rt.renderingMode}),ws&&this.pdf.restoreGraphicsState()}}else ha.y<La&&(this.ctx.prevPageLastElemOffset+=La-ha.y);rt.scale>=.01&&(this.pdf.setFontSize(Jt),this.lineWidth=fr)}}else rt.scale>=.01&&(Jt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Jt*rt.scale),fr=this.lineWidth,this.lineWidth=fr*rt.scale),this.pdf.text(rt.text,mn.x+this.posX,mn.y+this.posY,{angle:rt.angle,align:It,renderingMode:rt.renderingMode,maxWidth:rt.maxWidth}),rt.scale>=.01&&(this.pdf.setFontSize(Jt),this.lineWidth=fr)},Wt=function(rt,It,Ot,Jt){Ot=Ot||0,Jt=Jt||0,this.pdf.internal.out(a(rt+Ot)+" "+l(It+Jt)+" l")},Ht=function(rt,It,Ot){return this.pdf.lines(rt,It,Ot,null,null)},Tr=function(rt,It,Ot,Jt,fr,Er,Kr,$r){this.pdf.internal.out([o(A(Ot+rt)),o(p(Jt+It)),o(A(fr+rt)),o(p(Er+It)),o(A(Kr+rt)),o(p($r+It)),"c"].join(" "))},Zr=function(rt,It,Ot,Jt){for(var fr=2*Math.PI,Er=Math.PI/2;It>Ot;)It-=fr;var Kr=Math.abs(Ot-It);Kr<fr&&Jt&&(Kr=fr-Kr);for(var $r=[],mn=Jt?-1:1,Hn=It;Kr>1e-5;){var gi=Hn+mn*Math.min(Kr,Er);$r.push(Jr.call(this,rt,Hn,gi)),Kr-=Math.abs(gi-Hn),Hn=gi}return $r},Jr=function(rt,It,Ot){var Jt=(Ot-It)/2,fr=rt*Math.cos(Jt),Er=rt*Math.sin(Jt),Kr=fr,$r=-Er,mn=Kr*Kr+$r*$r,Hn=mn+Kr*fr+$r*Er,gi=4/3*(Math.sqrt(2*mn*Hn)-Hn)/(Kr*Er-$r*fr),Ci=Kr-gi*$r,Sa=$r+gi*Kr,gt=Ci,Li=-Sa,Oo=Jt+It,Ha=Math.cos(Oo),Un=Math.sin(Oo);return{x1:rt*Math.cos(It),y1:rt*Math.sin(It),x2:Ci*Ha-Sa*Un,y2:Ci*Un+Sa*Ha,x3:gt*Ha-Li*Un,y3:gt*Un+Li*Ha,x4:rt*Math.cos(Ot),y4:rt*Math.sin(Ot)}},Lr=function(rt){return 180*rt/Math.PI},Gr=function(rt,It,Ot,Jt,fr,Er){var Kr=rt+.5*(Ot-rt),$r=It+.5*(Jt-It),mn=fr+.5*(Ot-fr),Hn=Er+.5*(Jt-Er),gi=Math.min(rt,fr,Kr,mn),Ci=Math.max(rt,fr,Kr,mn),Sa=Math.min(It,Er,$r,Hn),gt=Math.max(It,Er,$r,Hn);return new E(gi,Sa,Ci-gi,gt-Sa)},$n=function(rt,It,Ot,Jt,fr,Er,Kr,$r){var mn,Hn,gi,Ci,Sa,gt,Li,Oo,Ha,Un,Da,Oi,xa,La,is=Ot-rt,as=Jt-It,Ja=fr-Ot,Xo=Er-Jt,Qo=Kr-fr,ha=$r-Er;for(Hn=0;Hn<41;Hn++)Ha=(Li=(gi=rt+(mn=Hn/40)*is)+mn*((Sa=Ot+mn*Ja)-gi))+mn*(Sa+mn*(fr+mn*Qo-Sa)-Li),Un=(Oo=(Ci=It+mn*as)+mn*((gt=Jt+mn*Xo)-Ci))+mn*(gt+mn*(Er+mn*ha-gt)-Oo),Hn==0?(Da=Ha,Oi=Un,xa=Ha,La=Un):(Da=Math.min(Da,Ha),Oi=Math.min(Oi,Un),xa=Math.max(xa,Ha),La=Math.max(La,Un));return new E(Math.round(Da),Math.round(Oi),Math.round(xa-Da),Math.round(La-Oi))},Bn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var rt,It,Ot=(rt=this.ctx.lineDash,It=this.ctx.lineDashOffset,JSON.stringify({lineDash:rt,lineDashOffset:It}));this.prevLineDash!==Ot&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ot)}}})(da.API),function(n){var o=function(N){var E,U,Z,oe,Re,$e,ae,mt,ut,yt;for(/[^\x00-\xFF]/.test(N),U=[],Z=0,oe=(N+=E="\0\0\0\0".slice(N.length%4||4)).length;oe>Z;Z+=4)(Re=(N.charCodeAt(Z)<<24)+(N.charCodeAt(Z+1)<<16)+(N.charCodeAt(Z+2)<<8)+N.charCodeAt(Z+3))!==0?($e=(Re=((Re=((Re=((Re=(Re-(yt=Re%85))/85)-(ut=Re%85))/85)-(mt=Re%85))/85)-(ae=Re%85))/85)%85,U.push($e+33,ae+33,mt+33,ut+33,yt+33)):U.push(122);return function(ot,Gt){for(var Rt=Gt;Rt>0;Rt--)ot.pop()}(U,E.length),String.fromCharCode.apply(String,U)+"~>"},a=function(N){var E,U,Z,oe,Re,$e=String,ae="length",mt=255,ut="charCodeAt",yt="slice",ot="replace";for(N[yt](-2),N=N[yt](0,-2)[ot](/\s/g,"")[ot]("z","!!!!!"),Z=[],oe=0,Re=(N+=E="uuuuu"[yt](N[ae]%5||5))[ae];Re>oe;oe+=5)U=52200625*(N[ut](oe)-33)+614125*(N[ut](oe+1)-33)+7225*(N[ut](oe+2)-33)+85*(N[ut](oe+3)-33)+(N[ut](oe+4)-33),Z.push(mt&U>>24,mt&U>>16,mt&U>>8,mt&U);return function(Gt,Rt){for(var Ft=Rt;Ft>0;Ft--)Gt.pop()}(Z,E[ae]),$e.fromCharCode.apply($e,Z)},l=function(N){return N.split("").map(function(E){return("0"+E.charCodeAt().toString(16)).slice(-2)}).join("")+">"},A=function(N){var E=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((N=N.replace(/\s/g,"")).indexOf(">")!==-1&&(N=N.substr(0,N.indexOf(">"))),N.length%2&&(N+="0"),E.test(N)===!1)return"";for(var U="",Z=0;Z<N.length;Z+=2)U+=String.fromCharCode("0x"+(N[Z]+N[Z+1]));return U},p=function(N){for(var E=new Uint8Array(N.length),U=N.length;U--;)E[U]=N.charCodeAt(U);return(E=ii(E)).reduce(function(Z,oe){return Z+String.fromCharCode(oe)},"")};n.processDataByFilters=function(N,E){var U=0,Z=N||"",oe=[];for(typeof(E=E||[])=="string"&&(E=[E]),U=0;U<E.length;U+=1)switch(E[U]){case"ASCII85Decode":case"/ASCII85Decode":Z=a(Z),oe.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Z=o(Z),oe.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Z=A(Z),oe.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Z=l(Z),oe.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Z=p(Z),oe.push("/FlateDecode");break;default:throw new Error('The filter: "'+E[U]+'" is not implemented')}return{data:Z,reverseChain:oe.reverse().join(" ")}}}(da.API),function(n){n.loadFile=function(o,a,l){return function(A,p,N){p=p!==!1,N=typeof N=="function"?N:function(){};var E=void 0;try{E=function(U,Z,oe){var Re=new XMLHttpRequest,$e=0,ae=function(mt){var ut=mt.length,yt=[],ot=String.fromCharCode;for($e=0;$e<ut;$e+=1)yt.push(ot(255&mt.charCodeAt($e)));return yt.join("")};if(Re.open("GET",U,!Z),Re.overrideMimeType("text/plain; charset=x-user-defined"),Z===!1&&(Re.onload=function(){Re.status===200?oe(ae(this.responseText)):oe(void 0)}),Re.send(null),Z&&Re.status===200)return ae(Re.responseText)}(A,p,N)}catch(U){}return E}(o,a,l)},n.loadImageFile=n.loadFile}(da.API),function(n){function o(){return(Ga.html2canvas?Promise.resolve(Ga.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(Ga.DOMPurify?Promise.resolve(Ga.DOMPurify):x.e(7573).then(x.bind(x,7573))).catch(function(E){return Promise.reject(new Error("Could not load dompurify: "+E))}).then(function(E){return E.default?E.default:E})}var l=function(E){var U=(0,pe.Z)(E);return U==="undefined"?"undefined":U==="string"||E instanceof String?"string":U==="number"||E instanceof Number?"number":U==="function"||E instanceof Function?"function":E&&E.constructor===Array?"array":E&&E.nodeType===1?"element":U==="object"?"object":"unknown"},A=function(E,U){var Z=document.createElement(E);for(var oe in U.className&&(Z.className=U.className),U.innerHTML&&U.dompurify&&(Z.innerHTML=U.dompurify.sanitize(U.innerHTML)),U.style)Z.style[oe]=U.style[oe];return Z},p=function E(U,Z){for(var oe=U.nodeType===3?document.createTextNode(U.nodeValue):U.cloneNode(!1),Re=U.firstChild;Re;Re=Re.nextSibling)Z!==!0&&Re.nodeType===1&&Re.nodeName==="SCRIPT"||oe.appendChild(E(Re,Z));return U.nodeType===1&&(U.nodeName==="CANVAS"?(oe.width=U.width,oe.height=U.height,oe.getContext("2d").drawImage(U,0,0)):U.nodeName!=="TEXTAREA"&&U.nodeName!=="SELECT"||(oe.value=U.value),oe.addEventListener("load",function(){oe.scrollTop=U.scrollTop,oe.scrollLeft=U.scrollLeft},!0)),oe},N=function E(U){var Z=Object.assign(E.convert(Promise.resolve()),JSON.parse(JSON.stringify(E.template))),oe=E.convert(Promise.resolve(),Z);return(oe=oe.setProgress(1,E,1,[E])).set(U)};(N.prototype=Object.create(Promise.prototype)).constructor=N,N.convert=function(E,U){return E.__proto__=U||N.prototype,E},N.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},N.prototype.from=function(E,U){return this.then(function(){switch(U=U||function(Z){switch(l(Z)){case"string":return"string";case"element":return Z.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(E),U){case"string":return this.then(a).then(function(Z){return this.set({src:A("div",{innerHTML:E,dompurify:Z})})});case"element":return this.set({src:E});case"canvas":return this.set({canvas:E});case"img":return this.set({img:E});default:return this.error("Unknown source type.")}})},N.prototype.to=function(E){switch(E){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},N.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var E={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},U=p(this.prop.src,this.opt.html2canvas.javascriptEnabled);U.tagName==="BODY"&&(E.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=A("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=A("div",{className:"html2pdf__container",style:E}),this.prop.container.appendChild(U),this.prop.container.firstChild.appendChild(A("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},N.prototype.toCanvas=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).then(o).then(function(U){var Z=Object.assign({},this.opt.html2canvas);return delete Z.onrendered,U(this.prop.container,Z)}).then(function(U){(this.opt.html2canvas.onrendered||function(){})(U),this.prop.canvas=U,document.body.removeChild(this.prop.overlay)})},N.prototype.toContext2d=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).then(o).then(function(U){var Z=this.opt.jsPDF,oe=this.opt.fontFaces,Re=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,$e=Object.assign({async:!0,allowTaint:!0,scale:Re,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete $e.onrendered,Z.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Z.context2d.posX=this.opt.x,Z.context2d.posY=this.opt.y,Z.context2d.margin=this.opt.margin,Z.context2d.fontFaces=oe,oe)for(var ae=0;ae<oe.length;++ae){var mt=oe[ae],ut=mt.src.find(function(yt){return yt.format==="truetype"});ut&&Z.addFont(ut.url,mt.ref.name,mt.ref.style)}return $e.windowHeight=$e.windowHeight||0,$e.windowHeight=$e.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):$e.windowHeight,Z.context2d.save(!0),U(this.prop.container,$e)}).then(function(U){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(U),this.prop.canvas=U,document.body.removeChild(this.prop.overlay)})},N.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var E=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=E})},N.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},N.prototype.output=function(E,U,Z){return(Z=Z||"pdf").toLowerCase()==="img"||Z.toLowerCase()==="image"?this.outputImg(E,U):this.outputPdf(E,U)},N.prototype.outputPdf=function(E,U){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(E,U)})},N.prototype.outputImg=function(E){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(E){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+E+'" is not supported.'}})},N.prototype.save=function(E){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(E?{filename:E}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},N.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},N.prototype.set=function(E){if(l(E)!=="object")return this;var U=Object.keys(E||{}).map(function(Z){if(Z in N.template.prop)return function(){this.prop[Z]=E[Z]};switch(Z){case"margin":return this.setMargin.bind(this,E.margin);case"jsPDF":return function(){return this.opt.jsPDF=E.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,E.pageSize);default:return function(){this.opt[Z]=E[Z]}}},this);return this.then(function(){return this.thenList(U)})},N.prototype.get=function(E,U){return this.then(function(){var Z=E in N.template.prop?this.prop[E]:this.opt[E];return U?U(Z):Z})},N.prototype.setMargin=function(E){return this.then(function(){switch(l(E)){case"number":E=[E,E,E,E];case"array":if(E.length===2&&(E=[E[0],E[1],E[0],E[1]]),E.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=E}).then(this.setPageSize)},N.prototype.setPageSize=function(E){function U(Z,oe){return Math.floor(Z*oe/72*96)}return this.then(function(){(E=E||da.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(E.inner={width:E.width-this.opt.margin[1]-this.opt.margin[3],height:E.height-this.opt.margin[0]-this.opt.margin[2]},E.inner.px={width:U(E.inner.width,E.k),height:U(E.inner.height,E.k)},E.inner.ratio=E.inner.height/E.inner.width),this.prop.pageSize=E})},N.prototype.setProgress=function(E,U,Z,oe){return E!=null&&(this.progress.val=E),U!=null&&(this.progress.state=U),Z!=null&&(this.progress.n=Z),oe!=null&&(this.progress.stack=oe),this.progress.ratio=this.progress.val/this.progress.state,this},N.prototype.updateProgress=function(E,U,Z,oe){return this.setProgress(E?this.progress.val+E:null,U||null,Z?this.progress.n+Z:null,oe?this.progress.stack.concat(oe):null)},N.prototype.then=function(E,U){var Z=this;return this.thenCore(E,U,function(oe,Re){return Z.updateProgress(null,null,1,[oe]),Promise.prototype.then.call(this,function($e){return Z.updateProgress(null,oe),$e}).then(oe,Re).then(function($e){return Z.updateProgress(1),$e})})},N.prototype.thenCore=function(E,U,Z){Z=Z||Promise.prototype.then;var oe=this;E&&(E=E.bind(oe)),U&&(U=U.bind(oe));var Re=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?oe:N.convert(Object.assign({},oe),Promise.prototype),$e=Z.call(Re,E,U);return N.convert($e,oe.__proto__)},N.prototype.thenExternal=function(E,U){return Promise.prototype.then.call(this,E,U)},N.prototype.thenList=function(E){var U=this;return E.forEach(function(Z){U=U.thenCore(Z)}),U},N.prototype.catch=function(E){E&&(E=E.bind(this));var U=Promise.prototype.catch.call(this,E);return N.convert(U,this)},N.prototype.catchExternal=function(E){return Promise.prototype.catch.call(this,E)},N.prototype.error=function(E){return this.then(function(){throw new Error(E)})},N.prototype.using=N.prototype.set,N.prototype.saveAs=N.prototype.save,N.prototype.export=N.prototype.output,N.prototype.run=N.prototype.then,da.getPageSize=function(E,U,Z){if((0,pe.Z)(E)==="object"){var oe=E;E=oe.orientation,U=oe.unit||U,Z=oe.format||Z}U=U||"mm",Z=Z||"a4",E=(""+(E||"P")).toLowerCase();var Re,$e=(""+Z).toLowerCase(),ae={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(U){case"pt":Re=1;break;case"mm":Re=72/25.4;break;case"cm":Re=72/2.54;break;case"in":Re=72;break;case"px":Re=.75;break;case"pc":case"em":Re=12;break;case"ex":Re=6;break;default:throw"Invalid unit: "+U}var mt,ut=0,yt=0;if(ae.hasOwnProperty($e))ut=ae[$e][1]/Re,yt=ae[$e][0]/Re;else try{ut=Z[1],yt=Z[0]}catch(ot){throw new Error("Invalid format: "+Z)}if(E==="p"||E==="portrait")E="p",yt>ut&&(mt=yt,yt=ut,ut=mt);else{if(E!=="l"&&E!=="landscape")throw"Invalid orientation: "+E;E="l",ut>yt&&(mt=yt,yt=ut,ut=mt)}return{width:yt,height:ut,unit:U,k:Re,orientation:E}},n.html=function(E,U){(U=U||{}).callback=U.callback||function(){},U.html2canvas=U.html2canvas||{},U.html2canvas.canvas=U.html2canvas.canvas||this.canvas,U.jsPDF=U.jsPDF||this,U.fontFaces=U.fontFaces?U.fontFaces.map(YA):null;var Z=new N(U);return U.worker?Z:Z.from(E).doCallback()}}(da.API),da.API.addJS=function(n){return Hh=n,this.internal.events.subscribe("postPutResources",function(){Kc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Kc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),vg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Hh+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Kc!==void 0&&vg!==void 0&&this.internal.out("/Names <</JavaScript "+Kc+" 0 R>>")}),this},function(n){var o;n.events.push(["postPutResources",function(){var a=this,l=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var A=a.outline.render().split(/\r\n/),p=0;p<A.length;p++){var N=A[p],E=l.exec(N);if(E!=null){var U=E[1];a.internal.newObjectDeferredBegin(U,!1)}a.internal.write(N)}if(this.outline.createNamedDestinations){var Z=this.internal.pages.length,oe=[];for(p=0;p<Z;p++){var Re=a.internal.newObject();oe.push(Re);var $e=a.internal.getPageInfo(p+1);a.internal.write("<< /D["+$e.objId+" 0 R /XYZ null null null]>> endobj")}var ae=a.internal.newObject();for(a.internal.write("<< /Names [ "),p=0;p<oe.length;p++)a.internal.write("(page_"+(p+1)+")"+oe[p]+" 0 R");a.internal.write(" ] >>","endobj"),o=a.internal.newObject(),a.internal.write("<< /Dests "+ae+" 0 R"),a.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var a=this;a.outline.root.children.length>0&&(a.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&a.internal.write("/Names "+o+" 0 R"))}]),n.events.push(["initialized",function(){var a=this;a.outline={createNamedDestinations:!1,root:{children:[]}},a.outline.add=function(l,A,p){var N={title:A,options:p,children:[]};return l==null&&(l=this.root),l.children.push(N),N},a.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=a,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},a.outline.genIds_r=function(l){l.id=a.internal.newObjectDeferred();for(var A=0;A<l.children.length;A++)this.genIds_r(l.children[A])},a.outline.renderRoot=function(l){this.objStart(l),this.line("/Type /Outlines"),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1]))),this.line("/Count "+this.count_r({count:0},l)),this.objEnd()},a.outline.renderItems=function(l){for(var A=this.ctx.pdf.internal.getVerticalCoordinateString,p=0;p<l.children.length;p++){var N=l.children[p];this.objStart(N),this.line("/Title "+this.makeString(N.title)),this.line("/Parent "+this.makeRef(l)),p>0&&this.line("/Prev "+this.makeRef(l.children[p-1])),p<l.children.length-1&&this.line("/Next "+this.makeRef(l.children[p+1])),N.children.length>0&&(this.line("/First "+this.makeRef(N.children[0])),this.line("/Last "+this.makeRef(N.children[N.children.length-1])));var E=this.count=this.count_r({count:0},N);if(E>0&&this.line("/Count "+E),N.options&&N.options.pageNumber){var U=a.internal.getPageInfo(N.options.pageNumber);this.line("/Dest ["+U.objId+" 0 R /XYZ 0 "+A(0)+" 0]")}this.objEnd()}for(var Z=0;Z<l.children.length;Z++)this.renderItems(l.children[Z])},a.outline.line=function(l){this.ctx.val+=l+`\r
|
|
|
`},a.outline.makeRef=function(l){return l.id+" 0 R"},a.outline.makeString=function(l){return"("+a.internal.pdfEscape(l)+")"},a.outline.objStart=function(l){this.ctx.val+=`\r
|
|
|
`+l.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},a.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},a.outline.count_r=function(l,A){for(var p=0;p<A.children.length;p++)l.count++,this.count_r(l,A.children[p]);return l.count}}])}(da.API),function(n){var o=[192,193,194,195,196,197,198,199];n.processJPEG=function(a,l,A,p,N,E){var U,Z=this.decode.DCT_DECODE,oe=null;if(typeof a=="string"||this.__addimage__.isArrayBuffer(a)||this.__addimage__.isArrayBufferView(a)){switch(a=N||a,a=this.__addimage__.isArrayBuffer(a)?new Uint8Array(a):a,U=function(Re){for(var $e,ae=256*Re.charCodeAt(4)+Re.charCodeAt(5),mt=Re.length,ut={width:0,height:0,numcomponents:1},yt=4;yt<mt;yt+=2){if(yt+=ae,o.indexOf(Re.charCodeAt(yt+1))!==-1){$e=256*Re.charCodeAt(yt+5)+Re.charCodeAt(yt+6),ut={width:256*Re.charCodeAt(yt+7)+Re.charCodeAt(yt+8),height:$e,numcomponents:Re.charCodeAt(yt+9)};break}ae=256*Re.charCodeAt(yt+2)+Re.charCodeAt(yt+3)}return ut}(a=this.__addimage__.isArrayBufferView(a)?this.__addimage__.arrayBufferToBinaryString(a):a),U.numcomponents){case 1:E=this.color_spaces.DEVICE_GRAY;break;case 4:E=this.color_spaces.DEVICE_CMYK;break;case 3:E=this.color_spaces.DEVICE_RGB}oe={data:a,width:U.width,height:U.height,colorSpace:E,bitsPerComponent:8,filter:Z,index:l,alias:A}}return oe}}(da.API),da.API.processPNG=function(n,o,a,l){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var A,p=Ys(n,{checkCrc:!0}),N=p.width,E=p.height,U=p.channels,Z=p.palette,oe=p.depth;A=Z&&U===1?function(ar){for(var Mt=ar.width,Cr=ar.height,it=ar.data,wt=ar.palette,Wt=ar.depth,Ht=!1,Tr=[],Zr=[],Jr=void 0,Lr=!1,Gr=0,$n=0;$n<wt.length;$n++){var Bn=(0,yi.Z)(wt[$n],4),rt=Bn[0],It=Bn[1],Ot=Bn[2],Jt=Bn[3];Tr.push(rt,It,Ot),Jt!=null&&(Jt===0?(Gr++,Zr.length<1&&Zr.push($n)):Jt<255&&(Lr=!0))}if(Lr||Gr>1){Ht=!0,Zr=void 0;var fr=Mt*Cr;Jr=new Uint8Array(fr);for(var Er=new DataView(it.buffer),Kr=0;Kr<fr;Kr++){var $r=cm(Er,Kr,Wt),mn=(0,yi.Z)(wt[$r],4)[3];Jr[Kr]=mn}}else Gr===0&&(Zr=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:Ht?8:void 0,colorBytes:it,alphaBytes:Jr,needSMask:Ht,palette:Tr,mask:Zr}}(p):U===2||U===4?function(ar){for(var Mt=ar.data,Cr=ar.width,it=ar.height,wt=ar.channels,Wt=ar.depth,Ht=wt===2?"DeviceGray":"DeviceRGB",Tr=wt-1,Zr=Cr*it,Jr=Tr,Lr=Zr*Jr,Gr=1*Zr,$n=Math.ceil(Lr*Wt/8),Bn=Math.ceil(Gr*Wt/8),rt=new Uint8Array($n),It=new Uint8Array(Bn),Ot=new DataView(Mt.buffer),Jt=new DataView(rt.buffer),fr=new DataView(It.buffer),Er=!1,Kr=0;Kr<Zr;Kr++){for(var $r=Kr*wt,mn=0;mn<Jr;mn++)zh(Jt,cm(Ot,$r+mn,Wt),Kr*Jr+mn,Wt);var Hn=cm(Ot,$r+Jr,Wt);Hn<(1<<Wt)-1&&(Er=!0),zh(fr,Hn,1*Kr,Wt)}return{colorSpace:Ht,colorsPerPixel:Tr,sMaskBitsPerComponent:Er?Wt:void 0,colorBytes:rt,alphaBytes:It,needSMask:Er}}(p):function(ar){var Mt=ar.data,Cr=ar.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Cr,colorsPerPixel:Cr==="DeviceGray"?1:3,colorBytes:Mt instanceof Uint16Array?function(it){for(var wt=it.length,Wt=new Uint8Array(2*wt),Ht=new DataView(Wt.buffer,Wt.byteOffset,Wt.byteLength),Tr=0;Tr<wt;Tr++)Ht.setUint16(2*Tr,it[Tr],!1);return Wt}(Mt):Mt,needSMask:!1}}(p);var Re,$e,ae,mt=A,ut=mt.colorSpace,yt=mt.colorsPerPixel,ot=mt.sMaskBitsPerComponent,Gt=mt.colorBytes,Rt=mt.alphaBytes,Ft=mt.needSMask,Mr=mt.palette,rn=mt.mask,Wr=null;return l!==da.API.image_compression.NONE&&typeof ii=="function"?(Wr=function(ar){var Mt;switch(ar){case da.API.image_compression.FAST:Mt=11;break;case da.API.image_compression.MEDIUM:Mt=13;break;case da.API.image_compression.SLOW:Mt=14;break;default:Mt=12}return Mt}(l),Re=this.decode.FLATE_DECODE,$e="/Predictor ".concat(Wr," /Colors ").concat(yt," /BitsPerComponent ").concat(oe," /Columns ").concat(N),n=sm(Gt,Math.ceil(N*yt*oe/8),yt,oe,l),Ft&&(ae=sm(Rt,Math.ceil(N*ot/8),1,ot,l))):(Re=void 0,$e=void 0,n=Gt,Ft&&(ae=Rt)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(ae&&this.__addimage__.isArrayBuffer(ae)||this.__addimage__.isArrayBufferView(ae))&&(ae=this.__addimage__.arrayBufferToBinaryString(ae)),{alias:a,data:n,index:o,filter:Re,decodeParameters:$e,transparency:rn,palette:Mr,sMask:ae,predictor:Wr,width:N,height:E,bitsPerComponent:oe,sMaskBitsPerComponent:ot,colorSpace:ut}}},function(n){n.processGIF89A=function(o,a,l,A){var p=new Ym(o),N=p.width,E=p.height,U=[];p.decodeAndBlitFrameRGBA(0,U);var Z={data:U,width:N,height:E},oe=new qm(100).encode(Z,100);return n.processJPEG.call(this,oe,a,l,A)},n.processGIF87A=n.processGIF89A}(da.API),fu.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)},fu.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){Ns.log("bit decode error:"+a)}},fu.prototype.bit1=function(){var n,o=Math.ceil(this.width/8),a=o%4;for(n=this.height-1;n>=0;n--){for(var l=this.bottom_up?n:this.height-1-n,A=0;A<o;A++)for(var p=this.datav.getUint8(this.pos++,!0),N=l*this.width*4+8*A*4,E=0;E<8&&8*A+E<this.width;E++){var U=this.palette[p>>7-E&1];this.data[N+4*E]=U.blue,this.data[N+4*E+1]=U.green,this.data[N+4*E+2]=U.red,this.data[N+4*E+3]=255}a!==0&&(this.pos+=4-a)}},fu.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),o=n%4,a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,A=0;A<n;A++){var p=this.datav.getUint8(this.pos++,!0),N=l*this.width*4+2*A*4,E=p>>4,U=15&p,Z=this.palette[E];if(this.data[N]=Z.blue,this.data[N+1]=Z.green,this.data[N+2]=Z.red,this.data[N+3]=255,2*A+1>=this.width)break;Z=this.palette[U],this.data[N+4]=Z.blue,this.data[N+4+1]=Z.green,this.data[N+4+2]=Z.red,this.data[N+4+3]=255}o!==0&&(this.pos+=4-o)}},fu.prototype.bit8=function(){for(var n=this.width%4,o=this.height-1;o>=0;o--){for(var a=this.bottom_up?o:this.height-1-o,l=0;l<this.width;l++){var A=this.datav.getUint8(this.pos++,!0),p=a*this.width*4+4*l;if(A<this.palette.length){var N=this.palette[A];this.data[p]=N.red,this.data[p+1]=N.green,this.data[p+2]=N.blue,this.data[p+3]=255}else this.data[p]=255,this.data[p+1]=255,this.data[p+2]=255,this.data[p+3]=255}n!==0&&(this.pos+=4-n)}},fu.prototype.bit15=function(){for(var n=this.width%3,o=parseInt("11111",2),a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,A=0;A<this.width;A++){var p=this.datav.getUint16(this.pos,!0);this.pos+=2;var N=(p&o)/o*255|0,E=(p>>5&o)/o*255|0,U=(p>>10&o)/o*255|0,Z=p>>15?255:0,oe=l*this.width*4+4*A;this.data[oe]=U,this.data[oe+1]=E,this.data[oe+2]=N,this.data[oe+3]=Z}this.pos+=n}},fu.prototype.bit16=function(){for(var n=this.width%3,o=parseInt("11111",2),a=parseInt("111111",2),l=this.height-1;l>=0;l--){for(var A=this.bottom_up?l:this.height-1-l,p=0;p<this.width;p++){var N=this.datav.getUint16(this.pos,!0);this.pos+=2;var E=(N&o)/o*255|0,U=(N>>5&a)/a*255|0,Z=(N>>11)/o*255|0,oe=A*this.width*4+4*p;this.data[oe]=Z,this.data[oe+1]=U,this.data[oe+2]=E,this.data[oe+3]=255}this.pos+=n}},fu.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var o=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0),N=o*this.width*4+4*a;this.data[N]=p,this.data[N+1]=A,this.data[N+2]=l,this.data[N+3]=255}this.pos+=this.width%4}},fu.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var o=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0),N=this.datav.getUint8(this.pos++,!0),E=o*this.width*4+4*a;this.data[E]=p,this.data[E+1]=A,this.data[E+2]=l,this.data[E+3]=N}},fu.prototype.getData=function(){return this.data},function(n){n.processBMP=function(o,a,l,A){var p=new fu(o,!1),N=p.width,E=p.height,U={data:p.getData(),width:N,height:E},Z=new qm(100).encode(U,100);return n.processJPEG.call(this,Z,a,l,A)}}(da.API),Ep.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(o,a,l,A){var p=new Ep(o),N=p.width,E=p.height,U={data:p.getData(),width:N,height:E},Z=new qm(100).encode(U,100);return n.processJPEG.call(this,Z,a,l,A)}}(da.API),da.API.processRGBA=function(n,o,a){for(var l=n.data,A=l.length,p=new Uint8Array(A/4*3),N=new Uint8Array(A/4),E=0,U=0,Z=0;Z<A;Z+=4){var oe=l[Z],Re=l[Z+1],$e=l[Z+2],ae=l[Z+3];p[E++]=oe,p[E++]=Re,p[E++]=$e,N[U++]=ae}var mt=this.__addimage__.arrayBufferToBinaryString(p);return{alpha:this.__addimage__.arrayBufferToBinaryString(N),data:mt,index:o,alias:a,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},da.API.setLanguage=function(n){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},jh=da.API,om=jh.getCharWidthsArray=function(n,o){var a,l,A=(o=o||{}).font||this.internal.getFont(),p=o.fontSize||this.internal.getFontSize(),N=o.charSpace||this.internal.getCharSpace(),E=o.widths?o.widths:A.metadata.Unicode.widths,U=E.fof?E.fof:1,Z=o.kerning?o.kerning:A.metadata.Unicode.kerning,oe=Z.fof?Z.fof:1,Re=o.doKerning!==!1,$e=0,ae=n.length,mt=0,ut=E[0]||U,yt=[];for(a=0;a<ae;a++)l=n.charCodeAt(a),typeof A.metadata.widthOfString=="function"?yt.push((A.metadata.widthOfGlyph(A.metadata.characterToGlyph(l))+N*(1e3/p)||0)/1e3):($e=Re&&(0,pe.Z)(Z[l])==="object"&&!isNaN(parseInt(Z[l][mt],10))?Z[l][mt]/oe:0,yt.push((E[l]||ut)/U+$e)),mt=l;return yt},bg=jh.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 jh.processArabic&&(n=jh.processArabic(n)),typeof l.metadata.widthOfString=="function"?l.metadata.widthOfString(n,a,A)/a:om.apply(this,arguments).reduce(function(p,N){return p+N},0)},Gm=function(n,o,a,l){for(var A=[],p=0,N=n.length,E=0;p!==N&&E+o[p]<a;)E+=o[p],p++;A.push(n.slice(0,p));var U=p;for(E=0;p!==N;)E+o[p]>l&&(A.push(n.slice(U,p)),E=0,U=p),E+=o[p],p++;return U!==p&&A.push(n.slice(U,p)),A},yg=function(n,o,a){a||(a={});var l,A,p,N,E,U,Z,oe=[],Re=[oe],$e=a.textIndent||0,ae=0,mt=0,ut=n.split(" "),yt=om.apply(this,[" ",a])[0];if(U=a.lineIndent===-1?ut[0].length+2:a.lineIndent||0){var ot=Array(U).join(" "),Gt=[];ut.map(function(Ft){(Ft=Ft.split(/\s*\n/)).length>1?Gt=Gt.concat(Ft.map(function(Mr,rn){return(rn&&Mr.length?`
|
|
|
`:"")+Mr})):Gt.push(Ft[0])}),ut=Gt,U=bg.apply(this,[ot,a])}for(p=0,N=ut.length;p<N;p++){var Rt=0;if(l=ut[p],U&&l[0]==`
|
|
|
`&&(l=l.substr(1),Rt=1),$e+ae+(mt=(A=om.apply(this,[l,a])).reduce(function(Ft,Mr){return Ft+Mr},0))>o||Rt){if(mt>o){for(E=Gm.apply(this,[l,A,o-($e+ae),o]),oe.push(E.shift()),oe=[E.pop()];E.length;)Re.push([E.shift()]);mt=A.slice(l.length-(oe[0]?oe[0].length:0)).reduce(function(Ft,Mr){return Ft+Mr},0)}else oe=[l];Re.push(oe),$e=mt+U,ae=yt}else oe.push(l),$e+=ae+mt,ae=yt}return Z=U?function(Ft,Mr){return(Mr?ot:"")+Ft.join(" ")}:function(Ft){return Ft.join(" ")},Re.map(Z)},jh.splitTextToSize=function(n,o,a){var l,A=(a=a||{}).fontSize||this.internal.getFontSize(),p=function(oe){if(oe.widths&&oe.kerning)return{widths:oe.widths,kerning:oe.kerning};var Re=this.internal.getFont(oe.fontName,oe.fontStyle),$e="Unicode";return Re.metadata[$e]?{widths:Re.metadata[$e].widths||{0:1},kerning:Re.metadata[$e].kerning||{}}:{font:Re.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,a);l=Array.isArray(n)?n:String(n).split(/\r?\n/);var N=1*this.internal.scaleFactor*o/A;p.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/A:0,p.lineIndent=a.lineIndent;var E,U,Z=[];for(E=0,U=l.length;E<U;E++)Z=Z.concat(yg.apply(this,[l[E],N,p]));return Z},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var o="0123456789abcdef",a="klmnopqrstuvwxyz",l={},A={},p=0;p<16;p++)l[a[p]]=o[p],A[o[p]]=a[p];var N=function($e){return"0x"+parseInt($e,10).toString(16)},E=n.__fontmetrics__.compress=function($e){var ae,mt,ut,yt,ot=["{"];for(var Gt in $e){if(ae=$e[Gt],isNaN(parseInt(Gt,10))?mt="'"+Gt+"'":(Gt=parseInt(Gt,10),mt=(mt=N(Gt).slice(2)).slice(0,-1)+A[mt.slice(-1)]),typeof ae=="number")ae<0?(ut=N(ae).slice(3),yt="-"):(ut=N(ae).slice(2),yt=""),ut=yt+ut.slice(0,-1)+A[ut.slice(-1)];else{if((0,pe.Z)(ae)!=="object")throw new Error("Don't know what to do with value type "+(0,pe.Z)(ae)+".");ut=E(ae)}ot.push(mt+ut)}return ot.push("}"),ot.join("")},U=n.__fontmetrics__.uncompress=function($e){if(typeof $e!="string")throw new Error("Invalid argument passed to uncompress.");for(var ae,mt,ut,yt,ot={},Gt=1,Rt=ot,Ft=[],Mr="",rn="",Wr=$e.length-1,ar=1;ar<Wr;ar+=1)(yt=$e[ar])=="'"?ae?(ut=ae.join(""),ae=void 0):ae=[]:ae?ae.push(yt):yt=="{"?(Ft.push([Rt,ut]),Rt={},ut=void 0):yt=="}"?((mt=Ft.pop())[0][mt[1]]=Rt,ut=void 0,Rt=mt[0]):yt=="-"?Gt=-1:ut===void 0?l.hasOwnProperty(yt)?(Mr+=l[yt],ut=parseInt(Mr,16)*Gt,Gt=1,Mr=""):Mr+=yt:l.hasOwnProperty(yt)?(rn+=l[yt],Rt[ut]=parseInt(rn,16)*Gt,Gt=1,ut=void 0,rn=""):rn+=yt;return ot},Z={codePages:["WinAnsiEncoding"],WinAnsiEncoding:U("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},oe={Unicode:{Courier:Z,"Courier-Bold":Z,"Courier-BoldOblique":Z,"Courier-Oblique":Z,Helvetica:Z,"Helvetica-Bold":Z,"Helvetica-BoldOblique":Z,"Helvetica-Oblique":Z,"Times-Roman":Z,"Times-Bold":Z,"Times-BoldItalic":Z,"Times-Italic":Z}},Re={Unicode:{"Courier-Oblique":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":U("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":U("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":U("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:U("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:U("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":U("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:U("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":U("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":U("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":U("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function($e){var ae=$e.font,mt=Re.Unicode[ae.postScriptName];mt&&(ae.metadata.Unicode={},ae.metadata.Unicode.widths=mt.widths,ae.metadata.Unicode.kerning=mt.kerning);var ut=oe.Unicode[ae.postScriptName];ut&&(ae.metadata.Unicode.encoding=ut,ae.encoding=ut.codePages[0])}])}(da.API),function(n){var o=function(a){for(var l=a.length,A=new Uint8Array(l),p=0;p<l;p++)A[p]=a.charCodeAt(p);return A};n.API.events.push(["addFont",function(a){var l=void 0,A=a.font,p=a.instance;if(!A.isStandardFont){if(p===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");if(typeof(l=p.existsFileInVFS(A.postScriptName)===!1?p.loadFile(A.postScriptName):p.getFileFromVFS(A.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");(function(N,E){E=/^\x00\x01\x00\x00/.test(E)?o(E):o(gn(E)),N.metadata=n.API.TTFFont.open(E),N.metadata.Unicode=N.metadata.Unicode||{encoding:{},kerning:{},widths:[]},N.metadata.glyIdsUsed=[0]})(A,l)}}])}(da),da.API.addSvgAsImage=function(n,o,a,l,A,p,N,E){if(isNaN(o)||isNaN(a))throw Ns.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(A))throw Ns.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var U=document.createElement("canvas");U.width=l,U.height=A;var Z=U.getContext("2d");Z.fillStyle="#fff",Z.fillRect(0,0,U.width,U.height);var oe={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Re=this;return(Ga.canvg?Promise.resolve(Ga.canvg):x.e(3754).then(x.bind(x,63754))).catch(function($e){return Promise.reject(new Error("Could not load canvg: "+$e))}).then(function($e){return $e.default?$e.default:$e}).then(function($e){return $e.fromString(Z,n,oe)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function($e){return $e.render(oe)}).then(function(){Re.addImage(U.toDataURL("image/jpeg",1),o,a,l,A,N,E)})},da.API.putTotalPages=function(n){var o,a=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(n,"g"),a=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),a=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var l=1;l<=this.internal.getNumberOfPages();l++)for(var A=0;A<this.internal.pages[l].length;A++)this.internal.pages[l][A]=this.internal.pages[l][A].replace(o,a);return this},da.API.viewerPreferences=function(n,o){var a;n=n||{},o=o||!1;var l,A,p,N={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},E=Object.keys(N),U=[],Z=0,oe=0,Re=0;function $e(mt,ut){var yt,ot=!1;for(yt=0;yt<mt.length;yt+=1)mt[yt]===ut&&(ot=!0);return ot}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(N)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,n==="reset"||o===!0){var ae=E.length;for(Re=0;Re<ae;Re+=1)a[E[Re]].value=a[E[Re]].defaultValue,a[E[Re]].explicitSet=!1}if((0,pe.Z)(n)==="object"){for(A in n)if(p=n[A],$e(E,A)&&p!==void 0){if(a[A].type==="boolean"&&typeof p=="boolean")a[A].value=p;else if(a[A].type==="name"&&$e(a[A].valueSet,p))a[A].value=p;else if(a[A].type==="integer"&&Number.isInteger(p))a[A].value=p;else if(a[A].type==="array"){for(Z=0;Z<p.length;Z+=1)if(l=!0,p[Z].length===1&&typeof p[Z][0]=="number")U.push(String(p[Z]-1));else if(p[Z].length>1){for(oe=0;oe<p[Z].length;oe+=1)typeof p[Z][oe]!="number"&&(l=!1);l===!0&&U.push([p[Z][0]-1,p[Z][1]-1].join(" "))}a[A].value="["+U.join(" ")+"]"}else a[A].value=a[A].defaultValue;a[A].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var mt,ut=[];for(mt in a)a[mt].explicitSet===!0&&(a[mt].type==="name"?ut.push("/"+mt+" /"+a[mt].value):ut.push("/"+mt+" "+a[mt].value));ut.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+ut.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=a,this},function(n){var o=function(){var l='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',A=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),p=unescape(encodeURIComponent(l)),N=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),E=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),U=unescape(encodeURIComponent("</x:xmpmeta>")),Z=p.length+N.length+E.length+A.length+U.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Z+" >>"),this.internal.write("stream"),this.internal.write(A+p+N+E+U),this.internal.write("endstream"),this.internal.write("endobj")},a=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(l,A){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:l,namespaceuri:A||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",a),this.internal.events.subscribe("postPutResources",o)),this}}(da.API),function(n){var o=n.API,a=o.pdfEscape16=function(p,N){for(var E,U=N.metadata.Unicode.widths,Z=["","0","00","000","0000"],oe=[""],Re=0,$e=p.length;Re<$e;++Re){if(E=N.metadata.characterToGlyph(p.charCodeAt(Re)),N.metadata.glyIdsUsed.push(E),N.metadata.toUnicode[E]=p.charCodeAt(Re),U.indexOf(E)==-1&&(U.push(E),U.push([parseInt(N.metadata.widthOfGlyph(E),10)])),E=="0")return oe.join("");E=E.toString(16),oe.push(Z[4-E.length],E)}return oe.join("")},l=function(p){var N,E,U,Z,oe,Re,$e;for(oe=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,U=[],Re=0,$e=(E=Object.keys(p).sort(function(ae,mt){return ae-mt})).length;Re<$e;Re++)N=E[Re],U.length>=100&&(oe+=`
|
|
|
`+U.length+` beginbfchar
|
|
|
`+U.join(`
|
|
|
`)+`
|
|
|
endbfchar`,U=[]),p[N]!==void 0&&p[N]!==null&&typeof p[N].toString=="function"&&(Z=("0000"+p[N].toString(16)).slice(-4),N=("0000"+(+N).toString(16)).slice(-4),U.push("<"+N+"><"+Z+">"));return U.length&&(oe+=`
|
|
|
`+U.length+` beginbfchar
|
|
|
`+U.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),oe+`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};o.events.push(["putFont",function(p){(function(N){var E=N.font,U=N.out,Z=N.newObject,oe=N.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="Identity-H"){for(var Re=E.metadata.Unicode.widths,$e=E.metadata.subset.encode(E.metadata.glyIdsUsed,1),ae="",mt=0;mt<$e.length;mt++)ae+=String.fromCharCode($e[mt]);var ut=Z();oe({data:ae,addLength1:!0,objectId:ut}),U("endobj");var yt=Z();oe({data:l(E.metadata.toUnicode),addLength1:!0,objectId:yt}),U("endobj");var ot=Z();U("<<"),U("/Type /FontDescriptor"),U("/FontName /"+iA(E.fontName)),U("/FontFile2 "+ut+" 0 R"),U("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),U("/Flags "+E.metadata.flags),U("/StemV "+E.metadata.stemV),U("/ItalicAngle "+E.metadata.italicAngle),U("/Ascent "+E.metadata.ascender),U("/Descent "+E.metadata.decender),U("/CapHeight "+E.metadata.capHeight),U(">>"),U("endobj");var Gt=Z();U("<<"),U("/Type /Font"),U("/BaseFont /"+iA(E.fontName)),U("/FontDescriptor "+ot+" 0 R"),U("/W "+n.API.PDFObject.convert(Re)),U("/CIDToGIDMap /Identity"),U("/DW 1000"),U("/Subtype /CIDFontType2"),U("/CIDSystemInfo"),U("<<"),U("/Supplement 0"),U("/Registry (Adobe)"),U("/Ordering ("+E.encoding+")"),U(">>"),U(">>"),U("endobj"),E.objectNumber=Z(),U("<<"),U("/Type /Font"),U("/Subtype /Type0"),U("/ToUnicode "+yt+" 0 R"),U("/BaseFont /"+iA(E.fontName)),U("/Encoding /"+E.encoding),U("/DescendantFonts ["+Gt+" 0 R]"),U(">>"),U("endobj"),E.isAlreadyPutted=!0}})(p)}]),o.events.push(["putFont",function(p){(function(N){var E=N.font,U=N.out,Z=N.newObject,oe=N.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="WinAnsiEncoding"){for(var Re=E.metadata.rawData,$e="",ae=0;ae<Re.length;ae++)$e+=String.fromCharCode(Re[ae]);var mt=Z();oe({data:$e,addLength1:!0,objectId:mt}),U("endobj");var ut=Z();oe({data:l(E.metadata.toUnicode),addLength1:!0,objectId:ut}),U("endobj");var yt=Z();U("<<"),U("/Descent "+E.metadata.decender),U("/CapHeight "+E.metadata.capHeight),U("/StemV "+E.metadata.stemV),U("/Type /FontDescriptor"),U("/FontFile2 "+mt+" 0 R"),U("/Flags 96"),U("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),U("/FontName /"+iA(E.fontName)),U("/ItalicAngle "+E.metadata.italicAngle),U("/Ascent "+E.metadata.ascender),U(">>"),U("endobj"),E.objectNumber=Z();for(var ot=0;ot<E.metadata.hmtx.widths.length;ot++)E.metadata.hmtx.widths[ot]=parseInt(E.metadata.hmtx.widths[ot]*(1e3/E.metadata.head.unitsPerEm));U("<</Subtype/TrueType/Type/Font/ToUnicode "+ut+" 0 R/BaseFont/"+iA(E.fontName)+"/FontDescriptor "+yt+" 0 R/Encoding/"+E.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(E.metadata.hmtx.widths)+">>"),U("endobj"),E.isAlreadyPutted=!0}})(p)}]);var A=function(p){var N,E=p.text||"",U=p.x,Z=p.y,oe=p.options||{},Re=p.mutex||{},$e=Re.pdfEscape,ae=Re.activeFontKey,mt=Re.fonts,ut=ae,yt="",ot=0,Gt="",Rt=mt[ut].encoding;if(mt[ut].encoding!=="Identity-H")return{text:E,x:U,y:Z,options:oe,mutex:Re};for(Gt=E,ut=ae,Array.isArray(E)&&(Gt=E[0]),ot=0;ot<Gt.length;ot+=1)mt[ut].metadata.hasOwnProperty("cmap")&&(N=mt[ut].metadata.cmap.unicode.codeMap[Gt[ot].charCodeAt(0)]),N||Gt[ot].charCodeAt(0)<256&&mt[ut].metadata.hasOwnProperty("Unicode")?yt+=Gt[ot]:yt+="";var Ft="";return parseInt(ut.slice(1))<14||Rt==="WinAnsiEncoding"?Ft=$e(yt,ut).split("").map(function(Mr){return Mr.charCodeAt(0).toString(16)}).join(""):Rt==="Identity-H"&&(Ft=a(yt,mt[ut])),Re.isHex=!0,{text:Ft,x:U,y:Z,options:oe,mutex:Re}};o.events.push(["postProcessText",function(p){var N=p.text||"",E=[],U={text:N,x:p.x,y:p.y,options:p.options,mutex:p.mutex};if(Array.isArray(N)){var Z=0;for(Z=0;Z<N.length;Z+=1)Array.isArray(N[Z])&&N[Z].length===3?E.push([A(Object.assign({},U,{text:N[Z][0]})).text,N[Z][1],N[Z][2]]):E.push(A(Object.assign({},U,{text:N[Z]})).text);p.text=E}else p.text=A(Object.assign({},U,{text:N})).text}])}(da),function(n){var o=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(a){return o.call(this),this.internal.vFS[a]!==void 0},n.addFileToVFS=function(a,l){return o.call(this),this.internal.vFS[a]=l,this},n.getFileFromVFS=function(a){return o.call(this),this.internal.vFS[a]!==void 0?this.internal.vFS[a]:null}}(da.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(l){var A,p,N,E,U,Z,oe,Re=o,$e=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ae=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],mt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},ut={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},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"],ot=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Gt=!1,Rt=0;this.__bidiEngine__={};var Ft=function(it){var wt=it.charCodeAt(),Wt=wt>>8,Ht=ut[Wt];return Ht!==void 0?Re[256*Ht+(255&wt)]:Wt===252||Wt===253?"AL":ot.test(Wt)?"L":Wt===8?"R":"N"},Mr=function(it){for(var wt,Wt=0;Wt<it.length;Wt++){if((wt=Ft(it.charAt(Wt)))==="L")return!1;if(wt==="R")return!0}return!1},rn=function(it,wt,Wt,Ht){var Tr,Zr,Jr,Lr,Gr=wt[Ht];switch(Gr){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Gt=!1;break;case"N":case"AN":break;case"EN":Gt&&(Gr="AN");break;case"AL":Gt=!0,Gr="R";break;case"WS":case"BN":Gr="N";break;case"CS":Ht<1||Ht+1>=wt.length||(Tr=Wt[Ht-1])!=="EN"&&Tr!=="AN"||(Zr=wt[Ht+1])!=="EN"&&Zr!=="AN"?Gr="N":Gt&&(Zr="AN"),Gr=Zr===Tr?Zr:"N";break;case"ES":Gr=(Tr=Ht>0?Wt[Ht-1]:"B")==="EN"&&Ht+1<wt.length&&wt[Ht+1]==="EN"?"EN":"N";break;case"ET":if(Ht>0&&Wt[Ht-1]==="EN"){Gr="EN";break}if(Gt){Gr="N";break}for(Jr=Ht+1,Lr=wt.length;Jr<Lr&&wt[Jr]==="ET";)Jr++;Gr=Jr<Lr&&wt[Jr]==="EN"?"EN":"N";break;case"NSM":if(N&&!E){for(Lr=wt.length,Jr=Ht+1;Jr<Lr&&wt[Jr]==="NSM";)Jr++;if(Jr<Lr){var $n=it[Ht],Bn=$n>=1425&&$n<=2303||$n===64286;if(Tr=wt[Jr],Bn&&(Tr==="R"||Tr==="AL")){Gr="R";break}}}Gr=Ht<1||(Tr=wt[Ht-1])==="B"?"N":Wt[Ht-1];break;case"B":Gt=!1,A=!0,Gr=Rt;break;case"S":p=!0,Gr="N"}return Gr},Wr=function(it,wt,Wt){var Ht=it.split("");return Wt&&ar(Ht,Wt,{hiLevel:Rt}),Ht.reverse(),wt&&wt.reverse(),Ht.join("")},ar=function(it,wt,Wt){var Ht,Tr,Zr,Jr,Lr,Gr=-1,$n=it.length,Bn=0,rt=[],It=Rt?ae:$e,Ot=[];for(Gt=!1,A=!1,p=!1,Tr=0;Tr<$n;Tr++)Ot[Tr]=Ft(it[Tr]);for(Zr=0;Zr<$n;Zr++){if(Lr=Bn,rt[Zr]=rn(it,Ot,rt,Zr),Ht=240&(Bn=It[Lr][mt[rt[Zr]]]),Bn&=15,wt[Zr]=Jr=It[Bn][5],Ht>0)if(Ht===16){for(Tr=Gr;Tr<Zr;Tr++)wt[Tr]=1;Gr=-1}else Gr=-1;if(It[Bn][6])Gr===-1&&(Gr=Zr);else if(Gr>-1){for(Tr=Gr;Tr<Zr;Tr++)wt[Tr]=Jr;Gr=-1}Ot[Zr]==="B"&&(wt[Zr]=0),Wt.hiLevel|=Jr}p&&function(Jt,fr,Er){for(var Kr=0;Kr<Er;Kr++)if(Jt[Kr]==="S"){fr[Kr]=Rt;for(var $r=Kr-1;$r>=0&&Jt[$r]==="WS";$r--)fr[$r]=Rt}}(Ot,wt,$n)},Mt=function(it,wt,Wt,Ht,Tr){if(!(Tr.hiLevel<it)){if(it===1&&Rt===1&&!A)return wt.reverse(),void(Wt&&Wt.reverse());for(var Zr,Jr,Lr,Gr,$n=wt.length,Bn=0;Bn<$n;){if(Ht[Bn]>=it){for(Lr=Bn+1;Lr<$n&&Ht[Lr]>=it;)Lr++;for(Gr=Bn,Jr=Lr-1;Gr<Jr;Gr++,Jr--)Zr=wt[Gr],wt[Gr]=wt[Jr],wt[Jr]=Zr,Wt&&(Zr=Wt[Gr],Wt[Gr]=Wt[Jr],Wt[Jr]=Zr);Bn=Lr}Bn++}}},Cr=function(it,wt,Wt){var Ht=it.split(""),Tr={hiLevel:Rt};return Wt||(Wt=[]),ar(Ht,Wt,Tr),function(Zr,Jr,Lr){if(Lr.hiLevel!==0&&oe)for(var Gr,$n=0;$n<Zr.length;$n++)Jr[$n]===1&&(Gr=yt.indexOf(Zr[$n]))>=0&&(Zr[$n]=yt[Gr+1])}(Ht,Wt,Tr),Mt(2,Ht,wt,Wt,Tr),Mt(1,Ht,wt,Wt,Tr),Ht.join("")};return this.__bidiEngine__.doBidiReorder=function(it,wt,Wt){if(function(Tr,Zr){if(Zr)for(var Jr=0;Jr<Tr.length;Jr++)Zr[Jr]=Jr;E===void 0&&(E=Mr(Tr)),Z===void 0&&(Z=Mr(Tr))}(it,wt),N||!U||Z)if(N&&U&&E^Z)Rt=E?1:0,it=Wr(it,wt,Wt);else if(!N&&U&&Z)Rt=E?1:0,it=Cr(it,wt,Wt),it=Wr(it,wt);else if(!N||E||U||Z){if(N&&!U&&E^Z)it=Wr(it,wt),E?(Rt=0,it=Cr(it,wt,Wt)):(Rt=1,it=Cr(it,wt,Wt),it=Wr(it,wt));else if(N&&E&&!U&&Z)Rt=1,it=Cr(it,wt,Wt),it=Wr(it,wt);else if(!N&&!U&&E^Z){var Ht=oe;E?(Rt=1,it=Cr(it,wt,Wt),Rt=0,oe=!1,it=Cr(it,wt,Wt),oe=Ht):(Rt=0,it=Cr(it,wt,Wt),it=Wr(it,wt),Rt=1,oe=!1,it=Cr(it,wt,Wt),oe=Ht,it=Wr(it,wt))}}else Rt=0,it=Cr(it,wt,Wt);else Rt=E?1:0,it=Cr(it,wt,Wt);return it},this.__bidiEngine__.setOptions=function(it){it&&(N=it.isInputVisual,U=it.isOutputVisual,E=it.isInputRtl,Z=it.isOutputRtl,oe=it.isSymmetricSwapping)},this.__bidiEngine__.setOptions(l),this.__bidiEngine__};var o=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],a=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(l){var A=l.text;l.x,l.y;var p=l.options||{};l.mutex,p.lang;var N=[];if(p.isInputVisual=typeof p.isInputVisual!="boolean"||p.isInputVisual,a.setOptions(p),Object.prototype.toString.call(A)==="[object Array]"){var E=0;for(N=[],E=0;E<A.length;E+=1)Object.prototype.toString.call(A[E])==="[object Array]"?N.push([a.doBidiReorder(A[E][0]),A[E][1],A[E][2]]):N.push([a.doBidiReorder(A[E])]);l.text=N}else l.text=a.doBidiReorder(A);a.setOptions({isInputVisual:!0})}])}(da),da.API.TTFFont=function(){function n(o){var a;if(this.rawData=o,a=this.contents=new uh(o),this.contents.pos=4,a.readString(4)==="ttcf")throw new Error("TTCF not supported.");a.pos=0,this.parse(),this.subset=new Ig(this),this.registerTTF()}return n.open=function(o){return new n(o)},n.prototype.parse=function(){return this.directory=new Yg(this.contents),this.head=new Bg(this),this.name=new um(this),this.cmap=new Am(this),this.toUnicode={},this.hhea=new Sg(this),this.maxp=new r1(this),this.hmtx=new _l(this),this.post=new pu(this),this.os2=new e1(this),this.loca=new n1(this),this.glyf=new _g(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},n.prototype.registerTTF=function(){var o,a,l,A,p;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var N,E,U,Z;for(Z=[],N=0,E=(U=this.bbox).length;N<E;N++)o=U[N],Z.push(Math.round(o*this.scaleFactor));return Z}.call(this),this.stemV=0,this.post.exists?(l=255&(A=this.post.italic_angle),32768&(a=A>>16)&&(a=-(1+(65535^a))),this.italicAngle=+(a+"."+l)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(p=this.familyClass)===1||p===2||p===3||p===4||p===5||p===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},n.prototype.characterToGlyph=function(o){var a;return((a=this.cmap.unicode)!=null?a.codeMap[o]:void 0)||0},n.prototype.widthOfGlyph=function(o){var a;return a=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(o).advance*a},n.prototype.widthOfString=function(o,a,l){var A,p,N,E;for(N=0,p=0,E=(o=""+o).length;0<=E?p<E:p>E;p=0<=E?++p:--p)A=o.charCodeAt(p),N+=this.widthOfGlyph(this.characterToGlyph(A))+l*(1e3/a)||0;return N*(a/1e3)},n.prototype.lineHeight=function(o,a){var l;return a==null&&(a=!1),l=a?this.lineGap:0,(this.ascender+l-this.decender)/1e3*o},n}();var LA,uh=function(){function n(o){this.data=o!=null?o:[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(o){return this.data[this.pos++]=o},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(o){return this.writeByte(o>>>24&255),this.writeByte(o>>16&255),this.writeByte(o>>8&255),this.writeByte(255&o)},n.prototype.readInt32=function(){var o;return(o=this.readUInt32())>=2147483648?o-4294967296:o},n.prototype.writeInt32=function(o){return o<0&&(o+=4294967296),this.writeUInt32(o)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(o){return this.writeByte(o>>8&255),this.writeByte(255&o)},n.prototype.readInt16=function(){var o;return(o=this.readUInt16())>=32768?o-65536:o},n.prototype.writeInt16=function(o){return o<0&&(o+=65536),this.writeUInt16(o)},n.prototype.readString=function(o){var a,l;for(l=[],a=0;0<=o?a<o:a>o;a=0<=o?++a:--a)l[a]=String.fromCharCode(this.readByte());return l.join("")},n.prototype.writeString=function(o){var a,l,A;for(A=[],a=0,l=o.length;0<=l?a<l:a>l;a=0<=l?++a:--a)A.push(this.writeByte(o.charCodeAt(a)));return A},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(o){return this.writeInt16(o)},n.prototype.readLongLong=function(){var o,a,l,A,p,N,E,U;return o=this.readByte(),a=this.readByte(),l=this.readByte(),A=this.readByte(),p=this.readByte(),N=this.readByte(),E=this.readByte(),U=this.readByte(),128&o?-1*(72057594037927940*(255^o)+281474976710656*(255^a)+1099511627776*(255^l)+4294967296*(255^A)+16777216*(255^p)+65536*(255^N)+256*(255^E)+(255^U)+1):72057594037927940*o+281474976710656*a+1099511627776*l+4294967296*A+16777216*p+65536*N+256*E+U},n.prototype.writeLongLong=function(o){var a,l;return a=Math.floor(o/4294967296),l=4294967295&o,this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a),this.writeByte(l>>24&255),this.writeByte(l>>16&255),this.writeByte(l>>8&255),this.writeByte(255&l)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(o){return this.writeInt32(o)},n.prototype.read=function(o){var a,l;for(a=[],l=0;0<=o?l<o:l>o;l=0<=o?++l:--l)a.push(this.readByte());return a},n.prototype.write=function(o){var a,l,A,p;for(p=[],l=0,A=o.length;l<A;l++)a=o[l],p.push(this.writeByte(a));return p},n}(),Yg=function(){var n;function o(a){var l,A,p;for(this.scalarType=a.readInt(),this.tableCount=a.readShort(),this.searchRange=a.readShort(),this.entrySelector=a.readShort(),this.rangeShift=a.readShort(),this.tables={},A=0,p=this.tableCount;0<=p?A<p:A>p;A=0<=p?++A:--A)l={tag:a.readString(4),checksum:a.readInt(),offset:a.readInt(),length:a.readInt()},this.tables[l.tag]=l}return o.prototype.encode=function(a){var l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut;for(ut in ae=Object.keys(a).length,U=Math.log(2),Re=16*Math.floor(Math.log(ae)/U),N=Math.floor(Re/U),oe=16*ae-Re,(A=new uh).writeInt(this.scalarType),A.writeShort(ae),A.writeShort(Re),A.writeShort(N),A.writeShort(oe),p=16*ae,Z=A.pos+p,E=null,mt=[],a)for($e=a[ut],A.writeString(ut),A.writeInt(n($e)),A.writeInt(Z),A.writeInt($e.length),mt=mt.concat($e),ut==="head"&&(E=Z),Z+=$e.length;Z%4;)mt.push(0),Z++;return A.write(mt),l=2981146554-n(A.data),A.pos=E+8,A.writeUInt32(l),A.data},n=function(a){var l,A,p,N;for(a=Eg.call(a);a.length%4;)a.push(0);for(p=new uh(a),A=0,l=0,N=a.length;l<N;l=l+=4)A+=p.readUInt32();return 4294967295&A},o}(),qg={}.hasOwnProperty,hu=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 hu(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 uh).writeInt(this.version),a.writeInt(this.revision),a.writeInt(this.checkSumAdjustment),a.writeInt(this.magicNumber),a.writeShort(this.flags),a.writeShort(this.unitsPerEm),a.writeLongLong(this.created),a.writeLongLong(this.modified),a.writeShort(this.xMin),a.writeShort(this.yMin),a.writeShort(this.xMax),a.writeShort(this.yMax),a.writeShort(this.macStyle),a.writeShort(this.lowestRecPPEM),a.writeShort(this.fontDirectionHint),a.writeShort(o),a.writeShort(this.glyphDataFormat),a.data},n}(),eg=function(){function n(o,a){var l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut,yt,ot,Gt,Rt;switch(this.platformID=o.readUInt16(),this.encodingID=o.readShort(),this.offset=a+o.readInt(),Re=o.pos,o.pos=this.offset,this.format=o.readUInt16(),this.length=o.readUInt16(),this.language=o.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(U=0;U<256;++U)this.codeMap[U]=o.readByte();break;case 4:for(ae=o.readUInt16(),$e=ae/2,o.pos+=6,p=function(){var Ft,Mr;for(Mr=[],U=Ft=0;0<=$e?Ft<$e:Ft>$e;U=0<=$e?++Ft:--Ft)Mr.push(o.readUInt16());return Mr}(),o.pos+=2,ut=function(){var Ft,Mr;for(Mr=[],U=Ft=0;0<=$e?Ft<$e:Ft>$e;U=0<=$e?++Ft:--Ft)Mr.push(o.readUInt16());return Mr}(),Z=function(){var Ft,Mr;for(Mr=[],U=Ft=0;0<=$e?Ft<$e:Ft>$e;U=0<=$e?++Ft:--Ft)Mr.push(o.readUInt16());return Mr}(),oe=function(){var Ft,Mr;for(Mr=[],U=Ft=0;0<=$e?Ft<$e:Ft>$e;U=0<=$e?++Ft:--Ft)Mr.push(o.readUInt16());return Mr}(),A=(this.length-o.pos+this.offset)/2,E=function(){var Ft,Mr;for(Mr=[],U=Ft=0;0<=A?Ft<A:Ft>A;U=0<=A?++Ft:--Ft)Mr.push(o.readUInt16());return Mr}(),U=ot=0,Rt=p.length;ot<Rt;U=++ot)for(yt=p[U],l=Gt=mt=ut[U];mt<=yt?Gt<=yt:Gt>=yt;l=mt<=yt?++Gt:--Gt)oe[U]===0?N=l+Z[U]:(N=E[oe[U]/2+(l-mt)-($e-U)]||0)!==0&&(N+=Z[U]),this.codeMap[l]=65535&N}o.pos=Re}return n.encode=function(o,a){var l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut,yt,ot,Gt,Rt,Ft,Mr,rn,Wr,ar,Mt,Cr,it,wt,Wt,Ht,Tr,Zr,Jr,Lr,Gr,$n,Bn,rt,It,Ot,Jt,fr,Er,Kr,$r,mn,Hn,gi;switch(Ht=new uh,N=Object.keys(o).sort(function(Ci,Sa){return Ci-Sa}),a){case"macroman":for(ut=0,yt=function(){var Ci=[];for(mt=0;mt<256;++mt)Ci.push(0);return Ci}(),Gt={0:0},p={},Tr=0,Gr=N.length;Tr<Gr;Tr++)Gt[$r=o[A=N[Tr]]]==null&&(Gt[$r]=++ut),p[A]={old:o[A],new:Gt[o[A]]},yt[A]=Gt[o[A]];return Ht.writeUInt16(1),Ht.writeUInt16(0),Ht.writeUInt32(12),Ht.writeUInt16(0),Ht.writeUInt16(262),Ht.writeUInt16(0),Ht.write(yt),{charMap:p,subtable:Ht.data,maxGlyphID:ut+1};case"unicode":for(wt=[],Re=[],Rt=0,Gt={},l={},ot=Z=null,Zr=0,$n=N.length;Zr<$n;Zr++)Gt[Mr=o[A=N[Zr]]]==null&&(Gt[Mr]=++Rt),l[A]={old:Mr,new:Gt[Mr]},E=Gt[Mr]-A,ot!=null&&E===Z||(ot&&Re.push(ot),wt.push(A),Z=E),ot=A;for(ot&&Re.push(ot),Re.push(65535),wt.push(65535),Cr=2*(Mt=wt.length),ar=2*Math.pow(Math.log(Mt)/Math.LN2,2),$e=Math.log(ar/2)/Math.LN2,Wr=2*Mt-ar,U=[],rn=[],ae=[],mt=Jr=0,Bn=wt.length;Jr<Bn;mt=++Jr){if(it=wt[mt],oe=Re[mt],it===65535){U.push(0),rn.push(0);break}if(it-(Wt=l[it].new)>=32768)for(U.push(0),rn.push(2*(ae.length+Mt-mt)),A=Lr=it;it<=oe?Lr<=oe:Lr>=oe;A=it<=oe?++Lr:--Lr)ae.push(l[A].new);else U.push(Wt-it),rn.push(0)}for(Ht.writeUInt16(3),Ht.writeUInt16(1),Ht.writeUInt32(12),Ht.writeUInt16(4),Ht.writeUInt16(16+8*Mt+2*ae.length),Ht.writeUInt16(0),Ht.writeUInt16(Cr),Ht.writeUInt16(ar),Ht.writeUInt16($e),Ht.writeUInt16(Wr),Er=0,rt=Re.length;Er<rt;Er++)A=Re[Er],Ht.writeUInt16(A);for(Ht.writeUInt16(0),Kr=0,It=wt.length;Kr<It;Kr++)A=wt[Kr],Ht.writeUInt16(A);for(mn=0,Ot=U.length;mn<Ot;mn++)E=U[mn],Ht.writeUInt16(E);for(Hn=0,Jt=rn.length;Hn<Jt;Hn++)Ft=rn[Hn],Ht.writeUInt16(Ft);for(gi=0,fr=ae.length;gi<fr;gi++)ut=ae[gi],Ht.writeUInt16(ut);return{charMap:l,subtable:Ht.data,maxGlyphID:Rt+1}}},n}(),Am=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hu(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 eg(o,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},n.encode=function(o,a){var l,A;return a==null&&(a="macroman"),l=eg.encode(o,a),(A=new uh).writeUInt16(0),A.writeUInt16(1),l.table=A.data.concat(l.subtable),l},n}(),Sg=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hu(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 hu(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}(),pu=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hu(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 N,E,U;for(U=[],p=N=0,E=this.file.maxp.numGlyphs;0<=E?N<E:N>E;p=0<=E?++N:--N)U.push(o.readUInt32());return U}.call(this)}},n}(),t1=function(n,o){this.raw=n,this.length=n.length,this.platformID=o.platformID,this.encodingID=o.encodingID,this.languageID=o.languageID},um=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hu(n,LA),n.prototype.tag="name",n.prototype.parse=function(o){var a,l,A,p,N,E,U,Z,oe,Re,$e;for(o.pos=this.offset,o.readShort(),a=o.readShort(),E=o.readShort(),l=[],p=0;0<=a?p<a:p>a;p=0<=a?++p:--p)l.push({platformID:o.readShort(),encodingID:o.readShort(),languageID:o.readShort(),nameID:o.readShort(),length:o.readShort(),offset:this.offset+E+o.readShort()});for(U={},p=oe=0,Re=l.length;oe<Re;p=++oe)A=l[p],o.pos=A.offset,Z=o.readString(A.length),N=new t1(Z,A),U[$e=A.nameID]==null&&(U[$e]=[]),U[A.nameID].push(N);this.strings=U,this.copyright=U[0],this.fontFamily=U[1],this.fontSubfamily=U[2],this.uniqueSubfamily=U[3],this.fontName=U[4],this.version=U[5];try{this.postscriptName=U[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(ae){this.postscriptName=U[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=U[7],this.manufacturer=U[8],this.designer=U[9],this.description=U[10],this.vendorUrl=U[11],this.designerUrl=U[12],this.license=U[13],this.licenseUrl=U[14],this.preferredFamily=U[15],this.preferredSubfamily=U[17],this.compatibleFull=U[18],this.sampleText=U[19]},n}(),r1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hu(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 hu(n,LA),n.prototype.tag="hmtx",n.prototype.parse=function(o){var a,l,A,p,N,E,U;for(o.pos=this.offset,this.metrics=[],a=0,E=this.file.hhea.numberOfMetrics;0<=E?a<E:a>E;a=0<=E?++a:--a)this.metrics.push({advance:o.readUInt16(),lsb:o.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Z,oe;for(oe=[],a=Z=0;0<=A?Z<A:Z>A;a=0<=A?++Z:--Z)oe.push(o.readInt16());return oe}(),this.widths=function(){var Z,oe,Re,$e;for($e=[],Z=0,oe=(Re=this.metrics).length;Z<oe;Z++)p=Re[Z],$e.push(p.advance);return $e}.call(this),l=this.widths[this.widths.length-1],U=[],a=N=0;0<=A?N<A:N>A;a=0<=A?++N:--N)U.push(this.widths.push(l));return U},n.prototype.forGlyph=function(o){return o in this.metrics?this.metrics[o]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[o-this.metrics.length]}},n}(),Eg=[].slice,_g=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hu(n,LA),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(o){var a,l,A,p,N,E,U,Z,oe,Re;return o in this.cache?this.cache[o]:(p=this.file.loca,a=this.file.contents,l=p.indexOf(o),(A=p.lengthOf(o))===0?this.cache[o]=null:(a.pos=this.offset+l,N=(E=new uh(a.read(A))).readShort(),Z=E.readShort(),Re=E.readShort(),U=E.readShort(),oe=E.readShort(),this.cache[o]=N===-1?new dm(E,Z,Re,U,oe):new $h(E,N,Z,Re,U,oe),this.cache[o]))},n.prototype.encode=function(o,a,l){var A,p,N,E,U;for(N=[],p=[],E=0,U=a.length;E<U;E++)A=o[a[E]],p.push(N.length),A&&(N=N.concat(A.encode(l)));return p.push(N.length),{table:N,offsets:p}},n}(),$h=function(){function n(o,a,l,A,p,N){this.raw=o,this.numberOfContours=a,this.xMin=l,this.yMin=A,this.xMax=p,this.yMax=N,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),dm=function(){function n(o,a,l,A,p){var N,E;for(this.raw=o,this.xMin=a,this.yMin=l,this.xMax=A,this.yMax=p,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],N=this.raw;E=N.readShort(),this.glyphOffsets.push(N.pos),this.glyphIDs.push(N.readUInt16()),32&E;)N.pos+=1&E?4:2,128&E?N.pos+=8:64&E?N.pos+=4:8&E&&(N.pos+=2)}return n.prototype.encode=function(){var o,a,l;for(a=new uh(Eg.call(this.raw.data)),o=0,l=this.glyphIDs.length;o<l;++o)a.pos=this.glyphOffsets[o];return a.data},n}(),n1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hu(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,N=0;N<l.length;++N)if(l[N]=A,p<a.length&&a[p]==N){++p,l[N]=A;var E=this.offsets[N],U=this.offsets[N+1]-E;U>0&&(A+=U)}for(var Z=new Array(4*l.length),oe=0;oe<l.length;++oe)Z[4*oe+3]=255&l[oe],Z[4*oe+2]=(65280&l[oe])>>8,Z[4*oe+1]=(16711680&l[oe])>>16,Z[4*oe]=(4278190080&l[oe])>>24;return Z},n}(),Ig=function(){function n(o){this.font=o,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var o,a,l,A,p;for(a in A=this.font.cmap.tables[0].codeMap,o={},p=this.subset)l=p[a],o[a]=A[l];return o},n.prototype.glyphsFor=function(o){var a,l,A,p,N,E,U;for(A={},N=0,E=o.length;N<E;N++)A[p=o[N]]=this.font.glyf.glyphFor(p);for(p in a=[],A)(l=A[p])!=null&&l.compound&&a.push.apply(a,l.glyphIDs);if(a.length>0)for(p in U=this.glyphsFor(a))l=U[p],A[p]=l;return A},n.prototype.encode=function(o,a){var l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut,yt,ot;for(A in l=Am.encode(this.generateCmap(),"unicode"),N=this.glyphsFor(o),ae={0:0},ot=l.charMap)ae[(U=ot[A]).old]=U.new;for(mt in $e=l.maxGlyphID,N)mt in ae||(ae[mt]=$e++);return oe=function(Gt){var Rt,Ft;for(Rt in Ft={},Gt)Ft[Gt[Rt]]=Rt;return Ft}(ae),Re=Object.keys(oe).sort(function(Gt,Rt){return Gt-Rt}),ut=function(){var Gt,Rt,Ft;for(Ft=[],Gt=0,Rt=Re.length;Gt<Rt;Gt++)E=Re[Gt],Ft.push(oe[E]);return Ft}(),p=this.font.glyf.encode(N,ut,ae),Z=this.font.loca.encode(p.offsets,ut),yt={cmap:this.font.cmap.raw(),glyf:p.table,loca:Z,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(a)},this.font.os2.exists&&(yt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(yt)},n}();da.API.PDFObject=function(){var n;function o(){}return n=function(a,l){return(Array(l+1).join("0")+a).slice(-l)},o.convert=function(a){var l,A,p,N;if(Array.isArray(a))return"["+function(){var E,U,Z;for(Z=[],E=0,U=a.length;E<U;E++)l=a[E],Z.push(o.convert(l));return Z}().join(" ")+"]";if(typeof a=="string")return"/"+a;if(a!=null&&a.isString)return"("+a+")";if(a instanceof Date)return"(D:"+n(a.getUTCFullYear(),4)+n(a.getUTCMonth(),2)+n(a.getUTCDate(),2)+n(a.getUTCHours(),2)+n(a.getUTCMinutes(),2)+n(a.getUTCSeconds(),2)+"Z)";if({}.toString.call(a)==="[object Object]"){for(A in p=["<<"],a)N=a[A],p.push("/"+A+" "+o.convert(N));return p.push(">>"),p.join(`
|
|
|
`)}return""+a},o}()},86129:function(An,Tt,x){var pe=x(19208).lW,Ae=x(97671);(function(P){An.exports=P()})(function(){return function P(Ne,te,V){function S(v,$){if(!te[v]){if(!Ne[v]){var _=void 0;if(!$&&_)return require(v,!0);if(g)return g(v,!0);var M=new Error("Cannot find module '"+v+"'");throw M.code="MODULE_NOT_FOUND",M}var O=te[v]={exports:{}};Ne[v][0].call(O.exports,function(T){var L=Ne[v][1][T];return S(L||T)},O,O.exports,P,Ne,te,V)}return te[v].exports}for(var g=void 0,F=0;F<V.length;F++)S(V[F]);return S}({1:[function(P,Ne,te){"use strict";var V=P("./utils"),S=P("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";te.encode=function(F){for(var v,$,_,M,O,T,L,Y=[],R=0,se=F.length,ne=se,J=V.getTypeOf(F)!=="string";R<F.length;)ne=se-R,_=J?(v=F[R++],$=R<se?F[R++]:0,R<se?F[R++]:0):(v=F.charCodeAt(R++),$=R<se?F.charCodeAt(R++):0,R<se?F.charCodeAt(R++):0),M=v>>2,O=(3&v)<<4|$>>4,T=1<ne?(15&$)<<2|_>>6:64,L=2<ne?63&_:64,Y.push(g.charAt(M)+g.charAt(O)+g.charAt(T)+g.charAt(L));return Y.join("")},te.decode=function(F){var v,$,_,M,O,T,L=0,Y=0,R="data:";if(F.substr(0,R.length)===R)throw new Error("Invalid base64 input, it looks like a data url.");var se,ne=3*(F=F.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(F.charAt(F.length-1)===g.charAt(64)&&ne--,F.charAt(F.length-2)===g.charAt(64)&&ne--,ne%1!=0)throw new Error("Invalid base64 input, bad content length.");for(se=S.uint8array?new Uint8Array(0|ne):new Array(0|ne);L<F.length;)v=g.indexOf(F.charAt(L++))<<2|(M=g.indexOf(F.charAt(L++)))>>4,$=(15&M)<<4|(O=g.indexOf(F.charAt(L++)))>>2,_=(3&O)<<6|(T=g.indexOf(F.charAt(L++))),se[Y++]=v,O!==64&&(se[Y++]=$),T!==64&&(se[Y++]=_);return se}},{"./support":30,"./utils":32}],2:[function(P,Ne,te){"use strict";var V=P("./external"),S=P("./stream/DataWorker"),g=P("./stream/Crc32Probe"),F=P("./stream/DataLengthProbe");function v($,_,M,O,T){this.compressedSize=$,this.uncompressedSize=_,this.crc32=M,this.compression=O,this.compressedContent=T}v.prototype={getContentWorker:function(){var $=new S(V.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new F("data_length")),_=this;return $.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),$},getCompressedWorker:function(){return new S(V.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function($,_,M){return $.pipe(new g).pipe(new F("uncompressedSize")).pipe(_.compressWorker(M)).pipe(new F("compressedSize")).withStreamInfo("compression",_)},Ne.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(P,Ne,te){"use strict";var V=P("./stream/GenericWorker");te.STORE={magic:"\0\0",compressWorker:function(){return new V("STORE compression")},uncompressWorker:function(){return new V("STORE decompression")}},te.DEFLATE=P("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(P,Ne,te){"use strict";var V=P("./utils"),S=function(){for(var g,F=[],v=0;v<256;v++){g=v;for(var $=0;$<8;$++)g=1&g?3988292384^g>>>1:g>>>1;F[v]=g}return F}();Ne.exports=function(g,F){return g!==void 0&&g.length?V.getTypeOf(g)!=="string"?function(v,$,_,M){var O=S,T=M+_;v^=-1;for(var L=M;L<T;L++)v=v>>>8^O[255&(v^$[L])];return-1^v}(0|F,g,g.length,0):function(v,$,_,M){var O=S,T=M+_;v^=-1;for(var L=M;L<T;L++)v=v>>>8^O[255&(v^$.charCodeAt(L))];return-1^v}(0|F,g,g.length,0):0}},{"./utils":32}],5:[function(P,Ne,te){"use strict";te.base64=!1,te.binary=!1,te.dir=!1,te.createFolders=!0,te.date=null,te.compression=null,te.compressionOptions=null,te.comment=null,te.unixPermissions=null,te.dosPermissions=null},{}],6:[function(P,Ne,te){"use strict";var V=null;V=typeof Promise!="undefined"?Promise:P("lie"),Ne.exports={Promise:V}},{lie:37}],7:[function(P,Ne,te){"use strict";var V=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",S=P("pako"),g=P("./utils"),F=P("./stream/GenericWorker"),v=V?"uint8array":"array";function $(_,M){F.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=M,this.meta={}}te.magic="\b\0",g.inherits($,F),$.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(v,_.data),!1)},$.prototype.flush=function(){F.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},$.prototype.cleanUp=function(){F.prototype.cleanUp.call(this),this._pako=null},$.prototype._createPako=function(){this._pako=new S[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(M){_.push({data:M,meta:_.meta})}},te.compressWorker=function(_){return new $("Deflate",_)},te.uncompressWorker=function(){return new $("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(P,Ne,te){"use strict";function V(O,T){var L,Y="";for(L=0;L<T;L++)Y+=String.fromCharCode(255&O),O>>>=8;return Y}function S(O,T,L,Y,R,se){var ne,J,W=O.file,K=O.compression,le=se!==v.utf8encode,me=g.transformTo("string",se(W.name)),Oe=g.transformTo("string",v.utf8encode(W.name)),Be=W.comment,Ue=g.transformTo("string",se(Be)),ee=g.transformTo("string",v.utf8encode(Be)),fe=Oe.length!==W.name.length,D=ee.length!==Be.length,Ye="",Le="",Ce="",Te=W.dir,be=W.date,ke={crc32:0,compressedSize:0,uncompressedSize:0};T&&!L||(ke.crc32=O.crc32,ke.compressedSize=O.compressedSize,ke.uncompressedSize=O.uncompressedSize);var he=0;T&&(he|=8),le||!fe&&!D||(he|=2048);var Ee=0,Xe=0;Te&&(Ee|=16),R==="UNIX"?(Xe=798,Ee|=function(ze,qe){var _t=ze;return ze||(_t=qe?16893:33204),(65535&_t)<<16}(W.unixPermissions,Te)):(Xe=20,Ee|=function(ze){return 63&(ze||0)}(W.dosPermissions)),ne=be.getUTCHours(),ne<<=6,ne|=be.getUTCMinutes(),ne<<=5,ne|=be.getUTCSeconds()/2,J=be.getUTCFullYear()-1980,J<<=4,J|=be.getUTCMonth()+1,J<<=5,J|=be.getUTCDate(),fe&&(Le=V(1,1)+V($(me),4)+Oe,Ye+="up"+V(Le.length,2)+Le),D&&(Ce=V(1,1)+V($(Ue),4)+ee,Ye+="uc"+V(Ce.length,2)+Ce);var et="";return et+=`
|
|
|
\0`,et+=V(he,2),et+=K.magic,et+=V(ne,2),et+=V(J,2),et+=V(ke.crc32,4),et+=V(ke.compressedSize,4),et+=V(ke.uncompressedSize,4),et+=V(me.length,2),et+=V(Ye.length,2),{fileRecord:_.LOCAL_FILE_HEADER+et+me+Ye,dirRecord:_.CENTRAL_FILE_HEADER+V(Xe,2)+et+V(Ue.length,2)+"\0\0\0\0"+V(Ee,4)+V(Y,4)+me+Ye+Ue}}var g=P("../utils"),F=P("../stream/GenericWorker"),v=P("../utf8"),$=P("../crc32"),_=P("../signature");function M(O,T,L,Y){F.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=L,this.encodeFileName=Y,this.streamFiles=O,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(M,F),M.prototype.push=function(O){var T=O.meta.percent||0,L=this.entriesCount,Y=this._sources.length;this.accumulate?this.contentBuffer.push(O):(this.bytesWritten+=O.data.length,F.prototype.push.call(this,{data:O.data,meta:{currentFile:this.currentFile,percent:L?(T+100*(L-Y-1))/L:100}}))},M.prototype.openedSource=function(O){this.currentSourceOffset=this.bytesWritten,this.currentFile=O.file.name;var T=this.streamFiles&&!O.file.dir;if(T){var L=S(O,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},M.prototype.closedSource=function(O){this.accumulate=!1;var T=this.streamFiles&&!O.file.dir,L=S(O,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(L.dirRecord),T)this.push({data:function(Y){return _.DATA_DESCRIPTOR+V(Y.crc32,4)+V(Y.compressedSize,4)+V(Y.uncompressedSize,4)}(O),meta:{percent:100}});else for(this.push({data:L.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},M.prototype.flush=function(){for(var O=this.bytesWritten,T=0;T<this.dirRecords.length;T++)this.push({data:this.dirRecords[T],meta:{percent:100}});var L=this.bytesWritten-O,Y=function(R,se,ne,J,W){var K=g.transformTo("string",W(J));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+V(R,2)+V(R,2)+V(se,4)+V(ne,4)+V(K.length,2)+K}(this.dirRecords.length,L,O,this.zipComment,this.encodeFileName);this.push({data:Y,meta:{percent:100}})},M.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},M.prototype.registerPrevious=function(O){this._sources.push(O);var T=this;return O.on("data",function(L){T.processChunk(L)}),O.on("end",function(){T.closedSource(T.previous.streamInfo),T._sources.length?T.prepareNextSource():T.end()}),O.on("error",function(L){T.error(L)}),this},M.prototype.resume=function(){return!!F.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},M.prototype.error=function(O){var T=this._sources;if(!F.prototype.error.call(this,O))return!1;for(var L=0;L<T.length;L++)try{T[L].error(O)}catch(Y){}return!0},M.prototype.lock=function(){F.prototype.lock.call(this);for(var O=this._sources,T=0;T<O.length;T++)O[T].lock()},Ne.exports=M},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(P,Ne,te){"use strict";var V=P("../compressions"),S=P("./ZipFileWorker");te.generateWorker=function(g,F,v){var $=new S(F.streamFiles,v,F.platform,F.encodeFileName),_=0;try{g.forEach(function(M,O){_++;var T=function(se,ne){var J=se||ne,W=V[J];if(!W)throw new Error(J+" is not a valid compression method !");return W}(O.options.compression,F.compression),L=O.options.compressionOptions||F.compressionOptions||{},Y=O.dir,R=O.date;O._compressWorker(T,L).withStreamInfo("file",{name:M,dir:Y,date:R,comment:O.comment||"",unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions}).pipe($)}),$.entriesCount=_}catch(M){$.error(M)}return $}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(P,Ne,te){"use strict";function V(){if(!(this instanceof V))return new V;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var S=new V;for(var g in this)typeof this[g]!="function"&&(S[g]=this[g]);return S}}(V.prototype=P("./object")).loadAsync=P("./load"),V.support=P("./support"),V.defaults=P("./defaults"),V.version="3.10.1",V.loadAsync=function(S,g){return new V().loadAsync(S,g)},V.external=P("./external"),Ne.exports=V},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(P,Ne,te){"use strict";var V=P("./utils"),S=P("./external"),g=P("./utf8"),F=P("./zipEntries"),v=P("./stream/Crc32Probe"),$=P("./nodejsUtils");function _(M){return new S.Promise(function(O,T){var L=M.decompressed.getContentWorker().pipe(new v);L.on("error",function(Y){T(Y)}).on("end",function(){L.streamInfo.crc32!==M.decompressed.crc32?T(new Error("Corrupted zip : CRC32 mismatch")):O()}).resume()})}Ne.exports=function(M,O){var T=this;return O=V.extend(O||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),$.isNode&&$.isStream(M)?S.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):V.prepareContent("the loaded zip file",M,!0,O.optimizedBinaryString,O.base64).then(function(L){var Y=new F(O);return Y.load(L),Y}).then(function(L){var Y=[S.Promise.resolve(L)],R=L.files;if(O.checkCRC32)for(var se=0;se<R.length;se++)Y.push(_(R[se]));return S.Promise.all(Y)}).then(function(L){for(var Y=L.shift(),R=Y.files,se=0;se<R.length;se++){var ne=R[se],J=ne.fileNameStr,W=V.resolve(ne.fileNameStr);T.file(W,ne.decompressed,{binary:!0,optimizedBinaryString:!0,date:ne.date,dir:ne.dir,comment:ne.fileCommentStr.length?ne.fileCommentStr:null,unixPermissions:ne.unixPermissions,dosPermissions:ne.dosPermissions,createFolders:O.createFolders}),ne.dir||(T.file(W).unsafeOriginalName=J)}return Y.zipComment.length&&(T.comment=Y.zipComment),T})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("../stream/GenericWorker");function g(F,v){S.call(this,"Nodejs stream input adapter for "+F),this._upstreamEnded=!1,this._bindStream(v)}V.inherits(g,S),g.prototype._bindStream=function(F){var v=this;(this._stream=F).pause(),F.on("data",function($){v.push({data:$,meta:{percent:0}})}).on("error",function($){v.isPaused?this.generatedError=$:v.error($)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},g.prototype.pause=function(){return!!S.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Ne.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(P,Ne,te){"use strict";var V=P("readable-stream").Readable;function S(g,F,v){V.call(this,F),this._helper=g;var $=this;g.on("data",function(_,M){$.push(_)||$._helper.pause(),v&&v(M)}).on("error",function(_){$.emit("error",_)}).on("end",function(){$.push(null)})}P("../utils").inherits(S,V),S.prototype._read=function(){this._helper.resume()},Ne.exports=S},{"../utils":32,"readable-stream":16}],14:[function(P,Ne,te){"use strict";Ne.exports={isNode:typeof pe!="undefined",newBufferFrom:function(V,S){if(pe.from&&pe.from!==Uint8Array.from)return pe.from(V,S);if(typeof V=="number")throw new Error('The "data" argument must not be a number');return new pe(V,S)},allocBuffer:function(V){if(pe.alloc)return pe.alloc(V);var S=new pe(V);return S.fill(0),S},isBuffer:function(V){return pe.isBuffer(V)},isStream:function(V){return V&&typeof V.on=="function"&&typeof V.pause=="function"&&typeof V.resume=="function"}}},{}],15:[function(P,Ne,te){"use strict";function V(W,K,le){var me,Oe=g.getTypeOf(K),Be=g.extend(le||{},$);Be.date=Be.date||new Date,Be.compression!==null&&(Be.compression=Be.compression.toUpperCase()),typeof Be.unixPermissions=="string"&&(Be.unixPermissions=parseInt(Be.unixPermissions,8)),Be.unixPermissions&&16384&Be.unixPermissions&&(Be.dir=!0),Be.dosPermissions&&16&Be.dosPermissions&&(Be.dir=!0),Be.dir&&(W=R(W)),Be.createFolders&&(me=Y(W))&&se.call(this,me,!0);var Ue=Oe==="string"&&Be.binary===!1&&Be.base64===!1;le&&le.binary!==void 0||(Be.binary=!Ue),(K instanceof _&&K.uncompressedSize===0||Be.dir||!K||K.length===0)&&(Be.base64=!1,Be.binary=!0,K="",Be.compression="STORE",Oe="string");var ee=null;ee=K instanceof _||K instanceof F?K:T.isNode&&T.isStream(K)?new L(W,K):g.prepareContent(W,K,Be.binary,Be.optimizedBinaryString,Be.base64);var fe=new M(W,ee,Be);this.files[W]=fe}var S=P("./utf8"),g=P("./utils"),F=P("./stream/GenericWorker"),v=P("./stream/StreamHelper"),$=P("./defaults"),_=P("./compressedObject"),M=P("./zipObject"),O=P("./generate"),T=P("./nodejsUtils"),L=P("./nodejs/NodejsStreamInputAdapter"),Y=function(W){W.slice(-1)==="/"&&(W=W.substring(0,W.length-1));var K=W.lastIndexOf("/");return 0<K?W.substring(0,K):""},R=function(W){return W.slice(-1)!=="/"&&(W+="/"),W},se=function(W,K){return K=K!==void 0?K:$.createFolders,W=R(W),this.files[W]||V.call(this,W,null,{dir:!0,createFolders:K}),this.files[W]};function ne(W){return Object.prototype.toString.call(W)==="[object RegExp]"}var J={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(W){var K,le,me;for(K in this.files)me=this.files[K],(le=K.slice(this.root.length,K.length))&&K.slice(0,this.root.length)===this.root&&W(le,me)},filter:function(W){var K=[];return this.forEach(function(le,me){W(le,me)&&K.push(me)}),K},file:function(W,K,le){if(arguments.length!==1)return W=this.root+W,V.call(this,W,K,le),this;if(ne(W)){var me=W;return this.filter(function(Be,Ue){return!Ue.dir&&me.test(Be)})}var Oe=this.files[this.root+W];return Oe&&!Oe.dir?Oe:null},folder:function(W){if(!W)return this;if(ne(W))return this.filter(function(Oe,Be){return Be.dir&&W.test(Oe)});var K=this.root+W,le=se.call(this,K),me=this.clone();return me.root=le.name,me},remove:function(W){W=this.root+W;var K=this.files[W];if(K||(W.slice(-1)!=="/"&&(W+="/"),K=this.files[W]),K&&!K.dir)delete this.files[W];else for(var le=this.filter(function(Oe,Be){return Be.name.slice(0,W.length)===W}),me=0;me<le.length;me++)delete this.files[le[me].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(W){var K,le={};try{if((le=g.extend(W||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:S.utf8encode})).type=le.type.toLowerCase(),le.compression=le.compression.toUpperCase(),le.type==="binarystring"&&(le.type="string"),!le.type)throw new Error("No output type specified.");g.checkSupport(le.type),le.platform!=="darwin"&&le.platform!=="freebsd"&&le.platform!=="linux"&&le.platform!=="sunos"||(le.platform="UNIX"),le.platform==="win32"&&(le.platform="DOS");var me=le.comment||this.comment||"";K=O.generateWorker(this,le,me)}catch(Oe){(K=new F("error")).error(Oe)}return new v(K,le.type||"string",le.mimeType)},generateAsync:function(W,K){return this.generateInternalStream(W).accumulate(K)},generateNodeStream:function(W,K){return(W=W||{}).type||(W.type="nodebuffer"),this.generateInternalStream(W).toNodejsStream(K)}};Ne.exports=J},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(P,Ne,te){"use strict";Ne.exports=P("stream")},{stream:void 0}],17:[function(P,Ne,te){"use strict";var V=P("./DataReader");function S(g){V.call(this,g);for(var F=0;F<this.data.length;F++)g[F]=255&g[F]}P("../utils").inherits(S,V),S.prototype.byteAt=function(g){return this.data[this.zero+g]},S.prototype.lastIndexOfSignature=function(g){for(var F=g.charCodeAt(0),v=g.charCodeAt(1),$=g.charCodeAt(2),_=g.charCodeAt(3),M=this.length-4;0<=M;--M)if(this.data[M]===F&&this.data[M+1]===v&&this.data[M+2]===$&&this.data[M+3]===_)return M-this.zero;return-1},S.prototype.readAndCheckSignature=function(g){var F=g.charCodeAt(0),v=g.charCodeAt(1),$=g.charCodeAt(2),_=g.charCodeAt(3),M=this.readData(4);return F===M[0]&&v===M[1]&&$===M[2]&&_===M[3]},S.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./DataReader":18}],18:[function(P,Ne,te){"use strict";var V=P("../utils");function S(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}S.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var F,v=0;for(this.checkOffset(g),F=this.index+g-1;F>=this.index;F--)v=(v<<8)+this.byteAt(F);return this.index+=g,v},readString:function(g){return V.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},Ne.exports=S},{"../utils":32}],19:[function(P,Ne,te){"use strict";var V=P("./Uint8ArrayReader");function S(g){V.call(this,g)}P("../utils").inherits(S,V),S.prototype.readData=function(g){this.checkOffset(g);var F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(P,Ne,te){"use strict";var V=P("./DataReader");function S(g){V.call(this,g)}P("../utils").inherits(S,V),S.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},S.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},S.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},S.prototype.readData=function(g){this.checkOffset(g);var F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./DataReader":18}],21:[function(P,Ne,te){"use strict";var V=P("./ArrayReader");function S(g){V.call(this,g)}P("../utils").inherits(S,V),S.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var F=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./ArrayReader":17}],22:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("../support"),g=P("./ArrayReader"),F=P("./StringReader"),v=P("./NodeBufferReader"),$=P("./Uint8ArrayReader");Ne.exports=function(_){var M=V.getTypeOf(_);return V.checkSupport(M),M!=="string"||S.uint8array?M==="nodebuffer"?new v(_):S.uint8array?new $(V.transformTo("uint8array",_)):new g(V.transformTo("array",_)):new F(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(P,Ne,te){"use strict";te.LOCAL_FILE_HEADER="PK",te.CENTRAL_FILE_HEADER="PK",te.CENTRAL_DIRECTORY_END="PK",te.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",te.ZIP64_CENTRAL_DIRECTORY_END="PK",te.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(P,Ne,te){"use strict";var V=P("./GenericWorker"),S=P("../utils");function g(F){V.call(this,"ConvertWorker to "+F),this.destType=F}S.inherits(g,V),g.prototype.processChunk=function(F){this.push({data:S.transformTo(this.destType,F.data),meta:F.meta})},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(P,Ne,te){"use strict";var V=P("./GenericWorker"),S=P("../crc32");function g(){V.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}P("../utils").inherits(g,V),g.prototype.processChunk=function(F){this.streamInfo.crc32=S(F.data,this.streamInfo.crc32||0),this.push(F)},Ne.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("./GenericWorker");function g(F){S.call(this,"DataLengthProbe for "+F),this.propName=F,this.withStreamInfo(F,0)}V.inherits(g,S),g.prototype.processChunk=function(F){if(F){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+F.data.length}S.prototype.processChunk.call(this,F)},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("./GenericWorker");function g(F){S.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,F.then(function($){v.dataIsReady=!0,v.data=$,v.max=$&&$.length||0,v.type=V.getTypeOf($),v.isPaused||v._tickAndRepeat()},function($){v.error($)})}V.inherits(g,S),g.prototype.cleanUp=function(){S.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,V.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(V.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var F=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":F=this.data.substring(this.index,v);break;case"uint8array":F=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":F=this.data.slice(this.index,v)}return this.index=v,this.push({data:F,meta:{percent:this.max?this.index/this.max*100:0}})},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(P,Ne,te){"use strict";function V(S){this.name=S||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}V.prototype={push:function(S){this.emit("data",S)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(S){this.emit("error",S)}return!0},error:function(S){return!this.isFinished&&(this.isPaused?this.generatedError=S:(this.isFinished=!0,this.emit("error",S),this.previous&&this.previous.error(S),this.cleanUp()),!0)},on:function(S,g){return this._listeners[S].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(S,g){if(this._listeners[S])for(var F=0;F<this._listeners[S].length;F++)this._listeners[S][F].call(this,g)},pipe:function(S){return S.registerPrevious(this)},registerPrevious:function(S){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=S.streamInfo,this.mergeStreamInfo(),this.previous=S;var g=this;return S.on("data",function(F){g.processChunk(F)}),S.on("end",function(){g.end()}),S.on("error",function(F){g.error(F)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var S=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),S=!0),this.previous&&this.previous.resume(),!S},flush:function(){},processChunk:function(S){this.push(S)},withStreamInfo:function(S,g){return this.extraStreamInfo[S]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var S in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,S)&&(this.streamInfo[S]=this.extraStreamInfo[S])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var S="Worker "+this.name;return this.previous?this.previous+" -> "+S:S}},Ne.exports=V},{}],29:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("./ConvertWorker"),g=P("./GenericWorker"),F=P("../base64"),v=P("../support"),$=P("../external"),_=null;if(v.nodestream)try{_=P("../nodejs/NodejsStreamOutputAdapter")}catch(T){}function M(T,L){return new $.Promise(function(Y,R){var se=[],ne=T._internalType,J=T._outputType,W=T._mimeType;T.on("data",function(K,le){se.push(K),L&&L(le)}).on("error",function(K){se=[],R(K)}).on("end",function(){try{var K=function(le,me,Oe){switch(le){case"blob":return V.newBlob(V.transformTo("arraybuffer",me),Oe);case"base64":return F.encode(me);default:return V.transformTo(le,me)}}(J,function(le,me){var Oe,Be=0,Ue=null,ee=0;for(Oe=0;Oe<me.length;Oe++)ee+=me[Oe].length;switch(le){case"string":return me.join("");case"array":return Array.prototype.concat.apply([],me);case"uint8array":for(Ue=new Uint8Array(ee),Oe=0;Oe<me.length;Oe++)Ue.set(me[Oe],Be),Be+=me[Oe].length;return Ue;case"nodebuffer":return pe.concat(me);default:throw new Error("concat : unsupported type '"+le+"'")}}(ne,se),W);Y(K)}catch(le){R(le)}se=[]}).resume()})}function O(T,L,Y){var R=L;switch(L){case"blob":case"arraybuffer":R="uint8array";break;case"base64":R="string"}try{this._internalType=R,this._outputType=L,this._mimeType=Y,V.checkSupport(R),this._worker=T.pipe(new S(R)),T.lock()}catch(se){this._worker=new g("error"),this._worker.error(se)}}O.prototype={accumulate:function(T){return M(this,T)},on:function(T,L){var Y=this;return T==="data"?this._worker.on(T,function(R){L.call(Y,R.data,R.meta)}):this._worker.on(T,function(){V.delay(L,arguments,Y)}),this},resume:function(){return V.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(T){if(V.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new _(this,{objectMode:this._outputType!=="nodebuffer"},T)}},Ne.exports=O},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(P,Ne,te){"use strict";if(te.base64=!0,te.array=!0,te.string=!0,te.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",te.nodebuffer=typeof pe!="undefined",te.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")te.blob=!1;else{var V=new ArrayBuffer(0);try{te.blob=new Blob([V],{type:"application/zip"}).size===0}catch(g){try{var S=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);S.append(V),te.blob=S.getBlob("application/zip").size===0}catch(F){te.blob=!1}}}try{te.nodestream=!!P("readable-stream").Readable}catch(g){te.nodestream=!1}},{"readable-stream":16}],31:[function(P,Ne,te){"use strict";for(var V=P("./utils"),S=P("./support"),g=P("./nodejsUtils"),F=P("./stream/GenericWorker"),v=new Array(256),$=0;$<256;$++)v[$]=252<=$?6:248<=$?5:240<=$?4:224<=$?3:192<=$?2:1;v[254]=v[254]=1;function _(){F.call(this,"utf-8 decode"),this.leftOver=null}function M(){F.call(this,"utf-8 encode")}te.utf8encode=function(O){return S.nodebuffer?g.newBufferFrom(O,"utf-8"):function(T){var L,Y,R,se,ne,J=T.length,W=0;for(se=0;se<J;se++)(64512&(Y=T.charCodeAt(se)))==55296&&se+1<J&&(64512&(R=T.charCodeAt(se+1)))==56320&&(Y=65536+(Y-55296<<10)+(R-56320),se++),W+=Y<128?1:Y<2048?2:Y<65536?3:4;for(L=S.uint8array?new Uint8Array(W):new Array(W),se=ne=0;ne<W;se++)(64512&(Y=T.charCodeAt(se)))==55296&&se+1<J&&(64512&(R=T.charCodeAt(se+1)))==56320&&(Y=65536+(Y-55296<<10)+(R-56320),se++),Y<128?L[ne++]=Y:(Y<2048?L[ne++]=192|Y>>>6:(Y<65536?L[ne++]=224|Y>>>12:(L[ne++]=240|Y>>>18,L[ne++]=128|Y>>>12&63),L[ne++]=128|Y>>>6&63),L[ne++]=128|63&Y);return L}(O)},te.utf8decode=function(O){return S.nodebuffer?V.transformTo("nodebuffer",O).toString("utf-8"):function(T){var L,Y,R,se,ne=T.length,J=new Array(2*ne);for(L=Y=0;L<ne;)if((R=T[L++])<128)J[Y++]=R;else if(4<(se=v[R]))J[Y++]=65533,L+=se-1;else{for(R&=se===2?31:se===3?15:7;1<se&&L<ne;)R=R<<6|63&T[L++],se--;1<se?J[Y++]=65533:R<65536?J[Y++]=R:(R-=65536,J[Y++]=55296|R>>10&1023,J[Y++]=56320|1023&R)}return J.length!==Y&&(J.subarray?J=J.subarray(0,Y):J.length=Y),V.applyFromCharCode(J)}(O=V.transformTo(S.uint8array?"uint8array":"array",O))},V.inherits(_,F),_.prototype.processChunk=function(O){var T=V.transformTo(S.uint8array?"uint8array":"array",O.data);if(this.leftOver&&this.leftOver.length){if(S.uint8array){var L=T;(T=new Uint8Array(L.length+this.leftOver.length)).set(this.leftOver,0),T.set(L,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var Y=function(se,ne){var J;for((ne=ne||se.length)>se.length&&(ne=se.length),J=ne-1;0<=J&&(192&se[J])==128;)J--;return J<0||J===0?ne:J+v[se[J]]>ne?J:ne}(T),R=T;Y!==T.length&&(S.uint8array?(R=T.subarray(0,Y),this.leftOver=T.subarray(Y,T.length)):(R=T.slice(0,Y),this.leftOver=T.slice(Y,T.length))),this.push({data:te.utf8decode(R),meta:O.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:te.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},te.Utf8DecodeWorker=_,V.inherits(M,F),M.prototype.processChunk=function(O){this.push({data:te.utf8encode(O.data),meta:O.meta})},te.Utf8EncodeWorker=M},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(P,Ne,te){"use strict";var V=P("./support"),S=P("./base64"),g=P("./nodejsUtils"),F=P("./external");function v(L){return L}function $(L,Y){for(var R=0;R<L.length;++R)Y[R]=255&L.charCodeAt(R);return Y}P("setimmediate"),te.newBlob=function(L,Y){te.checkSupport("blob");try{return new Blob([L],{type:Y})}catch(se){try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(L),R.getBlob(Y)}catch(ne){throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(L,Y,R){var se=[],ne=0,J=L.length;if(J<=R)return String.fromCharCode.apply(null,L);for(;ne<J;)Y==="array"||Y==="nodebuffer"?se.push(String.fromCharCode.apply(null,L.slice(ne,Math.min(ne+R,J)))):se.push(String.fromCharCode.apply(null,L.subarray(ne,Math.min(ne+R,J)))),ne+=R;return se.join("")},stringifyByChar:function(L){for(var Y="",R=0;R<L.length;R++)Y+=String.fromCharCode(L[R]);return Y},applyCanBeUsed:{uint8array:function(){try{return V.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(L){return!1}}(),nodebuffer:function(){try{return V.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch(L){return!1}}()}};function M(L){var Y=65536,R=te.getTypeOf(L),se=!0;if(R==="uint8array"?se=_.applyCanBeUsed.uint8array:R==="nodebuffer"&&(se=_.applyCanBeUsed.nodebuffer),se)for(;1<Y;)try{return _.stringifyByChunk(L,R,Y)}catch(ne){Y=Math.floor(Y/2)}return _.stringifyByChar(L)}function O(L,Y){for(var R=0;R<L.length;R++)Y[R]=L[R];return Y}te.applyFromCharCode=M;var T={};T.string={string:v,array:function(L){return $(L,new Array(L.length))},arraybuffer:function(L){return T.string.uint8array(L).buffer},uint8array:function(L){return $(L,new Uint8Array(L.length))},nodebuffer:function(L){return $(L,g.allocBuffer(L.length))}},T.array={string:M,array:v,arraybuffer:function(L){return new Uint8Array(L).buffer},uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return g.newBufferFrom(L)}},T.arraybuffer={string:function(L){return M(new Uint8Array(L))},array:function(L){return O(new Uint8Array(L),new Array(L.byteLength))},arraybuffer:v,uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return g.newBufferFrom(new Uint8Array(L))}},T.uint8array={string:M,array:function(L){return O(L,new Array(L.length))},arraybuffer:function(L){return L.buffer},uint8array:v,nodebuffer:function(L){return g.newBufferFrom(L)}},T.nodebuffer={string:M,array:function(L){return O(L,new Array(L.length))},arraybuffer:function(L){return T.nodebuffer.uint8array(L).buffer},uint8array:function(L){return O(L,new Uint8Array(L.length))},nodebuffer:v},te.transformTo=function(L,Y){if(Y=Y||"",!L)return Y;te.checkSupport(L);var R=te.getTypeOf(Y);return T[R][L](Y)},te.resolve=function(L){for(var Y=L.split("/"),R=[],se=0;se<Y.length;se++){var ne=Y[se];ne==="."||ne===""&&se!==0&&se!==Y.length-1||(ne===".."?R.pop():R.push(ne))}return R.join("/")},te.getTypeOf=function(L){return typeof L=="string"?"string":Object.prototype.toString.call(L)==="[object Array]"?"array":V.nodebuffer&&g.isBuffer(L)?"nodebuffer":V.uint8array&&L instanceof Uint8Array?"uint8array":V.arraybuffer&&L instanceof ArrayBuffer?"arraybuffer":void 0},te.checkSupport=function(L){if(!V[L.toLowerCase()])throw new Error(L+" is not supported by this platform")},te.MAX_VALUE_16BITS=65535,te.MAX_VALUE_32BITS=-1,te.pretty=function(L){var Y,R,se="";for(R=0;R<(L||"").length;R++)se+="\\x"+((Y=L.charCodeAt(R))<16?"0":"")+Y.toString(16).toUpperCase();return se},te.delay=function(L,Y,R){setImmediate(function(){L.apply(R||null,Y||[])})},te.inherits=function(L,Y){function R(){}R.prototype=Y.prototype,L.prototype=new R},te.extend=function(){var L,Y,R={};for(L=0;L<arguments.length;L++)for(Y in arguments[L])Object.prototype.hasOwnProperty.call(arguments[L],Y)&&R[Y]===void 0&&(R[Y]=arguments[L][Y]);return R},te.prepareContent=function(L,Y,R,se,ne){return F.Promise.resolve(Y).then(function(J){return V.blob&&(J instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(J))!==-1)&&typeof FileReader!="undefined"?new F.Promise(function(W,K){var le=new FileReader;le.onload=function(me){W(me.target.result)},le.onerror=function(me){K(me.target.error)},le.readAsArrayBuffer(J)}):J}).then(function(J){var W=te.getTypeOf(J);return W?(W==="arraybuffer"?J=te.transformTo("uint8array",J):W==="string"&&(ne?J=S.decode(J):R&&se!==!0&&(J=function(K){return $(K,V.uint8array?new Uint8Array(K.length):new Array(K.length))}(J))),J):F.Promise.reject(new Error("Can't read the data of '"+L+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(P,Ne,te){"use strict";var V=P("./reader/readerFor"),S=P("./utils"),g=P("./signature"),F=P("./zipEntry"),v=P("./support");function $(_){this.files=[],this.loadOptions=_}$.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var M=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+S.pretty(M)+", expected "+S.pretty(_)+")")}},isSignature:function(_,M){var O=this.reader.index;this.reader.setIndex(_);var T=this.reader.readString(4)===M;return this.reader.setIndex(O),T},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var _=this.reader.readData(this.zipCommentLength),M=v.uint8array?"uint8array":"array",O=S.transformTo(M,_);this.zipComment=this.loadOptions.decodeFileName(O)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var _,M,O,T=this.zip64EndOfCentralSize-44;0<T;)_=this.reader.readInt(2),M=this.reader.readInt(4),O=this.reader.readData(M),this.zip64ExtensibleData[_]={id:_,length:M,value:O}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,M;for(_=0;_<this.files.length;_++)M=this.files[_],this.reader.setIndex(M.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),M.readLocalPart(this.reader),M.handleUTF8(),M.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(_=new F({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(_);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var _=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(_<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(_);var M=_;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===S.MAX_VALUE_16BITS||this.diskWithCentralDirStart===S.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===S.MAX_VALUE_16BITS||this.centralDirRecords===S.MAX_VALUE_16BITS||this.centralDirSize===S.MAX_VALUE_32BITS||this.centralDirOffset===S.MAX_VALUE_32BITS){if(this.zip64=!0,(_=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(_),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var O=this.centralDirOffset+this.centralDirSize;this.zip64&&(O+=20,O+=12+this.zip64EndOfCentralSize);var T=M-O;if(0<T)this.isSignature(M,g.CENTRAL_FILE_HEADER)||(this.reader.zero=T);else if(T<0)throw new Error("Corrupted zip: missing "+Math.abs(T)+" bytes.")},prepareReader:function(_){this.reader=V(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Ne.exports=$},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(P,Ne,te){"use strict";var V=P("./reader/readerFor"),S=P("./utils"),g=P("./compressedObject"),F=P("./crc32"),v=P("./utf8"),$=P("./compressions"),_=P("./support");function M(O,T){this.options=O,this.loadOptions=T}M.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(O){var T,L;if(O.skip(22),this.fileNameLength=O.readInt(2),L=O.readInt(2),this.fileName=O.readData(this.fileNameLength),O.skip(L),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((T=function(Y){for(var R in $)if(Object.prototype.hasOwnProperty.call($,R)&&$[R].magic===Y)return $[R];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+S.pretty(this.compressionMethod)+" unknown (inner file : "+S.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,T,O.readData(this.compressedSize))},readCentralPart:function(O){this.versionMadeBy=O.readInt(2),O.skip(2),this.bitFlag=O.readInt(2),this.compressionMethod=O.readString(2),this.date=O.readDate(),this.crc32=O.readInt(4),this.compressedSize=O.readInt(4),this.uncompressedSize=O.readInt(4);var T=O.readInt(2);if(this.extraFieldsLength=O.readInt(2),this.fileCommentLength=O.readInt(2),this.diskNumberStart=O.readInt(2),this.internalFileAttributes=O.readInt(2),this.externalFileAttributes=O.readInt(4),this.localHeaderOffset=O.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");O.skip(T),this.readExtraFields(O),this.parseZIP64ExtraField(O),this.fileComment=O.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var O=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),O==0&&(this.dosPermissions=63&this.externalFileAttributes),O==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var O=V(this.extraFields[1].value);this.uncompressedSize===S.MAX_VALUE_32BITS&&(this.uncompressedSize=O.readInt(8)),this.compressedSize===S.MAX_VALUE_32BITS&&(this.compressedSize=O.readInt(8)),this.localHeaderOffset===S.MAX_VALUE_32BITS&&(this.localHeaderOffset=O.readInt(8)),this.diskNumberStart===S.MAX_VALUE_32BITS&&(this.diskNumberStart=O.readInt(4))}},readExtraFields:function(O){var T,L,Y,R=O.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});O.index+4<R;)T=O.readInt(2),L=O.readInt(2),Y=O.readData(L),this.extraFields[T]={id:T,length:L,value:Y};O.setIndex(R)},handleUTF8:function(){var O=_.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var T=this.findExtraFieldUnicodePath();if(T!==null)this.fileNameStr=T;else{var L=S.transformTo(O,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(L)}var Y=this.findExtraFieldUnicodeComment();if(Y!==null)this.fileCommentStr=Y;else{var R=S.transformTo(O,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var O=this.extraFields[28789];if(O){var T=V(O.value);return T.readInt(1)!==1||F(this.fileName)!==T.readInt(4)?null:v.utf8decode(T.readData(O.length-5))}return null},findExtraFieldUnicodeComment:function(){var O=this.extraFields[25461];if(O){var T=V(O.value);return T.readInt(1)!==1||F(this.fileComment)!==T.readInt(4)?null:v.utf8decode(T.readData(O.length-5))}return null}},Ne.exports=M},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(P,Ne,te){"use strict";function V(T,L,Y){this.name=T,this.dir=Y.dir,this.date=Y.date,this.comment=Y.comment,this.unixPermissions=Y.unixPermissions,this.dosPermissions=Y.dosPermissions,this._data=L,this._dataBinary=Y.binary,this.options={compression:Y.compression,compressionOptions:Y.compressionOptions}}var S=P("./stream/StreamHelper"),g=P("./stream/DataWorker"),F=P("./utf8"),v=P("./compressedObject"),$=P("./stream/GenericWorker");V.prototype={internalStream:function(T){var L=null,Y="string";try{if(!T)throw new Error("No output type specified.");var R=(Y=T.toLowerCase())==="string"||Y==="text";Y!=="binarystring"&&Y!=="text"||(Y="string"),L=this._decompressWorker();var se=!this._dataBinary;se&&!R&&(L=L.pipe(new F.Utf8EncodeWorker)),!se&&R&&(L=L.pipe(new F.Utf8DecodeWorker))}catch(ne){(L=new $("error")).error(ne)}return new S(L,Y,"")},async:function(T,L){return this.internalStream(T).accumulate(L)},nodeStream:function(T,L){return this.internalStream(T||"nodebuffer").toNodejsStream(L)},_compressWorker:function(T,L){if(this._data instanceof v&&this._data.compression.magic===T.magic)return this._data.getCompressedWorker();var Y=this._decompressWorker();return this._dataBinary||(Y=Y.pipe(new F.Utf8EncodeWorker)),v.createWorkerFrom(Y,T,L)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof $?this._data:new g(this._data)}};for(var _=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],M=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},O=0;O<_.length;O++)V.prototype[_[O]]=M;Ne.exports=V},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(P,Ne,te){(function(V){"use strict";var S,g,F=V.MutationObserver||V.WebKitMutationObserver;if(F){var v=0,$=new F(T),_=V.document.createTextNode("");$.observe(_,{characterData:!0}),S=function(){_.data=v=++v%2}}else if(V.setImmediate||V.MessageChannel===void 0)S="document"in V&&"onreadystatechange"in V.document.createElement("script")?function(){var L=V.document.createElement("script");L.onreadystatechange=function(){T(),L.onreadystatechange=null,L.parentNode.removeChild(L),L=null},V.document.documentElement.appendChild(L)}:function(){setTimeout(T,0)};else{var M=new V.MessageChannel;M.port1.onmessage=T,S=function(){M.port2.postMessage(0)}}var O=[];function T(){var L,Y;g=!0;for(var R=O.length;R;){for(Y=O,O=[],L=-1;++L<R;)Y[L]();R=O.length}g=!1}Ne.exports=function(L){O.push(L)!==1||g||S()}}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(P,Ne,te){"use strict";var V=P("immediate");function S(){}var g={},F=["REJECTED"],v=["FULFILLED"],$=["PENDING"];function _(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=$,this.queue=[],this.outcome=void 0,R!==S&&L(this,R)}function M(R,se,ne){this.promise=R,typeof se=="function"&&(this.onFulfilled=se,this.callFulfilled=this.otherCallFulfilled),typeof ne=="function"&&(this.onRejected=ne,this.callRejected=this.otherCallRejected)}function O(R,se,ne){V(function(){var J;try{J=se(ne)}catch(W){return g.reject(R,W)}J===R?g.reject(R,new TypeError("Cannot resolve promise with itself")):g.resolve(R,J)})}function T(R){var se=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof se=="function")return function(){se.apply(R,arguments)}}function L(R,se){var ne=!1;function J(le){ne||(ne=!0,g.reject(R,le))}function W(le){ne||(ne=!0,g.resolve(R,le))}var K=Y(function(){se(W,J)});K.status==="error"&&J(K.value)}function Y(R,se){var ne={};try{ne.value=R(se),ne.status="success"}catch(J){ne.status="error",ne.value=J}return ne}(Ne.exports=_).prototype.finally=function(R){if(typeof R!="function")return this;var se=this.constructor;return this.then(function(ne){return se.resolve(R()).then(function(){return ne})},function(ne){return se.resolve(R()).then(function(){throw ne})})},_.prototype.catch=function(R){return this.then(null,R)},_.prototype.then=function(R,se){if(typeof R!="function"&&this.state===v||typeof se!="function"&&this.state===F)return this;var ne=new this.constructor(S);return this.state!==$?O(ne,this.state===v?R:se,this.outcome):this.queue.push(new M(ne,R,se)),ne},M.prototype.callFulfilled=function(R){g.resolve(this.promise,R)},M.prototype.otherCallFulfilled=function(R){O(this.promise,this.onFulfilled,R)},M.prototype.callRejected=function(R){g.reject(this.promise,R)},M.prototype.otherCallRejected=function(R){O(this.promise,this.onRejected,R)},g.resolve=function(R,se){var ne=Y(T,se);if(ne.status==="error")return g.reject(R,ne.value);var J=ne.value;if(J)L(R,J);else{R.state=v,R.outcome=se;for(var W=-1,K=R.queue.length;++W<K;)R.queue[W].callFulfilled(se)}return R},g.reject=function(R,se){R.state=F,R.outcome=se;for(var ne=-1,J=R.queue.length;++ne<J;)R.queue[ne].callRejected(se);return R},_.resolve=function(R){return R instanceof this?R:g.resolve(new this(S),R)},_.reject=function(R){var se=new this(S);return g.reject(se,R)},_.all=function(R){var se=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ne=R.length,J=!1;if(!ne)return this.resolve([]);for(var W=new Array(ne),K=0,le=-1,me=new this(S);++le<ne;)Oe(R[le],le);return me;function Oe(Be,Ue){se.resolve(Be).then(function(ee){W[Ue]=ee,++K!==ne||J||(J=!0,g.resolve(me,W))},function(ee){J||(J=!0,g.reject(me,ee))})}},_.race=function(R){var se=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ne=R.length,J=!1;if(!ne)return this.resolve([]);for(var W=-1,K=new this(S);++W<ne;)le=R[W],se.resolve(le).then(function(me){J||(J=!0,g.resolve(K,me))},function(me){J||(J=!0,g.reject(K,me))});var le;return K}},{immediate:36}],38:[function(P,Ne,te){"use strict";var V={};(0,P("./lib/utils/common").assign)(V,P("./lib/deflate"),P("./lib/inflate"),P("./lib/zlib/constants")),Ne.exports=V},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(P,Ne,te){"use strict";var V=P("./zlib/deflate"),S=P("./utils/common"),g=P("./utils/strings"),F=P("./zlib/messages"),v=P("./zlib/zstream"),$=Object.prototype.toString,_=0,M=-1,O=0,T=8;function L(R){if(!(this instanceof L))return new L(R);this.options=S.assign({level:M,method:T,chunkSize:16384,windowBits:15,memLevel:8,strategy:O,to:""},R||{});var se=this.options;se.raw&&0<se.windowBits?se.windowBits=-se.windowBits:se.gzip&&0<se.windowBits&&se.windowBits<16&&(se.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var ne=V.deflateInit2(this.strm,se.level,se.method,se.windowBits,se.memLevel,se.strategy);if(ne!==_)throw new Error(F[ne]);if(se.header&&V.deflateSetHeader(this.strm,se.header),se.dictionary){var J;if(J=typeof se.dictionary=="string"?g.string2buf(se.dictionary):$.call(se.dictionary)==="[object ArrayBuffer]"?new Uint8Array(se.dictionary):se.dictionary,(ne=V.deflateSetDictionary(this.strm,J))!==_)throw new Error(F[ne]);this._dict_set=!0}}function Y(R,se){var ne=new L(se);if(ne.push(R,!0),ne.err)throw ne.msg||F[ne.err];return ne.result}L.prototype.push=function(R,se){var ne,J,W=this.strm,K=this.options.chunkSize;if(this.ended)return!1;J=se===~~se?se:se===!0?4:0,typeof R=="string"?W.input=g.string2buf(R):$.call(R)==="[object ArrayBuffer]"?W.input=new Uint8Array(R):W.input=R,W.next_in=0,W.avail_in=W.input.length;do{if(W.avail_out===0&&(W.output=new S.Buf8(K),W.next_out=0,W.avail_out=K),(ne=V.deflate(W,J))!==1&&ne!==_)return this.onEnd(ne),!(this.ended=!0);W.avail_out!==0&&(W.avail_in!==0||J!==4&&J!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(S.shrinkBuf(W.output,W.next_out))):this.onData(S.shrinkBuf(W.output,W.next_out)))}while((0<W.avail_in||W.avail_out===0)&&ne!==1);return J===4?(ne=V.deflateEnd(this.strm),this.onEnd(ne),this.ended=!0,ne===_):J!==2||(this.onEnd(_),!(W.avail_out=0))},L.prototype.onData=function(R){this.chunks.push(R)},L.prototype.onEnd=function(R){R===_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=S.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},te.Deflate=L,te.deflate=Y,te.deflateRaw=function(R,se){return(se=se||{}).raw=!0,Y(R,se)},te.gzip=function(R,se){return(se=se||{}).gzip=!0,Y(R,se)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(P,Ne,te){"use strict";var V=P("./zlib/inflate"),S=P("./utils/common"),g=P("./utils/strings"),F=P("./zlib/constants"),v=P("./zlib/messages"),$=P("./zlib/zstream"),_=P("./zlib/gzheader"),M=Object.prototype.toString;function O(L){if(!(this instanceof O))return new O(L);this.options=S.assign({chunkSize:16384,windowBits:0,to:""},L||{});var Y=this.options;Y.raw&&0<=Y.windowBits&&Y.windowBits<16&&(Y.windowBits=-Y.windowBits,Y.windowBits===0&&(Y.windowBits=-15)),!(0<=Y.windowBits&&Y.windowBits<16)||L&&L.windowBits||(Y.windowBits+=32),15<Y.windowBits&&Y.windowBits<48&&!(15&Y.windowBits)&&(Y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $,this.strm.avail_out=0;var R=V.inflateInit2(this.strm,Y.windowBits);if(R!==F.Z_OK)throw new Error(v[R]);this.header=new _,V.inflateGetHeader(this.strm,this.header)}function T(L,Y){var R=new O(Y);if(R.push(L,!0),R.err)throw R.msg||v[R.err];return R.result}O.prototype.push=function(L,Y){var R,se,ne,J,W,K,le=this.strm,me=this.options.chunkSize,Oe=this.options.dictionary,Be=!1;if(this.ended)return!1;se=Y===~~Y?Y:Y===!0?F.Z_FINISH:F.Z_NO_FLUSH,typeof L=="string"?le.input=g.binstring2buf(L):M.call(L)==="[object ArrayBuffer]"?le.input=new Uint8Array(L):le.input=L,le.next_in=0,le.avail_in=le.input.length;do{if(le.avail_out===0&&(le.output=new S.Buf8(me),le.next_out=0,le.avail_out=me),(R=V.inflate(le,F.Z_NO_FLUSH))===F.Z_NEED_DICT&&Oe&&(K=typeof Oe=="string"?g.string2buf(Oe):M.call(Oe)==="[object ArrayBuffer]"?new Uint8Array(Oe):Oe,R=V.inflateSetDictionary(this.strm,K)),R===F.Z_BUF_ERROR&&Be===!0&&(R=F.Z_OK,Be=!1),R!==F.Z_STREAM_END&&R!==F.Z_OK)return this.onEnd(R),!(this.ended=!0);le.next_out&&(le.avail_out!==0&&R!==F.Z_STREAM_END&&(le.avail_in!==0||se!==F.Z_FINISH&&se!==F.Z_SYNC_FLUSH)||(this.options.to==="string"?(ne=g.utf8border(le.output,le.next_out),J=le.next_out-ne,W=g.buf2string(le.output,ne),le.next_out=J,le.avail_out=me-J,J&&S.arraySet(le.output,le.output,ne,J,0),this.onData(W)):this.onData(S.shrinkBuf(le.output,le.next_out)))),le.avail_in===0&&le.avail_out===0&&(Be=!0)}while((0<le.avail_in||le.avail_out===0)&&R!==F.Z_STREAM_END);return R===F.Z_STREAM_END&&(se=F.Z_FINISH),se===F.Z_FINISH?(R=V.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===F.Z_OK):se!==F.Z_SYNC_FLUSH||(this.onEnd(F.Z_OK),!(le.avail_out=0))},O.prototype.onData=function(L){this.chunks.push(L)},O.prototype.onEnd=function(L){L===F.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=S.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg},te.Inflate=O,te.inflate=T,te.inflateRaw=function(L,Y){return(Y=Y||{}).raw=!0,T(L,Y)},te.ungzip=T},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(P,Ne,te){"use strict";var V=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";te.assign=function(F){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var $=v.shift();if($){if(typeof $!="object")throw new TypeError($+"must be non-object");for(var _ in $)$.hasOwnProperty(_)&&(F[_]=$[_])}}return F},te.shrinkBuf=function(F,v){return F.length===v?F:F.subarray?F.subarray(0,v):(F.length=v,F)};var S={arraySet:function(F,v,$,_,M){if(v.subarray&&F.subarray)F.set(v.subarray($,$+_),M);else for(var O=0;O<_;O++)F[M+O]=v[$+O]},flattenChunks:function(F){var v,$,_,M,O,T;for(v=_=0,$=F.length;v<$;v++)_+=F[v].length;for(T=new Uint8Array(_),v=M=0,$=F.length;v<$;v++)O=F[v],T.set(O,M),M+=O.length;return T}},g={arraySet:function(F,v,$,_,M){for(var O=0;O<_;O++)F[M+O]=v[$+O]},flattenChunks:function(F){return[].concat.apply([],F)}};te.setTyped=function(F){F?(te.Buf8=Uint8Array,te.Buf16=Uint16Array,te.Buf32=Int32Array,te.assign(te,S)):(te.Buf8=Array,te.Buf16=Array,te.Buf32=Array,te.assign(te,g))},te.setTyped(V)},{}],42:[function(P,Ne,te){"use strict";var V=P("./common"),S=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(_){S=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(_){g=!1}for(var F=new V.Buf8(256),v=0;v<256;v++)F[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function $(_,M){if(M<65537&&(_.subarray&&g||!_.subarray&&S))return String.fromCharCode.apply(null,V.shrinkBuf(_,M));for(var O="",T=0;T<M;T++)O+=String.fromCharCode(_[T]);return O}F[254]=F[254]=1,te.string2buf=function(_){var M,O,T,L,Y,R=_.length,se=0;for(L=0;L<R;L++)(64512&(O=_.charCodeAt(L)))==55296&&L+1<R&&(64512&(T=_.charCodeAt(L+1)))==56320&&(O=65536+(O-55296<<10)+(T-56320),L++),se+=O<128?1:O<2048?2:O<65536?3:4;for(M=new V.Buf8(se),L=Y=0;Y<se;L++)(64512&(O=_.charCodeAt(L)))==55296&&L+1<R&&(64512&(T=_.charCodeAt(L+1)))==56320&&(O=65536+(O-55296<<10)+(T-56320),L++),O<128?M[Y++]=O:(O<2048?M[Y++]=192|O>>>6:(O<65536?M[Y++]=224|O>>>12:(M[Y++]=240|O>>>18,M[Y++]=128|O>>>12&63),M[Y++]=128|O>>>6&63),M[Y++]=128|63&O);return M},te.buf2binstring=function(_){return $(_,_.length)},te.binstring2buf=function(_){for(var M=new V.Buf8(_.length),O=0,T=M.length;O<T;O++)M[O]=_.charCodeAt(O);return M},te.buf2string=function(_,M){var O,T,L,Y,R=M||_.length,se=new Array(2*R);for(O=T=0;O<R;)if((L=_[O++])<128)se[T++]=L;else if(4<(Y=F[L]))se[T++]=65533,O+=Y-1;else{for(L&=Y===2?31:Y===3?15:7;1<Y&&O<R;)L=L<<6|63&_[O++],Y--;1<Y?se[T++]=65533:L<65536?se[T++]=L:(L-=65536,se[T++]=55296|L>>10&1023,se[T++]=56320|1023&L)}return $(se,T)},te.utf8border=function(_,M){var O;for((M=M||_.length)>_.length&&(M=_.length),O=M-1;0<=O&&(192&_[O])==128;)O--;return O<0||O===0?M:O+F[_[O]]>M?O:M}},{"./common":41}],43:[function(P,Ne,te){"use strict";Ne.exports=function(V,S,g,F){for(var v=65535&V|0,$=V>>>16&65535|0,_=0;g!==0;){for(g-=_=2e3<g?2e3:g;$=$+(v=v+S[F++]|0)|0,--_;);v%=65521,$%=65521}return v|$<<16|0}},{}],44:[function(P,Ne,te){"use strict";Ne.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(P,Ne,te){"use strict";var V=function(){for(var S,g=[],F=0;F<256;F++){S=F;for(var v=0;v<8;v++)S=1&S?3988292384^S>>>1:S>>>1;g[F]=S}return g}();Ne.exports=function(S,g,F,v){var $=V,_=v+F;S^=-1;for(var M=v;M<_;M++)S=S>>>8^$[255&(S^g[M])];return-1^S}},{}],46:[function(P,Ne,te){"use strict";var V,S=P("../utils/common"),g=P("./trees"),F=P("./adler32"),v=P("./crc32"),$=P("./messages"),_=0,M=4,O=0,T=-2,L=-1,Y=4,R=2,se=8,ne=9,J=286,W=30,K=19,le=2*J+1,me=15,Oe=3,Be=258,Ue=Be+Oe+1,ee=42,fe=113,D=1,Ye=2,Le=3,Ce=4;function Te(G,dt){return G.msg=$[dt],dt}function be(G){return(G<<1)-(4<G?9:0)}function ke(G){for(var dt=G.length;0<=--dt;)G[dt]=0}function he(G){var dt=G.state,I=dt.pending;I>G.avail_out&&(I=G.avail_out),I!==0&&(S.arraySet(G.output,dt.pending_buf,dt.pending_out,I,G.next_out),G.next_out+=I,dt.pending_out+=I,G.total_out+=I,G.avail_out-=I,dt.pending-=I,dt.pending===0&&(dt.pending_out=0))}function Ee(G,dt){g._tr_flush_block(G,0<=G.block_start?G.block_start:-1,G.strstart-G.block_start,dt),G.block_start=G.strstart,he(G.strm)}function Xe(G,dt){G.pending_buf[G.pending++]=dt}function et(G,dt){G.pending_buf[G.pending++]=dt>>>8&255,G.pending_buf[G.pending++]=255&dt}function ze(G,dt){var I,m,u=G.max_chain_length,C=G.strstart,q=G.prev_length,Se=G.nice_match,H=G.strstart>G.w_size-Ue?G.strstart-(G.w_size-Ue):0,ie=G.window,Qe=G.w_mask,we=G.prev,ye=G.strstart+Be,je=ie[C+q-1],Ct=ie[C+q];G.prev_length>=G.good_match&&(u>>=2),Se>G.lookahead&&(Se=G.lookahead);do if(ie[(I=dt)+q]===Ct&&ie[I+q-1]===je&&ie[I]===ie[C]&&ie[++I]===ie[C+1]){C+=2,I++;do;while(ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&C<ye);if(m=Be-(ye-C),C=ye-Be,q<m){if(G.match_start=dt,Se<=(q=m))break;je=ie[C+q-1],Ct=ie[C+q]}}while((dt=we[dt&Qe])>H&&--u!=0);return q<=G.lookahead?q:G.lookahead}function qe(G){var dt,I,m,u,C,q,Se,H,ie,Qe,we=G.w_size;do{if(u=G.window_size-G.lookahead-G.strstart,G.strstart>=we+(we-Ue)){for(S.arraySet(G.window,G.window,we,we,0),G.match_start-=we,G.strstart-=we,G.block_start-=we,dt=I=G.hash_size;m=G.head[--dt],G.head[dt]=we<=m?m-we:0,--I;);for(dt=I=we;m=G.prev[--dt],G.prev[dt]=we<=m?m-we:0,--I;);u+=we}if(G.strm.avail_in===0)break;if(q=G.strm,Se=G.window,H=G.strstart+G.lookahead,ie=u,Qe=void 0,Qe=q.avail_in,ie<Qe&&(Qe=ie),I=Qe===0?0:(q.avail_in-=Qe,S.arraySet(Se,q.input,q.next_in,Qe,H),q.state.wrap===1?q.adler=F(q.adler,Se,Qe,H):q.state.wrap===2&&(q.adler=v(q.adler,Se,Qe,H)),q.next_in+=Qe,q.total_in+=Qe,Qe),G.lookahead+=I,G.lookahead+G.insert>=Oe)for(C=G.strstart-G.insert,G.ins_h=G.window[C],G.ins_h=(G.ins_h<<G.hash_shift^G.window[C+1])&G.hash_mask;G.insert&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[C+Oe-1])&G.hash_mask,G.prev[C&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=C,C++,G.insert--,!(G.lookahead+G.insert<Oe)););}while(G.lookahead<Ue&&G.strm.avail_in!==0)}function _t(G,dt){for(var I,m;;){if(G.lookahead<Ue){if(qe(G),G.lookahead<Ue&&dt===_)return D;if(G.lookahead===0)break}if(I=0,G.lookahead>=Oe&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,I=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),I!==0&&G.strstart-I<=G.w_size-Ue&&(G.match_length=ze(G,I)),G.match_length>=Oe)if(m=g._tr_tally(G,G.strstart-G.match_start,G.match_length-Oe),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=Oe){for(G.match_length--;G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,I=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart,--G.match_length!=0;);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else m=g._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(m&&(Ee(G,!1),G.strm.avail_out===0))return D}return G.insert=G.strstart<Oe-1?G.strstart:Oe-1,dt===M?(Ee(G,!0),G.strm.avail_out===0?Le:Ce):G.last_lit&&(Ee(G,!1),G.strm.avail_out===0)?D:Ye}function Lt(G,dt){for(var I,m,u;;){if(G.lookahead<Ue){if(qe(G),G.lookahead<Ue&&dt===_)return D;if(G.lookahead===0)break}if(I=0,G.lookahead>=Oe&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,I=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),G.prev_length=G.match_length,G.prev_match=G.match_start,G.match_length=Oe-1,I!==0&&G.prev_length<G.max_lazy_match&&G.strstart-I<=G.w_size-Ue&&(G.match_length=ze(G,I),G.match_length<=5&&(G.strategy===1||G.match_length===Oe&&4096<G.strstart-G.match_start)&&(G.match_length=Oe-1)),G.prev_length>=Oe&&G.match_length<=G.prev_length){for(u=G.strstart+G.lookahead-Oe,m=g._tr_tally(G,G.strstart-1-G.prev_match,G.prev_length-Oe),G.lookahead-=G.prev_length-1,G.prev_length-=2;++G.strstart<=u&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,I=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),--G.prev_length!=0;);if(G.match_available=0,G.match_length=Oe-1,G.strstart++,m&&(Ee(G,!1),G.strm.avail_out===0))return D}else if(G.match_available){if((m=g._tr_tally(G,0,G.window[G.strstart-1]))&&Ee(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return D}else G.match_available=1,G.strstart++,G.lookahead--}return G.match_available&&(m=g._tr_tally(G,0,G.window[G.strstart-1]),G.match_available=0),G.insert=G.strstart<Oe-1?G.strstart:Oe-1,dt===M?(Ee(G,!0),G.strm.avail_out===0?Le:Ce):G.last_lit&&(Ee(G,!1),G.strm.avail_out===0)?D:Ye}function Nt(G,dt,I,m,u){this.good_length=G,this.max_lazy=dt,this.nice_length=I,this.max_chain=m,this.func=u}function sr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=se,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new S.Buf16(2*le),this.dyn_dtree=new S.Buf16(2*(2*W+1)),this.bl_tree=new S.Buf16(2*(2*K+1)),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(me+1),this.heap=new S.Buf16(2*J+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*J+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function er(G){var dt;return G&&G.state?(G.total_in=G.total_out=0,G.data_type=R,(dt=G.state).pending=0,dt.pending_out=0,dt.wrap<0&&(dt.wrap=-dt.wrap),dt.status=dt.wrap?ee:fe,G.adler=dt.wrap===2?0:1,dt.last_flush=_,g._tr_init(dt),O):Te(G,T)}function yr(G){var dt=er(G);return dt===O&&function(I){I.window_size=2*I.w_size,ke(I.head),I.max_lazy_match=V[I.level].max_lazy,I.good_match=V[I.level].good_length,I.nice_match=V[I.level].nice_length,I.max_chain_length=V[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=Oe-1,I.match_available=0,I.ins_h=0}(G.state),dt}function lr(G,dt,I,m,u,C){if(!G)return T;var q=1;if(dt===L&&(dt=6),m<0?(q=0,m=-m):15<m&&(q=2,m-=16),u<1||ne<u||I!==se||m<8||15<m||dt<0||9<dt||C<0||Y<C)return Te(G,T);m===8&&(m=9);var Se=new sr;return(G.state=Se).strm=G,Se.wrap=q,Se.gzhead=null,Se.w_bits=m,Se.w_size=1<<Se.w_bits,Se.w_mask=Se.w_size-1,Se.hash_bits=u+7,Se.hash_size=1<<Se.hash_bits,Se.hash_mask=Se.hash_size-1,Se.hash_shift=~~((Se.hash_bits+Oe-1)/Oe),Se.window=new S.Buf8(2*Se.w_size),Se.head=new S.Buf16(Se.hash_size),Se.prev=new S.Buf16(Se.w_size),Se.lit_bufsize=1<<u+6,Se.pending_buf_size=4*Se.lit_bufsize,Se.pending_buf=new S.Buf8(Se.pending_buf_size),Se.d_buf=1*Se.lit_bufsize,Se.l_buf=3*Se.lit_bufsize,Se.level=dt,Se.strategy=C,Se.method=I,yr(G)}V=[new Nt(0,0,0,0,function(G,dt){var I=65535;for(I>G.pending_buf_size-5&&(I=G.pending_buf_size-5);;){if(G.lookahead<=1){if(qe(G),G.lookahead===0&&dt===_)return D;if(G.lookahead===0)break}G.strstart+=G.lookahead,G.lookahead=0;var m=G.block_start+I;if((G.strstart===0||G.strstart>=m)&&(G.lookahead=G.strstart-m,G.strstart=m,Ee(G,!1),G.strm.avail_out===0)||G.strstart-G.block_start>=G.w_size-Ue&&(Ee(G,!1),G.strm.avail_out===0))return D}return G.insert=0,dt===M?(Ee(G,!0),G.strm.avail_out===0?Le:Ce):(G.strstart>G.block_start&&(Ee(G,!1),G.strm.avail_out),D)}),new Nt(4,4,8,4,_t),new Nt(4,5,16,8,_t),new Nt(4,6,32,32,_t),new Nt(4,4,16,16,Lt),new Nt(8,16,32,32,Lt),new Nt(8,16,128,128,Lt),new Nt(8,32,128,256,Lt),new Nt(32,128,258,1024,Lt),new Nt(32,258,258,4096,Lt)],te.deflateInit=function(G,dt){return lr(G,dt,se,15,8,0)},te.deflateInit2=lr,te.deflateReset=yr,te.deflateResetKeep=er,te.deflateSetHeader=function(G,dt){return G&&G.state?G.state.wrap!==2?T:(G.state.gzhead=dt,O):T},te.deflate=function(G,dt){var I,m,u,C;if(!G||!G.state||5<dt||dt<0)return G?Te(G,T):T;if(m=G.state,!G.output||!G.input&&G.avail_in!==0||m.status===666&&dt!==M)return Te(G,G.avail_out===0?-5:T);if(m.strm=G,I=m.last_flush,m.last_flush=dt,m.status===ee)if(m.wrap===2)G.adler=0,Xe(m,31),Xe(m,139),Xe(m,8),m.gzhead?(Xe(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),Xe(m,255&m.gzhead.time),Xe(m,m.gzhead.time>>8&255),Xe(m,m.gzhead.time>>16&255),Xe(m,m.gzhead.time>>24&255),Xe(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),Xe(m,255&m.gzhead.os),m.gzhead.extra&&m.gzhead.extra.length&&(Xe(m,255&m.gzhead.extra.length),Xe(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(G.adler=v(G.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(Xe(m,0),Xe(m,0),Xe(m,0),Xe(m,0),Xe(m,0),Xe(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),Xe(m,3),m.status=fe);else{var q=se+(m.w_bits-8<<4)<<8;q|=(2<=m.strategy||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6,m.strstart!==0&&(q|=32),q+=31-q%31,m.status=fe,et(m,q),m.strstart!==0&&(et(m,G.adler>>>16),et(m,65535&G.adler)),G.adler=1}if(m.status===69)if(m.gzhead.extra){for(u=m.pending;m.gzindex<(65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),he(G),u=m.pending,m.pending!==m.pending_buf_size));)Xe(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(m.status===73)if(m.gzhead.name){u=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),he(G),u=m.pending,m.pending===m.pending_buf_size)){C=1;break}C=m.gzindex<m.gzhead.name.length?255&m.gzhead.name.charCodeAt(m.gzindex++):0,Xe(m,C)}while(C!==0);m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),C===0&&(m.gzindex=0,m.status=91)}else m.status=91;if(m.status===91)if(m.gzhead.comment){u=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),he(G),u=m.pending,m.pending===m.pending_buf_size)){C=1;break}C=m.gzindex<m.gzhead.comment.length?255&m.gzhead.comment.charCodeAt(m.gzindex++):0,Xe(m,C)}while(C!==0);m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),C===0&&(m.status=103)}else m.status=103;if(m.status===103&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&he(G),m.pending+2<=m.pending_buf_size&&(Xe(m,255&G.adler),Xe(m,G.adler>>8&255),G.adler=0,m.status=fe)):m.status=fe),m.pending!==0){if(he(G),G.avail_out===0)return m.last_flush=-1,O}else if(G.avail_in===0&&be(dt)<=be(I)&&dt!==M)return Te(G,-5);if(m.status===666&&G.avail_in!==0)return Te(G,-5);if(G.avail_in!==0||m.lookahead!==0||dt!==_&&m.status!==666){var Se=m.strategy===2?function(H,ie){for(var Qe;;){if(H.lookahead===0&&(qe(H),H.lookahead===0)){if(ie===_)return D;break}if(H.match_length=0,Qe=g._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Qe&&(Ee(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ie===M?(Ee(H,!0),H.strm.avail_out===0?Le:Ce):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?D:Ye}(m,dt):m.strategy===3?function(H,ie){for(var Qe,we,ye,je,Ct=H.window;;){if(H.lookahead<=Be){if(qe(H),H.lookahead<=Be&&ie===_)return D;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Oe&&0<H.strstart&&(we=Ct[ye=H.strstart-1])===Ct[++ye]&&we===Ct[++ye]&&we===Ct[++ye]){je=H.strstart+Be;do;while(we===Ct[++ye]&&we===Ct[++ye]&&we===Ct[++ye]&&we===Ct[++ye]&&we===Ct[++ye]&&we===Ct[++ye]&&we===Ct[++ye]&&we===Ct[++ye]&&ye<je);H.match_length=Be-(je-ye),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Oe?(Qe=g._tr_tally(H,1,H.match_length-Oe),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Qe=g._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Qe&&(Ee(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ie===M?(Ee(H,!0),H.strm.avail_out===0?Le:Ce):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?D:Ye}(m,dt):V[m.level].func(m,dt);if(Se!==Le&&Se!==Ce||(m.status=666),Se===D||Se===Le)return G.avail_out===0&&(m.last_flush=-1),O;if(Se===Ye&&(dt===1?g._tr_align(m):dt!==5&&(g._tr_stored_block(m,0,0,!1),dt===3&&(ke(m.head),m.lookahead===0&&(m.strstart=0,m.block_start=0,m.insert=0))),he(G),G.avail_out===0))return m.last_flush=-1,O}return dt!==M?O:m.wrap<=0?1:(m.wrap===2?(Xe(m,255&G.adler),Xe(m,G.adler>>8&255),Xe(m,G.adler>>16&255),Xe(m,G.adler>>24&255),Xe(m,255&G.total_in),Xe(m,G.total_in>>8&255),Xe(m,G.total_in>>16&255),Xe(m,G.total_in>>24&255)):(et(m,G.adler>>>16),et(m,65535&G.adler)),he(G),0<m.wrap&&(m.wrap=-m.wrap),m.pending!==0?O:1)},te.deflateEnd=function(G){var dt;return G&&G.state?(dt=G.state.status)!==ee&&dt!==69&&dt!==73&&dt!==91&&dt!==103&&dt!==fe&&dt!==666?Te(G,T):(G.state=null,dt===fe?Te(G,-3):O):T},te.deflateSetDictionary=function(G,dt){var I,m,u,C,q,Se,H,ie,Qe=dt.length;if(!G||!G.state||(C=(I=G.state).wrap)===2||C===1&&I.status!==ee||I.lookahead)return T;for(C===1&&(G.adler=F(G.adler,dt,Qe,0)),I.wrap=0,Qe>=I.w_size&&(C===0&&(ke(I.head),I.strstart=0,I.block_start=0,I.insert=0),ie=new S.Buf8(I.w_size),S.arraySet(ie,dt,Qe-I.w_size,I.w_size,0),dt=ie,Qe=I.w_size),q=G.avail_in,Se=G.next_in,H=G.input,G.avail_in=Qe,G.next_in=0,G.input=dt,qe(I);I.lookahead>=Oe;){for(m=I.strstart,u=I.lookahead-(Oe-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[m+Oe-1])&I.hash_mask,I.prev[m&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=m,m++,--u;);I.strstart=m,I.lookahead=Oe-1,qe(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=Oe-1,I.match_available=0,G.next_in=Se,G.input=H,G.avail_in=q,I.wrap=C,O},te.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(P,Ne,te){"use strict";Ne.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(P,Ne,te){"use strict";Ne.exports=function(V,S){var g,F,v,$,_,M,O,T,L,Y,R,se,ne,J,W,K,le,me,Oe,Be,Ue,ee,fe,D,Ye;g=V.state,F=V.next_in,D=V.input,v=F+(V.avail_in-5),$=V.next_out,Ye=V.output,_=$-(S-V.avail_out),M=$+(V.avail_out-257),O=g.dmax,T=g.wsize,L=g.whave,Y=g.wnext,R=g.window,se=g.hold,ne=g.bits,J=g.lencode,W=g.distcode,K=(1<<g.lenbits)-1,le=(1<<g.distbits)-1;e:do{ne<15&&(se+=D[F++]<<ne,ne+=8,se+=D[F++]<<ne,ne+=8),me=J[se&K];t:for(;;){if(se>>>=Oe=me>>>24,ne-=Oe,(Oe=me>>>16&255)===0)Ye[$++]=65535&me;else{if(!(16&Oe)){if(!(64&Oe)){me=J[(65535&me)+(se&(1<<Oe)-1)];continue t}if(32&Oe){g.mode=12;break e}V.msg="invalid literal/length code",g.mode=30;break e}Be=65535&me,(Oe&=15)&&(ne<Oe&&(se+=D[F++]<<ne,ne+=8),Be+=se&(1<<Oe)-1,se>>>=Oe,ne-=Oe),ne<15&&(se+=D[F++]<<ne,ne+=8,se+=D[F++]<<ne,ne+=8),me=W[se&le];r:for(;;){if(se>>>=Oe=me>>>24,ne-=Oe,!(16&(Oe=me>>>16&255))){if(!(64&Oe)){me=W[(65535&me)+(se&(1<<Oe)-1)];continue r}V.msg="invalid distance code",g.mode=30;break e}if(Ue=65535&me,ne<(Oe&=15)&&(se+=D[F++]<<ne,(ne+=8)<Oe&&(se+=D[F++]<<ne,ne+=8)),O<(Ue+=se&(1<<Oe)-1)){V.msg="invalid distance too far back",g.mode=30;break e}if(se>>>=Oe,ne-=Oe,(Oe=$-_)<Ue){if(L<(Oe=Ue-Oe)&&g.sane){V.msg="invalid distance too far back",g.mode=30;break e}if(fe=R,(ee=0)===Y){if(ee+=T-Oe,Oe<Be){for(Be-=Oe;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,fe=Ye}}else if(Y<Oe){if(ee+=T+Y-Oe,(Oe-=Y)<Be){for(Be-=Oe;Ye[$++]=R[ee++],--Oe;);if(ee=0,Y<Be){for(Be-=Oe=Y;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,fe=Ye}}}else if(ee+=Y-Oe,Oe<Be){for(Be-=Oe;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,fe=Ye}for(;2<Be;)Ye[$++]=fe[ee++],Ye[$++]=fe[ee++],Ye[$++]=fe[ee++],Be-=3;Be&&(Ye[$++]=fe[ee++],1<Be&&(Ye[$++]=fe[ee++]))}else{for(ee=$-Ue;Ye[$++]=Ye[ee++],Ye[$++]=Ye[ee++],Ye[$++]=Ye[ee++],2<(Be-=3););Be&&(Ye[$++]=Ye[ee++],1<Be&&(Ye[$++]=Ye[ee++]))}break}}break}}while(F<v&&$<M);F-=Be=ne>>3,se&=(1<<(ne-=Be<<3))-1,V.next_in=F,V.next_out=$,V.avail_in=F<v?v-F+5:5-(F-v),V.avail_out=$<M?M-$+257:257-($-M),g.hold=se,g.bits=ne}},{}],49:[function(P,Ne,te){"use strict";var V=P("../utils/common"),S=P("./adler32"),g=P("./crc32"),F=P("./inffast"),v=P("./inftrees"),$=1,_=2,M=0,O=-2,T=1,L=852,Y=592;function R(ee){return(ee>>>24&255)+(ee>>>8&65280)+((65280&ee)<<8)+((255&ee)<<24)}function se(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new V.Buf16(320),this.work=new V.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ne(ee){var fe;return ee&&ee.state?(fe=ee.state,ee.total_in=ee.total_out=fe.total=0,ee.msg="",fe.wrap&&(ee.adler=1&fe.wrap),fe.mode=T,fe.last=0,fe.havedict=0,fe.dmax=32768,fe.head=null,fe.hold=0,fe.bits=0,fe.lencode=fe.lendyn=new V.Buf32(L),fe.distcode=fe.distdyn=new V.Buf32(Y),fe.sane=1,fe.back=-1,M):O}function J(ee){var fe;return ee&&ee.state?((fe=ee.state).wsize=0,fe.whave=0,fe.wnext=0,ne(ee)):O}function W(ee,fe){var D,Ye;return ee&&ee.state?(Ye=ee.state,fe<0?(D=0,fe=-fe):(D=1+(fe>>4),fe<48&&(fe&=15)),fe&&(fe<8||15<fe)?O:(Ye.window!==null&&Ye.wbits!==fe&&(Ye.window=null),Ye.wrap=D,Ye.wbits=fe,J(ee))):O}function K(ee,fe){var D,Ye;return ee?(Ye=new se,(ee.state=Ye).window=null,(D=W(ee,fe))!==M&&(ee.state=null),D):O}var le,me,Oe=!0;function Be(ee){if(Oe){var fe;for(le=new V.Buf32(512),me=new V.Buf32(32),fe=0;fe<144;)ee.lens[fe++]=8;for(;fe<256;)ee.lens[fe++]=9;for(;fe<280;)ee.lens[fe++]=7;for(;fe<288;)ee.lens[fe++]=8;for(v($,ee.lens,0,288,le,0,ee.work,{bits:9}),fe=0;fe<32;)ee.lens[fe++]=5;v(_,ee.lens,0,32,me,0,ee.work,{bits:5}),Oe=!1}ee.lencode=le,ee.lenbits=9,ee.distcode=me,ee.distbits=5}function Ue(ee,fe,D,Ye){var Le,Ce=ee.state;return Ce.window===null&&(Ce.wsize=1<<Ce.wbits,Ce.wnext=0,Ce.whave=0,Ce.window=new V.Buf8(Ce.wsize)),Ye>=Ce.wsize?(V.arraySet(Ce.window,fe,D-Ce.wsize,Ce.wsize,0),Ce.wnext=0,Ce.whave=Ce.wsize):(Ye<(Le=Ce.wsize-Ce.wnext)&&(Le=Ye),V.arraySet(Ce.window,fe,D-Ye,Le,Ce.wnext),(Ye-=Le)?(V.arraySet(Ce.window,fe,D-Ye,Ye,0),Ce.wnext=Ye,Ce.whave=Ce.wsize):(Ce.wnext+=Le,Ce.wnext===Ce.wsize&&(Ce.wnext=0),Ce.whave<Ce.wsize&&(Ce.whave+=Le))),0}te.inflateReset=J,te.inflateReset2=W,te.inflateResetKeep=ne,te.inflateInit=function(ee){return K(ee,15)},te.inflateInit2=K,te.inflate=function(ee,fe){var D,Ye,Le,Ce,Te,be,ke,he,Ee,Xe,et,ze,qe,_t,Lt,Nt,sr,er,yr,lr,G,dt,I,m,u=0,C=new V.Buf8(4),q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ee||!ee.state||!ee.output||!ee.input&&ee.avail_in!==0)return O;(D=ee.state).mode===12&&(D.mode=13),Te=ee.next_out,Le=ee.output,ke=ee.avail_out,Ce=ee.next_in,Ye=ee.input,be=ee.avail_in,he=D.hold,Ee=D.bits,Xe=be,et=ke,dt=M;e:for(;;)switch(D.mode){case T:if(D.wrap===0){D.mode=13;break}for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(2&D.wrap&&he===35615){C[D.check=0]=255&he,C[1]=he>>>8&255,D.check=g(D.check,C,2,0),Ee=he=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&he)<<8)+(he>>8))%31){ee.msg="incorrect header check",D.mode=30;break}if((15&he)!=8){ee.msg="unknown compression method",D.mode=30;break}if(Ee-=4,G=8+(15&(he>>>=4)),D.wbits===0)D.wbits=G;else if(G>D.wbits){ee.msg="invalid window size",D.mode=30;break}D.dmax=1<<G,ee.adler=D.check=1,D.mode=512&he?10:12,Ee=he=0;break;case 2:for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(D.flags=he,(255&D.flags)!=8){ee.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){ee.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=he>>8&1),512&D.flags&&(C[0]=255&he,C[1]=he>>>8&255,D.check=g(D.check,C,2,0)),Ee=he=0,D.mode=3;case 3:for(;Ee<32;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.head&&(D.head.time=he),512&D.flags&&(C[0]=255&he,C[1]=he>>>8&255,C[2]=he>>>16&255,C[3]=he>>>24&255,D.check=g(D.check,C,4,0)),Ee=he=0,D.mode=4;case 4:for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.head&&(D.head.xflags=255&he,D.head.os=he>>8),512&D.flags&&(C[0]=255&he,C[1]=he>>>8&255,D.check=g(D.check,C,2,0)),Ee=he=0,D.mode=5;case 5:if(1024&D.flags){for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.length=he,D.head&&(D.head.extra_len=he),512&D.flags&&(C[0]=255&he,C[1]=he>>>8&255,D.check=g(D.check,C,2,0)),Ee=he=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(be<(ze=D.length)&&(ze=be),ze&&(D.head&&(G=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),V.arraySet(D.head.extra,Ye,Ce,ze,G)),512&D.flags&&(D.check=g(D.check,Ye,ze,Ce)),be-=ze,Ce+=ze,D.length-=ze),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(be===0)break e;for(ze=0;G=Ye[Ce+ze++],D.head&&G&&D.length<65536&&(D.head.name+=String.fromCharCode(G)),G&&ze<be;);if(512&D.flags&&(D.check=g(D.check,Ye,ze,Ce)),be-=ze,Ce+=ze,G)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(be===0)break e;for(ze=0;G=Ye[Ce+ze++],D.head&&G&&D.length<65536&&(D.head.comment+=String.fromCharCode(G)),G&&ze<be;);if(512&D.flags&&(D.check=g(D.check,Ye,ze,Ce)),be-=ze,Ce+=ze,G)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(he!==(65535&D.check)){ee.msg="header crc mismatch",D.mode=30;break}Ee=he=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),ee.adler=D.check=0,D.mode=12;break;case 10:for(;Ee<32;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}ee.adler=D.check=R(he),Ee=he=0,D.mode=11;case 11:if(D.havedict===0)return ee.next_out=Te,ee.avail_out=ke,ee.next_in=Ce,ee.avail_in=be,D.hold=he,D.bits=Ee,2;ee.adler=D.check=1,D.mode=12;case 12:if(fe===5||fe===6)break e;case 13:if(D.last){he>>>=7&Ee,Ee-=7&Ee,D.mode=27;break}for(;Ee<3;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}switch(D.last=1&he,Ee-=1,3&(he>>>=1)){case 0:D.mode=14;break;case 1:if(Be(D),D.mode=20,fe!==6)break;he>>>=2,Ee-=2;break e;case 2:D.mode=17;break;case 3:ee.msg="invalid block type",D.mode=30}he>>>=2,Ee-=2;break;case 14:for(he>>>=7&Ee,Ee-=7&Ee;Ee<32;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if((65535&he)!=(he>>>16^65535)){ee.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&he,Ee=he=0,D.mode=15,fe===6)break e;case 15:D.mode=16;case 16:if(ze=D.length){if(be<ze&&(ze=be),ke<ze&&(ze=ke),ze===0)break e;V.arraySet(Le,Ye,Ce,ze,Te),be-=ze,Ce+=ze,ke-=ze,Te+=ze,D.length-=ze;break}D.mode=12;break;case 17:for(;Ee<14;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(D.nlen=257+(31&he),he>>>=5,Ee-=5,D.ndist=1+(31&he),he>>>=5,Ee-=5,D.ncode=4+(15&he),he>>>=4,Ee-=4,286<D.nlen||30<D.ndist){ee.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;Ee<3;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.lens[q[D.have++]]=7&he,he>>>=3,Ee-=3}for(;D.have<19;)D.lens[q[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,I={bits:D.lenbits},dt=v(0,D.lens,0,19,D.lencode,0,D.work,I),D.lenbits=I.bits,dt){ee.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;Nt=(u=D.lencode[he&(1<<D.lenbits)-1])>>>16&255,sr=65535&u,!((Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(sr<16)he>>>=Lt,Ee-=Lt,D.lens[D.have++]=sr;else{if(sr===16){for(m=Lt+2;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(he>>>=Lt,Ee-=Lt,D.have===0){ee.msg="invalid bit length repeat",D.mode=30;break}G=D.lens[D.have-1],ze=3+(3&he),he>>>=2,Ee-=2}else if(sr===17){for(m=Lt+3;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}Ee-=Lt,G=0,ze=3+(7&(he>>>=Lt)),he>>>=3,Ee-=3}else{for(m=Lt+7;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}Ee-=Lt,G=0,ze=11+(127&(he>>>=Lt)),he>>>=7,Ee-=7}if(D.have+ze>D.nlen+D.ndist){ee.msg="invalid bit length repeat",D.mode=30;break}for(;ze--;)D.lens[D.have++]=G}}if(D.mode===30)break;if(D.lens[256]===0){ee.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,I={bits:D.lenbits},dt=v($,D.lens,0,D.nlen,D.lencode,0,D.work,I),D.lenbits=I.bits,dt){ee.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,I={bits:D.distbits},dt=v(_,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,I),D.distbits=I.bits,dt){ee.msg="invalid distances set",D.mode=30;break}if(D.mode=20,fe===6)break e;case 20:D.mode=21;case 21:if(6<=be&&258<=ke){ee.next_out=Te,ee.avail_out=ke,ee.next_in=Ce,ee.avail_in=be,D.hold=he,D.bits=Ee,F(ee,et),Te=ee.next_out,Le=ee.output,ke=ee.avail_out,Ce=ee.next_in,Ye=ee.input,be=ee.avail_in,he=D.hold,Ee=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Nt=(u=D.lencode[he&(1<<D.lenbits)-1])>>>16&255,sr=65535&u,!((Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(Nt&&!(240&Nt)){for(er=Lt,yr=Nt,lr=sr;Nt=(u=D.lencode[lr+((he&(1<<er+yr)-1)>>er)])>>>16&255,sr=65535&u,!(er+(Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}he>>>=er,Ee-=er,D.back+=er}if(he>>>=Lt,Ee-=Lt,D.back+=Lt,D.length=sr,Nt===0){D.mode=26;break}if(32&Nt){D.back=-1,D.mode=12;break}if(64&Nt){ee.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Nt,D.mode=22;case 22:if(D.extra){for(m=D.extra;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.length+=he&(1<<D.extra)-1,he>>>=D.extra,Ee-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Nt=(u=D.distcode[he&(1<<D.distbits)-1])>>>16&255,sr=65535&u,!((Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(!(240&Nt)){for(er=Lt,yr=Nt,lr=sr;Nt=(u=D.distcode[lr+((he&(1<<er+yr)-1)>>er)])>>>16&255,sr=65535&u,!(er+(Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}he>>>=er,Ee-=er,D.back+=er}if(he>>>=Lt,Ee-=Lt,D.back+=Lt,64&Nt){ee.msg="invalid distance code",D.mode=30;break}D.offset=sr,D.extra=15&Nt,D.mode=24;case 24:if(D.extra){for(m=D.extra;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.offset+=he&(1<<D.extra)-1,he>>>=D.extra,Ee-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){ee.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(ke===0)break e;if(ze=et-ke,D.offset>ze){if((ze=D.offset-ze)>D.whave&&D.sane){ee.msg="invalid distance too far back",D.mode=30;break}qe=ze>D.wnext?(ze-=D.wnext,D.wsize-ze):D.wnext-ze,ze>D.length&&(ze=D.length),_t=D.window}else _t=Le,qe=Te-D.offset,ze=D.length;for(ke<ze&&(ze=ke),ke-=ze,D.length-=ze;Le[Te++]=_t[qe++],--ze;);D.length===0&&(D.mode=21);break;case 26:if(ke===0)break e;Le[Te++]=D.length,ke--,D.mode=21;break;case 27:if(D.wrap){for(;Ee<32;){if(be===0)break e;be--,he|=Ye[Ce++]<<Ee,Ee+=8}if(et-=ke,ee.total_out+=et,D.total+=et,et&&(ee.adler=D.check=D.flags?g(D.check,Le,et,Te-et):S(D.check,Le,et,Te-et)),et=ke,(D.flags?he:R(he))!==D.check){ee.msg="incorrect data check",D.mode=30;break}Ee=he=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;Ee<32;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(he!==(4294967295&D.total)){ee.msg="incorrect length check",D.mode=30;break}Ee=he=0}D.mode=29;case 29:dt=1;break e;case 30:dt=-3;break e;case 31:return-4;case 32:default:return O}return ee.next_out=Te,ee.avail_out=ke,ee.next_in=Ce,ee.avail_in=be,D.hold=he,D.bits=Ee,(D.wsize||et!==ee.avail_out&&D.mode<30&&(D.mode<27||fe!==4))&&Ue(ee,ee.output,ee.next_out,et-ee.avail_out)?(D.mode=31,-4):(Xe-=ee.avail_in,et-=ee.avail_out,ee.total_in+=Xe,ee.total_out+=et,D.total+=et,D.wrap&&et&&(ee.adler=D.check=D.flags?g(D.check,Le,et,ee.next_out-et):S(D.check,Le,et,ee.next_out-et)),ee.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(Xe==0&&et===0||fe===4)&&dt===M&&(dt=-5),dt)},te.inflateEnd=function(ee){if(!ee||!ee.state)return O;var fe=ee.state;return fe.window&&(fe.window=null),ee.state=null,M},te.inflateGetHeader=function(ee,fe){var D;return ee&&ee.state&&2&(D=ee.state).wrap?((D.head=fe).done=!1,M):O},te.inflateSetDictionary=function(ee,fe){var D,Ye=fe.length;return ee&&ee.state?(D=ee.state).wrap!==0&&D.mode!==11?O:D.mode===11&&S(1,fe,Ye,0)!==D.check?-3:Ue(ee,fe,Ye,Ye)?(D.mode=31,-4):(D.havedict=1,M):O},te.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(P,Ne,te){"use strict";var V=P("../utils/common"),S=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],F=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Ne.exports=function($,_,M,O,T,L,Y,R){var se,ne,J,W,K,le,me,Oe,Be,Ue=R.bits,ee=0,fe=0,D=0,Ye=0,Le=0,Ce=0,Te=0,be=0,ke=0,he=0,Ee=null,Xe=0,et=new V.Buf16(16),ze=new V.Buf16(16),qe=null,_t=0;for(ee=0;ee<=15;ee++)et[ee]=0;for(fe=0;fe<O;fe++)et[_[M+fe]]++;for(Le=Ue,Ye=15;1<=Ye&&et[Ye]===0;Ye--);if(Ye<Le&&(Le=Ye),Ye===0)return T[L++]=20971520,T[L++]=20971520,R.bits=1,0;for(D=1;D<Ye&&et[D]===0;D++);for(Le<D&&(Le=D),ee=be=1;ee<=15;ee++)if(be<<=1,(be-=et[ee])<0)return-1;if(0<be&&($===0||Ye!==1))return-1;for(ze[1]=0,ee=1;ee<15;ee++)ze[ee+1]=ze[ee]+et[ee];for(fe=0;fe<O;fe++)_[M+fe]!==0&&(Y[ze[_[M+fe]]++]=fe);if(le=$===0?(Ee=qe=Y,19):$===1?(Ee=S,Xe-=257,qe=g,_t-=257,256):(Ee=F,qe=v,-1),ee=D,K=L,Te=fe=he=0,J=-1,W=(ke=1<<(Ce=Le))-1,$===1&&852<ke||$===2&&592<ke)return 1;for(;;){for(me=ee-Te,Be=Y[fe]<le?(Oe=0,Y[fe]):Y[fe]>le?(Oe=qe[_t+Y[fe]],Ee[Xe+Y[fe]]):(Oe=96,0),se=1<<ee-Te,D=ne=1<<Ce;T[K+(he>>Te)+(ne-=se)]=me<<24|Oe<<16|Be|0,ne!==0;);for(se=1<<ee-1;he&se;)se>>=1;if(se!==0?(he&=se-1,he+=se):he=0,fe++,--et[ee]==0){if(ee===Ye)break;ee=_[M+Y[fe]]}if(Le<ee&&(he&W)!==J){for(Te===0&&(Te=Le),K+=D,be=1<<(Ce=ee-Te);Ce+Te<Ye&&!((be-=et[Ce+Te])<=0);)Ce++,be<<=1;if(ke+=1<<Ce,$===1&&852<ke||$===2&&592<ke)return 1;T[J=he&W]=Le<<24|Ce<<16|K-L|0}}return he!==0&&(T[K+he]=ee-Te<<24|64<<16|0),R.bits=Le,0}},{"../utils/common":41}],51:[function(P,Ne,te){"use strict";Ne.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(P,Ne,te){"use strict";var V=P("../utils/common"),S=0,g=1;function F(u){for(var C=u.length;0<=--C;)u[C]=0}var v=0,$=29,_=256,M=_+1+$,O=30,T=19,L=2*M+1,Y=15,R=16,se=7,ne=256,J=16,W=17,K=18,le=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],me=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ue=new Array(2*(M+2));F(Ue);var ee=new Array(2*O);F(ee);var fe=new Array(512);F(fe);var D=new Array(256);F(D);var Ye=new Array($);F(Ye);var Le,Ce,Te,be=new Array(O);function ke(u,C,q,Se,H){this.static_tree=u,this.extra_bits=C,this.extra_base=q,this.elems=Se,this.max_length=H,this.has_stree=u&&u.length}function he(u,C){this.dyn_tree=u,this.max_code=0,this.stat_desc=C}function Ee(u){return u<256?fe[u]:fe[256+(u>>>7)]}function Xe(u,C){u.pending_buf[u.pending++]=255&C,u.pending_buf[u.pending++]=C>>>8&255}function et(u,C,q){u.bi_valid>R-q?(u.bi_buf|=C<<u.bi_valid&65535,Xe(u,u.bi_buf),u.bi_buf=C>>R-u.bi_valid,u.bi_valid+=q-R):(u.bi_buf|=C<<u.bi_valid&65535,u.bi_valid+=q)}function ze(u,C,q){et(u,q[2*C],q[2*C+1])}function qe(u,C){for(var q=0;q|=1&u,u>>>=1,q<<=1,0<--C;);return q>>>1}function _t(u,C,q){var Se,H,ie=new Array(Y+1),Qe=0;for(Se=1;Se<=Y;Se++)ie[Se]=Qe=Qe+q[Se-1]<<1;for(H=0;H<=C;H++){var we=u[2*H+1];we!==0&&(u[2*H]=qe(ie[we]++,we))}}function Lt(u){var C;for(C=0;C<M;C++)u.dyn_ltree[2*C]=0;for(C=0;C<O;C++)u.dyn_dtree[2*C]=0;for(C=0;C<T;C++)u.bl_tree[2*C]=0;u.dyn_ltree[2*ne]=1,u.opt_len=u.static_len=0,u.last_lit=u.matches=0}function Nt(u){8<u.bi_valid?Xe(u,u.bi_buf):0<u.bi_valid&&(u.pending_buf[u.pending++]=u.bi_buf),u.bi_buf=0,u.bi_valid=0}function sr(u,C,q,Se){var H=2*C,ie=2*q;return u[H]<u[ie]||u[H]===u[ie]&&Se[C]<=Se[q]}function er(u,C,q){for(var Se=u.heap[q],H=q<<1;H<=u.heap_len&&(H<u.heap_len&&sr(C,u.heap[H+1],u.heap[H],u.depth)&&H++,!sr(C,Se,u.heap[H],u.depth));)u.heap[q]=u.heap[H],q=H,H<<=1;u.heap[q]=Se}function yr(u,C,q){var Se,H,ie,Qe,we=0;if(u.last_lit!==0)for(;Se=u.pending_buf[u.d_buf+2*we]<<8|u.pending_buf[u.d_buf+2*we+1],H=u.pending_buf[u.l_buf+we],we++,Se===0?ze(u,H,C):(ze(u,(ie=D[H])+_+1,C),(Qe=le[ie])!==0&&et(u,H-=Ye[ie],Qe),ze(u,ie=Ee(--Se),q),(Qe=me[ie])!==0&&et(u,Se-=be[ie],Qe)),we<u.last_lit;);ze(u,ne,C)}function lr(u,C){var q,Se,H,ie=C.dyn_tree,Qe=C.stat_desc.static_tree,we=C.stat_desc.has_stree,ye=C.stat_desc.elems,je=-1;for(u.heap_len=0,u.heap_max=L,q=0;q<ye;q++)ie[2*q]!==0?(u.heap[++u.heap_len]=je=q,u.depth[q]=0):ie[2*q+1]=0;for(;u.heap_len<2;)ie[2*(H=u.heap[++u.heap_len]=je<2?++je:0)]=1,u.depth[H]=0,u.opt_len--,we&&(u.static_len-=Qe[2*H+1]);for(C.max_code=je,q=u.heap_len>>1;1<=q;q--)er(u,ie,q);for(H=ye;q=u.heap[1],u.heap[1]=u.heap[u.heap_len--],er(u,ie,1),Se=u.heap[1],u.heap[--u.heap_max]=q,u.heap[--u.heap_max]=Se,ie[2*H]=ie[2*q]+ie[2*Se],u.depth[H]=(u.depth[q]>=u.depth[Se]?u.depth[q]:u.depth[Se])+1,ie[2*q+1]=ie[2*Se+1]=H,u.heap[1]=H++,er(u,ie,1),2<=u.heap_len;);u.heap[--u.heap_max]=u.heap[1],function(Ct,de){var st,tt,Ie,De,lt,Ut,kt=de.dyn_tree,rr=de.max_code,Fr=de.stat_desc.static_tree,kr=de.stat_desc.has_stree,Dr=de.stat_desc.extra_bits,Nr=de.stat_desc.extra_base,xr=de.stat_desc.max_length,ur=0;for(De=0;De<=Y;De++)Ct.bl_count[De]=0;for(kt[2*Ct.heap[Ct.heap_max]+1]=0,st=Ct.heap_max+1;st<L;st++)xr<(De=kt[2*kt[2*(tt=Ct.heap[st])+1]+1]+1)&&(De=xr,ur++),kt[2*tt+1]=De,rr<tt||(Ct.bl_count[De]++,lt=0,Nr<=tt&&(lt=Dr[tt-Nr]),Ut=kt[2*tt],Ct.opt_len+=Ut*(De+lt),kr&&(Ct.static_len+=Ut*(Fr[2*tt+1]+lt)));if(ur!==0){do{for(De=xr-1;Ct.bl_count[De]===0;)De--;Ct.bl_count[De]--,Ct.bl_count[De+1]+=2,Ct.bl_count[xr]--,ur-=2}while(0<ur);for(De=xr;De!==0;De--)for(tt=Ct.bl_count[De];tt!==0;)rr<(Ie=Ct.heap[--st])||(kt[2*Ie+1]!==De&&(Ct.opt_len+=(De-kt[2*Ie+1])*kt[2*Ie],kt[2*Ie+1]=De),tt--)}}(u,C),_t(ie,je,u.bl_count)}function G(u,C,q){var Se,H,ie=-1,Qe=C[1],we=0,ye=7,je=4;for(Qe===0&&(ye=138,je=3),C[2*(q+1)+1]=65535,Se=0;Se<=q;Se++)H=Qe,Qe=C[2*(Se+1)+1],++we<ye&&H===Qe||(we<je?u.bl_tree[2*H]+=we:H!==0?(H!==ie&&u.bl_tree[2*H]++,u.bl_tree[2*J]++):we<=10?u.bl_tree[2*W]++:u.bl_tree[2*K]++,ie=H,je=(we=0)===Qe?(ye=138,3):H===Qe?(ye=6,3):(ye=7,4))}function dt(u,C,q){var Se,H,ie=-1,Qe=C[1],we=0,ye=7,je=4;for(Qe===0&&(ye=138,je=3),Se=0;Se<=q;Se++)if(H=Qe,Qe=C[2*(Se+1)+1],!(++we<ye&&H===Qe)){if(we<je)for(;ze(u,H,u.bl_tree),--we!=0;);else H!==0?(H!==ie&&(ze(u,H,u.bl_tree),we--),ze(u,J,u.bl_tree),et(u,we-3,2)):we<=10?(ze(u,W,u.bl_tree),et(u,we-3,3)):(ze(u,K,u.bl_tree),et(u,we-11,7));ie=H,je=(we=0)===Qe?(ye=138,3):H===Qe?(ye=6,3):(ye=7,4)}}F(be);var I=!1;function m(u,C,q,Se){et(u,(v<<1)+(Se?1:0),3),function(H,ie,Qe,we){Nt(H),we&&(Xe(H,Qe),Xe(H,~Qe)),V.arraySet(H.pending_buf,H.window,ie,Qe,H.pending),H.pending+=Qe}(u,C,q,!0)}te._tr_init=function(u){I||(function(){var C,q,Se,H,ie,Qe=new Array(Y+1);for(H=Se=0;H<$-1;H++)for(Ye[H]=Se,C=0;C<1<<le[H];C++)D[Se++]=H;for(D[Se-1]=H,H=ie=0;H<16;H++)for(be[H]=ie,C=0;C<1<<me[H];C++)fe[ie++]=H;for(ie>>=7;H<O;H++)for(be[H]=ie<<7,C=0;C<1<<me[H]-7;C++)fe[256+ie++]=H;for(q=0;q<=Y;q++)Qe[q]=0;for(C=0;C<=143;)Ue[2*C+1]=8,C++,Qe[8]++;for(;C<=255;)Ue[2*C+1]=9,C++,Qe[9]++;for(;C<=279;)Ue[2*C+1]=7,C++,Qe[7]++;for(;C<=287;)Ue[2*C+1]=8,C++,Qe[8]++;for(_t(Ue,M+1,Qe),C=0;C<O;C++)ee[2*C+1]=5,ee[2*C]=qe(C,5);Le=new ke(Ue,le,_+1,M,Y),Ce=new ke(ee,me,0,O,Y),Te=new ke(new Array(0),Oe,0,T,se)}(),I=!0),u.l_desc=new he(u.dyn_ltree,Le),u.d_desc=new he(u.dyn_dtree,Ce),u.bl_desc=new he(u.bl_tree,Te),u.bi_buf=0,u.bi_valid=0,Lt(u)},te._tr_stored_block=m,te._tr_flush_block=function(u,C,q,Se){var H,ie,Qe=0;0<u.level?(u.strm.data_type===2&&(u.strm.data_type=function(we){var ye,je=4093624447;for(ye=0;ye<=31;ye++,je>>>=1)if(1&je&&we.dyn_ltree[2*ye]!==0)return S;if(we.dyn_ltree[18]!==0||we.dyn_ltree[20]!==0||we.dyn_ltree[26]!==0)return g;for(ye=32;ye<_;ye++)if(we.dyn_ltree[2*ye]!==0)return g;return S}(u)),lr(u,u.l_desc),lr(u,u.d_desc),Qe=function(we){var ye;for(G(we,we.dyn_ltree,we.l_desc.max_code),G(we,we.dyn_dtree,we.d_desc.max_code),lr(we,we.bl_desc),ye=T-1;3<=ye&&we.bl_tree[2*Be[ye]+1]===0;ye--);return we.opt_len+=3*(ye+1)+5+5+4,ye}(u),H=u.opt_len+3+7>>>3,(ie=u.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=q+5,q+4<=H&&C!==-1?m(u,C,q,Se):u.strategy===4||ie===H?(et(u,2+(Se?1:0),3),yr(u,Ue,ee)):(et(u,4+(Se?1:0),3),function(we,ye,je,Ct){var de;for(et(we,ye-257,5),et(we,je-1,5),et(we,Ct-4,4),de=0;de<Ct;de++)et(we,we.bl_tree[2*Be[de]+1],3);dt(we,we.dyn_ltree,ye-1),dt(we,we.dyn_dtree,je-1)}(u,u.l_desc.max_code+1,u.d_desc.max_code+1,Qe+1),yr(u,u.dyn_ltree,u.dyn_dtree)),Lt(u),Se&&Nt(u)},te._tr_tally=function(u,C,q){return u.pending_buf[u.d_buf+2*u.last_lit]=C>>>8&255,u.pending_buf[u.d_buf+2*u.last_lit+1]=255&C,u.pending_buf[u.l_buf+u.last_lit]=255&q,u.last_lit++,C===0?u.dyn_ltree[2*q]++:(u.matches++,C--,u.dyn_ltree[2*(D[q]+_+1)]++,u.dyn_dtree[2*Ee(C)]++),u.last_lit===u.lit_bufsize-1},te._tr_align=function(u){et(u,2,3),ze(u,ne,Ue),function(C){C.bi_valid===16?(Xe(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):8<=C.bi_valid&&(C.pending_buf[C.pending++]=255&C.bi_buf,C.bi_buf>>=8,C.bi_valid-=8)}(u)}},{"../utils/common":41}],53:[function(P,Ne,te){"use strict";Ne.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(P,Ne,te){(function(V){(function(S,g){"use strict";if(!S.setImmediate){var F,v,$,_,M=1,O={},T=!1,L=S.document,Y=Object.getPrototypeOf&&Object.getPrototypeOf(S);Y=Y&&Y.setTimeout?Y:S,F={}.toString.call(S.process)==="[object process]"?function(J){Ae.nextTick(function(){se(J)})}:function(){if(S.postMessage&&!S.importScripts){var J=!0,W=S.onmessage;return S.onmessage=function(){J=!1},S.postMessage("","*"),S.onmessage=W,J}}()?(_="setImmediate$"+Math.random()+"$",S.addEventListener?S.addEventListener("message",ne,!1):S.attachEvent("onmessage",ne),function(J){S.postMessage(_+J,"*")}):S.MessageChannel?(($=new MessageChannel).port1.onmessage=function(J){se(J.data)},function(J){$.port2.postMessage(J)}):L&&"onreadystatechange"in L.createElement("script")?(v=L.documentElement,function(J){var W=L.createElement("script");W.onreadystatechange=function(){se(J),W.onreadystatechange=null,v.removeChild(W),W=null},v.appendChild(W)}):function(J){setTimeout(se,0,J)},Y.setImmediate=function(J){typeof J!="function"&&(J=new Function(""+J));for(var W=new Array(arguments.length-1),K=0;K<W.length;K++)W[K]=arguments[K+1];var le={callback:J,args:W};return O[M]=le,F(M),M++},Y.clearImmediate=R}function R(J){delete O[J]}function se(J){if(T)setTimeout(se,0,J);else{var W=O[J];if(W){T=!0;try{(function(K){var le=K.callback,me=K.args;switch(me.length){case 0:le();break;case 1:le(me[0]);break;case 2:le(me[0],me[1]);break;case 3:le(me[0],me[1],me[2]);break;default:le.apply(g,me)}})(W)}finally{R(J),T=!1}}}}function ne(J){J.source===S&&typeof J.data=="string"&&J.data.indexOf(_)===0&&se(+J.data.slice(_.length))}})(typeof self=="undefined"?V===void 0?this:V:self)}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},5630:function(An,Tt,x){"use strict";var pe=x(54476),Ae=x(33885),P=x(20068),Ne=x(42978),te=x(75931),V=x(92310),S=x.n(V),g=x(18929),F=x(59301),v=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$=(0,F.forwardRef)(function(_,M){var O,T=_.prefixCls,L=T===void 0?"rc-checkbox":T,Y=_.className,R=_.style,se=_.checked,ne=_.disabled,J=_.defaultChecked,W=J===void 0?!1:J,K=_.type,le=K===void 0?"checkbox":K,me=_.title,Oe=_.onChange,Be=(0,te.Z)(_,v),Ue=(0,F.useRef)(null),ee=(0,g.Z)(W,{value:se}),fe=(0,Ne.Z)(ee,2),D=fe[0],Ye=fe[1];(0,F.useImperativeHandle)(M,function(){return{focus:function(){var be;(be=Ue.current)===null||be===void 0||be.focus()},blur:function(){var be;(be=Ue.current)===null||be===void 0||be.blur()},input:Ue.current}});var Le=S()(L,Y,(O={},(0,P.Z)(O,"".concat(L,"-checked"),D),(0,P.Z)(O,"".concat(L,"-disabled"),ne),O)),Ce=function(be){ne||("checked"in _||Ye(be.target.checked),Oe==null||Oe({target:(0,Ae.Z)((0,Ae.Z)({},_),{},{type:le,checked:be.target.checked}),stopPropagation:function(){be.stopPropagation()},preventDefault:function(){be.preventDefault()},nativeEvent:be.nativeEvent}))};return F.createElement("span",{className:Le,title:me,style:R},F.createElement("input",(0,pe.Z)({},Be,{className:"".concat(L,"-input"),ref:Ue,onChange:Ce,disabled:ne,checked:!!D,type:le})),F.createElement("span",{className:"".concat(L,"-inner")}))});Tt.Z=$},31561:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return le}});var pe=x(54476),Ae=x(20068),P=x(42978),Ne=x(75931),te=x(35593),V=x(92310),S=x.n(V),g=x(8654),F=x(59301),v=x(10228),$=x(16089),_=v.Z.ESC,M=v.Z.TAB;function O(me){var Oe=me.visible,Be=me.triggerRef,Ue=me.onVisibleChange,ee=me.autoFocus,fe=me.overlayRef,D=F.useRef(!1),Ye=function(){if(Oe){var be,ke;(be=Be.current)===null||be===void 0||(ke=be.focus)===null||ke===void 0||ke.call(be),Ue==null||Ue(!1)}},Le=function(){var be;return(be=fe.current)!==null&&be!==void 0&&be.focus?(fe.current.focus(),D.current=!0,!0):!1},Ce=function(be){switch(be.keyCode){case _:Ye();break;case M:{var ke=!1;D.current||(ke=Le()),ke?be.preventDefault():Ye();break}}};F.useEffect(function(){return Oe?(window.addEventListener("keydown",Ce),ee&&(0,$.Z)(Le,3),function(){window.removeEventListener("keydown",Ce),D.current=!1}):function(){D.current=!1}},[Oe])}var T=(0,F.forwardRef)(function(me,Oe){var Be=me.overlay,Ue=me.arrow,ee=me.prefixCls,fe=(0,F.useMemo)(function(){var Ye;return typeof Be=="function"?Ye=Be():Ye=Be,Ye},[Be]),D=(0,g.sQ)(Oe,fe==null?void 0:fe.ref);return F.createElement(F.Fragment,null,Ue&&F.createElement("div",{className:"".concat(ee,"-arrow")}),F.cloneElement(fe,{ref:(0,g.Yr)(fe)?D:void 0}))}),L=T,Y={adjustX:1,adjustY:1},R=[0,0],se={topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:R},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:R},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:R},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:R},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:R}},ne=se,J=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function W(me,Oe){var Be,Ue=me.arrow,ee=Ue===void 0?!1:Ue,fe=me.prefixCls,D=fe===void 0?"rc-dropdown":fe,Ye=me.transitionName,Le=me.animation,Ce=me.align,Te=me.placement,be=Te===void 0?"bottomLeft":Te,ke=me.placements,he=ke===void 0?ne:ke,Ee=me.getPopupContainer,Xe=me.showAction,et=me.hideAction,ze=me.overlayClassName,qe=me.overlayStyle,_t=me.visible,Lt=me.trigger,Nt=Lt===void 0?["hover"]:Lt,sr=me.autoFocus,er=me.overlay,yr=me.children,lr=me.onVisibleChange,G=(0,Ne.Z)(me,J),dt=F.useState(),I=(0,P.Z)(dt,2),m=I[0],u=I[1],C="visible"in me?_t:m,q=F.useRef(null),Se=F.useRef(null),H=F.useRef(null);F.useImperativeHandle(Oe,function(){return q.current});var ie=function(Ie){u(Ie),lr==null||lr(Ie)};O({visible:C,triggerRef:H,onVisibleChange:ie,autoFocus:sr,overlayRef:Se});var Qe=function(Ie){var De=me.onOverlayClick;u(!1),De&&De(Ie)},we=function(){return F.createElement(L,{ref:Se,overlay:er,prefixCls:D,arrow:ee})},ye=function(){return typeof er=="function"?we:we()},je=function(){var Ie=me.minOverlayWidthMatchTrigger,De=me.alignPoint;return"minOverlayWidthMatchTrigger"in me?Ie:!De},Ct=function(){var Ie=me.openClassName;return Ie!==void 0?Ie:"".concat(D,"-open")},de=F.cloneElement(yr,{className:S()((Be=yr.props)===null||Be===void 0?void 0:Be.className,C&&Ct()),ref:(0,g.Yr)(yr)?(0,g.sQ)(H,yr.ref):void 0}),st=et;return!st&&Nt.indexOf("contextMenu")!==-1&&(st=["click"]),F.createElement(te.Z,(0,pe.Z)({builtinPlacements:he},G,{prefixCls:D,ref:q,popupClassName:S()(ze,(0,Ae.Z)({},"".concat(D,"-show-arrow"),ee)),popupStyle:qe,action:Nt,showAction:Xe,hideAction:st,popupPlacement:be,popupAlign:Ce,popupTransitionName:Ye,popupAnimation:Le,popupVisible:C,stretch:je()?"minWidth":"",popup:ye(),onPopupVisibleChange:ie,onPopupClick:Qe,getPopupContainer:Ee}),de)}var K=F.forwardRef(W),le=K},93681:function(An,Tt,x){"use strict";x.r(Tt),x.d(Tt,{BaseInput:function(){return v},default:function(){return se}});var pe=x(54476),Ae=x(33885),P=x(20068),Ne=x(76190),te=x(92310),V=x.n(te),S=x(59301),g=x(5643),F=function(J){var W,K,le=J.inputElement,me=J.prefixCls,Oe=J.prefix,Be=J.suffix,Ue=J.addonBefore,ee=J.addonAfter,fe=J.className,D=J.style,Ye=J.disabled,Le=J.readOnly,Ce=J.focused,Te=J.triggerFocus,be=J.allowClear,ke=J.value,he=J.handleReset,Ee=J.hidden,Xe=J.classes,et=J.classNames,ze=J.dataAttrs,qe=J.styles,_t=J.components,Lt=(_t==null?void 0:_t.affixWrapper)||"span",Nt=(_t==null?void 0:_t.groupWrapper)||"span",sr=(_t==null?void 0:_t.wrapper)||"span",er=(_t==null?void 0:_t.groupAddon)||"span",yr=(0,S.useRef)(null),lr=function(we){var ye;(ye=yr.current)!==null&&ye!==void 0&&ye.contains(we.target)&&(Te==null||Te())},G=function(){var we;if(!be)return null;var ye=!Ye&&!Le&&ke,je="".concat(me,"-clear-icon"),Ct=(0,Ne.Z)(be)==="object"&&be!==null&&be!==void 0&&be.clearIcon?be.clearIcon:"\u2716";return S.createElement("span",{onClick:he,onMouseDown:function(st){return st.preventDefault()},className:V()(je,(we={},(0,P.Z)(we,"".concat(je,"-hidden"),!ye),(0,P.Z)(we,"".concat(je,"-has-suffix"),!!Be),we)),role:"button",tabIndex:-1},Ct)},dt=(0,S.cloneElement)(le,{value:ke,hidden:Ee,className:V()((W=le.props)===null||W===void 0?void 0:W.className,!(0,g.X3)(J)&&!(0,g.He)(J)&&fe)||null,style:(0,Ae.Z)((0,Ae.Z)({},(K=le.props)===null||K===void 0?void 0:K.style),!(0,g.X3)(J)&&!(0,g.He)(J)?D:{})});if((0,g.X3)(J)){var I,m="".concat(me,"-affix-wrapper"),u=V()(m,(I={},(0,P.Z)(I,"".concat(m,"-disabled"),Ye),(0,P.Z)(I,"".concat(m,"-focused"),Ce),(0,P.Z)(I,"".concat(m,"-readonly"),Le),(0,P.Z)(I,"".concat(m,"-input-with-clear-btn"),Be&&be&&ke),I),!(0,g.He)(J)&&fe,Xe==null?void 0:Xe.affixWrapper,et==null?void 0:et.affixWrapper),C=(Be||be)&&S.createElement("span",{className:V()("".concat(me,"-suffix"),et==null?void 0:et.suffix),style:qe==null?void 0:qe.suffix},G(),Be);dt=S.createElement(Lt,(0,pe.Z)({className:u,style:(0,Ae.Z)((0,Ae.Z)({},(0,g.He)(J)?void 0:D),qe==null?void 0:qe.affixWrapper),hidden:!(0,g.He)(J)&&Ee,onClick:lr},ze==null?void 0:ze.affixWrapper,{ref:yr}),Oe&&S.createElement("span",{className:V()("".concat(me,"-prefix"),et==null?void 0:et.prefix),style:qe==null?void 0:qe.prefix},Oe),(0,S.cloneElement)(le,{value:ke,hidden:null}),C)}if((0,g.He)(J)){var q="".concat(me,"-group"),Se="".concat(q,"-addon"),H=V()("".concat(me,"-wrapper"),q,Xe==null?void 0:Xe.wrapper),ie=V()("".concat(me,"-group-wrapper"),fe,Xe==null?void 0:Xe.group);return S.createElement(Nt,{className:ie,style:D,hidden:Ee},S.createElement(sr,{className:H},Ue&&S.createElement(er,{className:Se},Ue),(0,S.cloneElement)(dt,{hidden:null}),ee&&S.createElement(er,{className:Se},ee)))}return dt},v=F,$=x(94480),_=x(42978),M=x(75931),O=x(18929),T=x(2738),L=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Y=(0,S.forwardRef)(function(ne,J){var W=ne.autoComplete,K=ne.onChange,le=ne.onFocus,me=ne.onBlur,Oe=ne.onPressEnter,Be=ne.onKeyDown,Ue=ne.prefixCls,ee=Ue===void 0?"rc-input":Ue,fe=ne.disabled,D=ne.htmlSize,Ye=ne.className,Le=ne.maxLength,Ce=ne.suffix,Te=ne.showCount,be=ne.type,ke=be===void 0?"text":be,he=ne.classes,Ee=ne.classNames,Xe=ne.styles,et=(0,M.Z)(ne,L),ze=(0,O.Z)(ne.defaultValue,{value:ne.value}),qe=(0,_.Z)(ze,2),_t=qe[0],Lt=qe[1],Nt=(0,S.useState)(!1),sr=(0,_.Z)(Nt,2),er=sr[0],yr=sr[1],lr=(0,S.useRef)(null),G=function(ie){lr.current&&(0,g.nH)(lr.current,ie)};(0,S.useImperativeHandle)(J,function(){return{focus:G,blur:function(){var ie;(ie=lr.current)===null||ie===void 0||ie.blur()},setSelectionRange:function(ie,Qe,we){var ye;(ye=lr.current)===null||ye===void 0||ye.setSelectionRange(ie,Qe,we)},select:function(){var ie;(ie=lr.current)===null||ie===void 0||ie.select()},input:lr.current}}),(0,S.useEffect)(function(){yr(function(H){return H&&fe?!1:H})},[fe]);var dt=function(ie){ne.value===void 0&&Lt(ie.target.value),lr.current&&(0,g.rJ)(lr.current,ie,K)},I=function(ie){Oe&&ie.key==="Enter"&&Oe(ie),Be==null||Be(ie)},m=function(ie){yr(!0),le==null||le(ie)},u=function(ie){yr(!1),me==null||me(ie)},C=function(ie){Lt(""),G(),lr.current&&(0,g.rJ)(lr.current,ie,K)},q=function(){var ie=(0,T.Z)(ne,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return S.createElement("input",(0,pe.Z)({autoComplete:W},ie,{onChange:dt,onFocus:m,onBlur:u,onKeyDown:I,className:V()(ee,(0,P.Z)({},"".concat(ee,"-disabled"),fe),Ee==null?void 0:Ee.input),style:Xe==null?void 0:Xe.input,ref:lr,size:D,type:ke}))},Se=function(){var ie=Number(Le)>0;if(Ce||Te){var Qe=(0,g.D7)(_t),we=(0,$.Z)(Qe).length,ye=(0,Ne.Z)(Te)==="object"?Te.formatter({value:Qe,count:we,maxLength:Le}):"".concat(we).concat(ie?" / ".concat(Le):"");return S.createElement(S.Fragment,null,!!Te&&S.createElement("span",{className:V()("".concat(ee,"-show-count-suffix"),(0,P.Z)({},"".concat(ee,"-show-count-has-suffix"),!!Ce),Ee==null?void 0:Ee.count),style:(0,Ae.Z)({},Xe==null?void 0:Xe.count)},ye),Ce)}return null};return S.createElement(v,(0,pe.Z)({},et,{prefixCls:ee,className:Ye,inputElement:q(),handleReset:C,value:(0,g.D7)(_t),focused:er,triggerFocus:G,suffix:Se(),disabled:fe,classes:he,classNames:Ee,styles:Xe}))}),R=Y,se=R},5643:function(An,Tt,x){"use strict";x.d(Tt,{D7:function(){return te},He:function(){return pe},X3:function(){return Ae},nH:function(){return Ne},rJ:function(){return P}});function pe(V){return!!(V.addonBefore||V.addonAfter)}function Ae(V){return!!(V.prefix||V.suffix||V.allowClear)}function P(V,S,g,F){if(g){var v=S;if(S.type==="click"){var $=V.cloneNode(!0);v=Object.create(S,{target:{value:$},currentTarget:{value:$}}),$.value="",g(v);return}if(F!==void 0){v=Object.create(S,{target:{value:V},currentTarget:{value:V}}),V.value=F,g(v);return}g(v)}}function Ne(V,S){if(V){V.focus(S);var g=S||{},F=g.cursor;if(F){var v=V.value.length;switch(F){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(v,v);break;default:V.setSelectionRange(0,v)}}}}function te(V){return typeof V=="undefined"||V===null?"":String(V)}},15285:function(An,Tt,x){"use strict";x.d(Tt,{iz:function(){return jr},ck:function(){return pn},BW:function(){return an},sN:function(){return pn},Wd:function(){return Dt},ZP:function(){return Gn},Xl:function(){return Be}});var pe=x(54476),Ae=x(20068),P=x(33885),Ne=x(94480),te=x(42978),V=x(75931),S=x(92310),g=x.n(S),F=x(83836),v=x(18929),$=x(13697),_=x(48736),M=x(59301),O=x(4676),T=M.createContext(null);function L(Vt,Xt){return Vt===void 0?null:"".concat(Vt,"-").concat(Xt)}function Y(Vt){var Xt=M.useContext(T);return L(Xt,Vt)}var R=x(80547),se=["children","locked"],ne=M.createContext(null);function J(Vt,Xt){var Yt=(0,P.Z)({},Vt);return Object.keys(Xt).forEach(function(tr){var jt=Xt[tr];jt!==void 0&&(Yt[tr]=jt)}),Yt}function W(Vt){var Xt=Vt.children,Yt=Vt.locked,tr=(0,V.Z)(Vt,se),jt=M.useContext(ne),or=(0,R.Z)(function(){return J(jt,tr)},[jt,tr],function(cr,Pr){return!Yt&&(cr[0]!==Pr[0]||!(0,$.Z)(cr[1],Pr[1],!0))});return M.createElement(ne.Provider,{value:or},Xt)}var K=[],le=M.createContext(null);function me(){return M.useContext(le)}var Oe=M.createContext(K);function Be(Vt){var Xt=M.useContext(Oe);return M.useMemo(function(){return Vt!==void 0?[].concat((0,Ne.Z)(Xt),[Vt]):Xt},[Xt,Vt])}var Ue=M.createContext(null),ee=M.createContext({}),fe=ee,D=x(29194);function Ye(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Vt)){var Yt=Vt.nodeName.toLowerCase(),tr=["input","select","textarea","button"].includes(Yt)||Vt.isContentEditable||Yt==="a"&&!!Vt.getAttribute("href"),jt=Vt.getAttribute("tabindex"),or=Number(jt),cr=null;return jt&&!Number.isNaN(or)?cr=or:tr&&cr===null&&(cr=0),tr&&Vt.disabled&&(cr=null),cr!==null&&(cr>=0||Xt&&cr<0)}return!1}function Le(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=(0,Ne.Z)(Vt.querySelectorAll("*")).filter(function(tr){return Ye(tr,Xt)});return Ye(Vt,Xt)&&Yt.unshift(Vt),Yt}var Ce=null;function Te(){Ce=document.activeElement}function be(){Ce=null}function ke(){if(Ce)try{Ce.focus()}catch(Vt){}}function he(Vt,Xt){if(Xt.keyCode===9){var Yt=Le(Vt),tr=Yt[Xt.shiftKey?0:Yt.length-1],jt=tr===document.activeElement||Vt===document.activeElement;if(jt){var or=Yt[Xt.shiftKey?Yt.length-1:0];or.focus(),Xt.preventDefault()}}}var Ee=x(10228),Xe=x(16089),et=Ee.Z.LEFT,ze=Ee.Z.RIGHT,qe=Ee.Z.UP,_t=Ee.Z.DOWN,Lt=Ee.Z.ENTER,Nt=Ee.Z.ESC,sr=Ee.Z.HOME,er=Ee.Z.END,yr=[qe,_t,et,ze];function lr(Vt,Xt,Yt,tr){var jt,or,cr,Pr,bn="prev",xn="next",ci="children",ri="parent";if(Vt==="inline"&&tr===Lt)return{inlineTrigger:!0};var Si=(jt={},(0,Ae.Z)(jt,qe,bn),(0,Ae.Z)(jt,_t,xn),jt),qn=(or={},(0,Ae.Z)(or,et,Yt?xn:bn),(0,Ae.Z)(or,ze,Yt?bn:xn),(0,Ae.Z)(or,_t,ci),(0,Ae.Z)(or,Lt,ci),or),jn=(cr={},(0,Ae.Z)(cr,qe,bn),(0,Ae.Z)(cr,_t,xn),(0,Ae.Z)(cr,Lt,ci),(0,Ae.Z)(cr,Nt,ri),(0,Ae.Z)(cr,et,Yt?ci:ri),(0,Ae.Z)(cr,ze,Yt?ri:ci),cr),yi={inline:Si,horizontal:qn,vertical:jn,inlineSub:Si,horizontalSub:jn,verticalSub:jn},bi=(Pr=yi["".concat(Vt).concat(Xt?"":"Sub")])===null||Pr===void 0?void 0:Pr[tr];switch(bi){case bn:return{offset:-1,sibling:!0};case xn:return{offset:1,sibling:!0};case ri:return{offset:-1,sibling:!1};case ci:return{offset:1,sibling:!1};default:return null}}function G(Vt){for(var Xt=Vt;Xt;){if(Xt.getAttribute("data-menu-list"))return Xt;Xt=Xt.parentElement}return null}function dt(Vt,Xt){for(var Yt=Vt||document.activeElement;Yt;){if(Xt.has(Yt))return Yt;Yt=Yt.parentElement}return null}function I(Vt,Xt){var Yt=Le(Vt,!0);return Yt.filter(function(tr){return Xt.has(tr)})}function m(Vt,Xt,Yt){var tr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Vt)return null;var jt=I(Vt,Xt),or=jt.length,cr=jt.findIndex(function(Pr){return Yt===Pr});return tr<0?cr===-1?cr=or-1:cr-=1:tr>0&&(cr+=1),cr=(cr+or)%or,jt[cr]}var u=function(Xt,Yt){var tr=new Set,jt=new Map,or=new Map;return Xt.forEach(function(cr){var Pr=document.querySelector("[data-menu-id='".concat(L(Yt,cr),"']"));Pr&&(tr.add(Pr),or.set(Pr,cr),jt.set(cr,Pr))}),{elements:tr,key2element:jt,element2key:or}};function C(Vt,Xt,Yt,tr,jt,or,cr,Pr,bn,xn){var ci=M.useRef(),ri=M.useRef();ri.current=Xt;var Si=function(){Xe.Z.cancel(ci.current)};return M.useEffect(function(){return function(){Si()}},[]),function(qn){var jn=qn.which;if([].concat(yr,[Lt,Nt,sr,er]).includes(jn)){var yi=or(),bi=u(yi,tr),wi=bi,Ai=wi.elements,xi=wi.key2element,Xi=wi.element2key,ti=xi.get(Xt),Pi=dt(ti,Ai),za=Xi.get(Pi),li=lr(Vt,cr(za,!0).length===1,Yt,jn);if(!li&&jn!==sr&&jn!==er)return;(yr.includes(jn)||[sr,er].includes(jn))&&qn.preventDefault();var un=function(ua){if(ua){var Co=ua,Vn=ua.querySelector("a");Vn!=null&&Vn.getAttribute("href")&&(Co=Vn);var _n=Xi.get(ua);Pr(_n),Si(),ci.current=(0,Xe.Z)(function(){ri.current===_n&&Co.focus()})}};if([sr,er].includes(jn)||li.sibling||!Pi){var sn;!Pi||Vt==="inline"?sn=jt.current:sn=G(Pi);var Xn,Qn=I(sn,Ai);jn===sr?Xn=Qn[0]:jn===er?Xn=Qn[Qn.length-1]:Xn=m(sn,Ai,Pi,li.offset),un(Xn)}else if(li.inlineTrigger)bn(za);else if(li.offset>0)bn(za,!0),Si(),ci.current=(0,Xe.Z)(function(){bi=u(yi,tr);var Ra=Pi.getAttribute("aria-controls"),ua=document.getElementById(Ra),Co=m(ua,bi.elements);un(Co)},5);else if(li.offset<0){var fi=cr(za,!0),qi=fi[fi.length-2],Ii=xi.get(qi);bn(qi,!1),un(Ii)}}xn==null||xn(qn)}}function q(Vt){Promise.resolve().then(Vt)}var Se="__RC_UTIL_PATH_SPLIT__",H=function(Xt){return Xt.join(Se)},ie=function(Xt){return Xt.split(Se)},Qe="rc-menu-more";function we(){var Vt=M.useState({}),Xt=(0,te.Z)(Vt,2),Yt=Xt[1],tr=(0,M.useRef)(new Map),jt=(0,M.useRef)(new Map),or=M.useState([]),cr=(0,te.Z)(or,2),Pr=cr[0],bn=cr[1],xn=(0,M.useRef)(0),ci=(0,M.useRef)(!1),ri=function(){ci.current||Yt({})},Si=(0,M.useCallback)(function(xi,Xi){var ti=H(Xi);jt.current.set(ti,xi),tr.current.set(xi,ti),xn.current+=1;var Pi=xn.current;q(function(){Pi===xn.current&&ri()})},[]),qn=(0,M.useCallback)(function(xi,Xi){var ti=H(Xi);jt.current.delete(ti),tr.current.delete(xi)},[]),jn=(0,M.useCallback)(function(xi){bn(xi)},[]),yi=(0,M.useCallback)(function(xi,Xi){var ti=tr.current.get(xi)||"",Pi=ie(ti);return Xi&&Pr.includes(Pi[0])&&Pi.unshift(Qe),Pi},[Pr]),bi=(0,M.useCallback)(function(xi,Xi){return xi.some(function(ti){var Pi=yi(ti,!0);return Pi.includes(Xi)})},[yi]),wi=function(){var Xi=(0,Ne.Z)(tr.current.keys());return Pr.length&&Xi.push(Qe),Xi},Ai=(0,M.useCallback)(function(xi){var Xi="".concat(tr.current.get(xi)).concat(Se),ti=new Set;return(0,Ne.Z)(jt.current.keys()).forEach(function(Pi){Pi.startsWith(Xi)&&ti.add(jt.current.get(Pi))}),ti},[]);return M.useEffect(function(){return function(){ci.current=!0}},[]),{registerPath:Si,unregisterPath:qn,refreshOverflowKeys:jn,isSubPathKey:bi,getKeyPath:yi,getKeys:wi,getSubPathKeys:Ai}}function ye(Vt){var Xt=M.useRef(Vt);Xt.current=Vt;var Yt=M.useCallback(function(){for(var tr,jt=arguments.length,or=new Array(jt),cr=0;cr<jt;cr++)or[cr]=arguments[cr];return(tr=Xt.current)===null||tr===void 0?void 0:tr.call.apply(tr,[Xt].concat(or))},[]);return Vt?Yt:void 0}var je=Math.random().toFixed(5).toString().slice(2),Ct=0;function de(Vt){var Xt=(0,v.Z)(Vt,{value:Vt}),Yt=(0,te.Z)(Xt,2),tr=Yt[0],jt=Yt[1];return M.useEffect(function(){Ct+=1;var or="".concat(je,"-").concat(Ct);jt("rc-menu-uuid-".concat(or))},[]),tr}var st=x(67732),tt=x(83652),Ie=x(42403),De=x(158),lt=x(2738),Ut=x(8654);function kt(Vt,Xt,Yt,tr){var jt=M.useContext(ne),or=jt.activeKey,cr=jt.onActive,Pr=jt.onInactive,bn={active:or===Vt};return Xt||(bn.onMouseEnter=function(xn){Yt==null||Yt({key:Vt,domEvent:xn}),cr(Vt)},bn.onMouseLeave=function(xn){tr==null||tr({key:Vt,domEvent:xn}),Pr(Vt)}),bn}function rr(Vt){var Xt=M.useContext(ne),Yt=Xt.mode,tr=Xt.rtl,jt=Xt.inlineIndent;if(Yt!=="inline")return null;var or=Vt;return tr?{paddingRight:or*jt}:{paddingLeft:or*jt}}function Fr(Vt){var Xt=Vt.icon,Yt=Vt.props,tr=Vt.children,jt;return Xt===null||Xt===!1?null:(typeof Xt=="function"?jt=M.createElement(Xt,(0,P.Z)({},Yt)):typeof Xt!="boolean"&&(jt=Xt),jt||tr||null)}var kr=["item"];function Dr(Vt){var Xt=Vt.item,Yt=(0,V.Z)(Vt,kr);return Object.defineProperty(Yt,"item",{get:function(){return(0,_.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Xt}}),Yt}var Nr=["title","attribute","elementRef"],xr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ur=["active"],Qr=function(Vt){(0,Ie.Z)(Yt,Vt);var Xt=(0,De.Z)(Yt);function Yt(){return(0,st.Z)(this,Yt),Xt.apply(this,arguments)}return(0,tt.Z)(Yt,[{key:"render",value:function(){var jt=this.props,or=jt.title,cr=jt.attribute,Pr=jt.elementRef,bn=(0,V.Z)(jt,Nr),xn=(0,lt.Z)(bn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,_.ZP)(!cr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),M.createElement(F.Z.Item,(0,pe.Z)({},cr,{title:typeof or=="string"?or:void 0},xn,{ref:Pr}))}}]),Yt}(M.Component),hn=M.forwardRef(function(Vt,Xt){var Yt,tr=Vt.style,jt=Vt.className,or=Vt.eventKey,cr=Vt.warnKey,Pr=Vt.disabled,bn=Vt.itemIcon,xn=Vt.children,ci=Vt.role,ri=Vt.onMouseEnter,Si=Vt.onMouseLeave,qn=Vt.onClick,jn=Vt.onKeyDown,yi=Vt.onFocus,bi=(0,V.Z)(Vt,xr),wi=Y(or),Ai=M.useContext(ne),xi=Ai.prefixCls,Xi=Ai.onItemClick,ti=Ai.disabled,Pi=Ai.overflowDisabled,za=Ai.itemIcon,li=Ai.selectedKeys,un=Ai.onActive,sn=M.useContext(fe),Xn=sn._internalRenderMenuItem,Qn="".concat(xi,"-item"),fi=M.useRef(),qi=M.useRef(),Ii=ti||Pr,Ra=(0,Ut.x1)(Xt,qi),ua=Be(or),Co=function(mo){return{key:or,keyPath:(0,Ne.Z)(ua).reverse(),item:fi.current,domEvent:mo}},Vn=bn||za,_n=kt(or,Ii,ri,Si),ki=_n.active,Ji=(0,V.Z)(_n,ur),Ma=li.includes(or),Ms=rr(ua.length),Va=function(mo){if(!Ii){var xs=Co(mo);qn==null||qn(Dr(xs)),Xi(xs)}},fa=function(mo){if(jn==null||jn(mo),mo.which===Ee.Z.ENTER){var xs=Co(mo);qn==null||qn(Dr(xs)),Xi(xs)}},_o=function(mo){un(or),yi==null||yi(mo)},Bo={};Vt.role==="option"&&(Bo["aria-selected"]=Ma);var To=M.createElement(Qr,(0,pe.Z)({ref:fi,elementRef:Ra,role:ci===null?"none":ci||"menuitem",tabIndex:Pr?null:-1,"data-menu-id":Pi&&wi?null:wi},bi,Ji,Bo,{component:"li","aria-disabled":Pr,style:(0,P.Z)((0,P.Z)({},Ms),tr),className:g()(Qn,(Yt={},(0,Ae.Z)(Yt,"".concat(Qn,"-active"),ki),(0,Ae.Z)(Yt,"".concat(Qn,"-selected"),Ma),(0,Ae.Z)(Yt,"".concat(Qn,"-disabled"),Ii),Yt),jt),onClick:Va,onKeyDown:fa,onFocus:_o}),xn,M.createElement(Fr,{props:(0,P.Z)((0,P.Z)({},Vt),{},{isSelected:Ma}),icon:Vn}));return Xn&&(To=Xn(To,Vt,{selected:Ma})),To});function Ln(Vt,Xt){var Yt=Vt.eventKey,tr=me(),jt=Be(Yt);return M.useEffect(function(){if(tr)return tr.registerPath(Yt,jt),function(){tr.unregisterPath(Yt,jt)}},[jt]),tr?null:M.createElement(hn,(0,pe.Z)({},Vt,{ref:Xt}))}var pn=M.forwardRef(Ln),kn=["className","children"],Ki=function(Xt,Yt){var tr=Xt.className,jt=Xt.children,or=(0,V.Z)(Xt,kn),cr=M.useContext(ne),Pr=cr.prefixCls,bn=cr.mode,xn=cr.rtl;return M.createElement("ul",(0,pe.Z)({className:g()(Pr,xn&&"".concat(Pr,"-rtl"),"".concat(Pr,"-sub"),"".concat(Pr,"-").concat(bn==="inline"?"inline":"vertical"),tr),role:"menu"},or,{"data-menu-list":!0,ref:Yt}),jt)},hr=M.forwardRef(Ki);hr.displayName="SubMenuList";var Wn=hr,Hi=x(11592);function ui(Vt,Xt){return(0,Hi.Z)(Vt).map(function(Yt,tr){if(M.isValidElement(Yt)){var jt,or,cr=Yt.key,Pr=(jt=(or=Yt.props)===null||or===void 0?void 0:or.eventKey)!==null&&jt!==void 0?jt:cr,bn=Pr==null;bn&&(Pr="tmp_key-".concat([].concat((0,Ne.Z)(Xt),[tr]).join("-")));var xn={key:Pr,eventKey:Pr};return M.cloneElement(Yt,xn)}return Yt})}var $i=x(35593),Ri={adjustX:1,adjustY:1},Zi={topLeft:{points:["bl","tl"],overflow:Ri},topRight:{points:["br","tr"],overflow:Ri},bottomLeft:{points:["tl","bl"],overflow:Ri},bottomRight:{points:["tr","br"],overflow:Ri},leftTop:{points:["tr","tl"],overflow:Ri},leftBottom:{points:["br","bl"],overflow:Ri},rightTop:{points:["tl","tr"],overflow:Ri},rightBottom:{points:["bl","br"],overflow:Ri}},Za={topLeft:{points:["bl","tl"],overflow:Ri},topRight:{points:["br","tr"],overflow:Ri},bottomLeft:{points:["tl","bl"],overflow:Ri},bottomRight:{points:["tr","br"],overflow:Ri},rightTop:{points:["tr","tl"],overflow:Ri},rightBottom:{points:["br","bl"],overflow:Ri},leftTop:{points:["tl","tr"],overflow:Ri},leftBottom:{points:["bl","br"],overflow:Ri}},_i=null;function Yn(Vt,Xt,Yt){if(Xt)return Xt;if(Yt)return Yt[Vt]||Yt.other}var ii={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vi(Vt){var Xt=Vt.prefixCls,Yt=Vt.visible,tr=Vt.children,jt=Vt.popup,or=Vt.popupStyle,cr=Vt.popupClassName,Pr=Vt.popupOffset,bn=Vt.disabled,xn=Vt.mode,ci=Vt.onVisibleChange,ri=M.useContext(ne),Si=ri.getPopupContainer,qn=ri.rtl,jn=ri.subMenuOpenDelay,yi=ri.subMenuCloseDelay,bi=ri.builtinPlacements,wi=ri.triggerSubMenuAction,Ai=ri.forceSubMenuRender,xi=ri.rootClassName,Xi=ri.motion,ti=ri.defaultMotions,Pi=M.useState(!1),za=(0,te.Z)(Pi,2),li=za[0],un=za[1],sn=qn?(0,P.Z)((0,P.Z)({},Za),bi):(0,P.Z)((0,P.Z)({},Zi),bi),Xn=ii[xn],Qn=Yn(xn,Xi,ti),fi=M.useRef(Qn);xn!=="inline"&&(fi.current=Qn);var qi=(0,P.Z)((0,P.Z)({},fi.current),{},{leavedClassName:"".concat(Xt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Ii=M.useRef();return M.useEffect(function(){return Ii.current=(0,Xe.Z)(function(){un(Yt)}),function(){Xe.Z.cancel(Ii.current)}},[Yt]),M.createElement($i.Z,{prefixCls:Xt,popupClassName:g()("".concat(Xt,"-popup"),(0,Ae.Z)({},"".concat(Xt,"-rtl"),qn),cr,xi),stretch:xn==="horizontal"?"minWidth":null,getPopupContainer:Si,builtinPlacements:sn,popupPlacement:Xn,popupVisible:li,popup:jt,popupStyle:or,popupAlign:Pr&&{offset:Pr},action:bn?[]:[wi],mouseEnterDelay:jn,mouseLeaveDelay:yi,onPopupVisibleChange:ci,forceRender:Ai,popupMotion:qi,fresh:!0},tr)}var ge=x(77900);function Me(Vt){var Xt=Vt.id,Yt=Vt.open,tr=Vt.keyPath,jt=Vt.children,or="inline",cr=M.useContext(ne),Pr=cr.prefixCls,bn=cr.forceSubMenuRender,xn=cr.motion,ci=cr.defaultMotions,ri=cr.mode,Si=M.useRef(!1);Si.current=ri===or;var qn=M.useState(!Si.current),jn=(0,te.Z)(qn,2),yi=jn[0],bi=jn[1],wi=Si.current?Yt:!1;M.useEffect(function(){Si.current&&bi(!1)},[ri]);var Ai=(0,P.Z)({},Yn(or,xn,ci));tr.length>1&&(Ai.motionAppear=!1);var xi=Ai.onVisibleChanged;return Ai.onVisibleChanged=function(Xi){return!Si.current&&!Xi&&bi(!0),xi==null?void 0:xi(Xi)},yi?null:M.createElement(W,{mode:or,locked:!Si.current},M.createElement(ge.default,(0,pe.Z)({visible:wi},Ai,{forceRender:bn,removeOnLeave:!1,leavedClassName:"".concat(Pr,"-hidden")}),function(Xi){var ti=Xi.className,Pi=Xi.style;return M.createElement(Wn,{id:Xt,className:ti,style:Pi},jt)}))}var Fe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ge=["active"],Pt=function(Xt){var Yt,tr=Xt.style,jt=Xt.className,or=Xt.title,cr=Xt.eventKey,Pr=Xt.warnKey,bn=Xt.disabled,xn=Xt.internalPopupClose,ci=Xt.children,ri=Xt.itemIcon,Si=Xt.expandIcon,qn=Xt.popupClassName,jn=Xt.popupOffset,yi=Xt.popupStyle,bi=Xt.onClick,wi=Xt.onMouseEnter,Ai=Xt.onMouseLeave,xi=Xt.onTitleClick,Xi=Xt.onTitleMouseEnter,ti=Xt.onTitleMouseLeave,Pi=(0,V.Z)(Xt,Fe),za=Y(cr),li=M.useContext(ne),un=li.prefixCls,sn=li.mode,Xn=li.openKeys,Qn=li.disabled,fi=li.overflowDisabled,qi=li.activeKey,Ii=li.selectedKeys,Ra=li.itemIcon,ua=li.expandIcon,Co=li.onItemClick,Vn=li.onOpenChange,_n=li.onActive,ki=M.useContext(fe),Ji=ki._internalRenderSubMenuItem,Ma=M.useContext(Ue),Ms=Ma.isSubPathKey,Va=Be(),fa="".concat(un,"-submenu"),_o=Qn||bn,Bo=M.useRef(),To=M.useRef(),Ps=ri!=null?ri:Ra,mo=Si!=null?Si:ua,xs=Xn.includes(cr),Ts=!fi&&xs,$s=Ms(Ii,cr),Uo=kt(cr,_o,Xi,ti),Ro=Uo.active,Cs=(0,V.Z)(Uo,Ge),el=M.useState(!1),vl=(0,te.Z)(el,2),tc=vl[0],rc=vl[1],Rl=function(Ss){_o||rc(Ss)},Zs=function(Ss){Rl(!0),wi==null||wi({key:cr,domEvent:Ss})},kc=function(Ss){Rl(!1),Ai==null||Ai({key:cr,domEvent:Ss})},Ql=M.useMemo(function(){return Ro||(sn!=="inline"?tc||Ms([qi],cr):!1)},[sn,Ro,qi,tc,cr,Ms]),Kl=rr(Va.length),Vs=function(Ss){_o||(xi==null||xi({key:cr,domEvent:Ss}),sn==="inline"&&Vn(cr,!xs))},os=ye(function(Bs){bi==null||bi(Dr(Bs)),Co(Bs)}),ni=function(Ss){sn!=="inline"&&Vn(cr,Ss)},ca=function(){_n(cr)},ta=za&&"".concat(za,"-popup"),oa=M.createElement("div",(0,pe.Z)({role:"menuitem",style:Kl,className:"".concat(fa,"-title"),tabIndex:_o?null:-1,ref:Bo,title:typeof or=="string"?or:null,"data-menu-id":fi&&za?null:za,"aria-expanded":Ts,"aria-haspopup":!0,"aria-controls":ta,"aria-disabled":_o,onClick:Vs,onFocus:ca},Cs),or,M.createElement(Fr,{icon:sn!=="horizontal"?mo:void 0,props:(0,P.Z)((0,P.Z)({},Xt),{},{isOpen:Ts,isSubMenu:!0})},M.createElement("i",{className:"".concat(fa,"-arrow")}))),Oa=M.useRef(sn);if(sn!=="inline"&&Va.length>1?Oa.current="vertical":Oa.current=sn,!fi){var so=Oa.current;oa=M.createElement(vi,{mode:so,prefixCls:fa,visible:!xn&&Ts&&sn!=="inline",popupClassName:qn,popupOffset:jn,popupStyle:yi,popup:M.createElement(W,{mode:so==="horizontal"?"vertical":so},M.createElement(Wn,{id:ta,ref:To},ci)),disabled:_o,onVisibleChange:ni},oa)}var Ws=M.createElement(F.Z.Item,(0,pe.Z)({role:"none"},Pi,{component:"li",style:tr,className:g()(fa,"".concat(fa,"-").concat(sn),jt,(Yt={},(0,Ae.Z)(Yt,"".concat(fa,"-open"),Ts),(0,Ae.Z)(Yt,"".concat(fa,"-active"),Ql),(0,Ae.Z)(Yt,"".concat(fa,"-selected"),$s),(0,Ae.Z)(Yt,"".concat(fa,"-disabled"),_o),Yt)),onMouseEnter:Zs,onMouseLeave:kc}),oa,!fi&&M.createElement(Me,{id:ta,open:Ts,keyPath:Va},ci));return Ji&&(Ws=Ji(Ws,Xt,{selected:$s,active:Ql,open:Ts,disabled:_o})),M.createElement(W,{onItemClick:os,mode:sn==="horizontal"?"vertical":sn,itemIcon:Ps,expandIcon:mo},Ws)};function Dt(Vt){var Xt=Vt.eventKey,Yt=Vt.children,tr=Be(Xt),jt=ui(Yt,tr),or=me();M.useEffect(function(){if(or)return or.registerPath(Xt,tr),function(){or.unregisterPath(Xt,tr)}},[tr]);var cr;return or?cr=jt:cr=M.createElement(Pt,Vt,jt),M.createElement(Oe.Provider,{value:tr},cr)}var _r=x(76190),nr=["className","title","eventKey","children"],Or=["children"],Hr=function(Xt){var Yt=Xt.className,tr=Xt.title,jt=Xt.eventKey,or=Xt.children,cr=(0,V.Z)(Xt,nr),Pr=M.useContext(ne),bn=Pr.prefixCls,xn="".concat(bn,"-item-group");return M.createElement("li",(0,pe.Z)({role:"presentation"},cr,{onClick:function(ri){return ri.stopPropagation()},className:g()(xn,Yt)}),M.createElement("div",{role:"presentation",className:"".concat(xn,"-title"),title:typeof tr=="string"?tr:void 0},tr),M.createElement("ul",{role:"group",className:"".concat(xn,"-list")},or))};function an(Vt){var Xt=Vt.children,Yt=(0,V.Z)(Vt,Or),tr=Be(Yt.eventKey),jt=ui(Xt,tr),or=me();return or?jt:M.createElement(Hr,(0,lt.Z)(Yt,["warnKey"]),jt)}function jr(Vt){var Xt=Vt.className,Yt=Vt.style,tr=M.useContext(ne),jt=tr.prefixCls,or=me();return or?null:M.createElement("li",{role:"separator",className:g()("".concat(jt,"-item-divider"),Xt),style:Yt})}var Rr=["label","children","key","type"];function en(Vt){return(Vt||[]).map(function(Xt,Yt){if(Xt&&(0,_r.Z)(Xt)==="object"){var tr=Xt,jt=tr.label,or=tr.children,cr=tr.key,Pr=tr.type,bn=(0,V.Z)(tr,Rr),xn=cr!=null?cr:"tmp-".concat(Yt);return or||Pr==="group"?Pr==="group"?M.createElement(an,(0,pe.Z)({key:xn},bn,{title:jt}),en(or)):M.createElement(Dt,(0,pe.Z)({key:xn},bn,{title:jt}),en(or)):Pr==="divider"?M.createElement(jr,(0,pe.Z)({key:xn},bn)):M.createElement(pn,(0,pe.Z)({key:xn},bn),jt)}return null}).filter(function(Xt){return Xt})}function yn(Vt,Xt,Yt){var tr=Vt;return Xt&&(tr=en(Xt)),ui(tr,Yt)}var on=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Dn=[],Rn=M.forwardRef(function(Vt,Xt){var Yt,tr,jt=Vt,or=jt.prefixCls,cr=or===void 0?"rc-menu":or,Pr=jt.rootClassName,bn=jt.style,xn=jt.className,ci=jt.tabIndex,ri=ci===void 0?0:ci,Si=jt.items,qn=jt.children,jn=jt.direction,yi=jt.id,bi=jt.mode,wi=bi===void 0?"vertical":bi,Ai=jt.inlineCollapsed,xi=jt.disabled,Xi=jt.disabledOverflow,ti=jt.subMenuOpenDelay,Pi=ti===void 0?.1:ti,za=jt.subMenuCloseDelay,li=za===void 0?.1:za,un=jt.forceSubMenuRender,sn=jt.defaultOpenKeys,Xn=jt.openKeys,Qn=jt.activeKey,fi=jt.defaultActiveFirst,qi=jt.selectable,Ii=qi===void 0?!0:qi,Ra=jt.multiple,ua=Ra===void 0?!1:Ra,Co=jt.defaultSelectedKeys,Vn=jt.selectedKeys,_n=jt.onSelect,ki=jt.onDeselect,Ji=jt.inlineIndent,Ma=Ji===void 0?24:Ji,Ms=jt.motion,Va=jt.defaultMotions,fa=jt.triggerSubMenuAction,_o=fa===void 0?"hover":fa,Bo=jt.builtinPlacements,To=jt.itemIcon,Ps=jt.expandIcon,mo=jt.overflowedIndicator,xs=mo===void 0?"...":mo,Ts=jt.overflowedIndicatorPopupClassName,$s=jt.getPopupContainer,Uo=jt.onClick,Ro=jt.onOpenChange,Cs=jt.onKeyDown,el=jt.openAnimation,vl=jt.openTransitionName,tc=jt._internalRenderMenuItem,rc=jt._internalRenderSubMenuItem,Rl=(0,V.Z)(jt,on),Zs=M.useMemo(function(){return yn(qn,Si,Dn)},[qn,Si]),kc=M.useState(!1),Ql=(0,te.Z)(kc,2),Kl=Ql[0],Vs=Ql[1],os=M.useRef(),ni=de(yi),ca=jn==="rtl",ta=(0,v.Z)(sn,{value:Xn,postState:function(No){return No||Dn}}),oa=(0,te.Z)(ta,2),Oa=oa[0],so=oa[1],Ws=function(No){var qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function bc(){so(No),Ro==null||Ro(No)}qo?(0,O.flushSync)(bc):bc()},Bs=M.useState(Oa),Ss=(0,te.Z)(Bs,2),vs=Ss[0],to=Ss[1],Qa=M.useRef(!1),ss=M.useMemo(function(){return(wi==="inline"||wi==="vertical")&&Ai?["vertical",Ai]:[wi,!1]},[wi,Ai]),ls=(0,te.Z)(ss,2),Ls=ls[0],Jo=ls[1],Io=Ls==="inline",hA=M.useState(Ls),ru=(0,te.Z)(hA,2),lc=ru[0],pA=ru[1],cl=M.useState(Jo),mA=(0,te.Z)(cl,2),tl=mA[0],bs=mA[1];M.useEffect(function(){pA(Ls),bs(Jo),Qa.current&&(Io?so(vs):Ws(Dn))},[Ls,Jo]);var qc=M.useState(0),Us=(0,te.Z)(qc,2),PA=Us[0],cc=Us[1],Hl=PA>=Zs.length-1||lc!=="horizontal"||Xi;M.useEffect(function(){Io&&to(Oa)},[Oa]),M.useEffect(function(){return Qa.current=!0,function(){Qa.current=!1}},[]);var ro=we(),Gs=ro.registerPath,gA=ro.unregisterPath,Eu=ro.refreshOverflowKeys,cs=ro.isSubPathKey,Ba=ro.getKeyPath,ya=ro.getKeys,rs=ro.getSubPathKeys,bo=M.useMemo(function(){return{registerPath:Gs,unregisterPath:gA}},[Gs,gA]),$o=M.useMemo(function(){return{isSubPathKey:cs}},[cs]);M.useEffect(function(){Eu(Hl?Dn:Zs.slice(PA+1).map(function(Yo){return Yo.key}))},[PA,Hl]);var Zo=(0,v.Z)(Qn||fi&&((Yt=Zs[0])===null||Yt===void 0?void 0:Yt.key),{value:Qn}),Do=(0,te.Z)(Zo,2),Es=Do[0],nc=Do[1],Vc=ye(function(Yo){nc(Yo)}),Xs=ye(function(){nc(void 0)});(0,M.useImperativeHandle)(Xt,function(){return{list:os.current,focus:function(No){var qo,bc=ya(),jl=u(bc,ni),Xu=jl.elements,bA=jl.key2element,ZA=jl.element2key,Fd=I(os.current,Xu),Md=Es!=null?Es:Fd[0]?ZA.get(Fd[0]):(qo=Zs.find(function(Fo){return!Fo.props.disabled}))===null||qo===void 0?void 0:qo.key,VA=bA.get(Md);if(Md&&VA){var WA;VA==null||(WA=VA.focus)===null||WA===void 0||WA.call(VA,No)}}}});var vA=(0,v.Z)(Co||[],{value:Vn,postState:function(No){return Array.isArray(No)?No:No==null?Dn:[No]}}),wl=(0,te.Z)(vA,2),eA=wl[0],rl=wl[1],_d=function(No){if(Ii){var qo=No.key,bc=eA.includes(qo),jl;ua?bc?jl=eA.filter(function(bA){return bA!==qo}):jl=[].concat((0,Ne.Z)(eA),[qo]):jl=[qo],rl(jl);var Xu=(0,P.Z)((0,P.Z)({},No),{},{selectedKeys:jl});bc?ki==null||ki(Xu):_n==null||_n(Xu)}!ua&&Oa.length&&lc!=="inline"&&Ws(Dn)},nu=ye(function(Yo){Uo==null||Uo(Dr(Yo)),_d(Yo)}),$A=ye(function(Yo,No){var qo=Oa.filter(function(jl){return jl!==Yo});if(No)qo.push(Yo);else if(lc!=="inline"){var bc=rs(Yo);qo=qo.filter(function(jl){return!bc.has(jl)})}(0,$.Z)(Oa,qo,!0)||Ws(qo,!0)}),Af=function(No,qo){var bc=qo!=null?qo:!Oa.includes(No);$A(No,bc)},Wc=C(lc,Es,ca,ni,os,ya,Ba,nc,Af,Cs);M.useEffect(function(){Vs(!0)},[]);var Gu=M.useMemo(function(){return{_internalRenderMenuItem:tc,_internalRenderSubMenuItem:rc}},[tc,rc]),Dc=lc!=="horizontal"||Xi?Zs:Zs.map(function(Yo,No){return M.createElement(W,{key:Yo.key,overflowDisabled:No>PA},Yo)}),Id=M.createElement(F.Z,(0,pe.Z)({id:yi,ref:os,prefixCls:"".concat(cr,"-overflow"),component:"ul",itemComponent:pn,className:g()(cr,"".concat(cr,"-root"),"".concat(cr,"-").concat(lc),xn,(tr={},(0,Ae.Z)(tr,"".concat(cr,"-inline-collapsed"),tl),(0,Ae.Z)(tr,"".concat(cr,"-rtl"),ca),tr),Pr),dir:jn,style:bn,role:"menu",tabIndex:ri,data:Dc,renderRawItem:function(No){return No},renderRawRest:function(No){var qo=No.length,bc=qo?Zs.slice(-qo):null;return M.createElement(Dt,{eventKey:Qe,title:xs,disabled:Hl,internalPopupClose:qo===0,popupClassName:Ts},bc)},maxCount:lc!=="horizontal"||Xi?F.Z.INVALIDATE:F.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(No){cc(No)},onKeyDown:Wc},Rl));return M.createElement(fe.Provider,{value:Gu},M.createElement(T.Provider,{value:ni},M.createElement(W,{prefixCls:cr,rootClassName:Pr,mode:lc,openKeys:Oa,rtl:ca,disabled:xi,motion:Kl?Ms:null,defaultMotions:Kl?Va:null,activeKey:Es,onActive:Vc,onInactive:Xs,selectedKeys:eA,inlineIndent:Ma,subMenuOpenDelay:Pi,subMenuCloseDelay:li,forceSubMenuRender:un,builtinPlacements:Bo,triggerSubMenuAction:_o,getPopupContainer:$s,itemIcon:To,expandIcon:Ps,onItemClick:nu,onOpenChange:$A},M.createElement(Ue.Provider,{value:$o},Id),M.createElement("div",{style:{display:"none"},"aria-hidden":!0},M.createElement(le.Provider,{value:bo},Zs)))))}),di=Rn,Nn=di;Nn.Item=pn,Nn.SubMenu=Dt,Nn.ItemGroup=an,Nn.Divider=jr;var Gn=Nn},83836:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Te}});var pe=x(54476),Ae=x(33885),P=x(42978),Ne=x(75931),te=x(59301),V=x(92310),S=x.n(V),g=x(29301),F=x(34280),v=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$=void 0;function _(be,ke){var he=be.prefixCls,Ee=be.invalidate,Xe=be.item,et=be.renderItem,ze=be.responsive,qe=be.responsiveDisabled,_t=be.registerSize,Lt=be.itemKey,Nt=be.className,sr=be.style,er=be.children,yr=be.display,lr=be.order,G=be.component,dt=G===void 0?"div":G,I=(0,Ne.Z)(be,v),m=ze&&!yr;function u(ie){_t(Lt,ie)}te.useEffect(function(){return function(){u(null)}},[]);var C=et&&Xe!==$?et(Xe,{index:lr}):er,q;Ee||(q={opacity:m?0:1,height:m?0:$,overflowY:m?"hidden":$,order:ze?lr:$,pointerEvents:m?"none":$,position:m?"absolute":$});var Se={};m&&(Se["aria-hidden"]=!0);var H=te.createElement(dt,(0,pe.Z)({className:S()(!Ee&&he,Nt),style:(0,Ae.Z)((0,Ae.Z)({},q),sr)},Se,I,{ref:ke}),C);return ze&&(H=te.createElement(g.Z,{onResize:function(Qe){var we=Qe.offsetWidth;u(we)},disabled:qe},H)),H}var M=te.forwardRef(_);M.displayName="Item";var O=M,T=x(6089),L=x(4676),Y=x(16089);function R(be){if(typeof MessageChannel=="undefined")(0,Y.Z)(be);else{var ke=new MessageChannel;ke.port1.onmessage=function(){return be()},ke.port2.postMessage(void 0)}}function se(){var be=te.useRef(null),ke=function(Ee){be.current||(be.current=[],R(function(){(0,L.unstable_batchedUpdates)(function(){be.current.forEach(function(Xe){Xe()}),be.current=null})})),be.current.push(Ee)};return ke}function ne(be,ke){var he=te.useState(ke),Ee=(0,P.Z)(he,2),Xe=Ee[0],et=Ee[1],ze=(0,T.Z)(function(qe){be(function(){et(qe)})});return[Xe,ze]}var J=te.createContext(null),W=["component"],K=["className"],le=["className"],me=function(ke,he){var Ee=te.useContext(J);if(!Ee){var Xe=ke.component,et=Xe===void 0?"div":Xe,ze=(0,Ne.Z)(ke,W);return te.createElement(et,(0,pe.Z)({},ze,{ref:he}))}var qe=Ee.className,_t=(0,Ne.Z)(Ee,K),Lt=ke.className,Nt=(0,Ne.Z)(ke,le);return te.createElement(J.Provider,{value:null},te.createElement(O,(0,pe.Z)({ref:he,className:S()(qe,Lt)},_t,Nt)))},Oe=te.forwardRef(me);Oe.displayName="RawItem";var Be=Oe,Ue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],ee="responsive",fe="invalidate";function D(be){return"+ ".concat(be.length," ...")}function Ye(be,ke){var he=be.prefixCls,Ee=he===void 0?"rc-overflow":he,Xe=be.data,et=Xe===void 0?[]:Xe,ze=be.renderItem,qe=be.renderRawItem,_t=be.itemKey,Lt=be.itemWidth,Nt=Lt===void 0?10:Lt,sr=be.ssr,er=be.style,yr=be.className,lr=be.maxCount,G=be.renderRest,dt=be.renderRawRest,I=be.prefix,m=be.suffix,u=be.component,C=u===void 0?"div":u,q=be.itemComponent,Se=be.onVisibleChange,H=(0,Ne.Z)(be,Ue),ie=sr==="full",Qe=se(),we=ne(Qe,null),ye=(0,P.Z)(we,2),je=ye[0],Ct=ye[1],de=je||0,st=ne(Qe,new Map),tt=(0,P.Z)(st,2),Ie=tt[0],De=tt[1],lt=ne(Qe,0),Ut=(0,P.Z)(lt,2),kt=Ut[0],rr=Ut[1],Fr=ne(Qe,0),kr=(0,P.Z)(Fr,2),Dr=kr[0],Nr=kr[1],xr=ne(Qe,0),ur=(0,P.Z)(xr,2),Qr=ur[0],hn=ur[1],Ln=ne(Qe,0),pn=(0,P.Z)(Ln,2),kn=pn[0],Ki=pn[1],hr=(0,te.useState)(null),Wn=(0,P.Z)(hr,2),Hi=Wn[0],ui=Wn[1],$i=(0,te.useState)(null),Ri=(0,P.Z)($i,2),Zi=Ri[0],Za=Ri[1],_i=te.useMemo(function(){return Zi===null&&ie?Number.MAX_SAFE_INTEGER:Zi||0},[Zi,je]),Yn=(0,te.useState)(!1),ii=(0,P.Z)(Yn,2),vi=ii[0],ge=ii[1],Me="".concat(Ee,"-item"),Fe=Math.max(kt,Dr),Ge=lr===ee,Pt=et.length&&Ge,Dt=lr===fe,_r=Pt||typeof lr=="number"&&et.length>lr,nr=(0,te.useMemo)(function(){var or=et;return Pt?je===null&&ie?or=et:or=et.slice(0,Math.min(et.length,de/Nt)):typeof lr=="number"&&(or=et.slice(0,lr)),or},[et,Nt,je,lr,Pt]),Or=(0,te.useMemo)(function(){return Pt?et.slice(_i+1):et.slice(nr.length)},[et,nr,Pt,_i]),Hr=(0,te.useCallback)(function(or,cr){var Pr;return typeof _t=="function"?_t(or):(Pr=_t&&(or==null?void 0:or[_t]))!==null&&Pr!==void 0?Pr:cr},[_t]),an=(0,te.useCallback)(ze||function(or){return or},[ze]);function jr(or,cr,Pr){Zi===or&&(cr===void 0||cr===Hi)||(Za(or),Pr||(ge(or<et.length-1),Se==null||Se(or)),cr!==void 0&&ui(cr))}function Rr(or,cr){Ct(cr.clientWidth)}function en(or,cr){De(function(Pr){var bn=new Map(Pr);return cr===null?bn.delete(or):bn.set(or,cr),bn})}function yn(or,cr){Nr(cr),rr(Dr)}function on(or,cr){hn(cr)}function Dn(or,cr){Ki(cr)}function Rn(or){return Ie.get(Hr(nr[or],or))}(0,F.Z)(function(){if(de&&typeof Fe=="number"&&nr){var or=Qr+kn,cr=nr.length,Pr=cr-1;if(!cr){jr(0,null);return}for(var bn=0;bn<cr;bn+=1){var xn=Rn(bn);if(ie&&(xn=xn||0),xn===void 0){jr(bn-1,void 0,!0);break}if(or+=xn,Pr===0&&or<=de||bn===Pr-1&&or+Rn(Pr)<=de){jr(Pr,null);break}else if(or+Fe>de){jr(bn-1,or-xn-kn+Dr);break}}m&&Rn(0)+kn>de&&ui(null)}},[de,Ie,Dr,Qr,kn,Hr,nr]);var di=vi&&!!Or.length,Nn={};Hi!==null&&Pt&&(Nn={position:"absolute",left:Hi,top:0});var Gn={prefixCls:Me,responsive:Pt,component:q,invalidate:Dt},Vt=qe?function(or,cr){var Pr=Hr(or,cr);return te.createElement(J.Provider,{key:Pr,value:(0,Ae.Z)((0,Ae.Z)({},Gn),{},{order:cr,item:or,itemKey:Pr,registerSize:en,display:cr<=_i})},qe(or,cr))}:function(or,cr){var Pr=Hr(or,cr);return te.createElement(O,(0,pe.Z)({},Gn,{order:cr,key:Pr,item:or,renderItem:an,itemKey:Pr,registerSize:en,display:cr<=_i}))},Xt={order:di?_i:Number.MAX_SAFE_INTEGER,className:"".concat(Me,"-rest"),registerSize:yn,display:di},Yt=G||D,tr=dt?te.createElement(J.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},Gn),Xt)},dt(Or)):te.createElement(O,(0,pe.Z)({},Gn,Xt),typeof Yt=="function"?Yt(Or):Yt),jt=te.createElement(C,(0,pe.Z)({className:S()(!Dt&&Ee,yr),style:er,ref:ke},H),I&&te.createElement(O,(0,pe.Z)({},Gn,{responsive:Ge,responsiveDisabled:!Pt,order:-1,className:"".concat(Me,"-prefix"),registerSize:on,display:!0}),I),nr.map(Vt),_r?tr:null,m&&te.createElement(O,(0,pe.Z)({},Gn,{responsive:Ge,responsiveDisabled:!Pt,order:_i,className:"".concat(Me,"-suffix"),registerSize:Dn,display:!0,style:Nn}),m));return Ge?te.createElement(g.Z,{onResize:Rr,disabled:!Pt},jt):jt}var Le=te.forwardRef(Ye);Le.displayName="Overflow",Le.Item=Be,Le.RESPONSIVE=ee,Le.INVALIDATE=fe;var Ce=Le,Te=Ce},91735:function(An,Tt){"use strict";Tt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},17115:function(An,Tt,x){"use strict";x.d(Tt,{ZP:function(){return S}});var pe=x(42978),Ae=x(59301),P=x(47273),Ne=0,te=(0,P.Z)();function V(){var g;return te?(g=Ne,Ne+=1):g="TEST_OR_SSR",g}function S(g){var F=Ae.useState(),v=(0,pe.Z)(F,2),$=v[0],_=v[1];return Ae.useEffect(function(){_("rc_select_".concat(V()))},[]),g||$}},77861:function(An,Tt,x){"use strict";x.d(Tt,{Ac:function(){return je},Xo:function(){return Dr},Wx:function(){return xr},ZP:function(){return Me},lk:function(){return J}});var pe=x(54476),Ae=x(94480),P=x(20068),Ne=x(33885),te=x(42978),V=x(75931),S=x(76190),g=x(18929),F=x(48736),v=x(59301),$=x(92310),_=x.n($),M=x(34280),O=x(49658),T=x(10228),L=x(8654),Y=function(Ge){var Pt=Ge.className,Dt=Ge.customizeIcon,_r=Ge.customizeIconProps,nr=Ge.onMouseDown,Or=Ge.onClick,Hr=Ge.children,an;return typeof Dt=="function"?an=Dt(_r):an=Dt,v.createElement("span",{className:Pt,onMouseDown:function(Rr){Rr.preventDefault(),nr&&nr(Rr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Or,"aria-hidden":!0},an!==void 0?an:v.createElement("span",{className:_()(Pt.split(/\s+/).map(function(jr){return"".concat(jr,"-icon")}))},Hr))},R=Y;function se(Fe,Ge,Pt,Dt,_r){var nr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Or=arguments.length>6?arguments[6]:void 0,Hr=arguments.length>7?arguments[7]:void 0,an=v.useMemo(function(){if((0,S.Z)(Dt)==="object")return Dt.clearIcon;if(_r)return _r},[Dt,_r]),jr=v.useMemo(function(){return!!(!nr&&Dt&&(Pt.length||Or)&&!(Hr==="combobox"&&Or===""))},[Dt,nr,Pt.length,Or,Hr]);return{allowClear:jr,clearIcon:v.createElement(R,{className:"".concat(Fe,"-clear"),onMouseDown:Ge,customizeIcon:an},"\xD7")}}var ne=v.createContext(null);function J(){return v.useContext(ne)}function W(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ge=v.useState(!1),Pt=(0,te.Z)(Ge,2),Dt=Pt[0],_r=Pt[1],nr=v.useRef(null),Or=function(){window.clearTimeout(nr.current)};v.useEffect(function(){return Or},[]);var Hr=function(jr,Rr){Or(),nr.current=window.setTimeout(function(){_r(jr),Rr&&Rr()},Fe)};return[Dt,Hr,Or]}function K(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ge=v.useRef(null),Pt=v.useRef(null);v.useEffect(function(){return function(){window.clearTimeout(Pt.current)}},[]);function Dt(_r){(_r||Ge.current===null)&&(Ge.current=_r),window.clearTimeout(Pt.current),Pt.current=window.setTimeout(function(){Ge.current=null},Fe)}return[function(){return Ge.current},Dt]}function le(Fe,Ge,Pt,Dt){var _r=v.useRef(null);_r.current={open:Ge,triggerOpen:Pt,customizedTrigger:Dt},v.useEffect(function(){function nr(Or){var Hr;if(!((Hr=_r.current)!==null&&Hr!==void 0&&Hr.customizedTrigger)){var an=Or.target;an.shadowRoot&&Or.composed&&(an=Or.composedPath()[0]||an),_r.current.open&&Fe().filter(function(jr){return jr}).every(function(jr){return!jr.contains(an)&&jr!==an})&&_r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",nr),function(){return window.removeEventListener("mousedown",nr)}},[])}var me=x(26112),Oe=x(83836),Be=function(Ge,Pt){var Dt,_r,nr=Ge.prefixCls,Or=Ge.id,Hr=Ge.inputElement,an=Ge.disabled,jr=Ge.tabIndex,Rr=Ge.autoFocus,en=Ge.autoComplete,yn=Ge.editable,on=Ge.activeDescendantId,Dn=Ge.value,Rn=Ge.maxLength,di=Ge.onKeyDown,Nn=Ge.onMouseDown,Gn=Ge.onChange,Vt=Ge.onPaste,Xt=Ge.onCompositionStart,Yt=Ge.onCompositionEnd,tr=Ge.open,jt=Ge.attrs,or=Hr||v.createElement("input",null),cr=or,Pr=cr.ref,bn=cr.props,xn=bn.onKeyDown,ci=bn.onChange,ri=bn.onMouseDown,Si=bn.onCompositionStart,qn=bn.onCompositionEnd,jn=bn.style;return(0,F.Kp)(!("maxLength"in or.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),or=v.cloneElement(or,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({type:"search"},bn),{},{id:Or,ref:(0,L.sQ)(Pt,Pr),disabled:an,tabIndex:jr,autoComplete:en||"off",autoFocus:Rr,className:_()("".concat(nr,"-selection-search-input"),(Dt=or)===null||Dt===void 0||(_r=Dt.props)===null||_r===void 0?void 0:_r.className),role:"combobox","aria-label":"Search","aria-expanded":tr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Or,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Or,"_list"),"aria-activedescendant":tr?on:void 0},jt),{},{value:yn?Dn:"",maxLength:Rn,readOnly:!yn,unselectable:yn?null:"on",style:(0,Ne.Z)((0,Ne.Z)({},jn),{},{opacity:yn?null:0}),onKeyDown:function(bi){di(bi),xn&&xn(bi)},onMouseDown:function(bi){Nn(bi),ri&&ri(bi)},onChange:function(bi){Gn(bi),ci&&ci(bi)},onCompositionStart:function(bi){Xt(bi),Si&&Si(bi)},onCompositionEnd:function(bi){Yt(bi),qn&&qn(bi)},onPaste:Vt})),or},Ue=v.forwardRef(Be);Ue.displayName="Input";var ee=Ue;function fe(Fe){return Array.isArray(Fe)?Fe:Fe!==void 0?[Fe]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,Ye=D;function Le(Fe){return Fe!=null}function Ce(Fe){return!Fe&&Fe!==0}function Te(Fe){return["string","number"].includes((0,S.Z)(Fe))}function be(Fe){var Ge=void 0;return Fe&&(Te(Fe.title)?Ge=Fe.title.toString():Te(Fe.label)&&(Ge=Fe.label.toString())),Ge}function ke(Fe,Ge){Ye?v.useLayoutEffect(Fe,Ge):v.useEffect(Fe,Ge)}function he(Fe){var Ge;return(Ge=Fe.key)!==null&&Ge!==void 0?Ge:Fe.value}var Ee=function(Ge){Ge.preventDefault(),Ge.stopPropagation()},Xe=function(Ge){var Pt=Ge.id,Dt=Ge.prefixCls,_r=Ge.values,nr=Ge.open,Or=Ge.searchValue,Hr=Ge.autoClearSearchValue,an=Ge.inputRef,jr=Ge.placeholder,Rr=Ge.disabled,en=Ge.mode,yn=Ge.showSearch,on=Ge.autoFocus,Dn=Ge.autoComplete,Rn=Ge.activeDescendantId,di=Ge.tabIndex,Nn=Ge.removeIcon,Gn=Ge.maxTagCount,Vt=Ge.maxTagTextLength,Xt=Ge.maxTagPlaceholder,Yt=Xt===void 0?function(qi){return"+ ".concat(qi.length," ...")}:Xt,tr=Ge.tagRender,jt=Ge.onToggleOpen,or=Ge.onRemove,cr=Ge.onInputChange,Pr=Ge.onInputPaste,bn=Ge.onInputKeyDown,xn=Ge.onInputMouseDown,ci=Ge.onInputCompositionStart,ri=Ge.onInputCompositionEnd,Si=v.useRef(null),qn=(0,v.useState)(0),jn=(0,te.Z)(qn,2),yi=jn[0],bi=jn[1],wi=(0,v.useState)(!1),Ai=(0,te.Z)(wi,2),xi=Ai[0],Xi=Ai[1],ti="".concat(Dt,"-selection"),Pi=nr||en==="multiple"&&Hr===!1||en==="tags"?Or:"",za=en==="tags"||en==="multiple"&&Hr===!1||yn&&(nr||xi);ke(function(){bi(Si.current.scrollWidth)},[Pi]);function li(qi,Ii,Ra,ua,Co){return v.createElement("span",{className:_()("".concat(ti,"-item"),(0,P.Z)({},"".concat(ti,"-item-disabled"),Ra)),title:be(qi)},v.createElement("span",{className:"".concat(ti,"-item-content")},Ii),ua&&v.createElement(R,{className:"".concat(ti,"-item-remove"),onMouseDown:Ee,onClick:Co,customizeIcon:Nn},"\xD7"))}function un(qi,Ii,Ra,ua,Co){var Vn=function(ki){Ee(ki),jt(!nr)};return v.createElement("span",{onMouseDown:Vn},tr({label:Ii,value:qi,disabled:Ra,closable:ua,onClose:Co}))}function sn(qi){var Ii=qi.disabled,Ra=qi.label,ua=qi.value,Co=!Rr&&!Ii,Vn=Ra;if(typeof Vt=="number"&&(typeof Ra=="string"||typeof Ra=="number")){var _n=String(Vn);_n.length>Vt&&(Vn="".concat(_n.slice(0,Vt),"..."))}var ki=function(Ma){Ma&&Ma.stopPropagation(),or(qi)};return typeof tr=="function"?un(ua,Vn,Ii,Co,ki):li(qi,Vn,Ii,Co,ki)}function Xn(qi){var Ii=typeof Yt=="function"?Yt(qi):Yt;return li({title:Ii},Ii,!1)}var Qn=v.createElement("div",{className:"".concat(ti,"-search"),style:{width:yi},onFocus:function(){Xi(!0)},onBlur:function(){Xi(!1)}},v.createElement(ee,{ref:an,open:nr,prefixCls:Dt,id:Pt,inputElement:null,disabled:Rr,autoFocus:on,autoComplete:Dn,editable:za,activeDescendantId:Rn,value:Pi,onKeyDown:bn,onMouseDown:xn,onChange:cr,onPaste:Pr,onCompositionStart:ci,onCompositionEnd:ri,tabIndex:di,attrs:(0,me.Z)(Ge,!0)}),v.createElement("span",{ref:Si,className:"".concat(ti,"-search-mirror"),"aria-hidden":!0},Pi,"\xA0")),fi=v.createElement(Oe.Z,{prefixCls:"".concat(ti,"-overflow"),data:_r,renderItem:sn,renderRest:Xn,suffix:Qn,itemKey:he,maxCount:Gn});return v.createElement(v.Fragment,null,fi,!_r.length&&!Pi&&v.createElement("span",{className:"".concat(ti,"-placeholder")},jr))},et=Xe,ze=function(Ge){var Pt=Ge.inputElement,Dt=Ge.prefixCls,_r=Ge.id,nr=Ge.inputRef,Or=Ge.disabled,Hr=Ge.autoFocus,an=Ge.autoComplete,jr=Ge.activeDescendantId,Rr=Ge.mode,en=Ge.open,yn=Ge.values,on=Ge.placeholder,Dn=Ge.tabIndex,Rn=Ge.showSearch,di=Ge.searchValue,Nn=Ge.activeValue,Gn=Ge.maxLength,Vt=Ge.onInputKeyDown,Xt=Ge.onInputMouseDown,Yt=Ge.onInputChange,tr=Ge.onInputPaste,jt=Ge.onInputCompositionStart,or=Ge.onInputCompositionEnd,cr=Ge.title,Pr=v.useState(!1),bn=(0,te.Z)(Pr,2),xn=bn[0],ci=bn[1],ri=Rr==="combobox",Si=ri||Rn,qn=yn[0],jn=di||"";ri&&Nn&&!xn&&(jn=Nn),v.useEffect(function(){ri&&ci(!1)},[ri,Nn]);var yi=Rr!=="combobox"&&!en&&!Rn?!1:!!jn,bi=cr===void 0?be(qn):cr,wi=function(){if(qn)return null;var xi=yi?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(Dt,"-selection-placeholder"),style:xi},on)};return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(Dt,"-selection-search")},v.createElement(ee,{ref:nr,prefixCls:Dt,id:_r,open:en,inputElement:Pt,disabled:Or,autoFocus:Hr,autoComplete:an,editable:Si,activeDescendantId:jr,value:jn,onKeyDown:Vt,onMouseDown:Xt,onChange:function(xi){ci(!0),Yt(xi)},onPaste:tr,onCompositionStart:jt,onCompositionEnd:or,tabIndex:Dn,attrs:(0,me.Z)(Ge,!0),maxLength:ri?Gn:void 0})),!ri&&qn?v.createElement("span",{className:"".concat(Dt,"-selection-item"),title:bi,style:yi?{visibility:"hidden"}:void 0},qn.label):null,wi())},qe=ze;function _t(Fe){return![T.Z.ESC,T.Z.SHIFT,T.Z.BACKSPACE,T.Z.TAB,T.Z.WIN_KEY,T.Z.ALT,T.Z.META,T.Z.WIN_KEY_RIGHT,T.Z.CTRL,T.Z.SEMICOLON,T.Z.EQUALS,T.Z.CAPS_LOCK,T.Z.CONTEXT_MENU,T.Z.F1,T.Z.F2,T.Z.F3,T.Z.F4,T.Z.F5,T.Z.F6,T.Z.F7,T.Z.F8,T.Z.F9,T.Z.F10,T.Z.F11,T.Z.F12].includes(Fe)}var Lt=function(Ge,Pt){var Dt=(0,v.useRef)(null),_r=(0,v.useRef)(!1),nr=Ge.prefixCls,Or=Ge.open,Hr=Ge.mode,an=Ge.showSearch,jr=Ge.tokenWithEnter,Rr=Ge.autoClearSearchValue,en=Ge.onSearch,yn=Ge.onSearchSubmit,on=Ge.onToggleOpen,Dn=Ge.onInputKeyDown,Rn=Ge.domRef;v.useImperativeHandle(Pt,function(){return{focus:function(){Dt.current.focus()},blur:function(){Dt.current.blur()}}});var di=K(0),Nn=(0,te.Z)(di,2),Gn=Nn[0],Vt=Nn[1],Xt=function(jn){var yi=jn.which;(yi===T.Z.UP||yi===T.Z.DOWN)&&jn.preventDefault(),Dn&&Dn(jn),yi===T.Z.ENTER&&Hr==="tags"&&!_r.current&&!Or&&(yn==null||yn(jn.target.value)),_t(yi)&&on(!0)},Yt=function(){Vt(!0)},tr=(0,v.useRef)(null),jt=function(jn){en(jn,!0,_r.current)!==!1&&on(!0)},or=function(){_r.current=!0},cr=function(jn){_r.current=!1,Hr!=="combobox"&&jt(jn.target.value)},Pr=function(jn){var yi=jn.target.value;if(jr&&tr.current&&/[\r\n]/.test(tr.current)){var bi=tr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yi=yi.replace(bi,tr.current)}tr.current=null,jt(yi)},bn=function(jn){var yi=jn.clipboardData,bi=yi.getData("text");tr.current=bi},xn=function(jn){var yi=jn.target;if(yi!==Dt.current){var bi=document.body.style.msTouchAction!==void 0;bi?setTimeout(function(){Dt.current.focus()}):Dt.current.focus()}},ci=function(jn){var yi=Gn();jn.target!==Dt.current&&!yi&&Hr!=="combobox"&&jn.preventDefault(),(Hr!=="combobox"&&(!an||!yi)||!Or)&&(Or&&Rr!==!1&&en("",!0,!1),on())},ri={inputRef:Dt,onInputKeyDown:Xt,onInputMouseDown:Yt,onInputChange:Pr,onInputPaste:bn,onInputCompositionStart:or,onInputCompositionEnd:cr},Si=Hr==="multiple"||Hr==="tags"?v.createElement(et,(0,pe.Z)({},Ge,ri)):v.createElement(qe,(0,pe.Z)({},Ge,ri));return v.createElement("div",{ref:Rn,className:"".concat(nr,"-selector"),onClick:xn,onMouseDown:ci},Si)},Nt=v.forwardRef(Lt);Nt.displayName="Selector";var sr=Nt,er=x(35593),yr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],lr=function(Ge){var Pt=Ge===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"}}},G=function(Ge,Pt){var Dt=Ge.prefixCls,_r=Ge.disabled,nr=Ge.visible,Or=Ge.children,Hr=Ge.popupElement,an=Ge.animation,jr=Ge.transitionName,Rr=Ge.dropdownStyle,en=Ge.dropdownClassName,yn=Ge.direction,on=yn===void 0?"ltr":yn,Dn=Ge.placement,Rn=Ge.builtinPlacements,di=Ge.dropdownMatchSelectWidth,Nn=Ge.dropdownRender,Gn=Ge.dropdownAlign,Vt=Ge.getPopupContainer,Xt=Ge.empty,Yt=Ge.getTriggerDOMNode,tr=Ge.onPopupVisibleChange,jt=Ge.onPopupMouseEnter,or=(0,V.Z)(Ge,yr),cr="".concat(Dt,"-dropdown"),Pr=Hr;Nn&&(Pr=Nn(Hr));var bn=v.useMemo(function(){return Rn||lr(di)},[Rn,di]),xn=an?"".concat(cr,"-").concat(an):jr,ci=typeof di=="number",ri=v.useMemo(function(){return ci?null:di===!1?"minWidth":"width"},[di,ci]),Si=Rr;ci&&(Si=(0,Ne.Z)((0,Ne.Z)({},Si),{},{width:di}));var qn=v.useRef(null);return v.useImperativeHandle(Pt,function(){return{getPopupElement:function(){return qn.current}}}),v.createElement(er.Z,(0,pe.Z)({},or,{showAction:tr?["click"]:[],hideAction:tr?["click"]:[],popupPlacement:Dn||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:bn,prefixCls:cr,popupTransitionName:xn,popup:v.createElement("div",{ref:qn,onMouseEnter:jt},Pr),stretch:ri,popupAlign:Gn,popupVisible:nr,getPopupContainer:Vt,popupClassName:_()(en,(0,P.Z)({},"".concat(cr,"-empty"),Xt)),popupStyle:Si,getTriggerDOMNode:Yt,onPopupVisibleChange:tr}),Or)},dt=v.forwardRef(G);dt.displayName="SelectTrigger";var I=dt,m=x(66712);function u(Fe,Ge){var Pt=Fe.key,Dt;return"value"in Fe&&(Dt=Fe.value),Pt!=null?Pt:Dt!==void 0?Dt:"rc-index-key-".concat(Ge)}function C(Fe,Ge){var Pt=Fe||{},Dt=Pt.label,_r=Pt.value,nr=Pt.options,Or=Pt.groupLabel,Hr=Dt||(Ge?"children":"label");return{label:Hr,value:_r||"value",options:nr||"options",groupLabel:Or||Hr}}function q(Fe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pt=Ge.fieldNames,Dt=Ge.childrenAsData,_r=[],nr=C(Pt,!1),Or=nr.label,Hr=nr.value,an=nr.options,jr=nr.groupLabel;function Rr(en,yn){en.forEach(function(on){if(yn||!(an in on)){var Dn=on[Hr];_r.push({key:u(on,_r.length),groupOption:yn,data:on,label:on[Or],value:Dn})}else{var Rn=on[jr];Rn===void 0&&Dt&&(Rn=on.label),_r.push({key:u(on,_r.length),group:!0,data:on,label:Rn}),Rr(on[an],!0)}})}return Rr(Fe,!1),_r}function Se(Fe){var Ge=(0,Ne.Z)({},Fe);return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,F.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ge}}),Ge}function H(Fe,Ge){if(!Ge||!Ge.length)return null;var Pt=!1;function Dt(nr,Or){var Hr=(0,m.Z)(Or),an=Hr[0],jr=Hr.slice(1);if(!an)return[nr];var Rr=nr.split(an);return Pt=Pt||Rr.length>1,Rr.reduce(function(en,yn){return[].concat((0,Ae.Z)(en),(0,Ae.Z)(Dt(yn,jr)))},[]).filter(function(en){return en})}var _r=Dt(Fe,Ge);return Pt?_r:null}var ie=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Qe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function we(Fe){return Fe==="tags"||Fe==="multiple"}var ye=v.forwardRef(function(Fe,Ge){var Pt,Dt,_r=Fe.id,nr=Fe.prefixCls,Or=Fe.className,Hr=Fe.showSearch,an=Fe.tagRender,jr=Fe.direction,Rr=Fe.omitDomProps,en=Fe.displayValues,yn=Fe.onDisplayValuesChange,on=Fe.emptyOptions,Dn=Fe.notFoundContent,Rn=Dn===void 0?"Not Found":Dn,di=Fe.onClear,Nn=Fe.mode,Gn=Fe.disabled,Vt=Fe.loading,Xt=Fe.getInputElement,Yt=Fe.getRawInputElement,tr=Fe.open,jt=Fe.defaultOpen,or=Fe.onDropdownVisibleChange,cr=Fe.activeValue,Pr=Fe.onActiveValueChange,bn=Fe.activeDescendantId,xn=Fe.searchValue,ci=Fe.autoClearSearchValue,ri=Fe.onSearch,Si=Fe.onSearchSplit,qn=Fe.tokenSeparators,jn=Fe.allowClear,yi=Fe.suffixIcon,bi=Fe.clearIcon,wi=Fe.OptionList,Ai=Fe.animation,xi=Fe.transitionName,Xi=Fe.dropdownStyle,ti=Fe.dropdownClassName,Pi=Fe.dropdownMatchSelectWidth,za=Fe.dropdownRender,li=Fe.dropdownAlign,un=Fe.placement,sn=Fe.builtinPlacements,Xn=Fe.getPopupContainer,Qn=Fe.showAction,fi=Qn===void 0?[]:Qn,qi=Fe.onFocus,Ii=Fe.onBlur,Ra=Fe.onKeyUp,ua=Fe.onKeyDown,Co=Fe.onMouseDown,Vn=(0,V.Z)(Fe,ie),_n=we(Nn),ki=(Hr!==void 0?Hr:_n)||Nn==="combobox",Ji=(0,Ne.Z)({},Vn);Qe.forEach(function(Ba){delete Ji[Ba]}),Rr==null||Rr.forEach(function(Ba){delete Ji[Ba]});var Ma=v.useState(!1),Ms=(0,te.Z)(Ma,2),Va=Ms[0],fa=Ms[1];v.useEffect(function(){fa((0,O.Z)())},[]);var _o=v.useRef(null),Bo=v.useRef(null),To=v.useRef(null),Ps=v.useRef(null),mo=v.useRef(null),xs=W(),Ts=(0,te.Z)(xs,3),$s=Ts[0],Uo=Ts[1],Ro=Ts[2];v.useImperativeHandle(Ge,function(){var Ba,ya;return{focus:(Ba=Ps.current)===null||Ba===void 0?void 0:Ba.focus,blur:(ya=Ps.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(bo){var $o;return($o=mo.current)===null||$o===void 0?void 0:$o.scrollTo(bo)}}});var Cs=v.useMemo(function(){var Ba;if(Nn!=="combobox")return xn;var ya=(Ba=en[0])===null||Ba===void 0?void 0:Ba.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[xn,Nn,en]),el=Nn==="combobox"&&typeof Xt=="function"&&Xt()||null,vl=typeof Yt=="function"&&Yt(),tc=(0,L.x1)(Bo,vl==null||(Pt=vl.props)===null||Pt===void 0?void 0:Pt.ref),rc=v.useState(!1),Rl=(0,te.Z)(rc,2),Zs=Rl[0],kc=Rl[1];(0,M.Z)(function(){kc(!0)},[]);var Ql=(0,g.Z)(!1,{defaultValue:jt,value:tr}),Kl=(0,te.Z)(Ql,2),Vs=Kl[0],os=Kl[1],ni=Zs?Vs:!1,ca=!Rn&&on;(Gn||ca&&ni&&Nn==="combobox")&&(ni=!1);var ta=ca?!1:ni,oa=v.useCallback(function(Ba){var ya=Ba!==void 0?Ba:!ni;Gn||(os(ya),ni!==ya&&(or==null||or(ya)))},[Gn,ni,os,or]),Oa=v.useMemo(function(){return(qn||[]).some(function(Ba){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ba)})},[qn]),so=function(ya,rs,bo){var $o=!0,Zo=ya;Pr==null||Pr(null);var Do=bo?null:H(ya,qn);return Nn!=="combobox"&&Do&&(Zo="",Si==null||Si(Do),oa(!1),$o=!1),ri&&Cs!==Zo&&ri(Zo,{source:rs?"typing":"effect"}),$o},Ws=function(ya){!ya||!ya.trim()||ri(ya,{source:"submit"})};v.useEffect(function(){!ni&&!_n&&Nn!=="combobox"&&so("",!1,!1)},[ni]),v.useEffect(function(){Vs&&Gn&&os(!1),Gn&&Uo(!1)},[Gn]);var Bs=K(),Ss=(0,te.Z)(Bs,2),vs=Ss[0],to=Ss[1],Qa=function(ya){var rs=vs(),bo=ya.which;if(bo===T.Z.ENTER&&(Nn!=="combobox"&&ya.preventDefault(),ni||oa(!0)),to(!!Cs),bo===T.Z.BACKSPACE&&!rs&&_n&&!Cs&&en.length){for(var $o=(0,Ae.Z)(en),Zo=null,Do=$o.length-1;Do>=0;Do-=1){var Es=$o[Do];if(!Es.disabled){$o.splice(Do,1),Zo=Es;break}}Zo&&yn($o,{type:"remove",values:[Zo]})}for(var nc=arguments.length,Vc=new Array(nc>1?nc-1:0),Xs=1;Xs<nc;Xs++)Vc[Xs-1]=arguments[Xs];if(ni&&mo.current){var vA;(vA=mo.current).onKeyDown.apply(vA,[ya].concat(Vc))}ua==null||ua.apply(void 0,[ya].concat(Vc))},ss=function(ya){for(var rs=arguments.length,bo=new Array(rs>1?rs-1:0),$o=1;$o<rs;$o++)bo[$o-1]=arguments[$o];if(ni&&mo.current){var Zo;(Zo=mo.current).onKeyUp.apply(Zo,[ya].concat(bo))}Ra==null||Ra.apply(void 0,[ya].concat(bo))},ls=function(ya){var rs=en.filter(function(bo){return bo!==ya});yn(rs,{type:"remove",values:[ya]})},Ls=v.useRef(!1),Jo=function(){Uo(!0),Gn||(qi&&!Ls.current&&qi.apply(void 0,arguments),fi.includes("focus")&&oa(!0)),Ls.current=!0},Io=function(){Uo(!1,function(){Ls.current=!1,oa(!1)}),!Gn&&(Cs&&(Nn==="tags"?ri(Cs,{source:"submit"}):Nn==="multiple"&&ri("",{source:"blur"})),Ii&&Ii.apply(void 0,arguments))},hA=[];v.useEffect(function(){return function(){hA.forEach(function(Ba){return clearTimeout(Ba)}),hA.splice(0,hA.length)}},[]);var ru=function(ya){var rs,bo=ya.target,$o=(rs=To.current)===null||rs===void 0?void 0:rs.getPopupElement();if($o&&$o.contains(bo)){var Zo=setTimeout(function(){var Vc=hA.indexOf(Zo);if(Vc!==-1&&hA.splice(Vc,1),Ro(),!Va&&!$o.contains(document.activeElement)){var Xs;(Xs=Ps.current)===null||Xs===void 0||Xs.focus()}});hA.push(Zo)}for(var Do=arguments.length,Es=new Array(Do>1?Do-1:0),nc=1;nc<Do;nc++)Es[nc-1]=arguments[nc];Co==null||Co.apply(void 0,[ya].concat(Es))},lc=v.useState({}),pA=(0,te.Z)(lc,2),cl=pA[1];function mA(){cl({})}var tl;vl&&(tl=function(ya){oa(ya)}),le(function(){var Ba;return[_o.current,(Ba=To.current)===null||Ba===void 0?void 0:Ba.getPopupElement()]},ta,oa,!!vl);var bs=v.useMemo(function(){return(0,Ne.Z)((0,Ne.Z)({},Fe),{},{notFoundContent:Rn,open:ni,triggerOpen:ta,id:_r,showSearch:ki,multiple:_n,toggleOpen:oa})},[Fe,Rn,ta,ni,_r,ki,_n,oa]),qc=!!yi||Vt,Us;qc&&(Us=v.createElement(R,{className:_()("".concat(nr,"-arrow"),(0,P.Z)({},"".concat(nr,"-arrow-loading"),Vt)),customizeIcon:yi,customizeIconProps:{loading:Vt,searchValue:Cs,open:ni,focused:$s,showSearch:ki}}));var PA=function(){var ya;di==null||di(),(ya=Ps.current)===null||ya===void 0||ya.focus(),yn([],{type:"clear",values:en}),so("",!1,!1)},cc=se(nr,PA,en,jn,bi,Gn,Cs,Nn),Hl=cc.allowClear,ro=cc.clearIcon,Gs=v.createElement(wi,{ref:mo}),gA=_()(nr,Or,(Dt={},(0,P.Z)(Dt,"".concat(nr,"-focused"),$s),(0,P.Z)(Dt,"".concat(nr,"-multiple"),_n),(0,P.Z)(Dt,"".concat(nr,"-single"),!_n),(0,P.Z)(Dt,"".concat(nr,"-allow-clear"),jn),(0,P.Z)(Dt,"".concat(nr,"-show-arrow"),qc),(0,P.Z)(Dt,"".concat(nr,"-disabled"),Gn),(0,P.Z)(Dt,"".concat(nr,"-loading"),Vt),(0,P.Z)(Dt,"".concat(nr,"-open"),ni),(0,P.Z)(Dt,"".concat(nr,"-customize-input"),el),(0,P.Z)(Dt,"".concat(nr,"-show-search"),ki),Dt)),Eu=v.createElement(I,{ref:To,disabled:Gn,prefixCls:nr,visible:ta,popupElement:Gs,animation:Ai,transitionName:xi,dropdownStyle:Xi,dropdownClassName:ti,direction:jr,dropdownMatchSelectWidth:Pi,dropdownRender:za,dropdownAlign:li,placement:un,builtinPlacements:sn,getPopupContainer:Xn,empty:on,getTriggerDOMNode:function(){return Bo.current},onPopupVisibleChange:tl,onPopupMouseEnter:mA},vl?v.cloneElement(vl,{ref:tc}):v.createElement(sr,(0,pe.Z)({},Fe,{domRef:Bo,prefixCls:nr,inputElement:el,ref:Ps,id:_r,showSearch:ki,autoClearSearchValue:ci,mode:Nn,activeDescendantId:bn,tagRender:an,values:en,open:ni,onToggleOpen:oa,activeValue:cr,searchValue:Cs,onSearch:so,onSearchSubmit:Ws,onRemove:ls,tokenWithEnter:Oa}))),cs;return vl?cs=Eu:cs=v.createElement("div",(0,pe.Z)({className:gA},Ji,{ref:_o,onMouseDown:ru,onKeyDown:Qa,onKeyUp:ss,onFocus:Jo,onBlur:Io}),$s&&!ni&&v.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(en.map(function(Ba){var ya=Ba.label,rs=Ba.value;return["number","string"].includes((0,S.Z)(ya))?ya:rs}).join(", "))),Eu,Us,Hl&&ro),v.createElement(ne.Provider,{value:bs},cs)}),je=ye,Ct=function(Fe,Ge){var Pt=v.useRef({values:new Map,options:new Map}),Dt=v.useMemo(function(){var nr=Pt.current,Or=nr.values,Hr=nr.options,an=Fe.map(function(en){if(en.label===void 0){var yn;return(0,Ne.Z)((0,Ne.Z)({},en),{},{label:(yn=Or.get(en.value))===null||yn===void 0?void 0:yn.label})}return en}),jr=new Map,Rr=new Map;return an.forEach(function(en){jr.set(en.value,en),Rr.set(en.value,Ge.get(en.value)||Hr.get(en.value))}),Pt.current.values=jr,Pt.current.options=Rr,an},[Fe,Ge]),_r=v.useCallback(function(nr){return Ge.get(nr)||Pt.current.options.get(nr)},[Ge]);return[Dt,_r]};function de(Fe,Ge){return fe(Fe).join("").toUpperCase().includes(Ge)}var st=function(Fe,Ge,Pt,Dt,_r){return v.useMemo(function(){if(!Pt||Dt===!1)return Fe;var nr=Ge.options,Or=Ge.label,Hr=Ge.value,an=[],jr=typeof Dt=="function",Rr=Pt.toUpperCase(),en=jr?Dt:function(on,Dn){return _r?de(Dn[_r],Rr):Dn[nr]?de(Dn[Or!=="children"?Or:"label"],Rr):de(Dn[Hr],Rr)},yn=jr?function(on){return Se(on)}:function(on){return on};return Fe.forEach(function(on){if(on[nr]){var Dn=en(Pt,yn(on));if(Dn)an.push(on);else{var Rn=on[nr].filter(function(di){return en(Pt,yn(di))});Rn.length&&an.push((0,Ne.Z)((0,Ne.Z)({},on),{},(0,P.Z)({},nr,Rn)))}return}en(Pt,yn(on))&&an.push(on)}),an},[Fe,Dt,_r,Pt,Ge])},tt=x(17115),Ie=x(11592),De=["children","value"],lt=["children"];function Ut(Fe){var Ge=Fe,Pt=Ge.key,Dt=Ge.props,_r=Dt.children,nr=Dt.value,Or=(0,V.Z)(Dt,De);return(0,Ne.Z)({key:Pt,value:nr!==void 0?nr:Pt,children:_r},Or)}function kt(Fe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ie.Z)(Fe).map(function(Pt,Dt){if(!v.isValidElement(Pt)||!Pt.type)return null;var _r=Pt,nr=_r.type.isSelectOptGroup,Or=_r.key,Hr=_r.props,an=Hr.children,jr=(0,V.Z)(Hr,lt);return Ge||!nr?Ut(Pt):(0,Ne.Z)((0,Ne.Z)({key:"__RC_SELECT_GRP__".concat(Or===null?Dt:Or,"__"),label:Or},jr),{},{options:kt(an)})}).filter(function(Pt){return Pt})}function rr(Fe,Ge,Pt,Dt,_r){return v.useMemo(function(){var nr=Fe,Or=!Fe;Or&&(nr=kt(Ge));var Hr=new Map,an=new Map,jr=function(yn,on,Dn){Dn&&typeof Dn=="string"&&yn.set(on[Dn],on)};function Rr(en){for(var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<en.length;on+=1){var Dn=en[on];!Dn[Pt.options]||yn?(Hr.set(Dn[Pt.value],Dn),jr(an,Dn,Pt.label),jr(an,Dn,Dt),jr(an,Dn,_r)):Rr(Dn[Pt.options],!0)}}return Rr(nr),{options:nr,valueOptions:Hr,labelOptions:an}},[Fe,Ge,Pt,Dt,_r])}function Fr(Fe){var Ge=v.useRef();Ge.current=Fe;var Pt=v.useCallback(function(){return Ge.current.apply(Ge,arguments)},[]);return Pt}var kr=function(){return null};kr.isSelectOptGroup=!0;var Dr=kr,Nr=function(){return null};Nr.isSelectOption=!0;var xr=Nr,ur=x(80547),Qr=x(2738),hn=x(48911),Ln=v.createContext(null),pn=Ln;function kn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ki=["disabled","title","children","style","className"];function hr(Fe){return typeof Fe=="string"||typeof Fe=="number"}var Wn=function(Ge,Pt){var Dt=J(),_r=Dt.prefixCls,nr=Dt.id,Or=Dt.open,Hr=Dt.multiple,an=Dt.mode,jr=Dt.searchValue,Rr=Dt.toggleOpen,en=Dt.notFoundContent,yn=Dt.onPopupScroll,on=v.useContext(pn),Dn=on.flattenOptions,Rn=on.onActiveValue,di=on.defaultActiveFirstOption,Nn=on.onSelect,Gn=on.menuItemSelectedIcon,Vt=on.rawValues,Xt=on.fieldNames,Yt=on.virtual,tr=on.direction,jt=on.listHeight,or=on.listItemHeight,cr="".concat(_r,"-item"),Pr=(0,ur.Z)(function(){return Dn},[Or,Dn],function(li,un){return un[0]&&li[1]!==un[1]}),bn=v.useRef(null),xn=function(un){un.preventDefault()},ci=function(un){bn.current&&bn.current.scrollTo(typeof un=="number"?{index:un}:un)},ri=function(un){for(var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xn=Pr.length,Qn=0;Qn<Xn;Qn+=1){var fi=(un+Qn*sn+Xn)%Xn,qi=Pr[fi],Ii=qi.group,Ra=qi.data;if(!Ii&&!Ra.disabled)return fi}return-1},Si=v.useState(function(){return ri(0)}),qn=(0,te.Z)(Si,2),jn=qn[0],yi=qn[1],bi=function(un){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;yi(un);var Xn={source:sn?"keyboard":"mouse"},Qn=Pr[un];if(!Qn){Rn(null,-1,Xn);return}Rn(Qn.value,un,Xn)};(0,v.useEffect)(function(){bi(di!==!1?ri(0):-1)},[Pr.length,jr]);var wi=v.useCallback(function(li){return Vt.has(li)&&an!=="combobox"},[an,(0,Ae.Z)(Vt).toString(),Vt.size]);(0,v.useEffect)(function(){var li=setTimeout(function(){if(!Hr&&Or&&Vt.size===1){var sn=Array.from(Vt)[0],Xn=Pr.findIndex(function(Qn){var fi=Qn.data;return fi.value===sn});Xn!==-1&&(bi(Xn),ci(Xn))}});if(Or){var un;(un=bn.current)===null||un===void 0||un.scrollTo(void 0)}return function(){return clearTimeout(li)}},[Or,jr,Dn.length]);var Ai=function(un){un!==void 0&&Nn(un,{selected:!Vt.has(un)}),Hr||Rr(!1)};if(v.useImperativeHandle(Pt,function(){return{onKeyDown:function(un){var sn=un.which,Xn=un.ctrlKey;switch(sn){case T.Z.N:case T.Z.P:case T.Z.UP:case T.Z.DOWN:{var Qn=0;if(sn===T.Z.UP?Qn=-1:sn===T.Z.DOWN?Qn=1:kn()&&Xn&&(sn===T.Z.N?Qn=1:sn===T.Z.P&&(Qn=-1)),Qn!==0){var fi=ri(jn+Qn,Qn);ci(fi),bi(fi,!0)}break}case T.Z.ENTER:{var qi=Pr[jn];qi&&!qi.data.disabled?Ai(qi.value):Ai(void 0),Or&&un.preventDefault();break}case T.Z.ESC:Rr(!1),Or&&un.stopPropagation()}},onKeyUp:function(){},scrollTo:function(un){ci(un)}}}),Pr.length===0)return v.createElement("div",{role:"listbox",id:"".concat(nr,"_list"),className:"".concat(cr,"-empty"),onMouseDown:xn},en);var xi=Object.keys(Xt).map(function(li){return Xt[li]}),Xi=function(un){return un.label};function ti(li,un){var sn=li.group;return{role:sn?"presentation":"option",id:"".concat(nr,"_list_").concat(un)}}var Pi=function(un){var sn=Pr[un];if(!sn)return null;var Xn=sn.data||{},Qn=Xn.value,fi=sn.group,qi=(0,me.Z)(Xn,!0),Ii=Xi(sn);return sn?v.createElement("div",(0,pe.Z)({"aria-label":typeof Ii=="string"&&!fi?Ii:null},qi,{key:un},ti(sn,un),{"aria-selected":wi(Qn)}),Qn):null},za={role:"listbox",id:"".concat(nr,"_list")};return v.createElement(v.Fragment,null,Yt&&v.createElement("div",(0,pe.Z)({},za,{style:{height:0,width:0,overflow:"hidden"}}),Pi(jn-1),Pi(jn),Pi(jn+1)),v.createElement(hn.Z,{itemKey:"key",ref:bn,data:Pr,height:jt,itemHeight:or,fullHeight:!1,onMouseDown:xn,onScroll:yn,virtual:Yt,direction:tr,innerProps:Yt?null:za},function(li,un){var sn,Xn=li.group,Qn=li.groupOption,fi=li.data,qi=li.label,Ii=li.value,Ra=fi.key;if(Xn){var ua,Co=(ua=fi.title)!==null&&ua!==void 0?ua:hr(qi)?qi.toString():void 0;return v.createElement("div",{className:_()(cr,"".concat(cr,"-group")),title:Co},qi!==void 0?qi:Ra)}var Vn=fi.disabled,_n=fi.title,ki=fi.children,Ji=fi.style,Ma=fi.className,Ms=(0,V.Z)(fi,Ki),Va=(0,Qr.Z)(Ms,xi),fa=wi(Ii),_o="".concat(cr,"-option"),Bo=_()(cr,_o,Ma,(sn={},(0,P.Z)(sn,"".concat(_o,"-grouped"),Qn),(0,P.Z)(sn,"".concat(_o,"-active"),jn===un&&!Vn),(0,P.Z)(sn,"".concat(_o,"-disabled"),Vn),(0,P.Z)(sn,"".concat(_o,"-selected"),fa),sn)),To=Xi(li),Ps=!Gn||typeof Gn=="function"||fa,mo=typeof To=="number"?To:To||Ii,xs=hr(mo)?mo.toString():void 0;return _n!==void 0&&(xs=_n),v.createElement("div",(0,pe.Z)({},(0,me.Z)(Va),Yt?{}:ti(li,un),{"aria-selected":fa,className:Bo,title:xs,onMouseMove:function(){jn===un||Vn||bi(un)},onClick:function(){Vn||Ai(Ii)},style:Ji}),v.createElement("div",{className:"".concat(_o,"-content")},mo),v.isValidElement(Gn)||fa,Ps&&v.createElement(R,{className:"".concat(cr,"-option-state"),customizeIcon:Gn,customizeIconProps:{isSelected:fa}},fa?"\u2713":null))}))},Hi=v.forwardRef(Wn);Hi.displayName="OptionList";var ui=Hi;function $i(Fe){var Ge=Fe.mode,Pt=Fe.options,Dt=Fe.children,_r=Fe.backfill,nr=Fe.allowClear,Or=Fe.placeholder,Hr=Fe.getInputElement,an=Fe.showSearch,jr=Fe.onSearch,Rr=Fe.defaultOpen,en=Fe.autoFocus,yn=Fe.labelInValue,on=Fe.value,Dn=Fe.inputValue,Rn=Fe.optionLabelProp,di=isMultiple(Ge),Nn=an!==void 0?an:di||Ge==="combobox",Gn=Pt||convertChildrenToData(Dt);if(warning(Ge!=="tags"||Gn.every(function(tr){return!tr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ge==="tags"||Ge==="combobox"){var Vt=Gn.some(function(tr){return tr.options?tr.options.some(function(jt){return typeof("value"in jt?jt.value:jt.key)=="number"}):typeof("value"in tr?tr.value:tr.key)=="number"});warning(!Vt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ge!=="combobox"||!Rn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ge==="combobox"||!_r,"`backfill` only works with `combobox` mode."),warning(Ge==="combobox"||!Hr,"`getInputElement` only work with `combobox` mode."),noteOnce(Ge!=="combobox"||!Hr||!nr||!Or,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jr&&!Nn&&Ge!=="combobox"&&Ge!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Rr||en,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),on!=null){var Xt=toArray(on);warning(!yn||Xt.every(function(tr){return _typeof(tr)==="object"&&("key"in tr||"value"in tr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!di||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(Dt){var Yt=null;toNodeArray(Dt).some(function(tr){if(!React.isValidElement(tr)||!tr.type)return!1;var jt=tr,or=jt.type;if(or.isSelectOption)return!1;if(or.isSelectOptGroup){var cr=toNodeArray(tr.props.children).every(function(Pr){return!React.isValidElement(Pr)||!tr.type||Pr.type.isSelectOption?!0:(Yt=Pr.type,!1)});return!cr}return Yt=or,!0}),Yt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Yt.displayName||Yt.name||Yt,"`.")),warning(Dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ri(Fe,Ge){if(Fe){var Pt=function Dt(_r){for(var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Or=0;Or<_r.length;Or++){var Hr=_r[Or];if(Hr[Ge==null?void 0:Ge.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!nr&&Array.isArray(Hr[Ge==null?void 0:Ge.options])&&Dt(Hr[Ge==null?void 0:Ge.options],!0))break}};Pt(Fe)}}var Zi=null,Za=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],_i=["inputValue"];function Yn(Fe){return!Fe||(0,S.Z)(Fe)!=="object"}var ii=v.forwardRef(function(Fe,Ge){var Pt=Fe.id,Dt=Fe.mode,_r=Fe.prefixCls,nr=_r===void 0?"rc-select":_r,Or=Fe.backfill,Hr=Fe.fieldNames,an=Fe.inputValue,jr=Fe.searchValue,Rr=Fe.onSearch,en=Fe.autoClearSearchValue,yn=en===void 0?!0:en,on=Fe.onSelect,Dn=Fe.onDeselect,Rn=Fe.dropdownMatchSelectWidth,di=Rn===void 0?!0:Rn,Nn=Fe.filterOption,Gn=Fe.filterSort,Vt=Fe.optionFilterProp,Xt=Fe.optionLabelProp,Yt=Fe.options,tr=Fe.children,jt=Fe.defaultActiveFirstOption,or=Fe.menuItemSelectedIcon,cr=Fe.virtual,Pr=Fe.direction,bn=Fe.listHeight,xn=bn===void 0?200:bn,ci=Fe.listItemHeight,ri=ci===void 0?20:ci,Si=Fe.value,qn=Fe.defaultValue,jn=Fe.labelInValue,yi=Fe.onChange,bi=(0,V.Z)(Fe,Za),wi=(0,tt.ZP)(Pt),Ai=we(Dt),xi=!!(!Yt&&tr),Xi=v.useMemo(function(){return Nn===void 0&&Dt==="combobox"?!1:Nn},[Nn,Dt]),ti=v.useMemo(function(){return C(Hr,xi)},[JSON.stringify(Hr),xi]),Pi=(0,g.Z)("",{value:jr!==void 0?jr:an,postState:function(ca){return ca||""}}),za=(0,te.Z)(Pi,2),li=za[0],un=za[1],sn=rr(Yt,tr,ti,Vt,Xt),Xn=sn.valueOptions,Qn=sn.labelOptions,fi=sn.options,qi=v.useCallback(function(ni){var ca=fe(ni);return ca.map(function(ta){var oa,Oa,so,Ws,Bs;if(Yn(ta))oa=ta;else{var Ss;so=ta.key,Oa=ta.label,oa=(Ss=ta.value)!==null&&Ss!==void 0?Ss:so}var vs=Xn.get(oa);if(vs){var to;if(Oa===void 0&&(Oa=vs==null?void 0:vs[Xt||ti.label]),so===void 0&&(so=(to=vs==null?void 0:vs.key)!==null&&to!==void 0?to:oa),Ws=vs==null?void 0:vs.disabled,Bs=vs==null?void 0:vs.title,0)var Qa}return{label:Oa,value:oa,key:so,disabled:Ws,title:Bs}})},[ti,Xt,Xn]),Ii=(0,g.Z)(qn,{value:Si}),Ra=(0,te.Z)(Ii,2),ua=Ra[0],Co=Ra[1],Vn=v.useMemo(function(){var ni,ca=qi(ua);return Dt==="combobox"&&Ce((ni=ca[0])===null||ni===void 0?void 0:ni.value)?[]:ca},[ua,qi,Dt]),_n=Ct(Vn,Xn),ki=(0,te.Z)(_n,2),Ji=ki[0],Ma=ki[1],Ms=v.useMemo(function(){if(!Dt&&Ji.length===1){var ni=Ji[0];if(ni.value===null&&(ni.label===null||ni.label===void 0))return[]}return Ji.map(function(ca){var ta;return(0,Ne.Z)((0,Ne.Z)({},ca),{},{label:(ta=ca.label)!==null&&ta!==void 0?ta:ca.value})})},[Dt,Ji]),Va=v.useMemo(function(){return new Set(Ji.map(function(ni){return ni.value}))},[Ji]);v.useEffect(function(){if(Dt==="combobox"){var ni,ca=(ni=Ji[0])===null||ni===void 0?void 0:ni.value;un(Le(ca)?String(ca):"")}},[Ji]);var fa=Fr(function(ni,ca){var ta,oa=ca!=null?ca:ni;return ta={},(0,P.Z)(ta,ti.value,ni),(0,P.Z)(ta,ti.label,oa),ta}),_o=v.useMemo(function(){if(Dt!=="tags")return fi;var ni=(0,Ae.Z)(fi),ca=function(oa){return Xn.has(oa)};return(0,Ae.Z)(Ji).sort(function(ta,oa){return ta.value<oa.value?-1:1}).forEach(function(ta){var oa=ta.value;ca(oa)||ni.push(fa(oa,ta.label))}),ni},[fa,fi,Xn,Ji,Dt]),Bo=st(_o,ti,li,Xi,Vt),To=v.useMemo(function(){return Dt!=="tags"||!li||Bo.some(function(ni){return ni[Vt||"value"]===li})||Bo.some(function(ni){return ni[ti.value]===li})?Bo:[fa(li)].concat((0,Ae.Z)(Bo))},[fa,Vt,Dt,Bo,li,ti]),Ps=v.useMemo(function(){return Gn?(0,Ae.Z)(To).sort(function(ni,ca){return Gn(ni,ca)}):To},[To,Gn]),mo=v.useMemo(function(){return q(Ps,{fieldNames:ti,childrenAsData:xi})},[Ps,ti,xi]),xs=function(ca){var ta=qi(ca);if(Co(ta),yi&&(ta.length!==Ji.length||ta.some(function(so,Ws){var Bs;return((Bs=Ji[Ws])===null||Bs===void 0?void 0:Bs.value)!==(so==null?void 0:so.value)}))){var oa=jn?ta:ta.map(function(so){return so.value}),Oa=ta.map(function(so){return Se(Ma(so.value))});yi(Ai?oa:oa[0],Ai?Oa:Oa[0])}},Ts=v.useState(null),$s=(0,te.Z)(Ts,2),Uo=$s[0],Ro=$s[1],Cs=v.useState(0),el=(0,te.Z)(Cs,2),vl=el[0],tc=el[1],rc=jt!==void 0?jt:Dt!=="combobox",Rl=v.useCallback(function(ni,ca){var ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oa=ta.source,Oa=oa===void 0?"keyboard":oa;tc(ca),Or&&Dt==="combobox"&&ni!==null&&Oa==="keyboard"&&Ro(String(ni))},[Or,Dt]),Zs=function(ca,ta,oa){var Oa=function(){var Ls,Jo=Ma(ca);return[jn?{label:Jo==null?void 0:Jo[ti.label],value:ca,key:(Ls=Jo==null?void 0:Jo.key)!==null&&Ls!==void 0?Ls:ca}:ca,Se(Jo)]};if(ta&&on){var so=Oa(),Ws=(0,te.Z)(so,2),Bs=Ws[0],Ss=Ws[1];on(Bs,Ss)}else if(!ta&&Dn&&oa!=="clear"){var vs=Oa(),to=(0,te.Z)(vs,2),Qa=to[0],ss=to[1];Dn(Qa,ss)}},kc=Fr(function(ni,ca){var ta,oa=Ai?ca.selected:!0;oa?ta=Ai?[].concat((0,Ae.Z)(Ji),[ni]):[ni]:ta=Ji.filter(function(Oa){return Oa.value!==ni}),xs(ta),Zs(ni,oa),Dt==="combobox"?Ro(""):(!we||yn)&&(un(""),Ro(""))}),Ql=function(ca,ta){xs(ca);var oa=ta.type,Oa=ta.values;(oa==="remove"||oa==="clear")&&Oa.forEach(function(so){Zs(so.value,!1,oa)})},Kl=function(ca,ta){if(un(ca),Ro(null),ta.source==="submit"){var oa=(ca||"").trim();if(oa){var Oa=Array.from(new Set([].concat((0,Ae.Z)(Va),[oa])));xs(Oa),Zs(oa,!0),un("")}return}ta.source!=="blur"&&(Dt==="combobox"&&xs(ca),Rr==null||Rr(ca))},Vs=function(ca){var ta=ca;Dt!=="tags"&&(ta=ca.map(function(Oa){var so=Qn.get(Oa);return so==null?void 0:so.value}).filter(function(Oa){return Oa!==void 0}));var oa=Array.from(new Set([].concat((0,Ae.Z)(Va),(0,Ae.Z)(ta))));xs(oa),oa.forEach(function(Oa){Zs(Oa,!0)})},os=v.useMemo(function(){var ni=cr!==!1&&di!==!1;return(0,Ne.Z)((0,Ne.Z)({},sn),{},{flattenOptions:mo,onActiveValue:Rl,defaultActiveFirstOption:rc,onSelect:kc,menuItemSelectedIcon:or,rawValues:Va,fieldNames:ti,virtual:ni,direction:Pr,listHeight:xn,listItemHeight:ri,childrenAsData:xi})},[sn,mo,Rl,rc,kc,or,Va,ti,cr,di,xn,ri,xi]);return v.createElement(pn.Provider,{value:os},v.createElement(je,(0,pe.Z)({},bi,{id:wi,prefixCls:nr,ref:Ge,omitDomProps:_i,mode:Dt,displayValues:Ms,onDisplayValuesChange:Ql,direction:Pr,searchValue:li,onSearch:Kl,autoClearSearchValue:yn,onSearchSplit:Vs,dropdownMatchSelectWidth:di,OptionList:ui,emptyOptions:!mo.length,activeValue:Uo,activeDescendantId:"".concat(wi,"_list_").concat(vl)})))}),vi=ii;vi.Option=xr,vi.OptGroup=Dr;var ge=vi,Me=ge},9296:function(An,Tt,x){"use strict";x.r(Tt),x.d(Tt,{ResizableTextArea:function(){return Ue},default:function(){return Ce}});var pe=x(54476),Ae=x(33885),P=x(20068),Ne=x(76190),te=x(42978),V=x(75931),S=x(94480),g=x(92310),F=x.n(g),v=x(93681),$=x(5643),_=x(18929),M=x(59301),O=x(29301),T=x(34280),L=x(16089),Y=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,R=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],se={},ne;function J(Te){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(be&&se[ke])return se[ke];var he=window.getComputedStyle(Te),Ee=he.getPropertyValue("box-sizing")||he.getPropertyValue("-moz-box-sizing")||he.getPropertyValue("-webkit-box-sizing"),Xe=parseFloat(he.getPropertyValue("padding-bottom"))+parseFloat(he.getPropertyValue("padding-top")),et=parseFloat(he.getPropertyValue("border-bottom-width"))+parseFloat(he.getPropertyValue("border-top-width")),ze=R.map(function(_t){return"".concat(_t,":").concat(he.getPropertyValue(_t))}).join(";"),qe={sizingStyle:ze,paddingSize:Xe,borderSize:et,boxSizing:Ee};return be&&ke&&(se[ke]=qe),qe}function W(Te){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ne||(ne=document.createElement("textarea"),ne.setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),document.body.appendChild(ne)),Te.getAttribute("wrap")?ne.setAttribute("wrap",Te.getAttribute("wrap")):ne.removeAttribute("wrap");var Ee=J(Te,be),Xe=Ee.paddingSize,et=Ee.borderSize,ze=Ee.boxSizing,qe=Ee.sizingStyle;ne.setAttribute("style","".concat(qe,";").concat(Y)),ne.value=Te.value||Te.placeholder||"";var _t=void 0,Lt=void 0,Nt,sr=ne.scrollHeight;if(ze==="border-box"?sr+=et:ze==="content-box"&&(sr-=Xe),ke!==null||he!==null){ne.value=" ";var er=ne.scrollHeight-Xe;ke!==null&&(_t=er*ke,ze==="border-box"&&(_t=_t+Xe+et),sr=Math.max(_t,sr)),he!==null&&(Lt=er*he,ze==="border-box"&&(Lt=Lt+Xe+et),Nt=sr>Lt?"":"hidden",sr=Math.min(Lt,sr))}var yr={height:sr,overflowY:Nt,resize:"none"};return _t&&(yr.minHeight=_t),Lt&&(yr.maxHeight=Lt),yr}var K=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,me=1,Oe=2,Be=M.forwardRef(function(Te,be){var ke=Te,he=ke.prefixCls,Ee=ke.onPressEnter,Xe=ke.defaultValue,et=ke.value,ze=ke.autoSize,qe=ke.onResize,_t=ke.className,Lt=ke.style,Nt=ke.disabled,sr=ke.onChange,er=ke.onInternalAutoSize,yr=(0,V.Z)(ke,K),lr=(0,_.Z)(Xe,{value:et,postState:function(Dr){return Dr!=null?Dr:""}}),G=(0,te.Z)(lr,2),dt=G[0],I=G[1],m=function(Dr){I(Dr.target.value),sr==null||sr(Dr)},u=M.useRef();M.useImperativeHandle(be,function(){return{textArea:u.current}});var C=M.useMemo(function(){return ze&&(0,Ne.Z)(ze)==="object"?[ze.minRows,ze.maxRows]:[]},[ze]),q=(0,te.Z)(C,2),Se=q[0],H=q[1],ie=!!ze,Qe=function(){try{if(document.activeElement===u.current){var Dr=u.current,Nr=Dr.selectionStart,xr=Dr.selectionEnd,ur=Dr.scrollTop;u.current.setSelectionRange(Nr,xr),u.current.scrollTop=ur}}catch(Qr){}},we=M.useState(Oe),ye=(0,te.Z)(we,2),je=ye[0],Ct=ye[1],de=M.useState(),st=(0,te.Z)(de,2),tt=st[0],Ie=st[1],De=function(){Ct(le)};(0,T.Z)(function(){ie&&De()},[et,Se,H,ie]),(0,T.Z)(function(){if(je===le)Ct(me);else if(je===me){var kr=W(u.current,!1,Se,H);Ct(Oe),Ie(kr)}else Qe()},[je]);var lt=M.useRef(),Ut=function(){L.Z.cancel(lt.current)},kt=function(Dr){je===Oe&&(qe==null||qe(Dr),ze&&(Ut(),lt.current=(0,L.Z)(function(){De()})))};M.useEffect(function(){return Ut},[]);var rr=ie?tt:null,Fr=(0,Ae.Z)((0,Ae.Z)({},Lt),rr);return(je===le||je===me)&&(Fr.overflowY="hidden",Fr.overflowX="hidden"),M.createElement(O.Z,{onResize:kt,disabled:!(ze||qe)},M.createElement("textarea",(0,pe.Z)({},yr,{ref:u,style:Fr,className:F()(he,_t,(0,P.Z)({},"".concat(he,"-disabled"),Nt)),disabled:Nt,value:dt,onChange:m})))}),Ue=Be,ee=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function fe(Te,be){return(0,S.Z)(Te||"").slice(0,be).join("")}function D(Te,be,ke,he){var Ee=ke;return Te?Ee=fe(ke,he):(0,S.Z)(be||"").length<ke.length&&(0,S.Z)(ke||"").length>he&&(Ee=be),Ee}var Ye=M.forwardRef(function(Te,be){var ke,he=Te.defaultValue,Ee=Te.value,Xe=Te.onFocus,et=Te.onBlur,ze=Te.onChange,qe=Te.allowClear,_t=Te.maxLength,Lt=Te.onCompositionStart,Nt=Te.onCompositionEnd,sr=Te.suffix,er=Te.prefixCls,yr=er===void 0?"rc-textarea":er,lr=Te.classes,G=Te.showCount,dt=Te.className,I=Te.style,m=Te.disabled,u=Te.hidden,C=Te.classNames,q=Te.styles,Se=Te.onResize,H=(0,V.Z)(Te,ee),ie=(0,_.Z)(he,{value:Ee,defaultValue:he}),Qe=(0,te.Z)(ie,2),we=Qe[0],ye=Qe[1],je=(0,M.useRef)(null),Ct=M.useState(!1),de=(0,te.Z)(Ct,2),st=de[0],tt=de[1],Ie=M.useState(!1),De=(0,te.Z)(Ie,2),lt=De[0],Ut=De[1],kt=M.useRef(),rr=M.useRef(0),Fr=M.useState(null),kr=(0,te.Z)(Fr,2),Dr=kr[0],Nr=kr[1],xr=function(){var Yn;(Yn=je.current)===null||Yn===void 0||Yn.textArea.focus()};(0,M.useImperativeHandle)(be,function(){return{resizableTextArea:je.current,focus:xr,blur:function(){var Yn;(Yn=je.current)===null||Yn===void 0||Yn.textArea.blur()}}}),(0,M.useEffect)(function(){tt(function(_i){return!m&&_i})},[m]);var ur=Number(_t)>0,Qr=function(Yn){Ut(!0),kt.current=we,rr.current=Yn.currentTarget.selectionStart,Lt==null||Lt(Yn)},hn=function(Yn){Ut(!1);var ii=Yn.currentTarget.value;if(ur){var vi,ge=rr.current>=_t+1||rr.current===((vi=kt.current)===null||vi===void 0?void 0:vi.length);ii=D(ge,kt.current,ii,_t)}ii!==we&&(ye(ii),(0,$.rJ)(Yn.currentTarget,Yn,ze,ii)),Nt==null||Nt(Yn)},Ln=function(Yn){var ii=Yn.target.value;if(!lt&&ur){var vi=Yn.target.selectionStart>=_t+1||Yn.target.selectionStart===ii.length||!Yn.target.selectionStart;ii=D(vi,we,ii,_t)}ye(ii),(0,$.rJ)(Yn.currentTarget,Yn,ze,ii)},pn=function(Yn){var ii=H.onPressEnter,vi=H.onKeyDown;Yn.key==="Enter"&&ii&&ii(Yn),vi==null||vi(Yn)},kn=function(Yn){tt(!0),Xe==null||Xe(Yn)},Ki=function(Yn){tt(!1),et==null||et(Yn)},hr=function(Yn){var ii;ye(""),xr(),(0,$.rJ)((ii=je.current)===null||ii===void 0?void 0:ii.textArea,Yn,ze)},Wn=(0,$.D7)(we);!lt&&ur&&Ee==null&&(Wn=fe(Wn,_t));var Hi=sr,ui;if(G){var $i=(0,S.Z)(Wn).length;(0,Ne.Z)(G)==="object"?ui=G.formatter({value:Wn,count:$i,maxLength:_t}):ui="".concat($i).concat(ur?" / ".concat(_t):""),Hi=M.createElement(M.Fragment,null,Hi,M.createElement("span",{className:F()("".concat(yr,"-data-count"),C==null?void 0:C.count),style:q==null?void 0:q.count},ui))}var Ri=function(Yn){var ii;Se==null||Se(Yn),(ii=je.current)!==null&&ii!==void 0&&ii.textArea.style.height&&Nr(!0)},Zi=!H.autoSize&&!G&&!qe,Za=M.createElement(v.BaseInput,{value:Wn,allowClear:qe,handleReset:hr,suffix:Hi,prefixCls:yr,classes:{affixWrapper:F()(lr==null?void 0:lr.affixWrapper,(ke={},(0,P.Z)(ke,"".concat(yr,"-show-count"),G),(0,P.Z)(ke,"".concat(yr,"-textarea-allow-clear"),qe),ke))},disabled:m,focused:st,className:dt,style:(0,Ae.Z)((0,Ae.Z)({},I),Dr&&!Zi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ui=="string"?ui:void 0}},hidden:u,inputElement:M.createElement(Ue,(0,pe.Z)({},H,{onKeyDown:pn,onChange:Ln,onFocus:kn,onBlur:Ki,onCompositionStart:Qr,onCompositionEnd:hn,className:C==null?void 0:C.textarea,style:(0,Ae.Z)((0,Ae.Z)({},q==null?void 0:q.textarea),{},{resize:I==null?void 0:I.resize}),disabled:m,prefixCls:yr,onResize:Ri,ref:je}))});return Za}),Le=Ye,Ce=Le},39417:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return me}});var pe=x(54476),Ae=x(20068),P=x(75931),Ne=x(33885),te=x(67732),V=x(83652),S=x(31226),g=x(42403),F=x(158),v=x(92310),$=x.n(v),_=x(26112),M=x(59301),O=x(39378),T=function(Be){for(var Ue=Be.prefixCls,ee=Be.level,fe=Be.isStart,D=Be.isEnd,Ye="".concat(Ue,"-indent-unit"),Le=[],Ce=0;Ce<ee;Ce+=1){var Te;Le.push(M.createElement("span",{key:Ce,className:$()(Ye,(Te={},(0,Ae.Z)(Te,"".concat(Ye,"-start"),fe[Ce]),(0,Ae.Z)(Te,"".concat(Ye,"-end"),D[Ce]),Te))}))}return M.createElement("span",{"aria-hidden":"true",className:"".concat(Ue,"-indent")},Le)},L=M.memo(T),Y=x(67841),R=x(71430),se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ne="open",J="close",W="---",K=function(Oe){(0,g.Z)(Ue,Oe);var Be=(0,F.Z)(Ue);function Ue(){var ee;(0,te.Z)(this,Ue);for(var fe=arguments.length,D=new Array(fe),Ye=0;Ye<fe;Ye++)D[Ye]=arguments[Ye];return ee=Be.call.apply(Be,[this].concat(D)),ee.state={dragNodeHighlight:!1},ee.selectHandle=void 0,ee.cacheIndent=void 0,ee.onSelectorClick=function(Le){var Ce=ee.props.context.onNodeClick;Ce(Le,(0,R.F)(ee.props)),ee.isSelectable()?ee.onSelect(Le):ee.onCheck(Le)},ee.onSelectorDoubleClick=function(Le){var Ce=ee.props.context.onNodeDoubleClick;Ce(Le,(0,R.F)(ee.props))},ee.onSelect=function(Le){if(!ee.isDisabled()){var Ce=ee.props.context.onNodeSelect;Ce(Le,(0,R.F)(ee.props))}},ee.onCheck=function(Le){if(!ee.isDisabled()){var Ce=ee.props,Te=Ce.disableCheckbox,be=Ce.checked,ke=ee.props.context.onNodeCheck;if(!(!ee.isCheckable()||Te)){var he=!be;ke(Le,(0,R.F)(ee.props),he)}}},ee.onMouseEnter=function(Le){var Ce=ee.props.context.onNodeMouseEnter;Ce(Le,(0,R.F)(ee.props))},ee.onMouseLeave=function(Le){var Ce=ee.props.context.onNodeMouseLeave;Ce(Le,(0,R.F)(ee.props))},ee.onContextMenu=function(Le){var Ce=ee.props.context.onNodeContextMenu;Ce(Le,(0,R.F)(ee.props))},ee.onDragStart=function(Le){var Ce=ee.props.context.onNodeDragStart;Le.stopPropagation(),ee.setState({dragNodeHighlight:!0}),Ce(Le,(0,S.Z)(ee));try{Le.dataTransfer.setData("text/plain","")}catch(Te){}},ee.onDragEnter=function(Le){var Ce=ee.props.context.onNodeDragEnter;Le.preventDefault(),Le.stopPropagation(),Ce(Le,(0,S.Z)(ee))},ee.onDragOver=function(Le){var Ce=ee.props.context.onNodeDragOver;Le.preventDefault(),Le.stopPropagation(),Ce(Le,(0,S.Z)(ee))},ee.onDragLeave=function(Le){var Ce=ee.props.context.onNodeDragLeave;Le.stopPropagation(),Ce(Le,(0,S.Z)(ee))},ee.onDragEnd=function(Le){var Ce=ee.props.context.onNodeDragEnd;Le.stopPropagation(),ee.setState({dragNodeHighlight:!1}),Ce(Le,(0,S.Z)(ee))},ee.onDrop=function(Le){var Ce=ee.props.context.onNodeDrop;Le.preventDefault(),Le.stopPropagation(),ee.setState({dragNodeHighlight:!1}),Ce(Le,(0,S.Z)(ee))},ee.onExpand=function(Le){var Ce=ee.props,Te=Ce.loading,be=Ce.context.onNodeExpand;Te||be(Le,(0,R.F)(ee.props))},ee.setSelectHandle=function(Le){ee.selectHandle=Le},ee.getNodeState=function(){var Le=ee.props.expanded;return ee.isLeaf()?null:Le?ne:J},ee.hasChildren=function(){var Le=ee.props.eventKey,Ce=ee.props.context.keyEntities,Te=(0,Y.Z)(Ce,Le)||{},be=Te.children;return!!(be||[]).length},ee.isLeaf=function(){var Le=ee.props,Ce=Le.isLeaf,Te=Le.loaded,be=ee.props.context.loadData,ke=ee.hasChildren();return Ce===!1?!1:Ce||!be&&!ke||be&&Te&&!ke},ee.isDisabled=function(){var Le=ee.props.disabled,Ce=ee.props.context.disabled;return!!(Ce||Le)},ee.isCheckable=function(){var Le=ee.props.checkable,Ce=ee.props.context.checkable;return!Ce||Le===!1?!1:Ce},ee.syncLoadData=function(Le){var Ce=Le.expanded,Te=Le.loading,be=Le.loaded,ke=ee.props.context,he=ke.loadData,Ee=ke.onNodeLoad;Te||he&&Ce&&!ee.isLeaf()&&!ee.hasChildren()&&!be&&Ee((0,R.F)(ee.props))},ee.isDraggable=function(){var Le=ee.props,Ce=Le.data,Te=Le.context.draggable;return!!(Te&&(!Te.nodeDraggable||Te.nodeDraggable(Ce)))},ee.renderDragHandler=function(){var Le=ee.props.context,Ce=Le.draggable,Te=Le.prefixCls;return Ce!=null&&Ce.icon?M.createElement("span",{className:"".concat(Te,"-draggable-icon")},Ce.icon):null},ee.renderSwitcherIconDom=function(Le){var Ce=ee.props.switcherIcon,Te=ee.props.context.switcherIcon,be=Ce||Te;return typeof be=="function"?be((0,Ne.Z)((0,Ne.Z)({},ee.props),{},{isLeaf:Le})):be},ee.renderSwitcher=function(){var Le=ee.props.expanded,Ce=ee.props.context.prefixCls;if(ee.isLeaf()){var Te=ee.renderSwitcherIconDom(!0);return Te!==!1?M.createElement("span",{className:$()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher-noop"))},Te):null}var be=$()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher_").concat(Le?ne:J)),ke=ee.renderSwitcherIconDom(!1);return ke!==!1?M.createElement("span",{onClick:ee.onExpand,className:be},ke):null},ee.renderCheckbox=function(){var Le=ee.props,Ce=Le.checked,Te=Le.halfChecked,be=Le.disableCheckbox,ke=ee.props.context.prefixCls,he=ee.isDisabled(),Ee=ee.isCheckable();if(!Ee)return null;var Xe=typeof Ee!="boolean"?Ee:null;return M.createElement("span",{className:$()("".concat(ke,"-checkbox"),Ce&&"".concat(ke,"-checkbox-checked"),!Ce&&Te&&"".concat(ke,"-checkbox-indeterminate"),(he||be)&&"".concat(ke,"-checkbox-disabled")),onClick:ee.onCheck},Xe)},ee.renderIcon=function(){var Le=ee.props.loading,Ce=ee.props.context.prefixCls;return M.createElement("span",{className:$()("".concat(Ce,"-iconEle"),"".concat(Ce,"-icon__").concat(ee.getNodeState()||"docu"),Le&&"".concat(Ce,"-icon_loading"))})},ee.renderSelector=function(){var Le=ee.state.dragNodeHighlight,Ce=ee.props,Te=Ce.title,be=Te===void 0?W:Te,ke=Ce.selected,he=Ce.icon,Ee=Ce.loading,Xe=Ce.data,et=ee.props.context,ze=et.prefixCls,qe=et.showIcon,_t=et.icon,Lt=et.loadData,Nt=et.titleRender,sr=ee.isDisabled(),er="".concat(ze,"-node-content-wrapper"),yr;if(qe){var lr=he||_t;yr=lr?M.createElement("span",{className:$()("".concat(ze,"-iconEle"),"".concat(ze,"-icon__customize"))},typeof lr=="function"?lr(ee.props):lr):ee.renderIcon()}else Lt&&Ee&&(yr=ee.renderIcon());var G;typeof be=="function"?G=be(Xe):Nt?G=Nt(Xe):G=be;var dt=M.createElement("span",{className:"".concat(ze,"-title")},G);return M.createElement("span",{ref:ee.setSelectHandle,title:typeof be=="string"?be:"",className:$()("".concat(er),"".concat(er,"-").concat(ee.getNodeState()||"normal"),!sr&&(ke||Le)&&"".concat(ze,"-node-selected")),onMouseEnter:ee.onMouseEnter,onMouseLeave:ee.onMouseLeave,onContextMenu:ee.onContextMenu,onClick:ee.onSelectorClick,onDoubleClick:ee.onSelectorDoubleClick},yr,dt,ee.renderDropIndicator())},ee.renderDropIndicator=function(){var Le=ee.props,Ce=Le.disabled,Te=Le.eventKey,be=ee.props.context,ke=be.draggable,he=be.dropLevelOffset,Ee=be.dropPosition,Xe=be.prefixCls,et=be.indent,ze=be.dropIndicatorRender,qe=be.dragOverNodeKey,_t=be.direction,Lt=!!ke,Nt=!Ce&&Lt&&qe===Te,sr=et!=null?et:ee.cacheIndent;return ee.cacheIndent=et,Nt?ze({dropPosition:Ee,dropLevelOffset:he,indent:sr,prefixCls:Xe,direction:_t}):null},ee}return(0,V.Z)(Ue,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var fe=this.props.selectable,D=this.props.context.selectable;return typeof fe=="boolean"?fe:D}},{key:"render",value:function(){var fe,D=this.props,Ye=D.eventKey,Le=D.className,Ce=D.style,Te=D.dragOver,be=D.dragOverGapTop,ke=D.dragOverGapBottom,he=D.isLeaf,Ee=D.isStart,Xe=D.isEnd,et=D.expanded,ze=D.selected,qe=D.checked,_t=D.halfChecked,Lt=D.loading,Nt=D.domRef,sr=D.active,er=D.data,yr=D.onMouseMove,lr=D.selectable,G=(0,P.Z)(D,se),dt=this.props.context,I=dt.prefixCls,m=dt.filterTreeNode,u=dt.keyEntities,C=dt.dropContainerKey,q=dt.dropTargetKey,Se=dt.draggingNodeKey,H=this.isDisabled(),ie=(0,_.Z)(G,{aria:!0,data:!0}),Qe=(0,Y.Z)(u,Ye)||{},we=Qe.level,ye=Xe[Xe.length-1],je=this.isDraggable(),Ct=!H&&je,de=Se===Ye,st=lr!==void 0?{"aria-selected":!!lr}:void 0;return M.createElement("div",(0,pe.Z)({ref:Nt,className:$()(Le,"".concat(I,"-treenode"),(fe={},(0,Ae.Z)(fe,"".concat(I,"-treenode-disabled"),H),(0,Ae.Z)(fe,"".concat(I,"-treenode-switcher-").concat(et?"open":"close"),!he),(0,Ae.Z)(fe,"".concat(I,"-treenode-checkbox-checked"),qe),(0,Ae.Z)(fe,"".concat(I,"-treenode-checkbox-indeterminate"),_t),(0,Ae.Z)(fe,"".concat(I,"-treenode-selected"),ze),(0,Ae.Z)(fe,"".concat(I,"-treenode-loading"),Lt),(0,Ae.Z)(fe,"".concat(I,"-treenode-active"),sr),(0,Ae.Z)(fe,"".concat(I,"-treenode-leaf-last"),ye),(0,Ae.Z)(fe,"".concat(I,"-treenode-draggable"),je),(0,Ae.Z)(fe,"dragging",de),(0,Ae.Z)(fe,"drop-target",q===Ye),(0,Ae.Z)(fe,"drop-container",C===Ye),(0,Ae.Z)(fe,"drag-over",!H&&Te),(0,Ae.Z)(fe,"drag-over-gap-top",!H&&be),(0,Ae.Z)(fe,"drag-over-gap-bottom",!H&&ke),(0,Ae.Z)(fe,"filter-node",m&&m((0,R.F)(this.props))),fe)),style:Ce,draggable:Ct,"aria-grabbed":de,onDragStart:Ct?this.onDragStart:void 0,onDragEnter:je?this.onDragEnter:void 0,onDragOver:je?this.onDragOver:void 0,onDragLeave:je?this.onDragLeave:void 0,onDrop:je?this.onDrop:void 0,onDragEnd:je?this.onDragEnd:void 0,onMouseMove:yr},st,ie),M.createElement(L,{prefixCls:I,level:we,isStart:Ee,isEnd:Xe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ue}(M.Component),le=function(Be){return M.createElement(O.k.Consumer,null,function(Ue){return M.createElement(K,(0,pe.Z)({},Be,{context:Ue}))})};le.displayName="TreeNode",le.isTreeNode=1;var me=le},39378:function(An,Tt,x){"use strict";x.d(Tt,{k:function(){return Ae}});var pe=x(59301),Ae=pe.createContext(null)},60091:function(An,Tt,x){"use strict";x.d(Tt,{O:function(){return me.Z},Z:function(){return dt}});var pe=x(54476),Ae=x(20068),P=x(76190),Ne=x(33885),te=x(94480),V=x(67732),S=x(83652),g=x(31226),F=x(42403),v=x(158),$=x(92310),_=x.n($),M=x(10228),O=x(26112),T=x(48736),L=x(59301),Y=x(39378);function R(I){var m=I.dropPosition,u=I.dropLevelOffset,C=I.indent,q={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(m){case-1:q.top=0,q.left=-u*C;break;case 1:q.bottom=0,q.left=-u*C;break;case 0:q.bottom=0,q.left=C;break}return L.createElement("div",{style:q})}function se(I){if(I==null)throw new TypeError("Cannot destructure "+I)}var ne=x(42978),J=x(75931),W=x(34280),K=x(48911),le=x(77900),me=x(39417);function Oe(I,m){var u=L.useState(!1),C=(0,ne.Z)(u,2),q=C[0],Se=C[1];L.useLayoutEffect(function(){if(q)return I(),function(){m()}},[q]),L.useLayoutEffect(function(){return Se(!0),function(){Se(!1)}},[])}var Be=x(71430),Ue=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ee=function(m,u){var C=m.className,q=m.style,Se=m.motion,H=m.motionNodes,ie=m.motionType,Qe=m.onMotionStart,we=m.onMotionEnd,ye=m.active,je=m.treeNodeRequiredProps,Ct=(0,J.Z)(m,Ue),de=L.useState(!0),st=(0,ne.Z)(de,2),tt=st[0],Ie=st[1],De=L.useContext(Y.k),lt=De.prefixCls,Ut=H&&ie!=="hide";(0,W.Z)(function(){H&&Ut!==tt&&Ie(Ut)},[H]);var kt=function(){H&&Qe()},rr=L.useRef(!1),Fr=function(){H&&!rr.current&&(rr.current=!0,we())};Oe(kt,Fr);var kr=function(Nr){Ut===Nr&&Fr()};return H?L.createElement(le.default,(0,pe.Z)({ref:u,visible:tt},Se,{motionAppear:ie==="show",onVisibleChanged:kr}),function(Dr,Nr){var xr=Dr.className,ur=Dr.style;return L.createElement("div",{ref:Nr,className:_()("".concat(lt,"-treenode-motion"),xr),style:ur},H.map(function(Qr){var hn=(0,pe.Z)({},(se(Qr.data),Qr.data)),Ln=Qr.title,pn=Qr.key,kn=Qr.isStart,Ki=Qr.isEnd;delete hn.children;var hr=(0,Be.H8)(pn,je);return L.createElement(me.Z,(0,pe.Z)({},hn,hr,{title:Ln,active:ye,data:Qr.data,key:pn,isStart:kn,isEnd:Ki}))}))}):L.createElement(me.Z,(0,pe.Z)({domRef:u,className:C,style:q},Ct,{active:ye}))};ee.displayName="MotionTreeNode";var fe=L.forwardRef(ee),D=fe;function Ye(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=I.length,C=m.length;if(Math.abs(u-C)!==1)return{add:!1,key:null};function q(Se,H){var ie=new Map;Se.forEach(function(we){ie.set(we,!0)});var Qe=H.filter(function(we){return!ie.has(we)});return Qe.length===1?Qe[0]:null}return u<C?{add:!0,key:q(I,m)}:{add:!1,key:q(m,I)}}function Le(I,m,u){var C=I.findIndex(function(ie){return ie.key===u}),q=I[C+1],Se=m.findIndex(function(ie){return ie.key===u});if(q){var H=m.findIndex(function(ie){return ie.key===q.key});return m.slice(Se+1,H)}return m.slice(Se+1)}var Ce=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Te={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},be=function(){},ke="RC_TREE_MOTION_".concat(Math.random()),he={key:ke},Ee={key:ke,level:0,index:0,pos:"0",node:he,nodes:[he]},Xe={parent:null,children:[],pos:Ee.pos,data:he,title:null,key:ke,isStart:[],isEnd:[]};function et(I,m,u,C){return m===!1||!u?I:I.slice(0,Math.ceil(u/C)+1)}function ze(I){var m=I.key,u=I.pos;return(0,Be.km)(m,u)}function qe(I){for(var m=String(I.data.key),u=I;u.parent;)u=u.parent,m="".concat(u.data.key," > ").concat(m);return m}var _t=L.forwardRef(function(I,m){var u=I.prefixCls,C=I.data,q=I.selectable,Se=I.checkable,H=I.expandedKeys,ie=I.selectedKeys,Qe=I.checkedKeys,we=I.loadedKeys,ye=I.loadingKeys,je=I.halfCheckedKeys,Ct=I.keyEntities,de=I.disabled,st=I.dragging,tt=I.dragOverNodeKey,Ie=I.dropPosition,De=I.motion,lt=I.height,Ut=I.itemHeight,kt=I.virtual,rr=I.focusable,Fr=I.activeItem,kr=I.focused,Dr=I.tabIndex,Nr=I.onKeyDown,xr=I.onFocus,ur=I.onBlur,Qr=I.onActiveChange,hn=I.onListChangeStart,Ln=I.onListChangeEnd,pn=(0,J.Z)(I,Ce),kn=L.useRef(null),Ki=L.useRef(null);L.useImperativeHandle(m,function(){return{scrollTo:function(en){kn.current.scrollTo(en)},getIndentWidth:function(){return Ki.current.offsetWidth}}});var hr=L.useState(H),Wn=(0,ne.Z)(hr,2),Hi=Wn[0],ui=Wn[1],$i=L.useState(C),Ri=(0,ne.Z)($i,2),Zi=Ri[0],Za=Ri[1],_i=L.useState(C),Yn=(0,ne.Z)(_i,2),ii=Yn[0],vi=Yn[1],ge=L.useState([]),Me=(0,ne.Z)(ge,2),Fe=Me[0],Ge=Me[1],Pt=L.useState(null),Dt=(0,ne.Z)(Pt,2),_r=Dt[0],nr=Dt[1],Or=L.useRef(C);Or.current=C;function Hr(){var Rr=Or.current;Za(Rr),vi(Rr),Ge([]),nr(null),Ln()}(0,W.Z)(function(){ui(H);var Rr=Ye(Hi,H);if(Rr.key!==null)if(Rr.add){var en=Zi.findIndex(function(Nn){var Gn=Nn.key;return Gn===Rr.key}),yn=et(Le(Zi,C,Rr.key),kt,lt,Ut),on=Zi.slice();on.splice(en+1,0,Xe),vi(on),Ge(yn),nr("show")}else{var Dn=C.findIndex(function(Nn){var Gn=Nn.key;return Gn===Rr.key}),Rn=et(Le(C,Zi,Rr.key),kt,lt,Ut),di=C.slice();di.splice(Dn+1,0,Xe),vi(di),Ge(Rn),nr("hide")}else Zi!==C&&(Za(C),vi(C))},[H,C]),L.useEffect(function(){st||Hr()},[st]);var an=De?ii:C,jr={expandedKeys:H,selectedKeys:ie,loadedKeys:we,loadingKeys:ye,checkedKeys:Qe,halfCheckedKeys:je,dragOverNodeKey:tt,dropPosition:Ie,keyEntities:Ct};return L.createElement(L.Fragment,null,kr&&Fr&&L.createElement("span",{style:Te,"aria-live":"assertive"},qe(Fr)),L.createElement("div",null,L.createElement("input",{style:Te,disabled:rr===!1||de,tabIndex:rr!==!1?Dr:null,onKeyDown:Nr,onFocus:xr,onBlur:ur,value:"",onChange:be,"aria-label":"for screen reader"})),L.createElement("div",{className:"".concat(u,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},L.createElement("div",{className:"".concat(u,"-indent")},L.createElement("div",{ref:Ki,className:"".concat(u,"-indent-unit")}))),L.createElement(K.Z,(0,pe.Z)({},pn,{data:an,itemKey:ze,height:lt,fullHeight:!1,virtual:kt,itemHeight:Ut,prefixCls:"".concat(u,"-list"),ref:kn,onVisibleChange:function(en,yn){var on=new Set(en),Dn=yn.filter(function(Rn){return!on.has(Rn)});Dn.some(function(Rn){return ze(Rn)===ke})&&Hr()}}),function(Rr){var en=Rr.pos,yn=(0,pe.Z)({},(se(Rr.data),Rr.data)),on=Rr.title,Dn=Rr.key,Rn=Rr.isStart,di=Rr.isEnd,Nn=(0,Be.km)(Dn,en);delete yn.key,delete yn.children;var Gn=(0,Be.H8)(Nn,jr);return L.createElement(D,(0,pe.Z)({},yn,Gn,{title:on,active:!!Fr&&Dn===Fr.key,pos:en,data:Rr.data,isStart:Rn,isEnd:di,motion:De,motionNodes:Dn===ke?Fe:null,motionType:_r,onMotionStart:hn,onMotionEnd:Hr,treeNodeRequiredProps:jr,onMouseMove:function(){Qr(null)}}))}))});_t.displayName="NodeList";var Lt=_t,Nt=x(35654),sr=x(90782),er=x(67841),yr=10,lr=function(I){(0,F.Z)(u,I);var m=(0,v.Z)(u);function u(){var C;(0,V.Z)(this,u);for(var q=arguments.length,Se=new Array(q),H=0;H<q;H++)Se[H]=arguments[H];return C=m.call.apply(m,[this].concat(Se)),C.destroyed=!1,C.delayedDragEnterLogic=void 0,C.loadingRetryTimes={},C.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Be.w$)()},C.dragStartMousePosition=null,C.dragNode=void 0,C.currentMouseOverDroppableNodeKey=null,C.listRef=L.createRef(),C.onNodeDragStart=function(ie,Qe){var we=C.state,ye=we.expandedKeys,je=we.keyEntities,Ct=C.props.onDragStart,de=Qe.props.eventKey;C.dragNode=Qe,C.dragStartMousePosition={x:ie.clientX,y:ie.clientY};var st=(0,Nt._5)(ye,de);C.setState({draggingNodeKey:de,dragChildrenKeys:(0,Nt.wA)(de,je),indent:C.listRef.current.getIndentWidth()}),C.setExpandedKeys(st),window.addEventListener("dragend",C.onWindowDragEnd),Ct==null||Ct({event:ie,node:(0,Be.F)(Qe.props)})},C.onNodeDragEnter=function(ie,Qe){var we=C.state,ye=we.expandedKeys,je=we.keyEntities,Ct=we.dragChildrenKeys,de=we.flattenNodes,st=we.indent,tt=C.props,Ie=tt.onDragEnter,De=tt.onExpand,lt=tt.allowDrop,Ut=tt.direction,kt=Qe.props,rr=kt.pos,Fr=kt.eventKey,kr=(0,g.Z)(C),Dr=kr.dragNode;if(C.currentMouseOverDroppableNodeKey!==Fr&&(C.currentMouseOverDroppableNodeKey=Fr),!Dr){C.resetDragState();return}var Nr=(0,Nt.OM)(ie,Dr,Qe,st,C.dragStartMousePosition,lt,de,je,ye,Ut),xr=Nr.dropPosition,ur=Nr.dropLevelOffset,Qr=Nr.dropTargetKey,hn=Nr.dropContainerKey,Ln=Nr.dropTargetPos,pn=Nr.dropAllowed,kn=Nr.dragOverNodeKey;if(Ct.indexOf(Qr)!==-1||!pn){C.resetDragState();return}if(C.delayedDragEnterLogic||(C.delayedDragEnterLogic={}),Object.keys(C.delayedDragEnterLogic).forEach(function(Ki){clearTimeout(C.delayedDragEnterLogic[Ki])}),Dr.props.eventKey!==Qe.props.eventKey&&(ie.persist(),C.delayedDragEnterLogic[rr]=window.setTimeout(function(){if(C.state.draggingNodeKey!==null){var Ki=(0,te.Z)(ye),hr=(0,er.Z)(je,Qe.props.eventKey);hr&&(hr.children||[]).length&&(Ki=(0,Nt.L0)(ye,Qe.props.eventKey)),"expandedKeys"in C.props||C.setExpandedKeys(Ki),De==null||De(Ki,{node:(0,Be.F)(Qe.props),expanded:!0,nativeEvent:ie.nativeEvent})}},800)),Dr.props.eventKey===Qr&&ur===0){C.resetDragState();return}C.setState({dragOverNodeKey:kn,dropPosition:xr,dropLevelOffset:ur,dropTargetKey:Qr,dropContainerKey:hn,dropTargetPos:Ln,dropAllowed:pn}),Ie==null||Ie({event:ie,node:(0,Be.F)(Qe.props),expandedKeys:ye})},C.onNodeDragOver=function(ie,Qe){var we=C.state,ye=we.dragChildrenKeys,je=we.flattenNodes,Ct=we.keyEntities,de=we.expandedKeys,st=we.indent,tt=C.props,Ie=tt.onDragOver,De=tt.allowDrop,lt=tt.direction,Ut=(0,g.Z)(C),kt=Ut.dragNode;if(kt){var rr=(0,Nt.OM)(ie,kt,Qe,st,C.dragStartMousePosition,De,je,Ct,de,lt),Fr=rr.dropPosition,kr=rr.dropLevelOffset,Dr=rr.dropTargetKey,Nr=rr.dropContainerKey,xr=rr.dropAllowed,ur=rr.dropTargetPos,Qr=rr.dragOverNodeKey;ye.indexOf(Dr)!==-1||!xr||(kt.props.eventKey===Dr&&kr===0?C.state.dropPosition===null&&C.state.dropLevelOffset===null&&C.state.dropTargetKey===null&&C.state.dropContainerKey===null&&C.state.dropTargetPos===null&&C.state.dropAllowed===!1&&C.state.dragOverNodeKey===null||C.resetDragState():Fr===C.state.dropPosition&&kr===C.state.dropLevelOffset&&Dr===C.state.dropTargetKey&&Nr===C.state.dropContainerKey&&ur===C.state.dropTargetPos&&xr===C.state.dropAllowed&&Qr===C.state.dragOverNodeKey||C.setState({dropPosition:Fr,dropLevelOffset:kr,dropTargetKey:Dr,dropContainerKey:Nr,dropTargetPos:ur,dropAllowed:xr,dragOverNodeKey:Qr}),Ie==null||Ie({event:ie,node:(0,Be.F)(Qe.props)}))}},C.onNodeDragLeave=function(ie,Qe){C.currentMouseOverDroppableNodeKey===Qe.props.eventKey&&!ie.currentTarget.contains(ie.relatedTarget)&&(C.resetDragState(),C.currentMouseOverDroppableNodeKey=null);var we=C.props.onDragLeave;we==null||we({event:ie,node:(0,Be.F)(Qe.props)})},C.onWindowDragEnd=function(ie){C.onNodeDragEnd(ie,null,!0),window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDragEnd=function(ie,Qe){var we=C.props.onDragEnd;C.setState({dragOverNodeKey:null}),C.cleanDragState(),we==null||we({event:ie,node:(0,Be.F)(Qe.props)}),C.dragNode=null,window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDrop=function(ie,Qe){var we,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,je=C.state,Ct=je.dragChildrenKeys,de=je.dropPosition,st=je.dropTargetKey,tt=je.dropTargetPos,Ie=je.dropAllowed;if(Ie){var De=C.props.onDrop;if(C.setState({dragOverNodeKey:null}),C.cleanDragState(),st!==null){var lt=(0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(st,C.getTreeNodeRequiredProps())),{},{active:((we=C.getActiveItem())===null||we===void 0?void 0:we.key)===st,data:(0,er.Z)(C.state.keyEntities,st).node}),Ut=Ct.indexOf(st)!==-1;(0,T.ZP)(!Ut,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var kt=(0,Nt.yx)(tt),rr={event:ie,node:(0,Be.F)(lt),dragNode:C.dragNode?(0,Be.F)(C.dragNode.props):null,dragNodesKeys:[C.dragNode.props.eventKey].concat(Ct),dropToGap:de!==0,dropPosition:de+Number(kt[kt.length-1])};ye||De==null||De(rr),C.dragNode=null}}},C.cleanDragState=function(){var ie=C.state.draggingNodeKey;ie!==null&&C.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),C.dragStartMousePosition=null,C.currentMouseOverDroppableNodeKey=null},C.triggerExpandActionExpand=function(ie,Qe){var we=C.state,ye=we.expandedKeys,je=we.flattenNodes,Ct=Qe.expanded,de=Qe.key,st=Qe.isLeaf;if(!(st||ie.shiftKey||ie.metaKey||ie.ctrlKey)){var tt=je.filter(function(De){return De.key===de})[0],Ie=(0,Be.F)((0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(de,C.getTreeNodeRequiredProps())),{},{data:tt.data}));C.setExpandedKeys(Ct?(0,Nt._5)(ye,de):(0,Nt.L0)(ye,de)),C.onNodeExpand(ie,Ie)}},C.onNodeClick=function(ie,Qe){var we=C.props,ye=we.onClick,je=we.expandAction;je==="click"&&C.triggerExpandActionExpand(ie,Qe),ye==null||ye(ie,Qe)},C.onNodeDoubleClick=function(ie,Qe){var we=C.props,ye=we.onDoubleClick,je=we.expandAction;je==="doubleClick"&&C.triggerExpandActionExpand(ie,Qe),ye==null||ye(ie,Qe)},C.onNodeSelect=function(ie,Qe){var we=C.state.selectedKeys,ye=C.state,je=ye.keyEntities,Ct=ye.fieldNames,de=C.props,st=de.onSelect,tt=de.multiple,Ie=Qe.selected,De=Qe[Ct.key],lt=!Ie;lt?tt?we=(0,Nt.L0)(we,De):we=[De]:we=(0,Nt._5)(we,De);var Ut=we.map(function(kt){var rr=(0,er.Z)(je,kt);return rr?rr.node:null}).filter(function(kt){return kt});C.setUncontrolledState({selectedKeys:we}),st==null||st(we,{event:"select",selected:lt,node:Qe,selectedNodes:Ut,nativeEvent:ie.nativeEvent})},C.onNodeCheck=function(ie,Qe,we){var ye=C.state,je=ye.keyEntities,Ct=ye.checkedKeys,de=ye.halfCheckedKeys,st=C.props,tt=st.checkStrictly,Ie=st.onCheck,De=Qe.key,lt,Ut={event:"check",node:Qe,checked:we,nativeEvent:ie.nativeEvent};if(tt){var kt=we?(0,Nt.L0)(Ct,De):(0,Nt._5)(Ct,De),rr=(0,Nt._5)(de,De);lt={checked:kt,halfChecked:rr},Ut.checkedNodes=kt.map(function(ur){return(0,er.Z)(je,ur)}).filter(function(ur){return ur}).map(function(ur){return ur.node}),C.setUncontrolledState({checkedKeys:kt})}else{var Fr=(0,sr.S)([].concat((0,te.Z)(Ct),[De]),!0,je),kr=Fr.checkedKeys,Dr=Fr.halfCheckedKeys;if(!we){var Nr=new Set(kr);Nr.delete(De);var xr=(0,sr.S)(Array.from(Nr),{checked:!1,halfCheckedKeys:Dr},je);kr=xr.checkedKeys,Dr=xr.halfCheckedKeys}lt=kr,Ut.checkedNodes=[],Ut.checkedNodesPositions=[],Ut.halfCheckedKeys=Dr,kr.forEach(function(ur){var Qr=(0,er.Z)(je,ur);if(Qr){var hn=Qr.node,Ln=Qr.pos;Ut.checkedNodes.push(hn),Ut.checkedNodesPositions.push({node:hn,pos:Ln})}}),C.setUncontrolledState({checkedKeys:kr},!1,{halfCheckedKeys:Dr})}Ie==null||Ie(lt,Ut)},C.onNodeLoad=function(ie){var Qe=ie.key,we=new Promise(function(ye,je){C.setState(function(Ct){var de=Ct.loadedKeys,st=de===void 0?[]:de,tt=Ct.loadingKeys,Ie=tt===void 0?[]:tt,De=C.props,lt=De.loadData,Ut=De.onLoad;if(!lt||st.indexOf(Qe)!==-1||Ie.indexOf(Qe)!==-1)return null;var kt=lt(ie);return kt.then(function(){var rr=C.state.loadedKeys,Fr=(0,Nt.L0)(rr,Qe);Ut==null||Ut(Fr,{event:"load",node:ie}),C.setUncontrolledState({loadedKeys:Fr}),C.setState(function(kr){return{loadingKeys:(0,Nt._5)(kr.loadingKeys,Qe)}}),ye()}).catch(function(rr){if(C.setState(function(kr){return{loadingKeys:(0,Nt._5)(kr.loadingKeys,Qe)}}),C.loadingRetryTimes[Qe]=(C.loadingRetryTimes[Qe]||0)+1,C.loadingRetryTimes[Qe]>=yr){var Fr=C.state.loadedKeys;(0,T.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),C.setUncontrolledState({loadedKeys:(0,Nt.L0)(Fr,Qe)}),ye()}je(rr)}),{loadingKeys:(0,Nt.L0)(Ie,Qe)}})});return we.catch(function(){}),we},C.onNodeMouseEnter=function(ie,Qe){var we=C.props.onMouseEnter;we==null||we({event:ie,node:Qe})},C.onNodeMouseLeave=function(ie,Qe){var we=C.props.onMouseLeave;we==null||we({event:ie,node:Qe})},C.onNodeContextMenu=function(ie,Qe){var we=C.props.onRightClick;we&&(ie.preventDefault(),we({event:ie,node:Qe}))},C.onFocus=function(){var ie=C.props.onFocus;C.setState({focused:!0});for(var Qe=arguments.length,we=new Array(Qe),ye=0;ye<Qe;ye++)we[ye]=arguments[ye];ie==null||ie.apply(void 0,we)},C.onBlur=function(){var ie=C.props.onBlur;C.setState({focused:!1}),C.onActiveChange(null);for(var Qe=arguments.length,we=new Array(Qe),ye=0;ye<Qe;ye++)we[ye]=arguments[ye];ie==null||ie.apply(void 0,we)},C.getTreeNodeRequiredProps=function(){var ie=C.state,Qe=ie.expandedKeys,we=ie.selectedKeys,ye=ie.loadedKeys,je=ie.loadingKeys,Ct=ie.checkedKeys,de=ie.halfCheckedKeys,st=ie.dragOverNodeKey,tt=ie.dropPosition,Ie=ie.keyEntities;return{expandedKeys:Qe||[],selectedKeys:we||[],loadedKeys:ye||[],loadingKeys:je||[],checkedKeys:Ct||[],halfCheckedKeys:de||[],dragOverNodeKey:st,dropPosition:tt,keyEntities:Ie}},C.setExpandedKeys=function(ie){var Qe=C.state,we=Qe.treeData,ye=Qe.fieldNames,je=(0,Be.oH)(we,ie,ye);C.setUncontrolledState({expandedKeys:ie,flattenNodes:je},!0)},C.onNodeExpand=function(ie,Qe){var we=C.state.expandedKeys,ye=C.state,je=ye.listChanging,Ct=ye.fieldNames,de=C.props,st=de.onExpand,tt=de.loadData,Ie=Qe.expanded,De=Qe[Ct.key];if(!je){var lt=we.indexOf(De),Ut=!Ie;if((0,T.ZP)(Ie&<!==-1||!Ie&<===-1,"Expand state not sync with index check"),Ut?we=(0,Nt.L0)(we,De):we=(0,Nt._5)(we,De),C.setExpandedKeys(we),st==null||st(we,{node:Qe,expanded:Ut,nativeEvent:ie.nativeEvent}),Ut&&tt){var kt=C.onNodeLoad(Qe);kt&&kt.then(function(){var rr=(0,Be.oH)(C.state.treeData,we,Ct);C.setUncontrolledState({flattenNodes:rr})}).catch(function(){var rr=C.state.expandedKeys,Fr=(0,Nt._5)(rr,De);C.setExpandedKeys(Fr)})}}},C.onListChangeStart=function(){C.setUncontrolledState({listChanging:!0})},C.onListChangeEnd=function(){setTimeout(function(){C.setUncontrolledState({listChanging:!1})})},C.onActiveChange=function(ie){var Qe=C.state.activeKey,we=C.props.onActiveChange;Qe!==ie&&(C.setState({activeKey:ie}),ie!==null&&C.scrollTo({key:ie}),we==null||we(ie))},C.getActiveItem=function(){var ie=C.state,Qe=ie.activeKey,we=ie.flattenNodes;return Qe===null?null:we.find(function(ye){var je=ye.key;return je===Qe})||null},C.offsetActiveKey=function(ie){var Qe=C.state,we=Qe.flattenNodes,ye=Qe.activeKey,je=we.findIndex(function(st){var tt=st.key;return tt===ye});je===-1&&ie<0&&(je=we.length),je=(je+ie+we.length)%we.length;var Ct=we[je];if(Ct){var de=Ct.key;C.onActiveChange(de)}else C.onActiveChange(null)},C.onKeyDown=function(ie){var Qe=C.state,we=Qe.activeKey,ye=Qe.expandedKeys,je=Qe.checkedKeys,Ct=Qe.fieldNames,de=C.props,st=de.onKeyDown,tt=de.checkable,Ie=de.selectable;switch(ie.which){case M.Z.UP:{C.offsetActiveKey(-1),ie.preventDefault();break}case M.Z.DOWN:{C.offsetActiveKey(1),ie.preventDefault();break}}var De=C.getActiveItem();if(De&&De.data){var lt=C.getTreeNodeRequiredProps(),Ut=De.data.isLeaf===!1||!!(De.data[Ct.children]||[]).length,kt=(0,Be.F)((0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(we,lt)),{},{data:De.data,active:!0}));switch(ie.which){case M.Z.LEFT:{Ut&&ye.includes(we)?C.onNodeExpand({},kt):De.parent&&C.onActiveChange(De.parent.key),ie.preventDefault();break}case M.Z.RIGHT:{Ut&&!ye.includes(we)?C.onNodeExpand({},kt):De.children&&De.children.length&&C.onActiveChange(De.children[0].key),ie.preventDefault();break}case M.Z.ENTER:case M.Z.SPACE:{tt&&!kt.disabled&&kt.checkable!==!1&&!kt.disableCheckbox?C.onNodeCheck({},kt,!je.includes(we)):!tt&&Ie&&!kt.disabled&&kt.selectable!==!1&&C.onNodeSelect({},kt);break}}}st==null||st(ie)},C.setUncontrolledState=function(ie){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!C.destroyed){var ye=!1,je=!0,Ct={};Object.keys(ie).forEach(function(de){if(de in C.props){je=!1;return}ye=!0,Ct[de]=ie[de]}),ye&&(!Qe||je)&&C.setState((0,Ne.Z)((0,Ne.Z)({},Ct),we))}},C.scrollTo=function(ie){C.listRef.current.scrollTo(ie)},C}return(0,S.Z)(u,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var q=this.props.activeKey;q!==void 0&&q!==this.state.activeKey&&(this.setState({activeKey:q}),q!==null&&this.scrollTo({key:q}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var q,Se=this.state,H=Se.focused,ie=Se.flattenNodes,Qe=Se.keyEntities,we=Se.draggingNodeKey,ye=Se.activeKey,je=Se.dropLevelOffset,Ct=Se.dropContainerKey,de=Se.dropTargetKey,st=Se.dropPosition,tt=Se.dragOverNodeKey,Ie=Se.indent,De=this.props,lt=De.prefixCls,Ut=De.className,kt=De.style,rr=De.showLine,Fr=De.focusable,kr=De.tabIndex,Dr=kr===void 0?0:kr,Nr=De.selectable,xr=De.showIcon,ur=De.icon,Qr=De.switcherIcon,hn=De.draggable,Ln=De.checkable,pn=De.checkStrictly,kn=De.disabled,Ki=De.motion,hr=De.loadData,Wn=De.filterTreeNode,Hi=De.height,ui=De.itemHeight,$i=De.virtual,Ri=De.titleRender,Zi=De.dropIndicatorRender,Za=De.onContextMenu,_i=De.onScroll,Yn=De.direction,ii=De.rootClassName,vi=De.rootStyle,ge=(0,O.Z)(this.props,{aria:!0,data:!0}),Me;return hn&&((0,P.Z)(hn)==="object"?Me=hn:typeof hn=="function"?Me={nodeDraggable:hn}:Me={}),L.createElement(Y.k.Provider,{value:{prefixCls:lt,selectable:Nr,showIcon:xr,icon:ur,switcherIcon:Qr,draggable:Me,draggingNodeKey:we,checkable:Ln,checkStrictly:pn,disabled:kn,keyEntities:Qe,dropLevelOffset:je,dropContainerKey:Ct,dropTargetKey:de,dropPosition:st,dragOverNodeKey:tt,indent:Ie,direction:Yn,dropIndicatorRender:Zi,loadData:hr,filterTreeNode:Wn,titleRender:Ri,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},L.createElement("div",{role:"tree",className:_()(lt,Ut,ii,(q={},(0,Ae.Z)(q,"".concat(lt,"-show-line"),rr),(0,Ae.Z)(q,"".concat(lt,"-focused"),H),(0,Ae.Z)(q,"".concat(lt,"-active-focused"),ye!==null),q)),style:vi},L.createElement(Lt,(0,pe.Z)({ref:this.listRef,prefixCls:lt,style:kt,data:ie,disabled:kn,selectable:Nr,checkable:!!Ln,motion:Ki,dragging:we!==null,height:Hi,itemHeight:ui,virtual:$i,focusable:Fr,focused:H,tabIndex:Dr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Za,onScroll:_i},this.getTreeNodeRequiredProps(),ge))))}}],[{key:"getDerivedStateFromProps",value:function(q,Se){var H=Se.prevProps,ie={prevProps:q};function Qe(Fr){return!H&&Fr in q||H&&H[Fr]!==q[Fr]}var we,ye=Se.fieldNames;if(Qe("fieldNames")&&(ye=(0,Be.w$)(q.fieldNames),ie.fieldNames=ye),Qe("treeData")?we=q.treeData:Qe("children")&&((0,T.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,Be.zn)(q.children)),we){ie.treeData=we;var je=(0,Be.I8)(we,{fieldNames:ye});ie.keyEntities=(0,Ne.Z)((0,Ae.Z)({},ke,Ee),je.keyEntities)}var Ct=ie.keyEntities||Se.keyEntities;if(Qe("expandedKeys")||H&&Qe("autoExpandParent"))ie.expandedKeys=q.autoExpandParent||!H&&q.defaultExpandParent?(0,Nt.r7)(q.expandedKeys,Ct):q.expandedKeys;else if(!H&&q.defaultExpandAll){var de=(0,Ne.Z)({},Ct);delete de[ke],ie.expandedKeys=Object.keys(de).map(function(Fr){return de[Fr].key})}else!H&&q.defaultExpandedKeys&&(ie.expandedKeys=q.autoExpandParent||q.defaultExpandParent?(0,Nt.r7)(q.defaultExpandedKeys,Ct):q.defaultExpandedKeys);if(ie.expandedKeys||delete ie.expandedKeys,we||ie.expandedKeys){var st=(0,Be.oH)(we||Se.treeData,ie.expandedKeys||Se.expandedKeys,ye);ie.flattenNodes=st}if(q.selectable&&(Qe("selectedKeys")?ie.selectedKeys=(0,Nt.BT)(q.selectedKeys,q):!H&&q.defaultSelectedKeys&&(ie.selectedKeys=(0,Nt.BT)(q.defaultSelectedKeys,q))),q.checkable){var tt;if(Qe("checkedKeys")?tt=(0,Nt.E6)(q.checkedKeys)||{}:!H&&q.defaultCheckedKeys?tt=(0,Nt.E6)(q.defaultCheckedKeys)||{}:we&&(tt=(0,Nt.E6)(q.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),tt){var Ie=tt,De=Ie.checkedKeys,lt=De===void 0?[]:De,Ut=Ie.halfCheckedKeys,kt=Ut===void 0?[]:Ut;if(!q.checkStrictly){var rr=(0,sr.S)(lt,!0,Ct);lt=rr.checkedKeys,kt=rr.halfCheckedKeys}ie.checkedKeys=lt,ie.halfCheckedKeys=kt}}return Qe("loadedKeys")&&(ie.loadedKeys=q.loadedKeys),ie}}]),u}(L.Component);lr.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:R,allowDrop:function(){return!0},expandAction:!1},lr.TreeNode=me.Z;var G=lr,dt=G},35654:function(An,Tt,x){"use strict";x.d(Tt,{BT:function(){return L},E6:function(){return se},L0:function(){return v},OM:function(){return T},_5:function(){return F},r7:function(){return ne},wA:function(){return _},yx:function(){return $}});var pe=x(94480),Ae=x(76190),P=x(48736),Ne=x(59301),te=x(39417),V=x(67841),S=x(71430),g=null;function F(J,W){if(!J)return[];var K=J.slice(),le=K.indexOf(W);return le>=0&&K.splice(le,1),K}function v(J,W){var K=(J||[]).slice();return K.indexOf(W)===-1&&K.push(W),K}function $(J){return J.split("-")}function _(J,W){var K=[],le=(0,V.Z)(W,J);function me(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Oe.forEach(function(Be){var Ue=Be.key,ee=Be.children;K.push(Ue),me(ee)})}return me(le.children),K}function M(J){if(J.parent){var W=$(J.pos);return Number(W[W.length-1])===J.parent.children.length-1}return!1}function O(J){var W=$(J.pos);return Number(W[W.length-1])===0}function T(J,W,K,le,me,Oe,Be,Ue,ee,fe){var D,Ye=J.clientX,Le=J.clientY,Ce=J.target.getBoundingClientRect(),Te=Ce.top,be=Ce.height,ke=(fe==="rtl"?-1:1)*(((me==null?void 0:me.x)||0)-Ye),he=(ke-12)/le,Ee=(0,V.Z)(Ue,K.props.eventKey);if(Le<Te+be/2){var Xe=Be.findIndex(function(dt){return dt.key===Ee.key}),et=Xe<=0?0:Xe-1,ze=Be[et].key;Ee=(0,V.Z)(Ue,ze)}var qe=Ee.key,_t=Ee,Lt=Ee.key,Nt=0,sr=0;if(!ee.includes(qe))for(var er=0;er<he&&M(Ee);er+=1)Ee=Ee.parent,sr+=1;var yr=W.props.data,lr=Ee.node,G=!0;return O(Ee)&&Ee.level===0&&Le<Te+be/2&&Oe({dragNode:yr,dropNode:lr,dropPosition:-1})&&Ee.key===K.props.eventKey?Nt=-1:(_t.children||[]).length&&ee.includes(Lt)?Oe({dragNode:yr,dropNode:lr,dropPosition:0})?Nt=0:G=!1:sr===0?he>-1.5?Oe({dragNode:yr,dropNode:lr,dropPosition:1})?Nt=1:G=!1:Oe({dragNode:yr,dropNode:lr,dropPosition:0})?Nt=0:Oe({dragNode:yr,dropNode:lr,dropPosition:1})?Nt=1:G=!1:Oe({dragNode:yr,dropNode:lr,dropPosition:1})?Nt=1:G=!1,{dropPosition:Nt,dropLevelOffset:sr,dropTargetKey:Ee.key,dropTargetPos:Ee.pos,dragOverNodeKey:Lt,dropContainerKey:Nt===0?null:((D=Ee.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:G}}function L(J,W){if(J){var K=W.multiple;return K?J.slice():J.length?[J[0]]:J}}var Y=function(W){return W};function R(J,W){if(!J)return[];var K=W||{},le=K.processProps,me=le===void 0?Y:le,Oe=Array.isArray(J)?J:[J];return Oe.map(function(Be){var Ue=Be.children,ee=_objectWithoutProperties(Be,g),fe=R(Ue,W);return React.createElement(TreeNode,_extends({key:ee.key},me(ee)),fe)})}function se(J){if(!J)return null;var W;if(Array.isArray(J))W={checkedKeys:J,halfCheckedKeys:void 0};else if((0,Ae.Z)(J)==="object")W={checkedKeys:J.checked||void 0,halfCheckedKeys:J.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return W}function ne(J,W){var K=new Set;function le(me){if(!K.has(me)){var Oe=(0,V.Z)(W,me);if(Oe){K.add(me);var Be=Oe.parent,Ue=Oe.node;Ue.disabled||Be&&le(Be.key)}}}return(J||[]).forEach(function(me){le(me)}),(0,pe.Z)(K)}},90782:function(An,Tt,x){"use strict";x.d(Tt,{S:function(){return S}});var pe=x(48736),Ae=x(67841);function P(g,F){var v=new Set;return g.forEach(function($){F.has($)||v.add($)}),v}function Ne(g){var F=g||{},v=F.disabled,$=F.disableCheckbox,_=F.checkable;return!!(v||$)||_===!1}function te(g,F,v,$){for(var _=new Set(g),M=new Set,O=0;O<=v;O+=1){var T=F.get(O)||new Set;T.forEach(function(se){var ne=se.key,J=se.node,W=se.children,K=W===void 0?[]:W;_.has(ne)&&!$(J)&&K.filter(function(le){return!$(le.node)}).forEach(function(le){_.add(le.key)})})}for(var L=new Set,Y=v;Y>=0;Y-=1){var R=F.get(Y)||new Set;R.forEach(function(se){var ne=se.parent,J=se.node;if(!($(J)||!se.parent||L.has(se.parent.key))){if($(se.parent.node)){L.add(ne.key);return}var W=!0,K=!1;(ne.children||[]).filter(function(le){return!$(le.node)}).forEach(function(le){var me=le.key,Oe=_.has(me);W&&!Oe&&(W=!1),!K&&(Oe||M.has(me))&&(K=!0)}),W&&_.add(ne.key),K&&M.add(ne.key),L.add(ne.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(P(M,_))}}function V(g,F,v,$,_){for(var M=new Set(g),O=new Set(F),T=0;T<=$;T+=1){var L=v.get(T)||new Set;L.forEach(function(ne){var J=ne.key,W=ne.node,K=ne.children,le=K===void 0?[]:K;!M.has(J)&&!O.has(J)&&!_(W)&&le.filter(function(me){return!_(me.node)}).forEach(function(me){M.delete(me.key)})})}O=new Set;for(var Y=new Set,R=$;R>=0;R-=1){var se=v.get(R)||new Set;se.forEach(function(ne){var J=ne.parent,W=ne.node;if(!(_(W)||!ne.parent||Y.has(ne.parent.key))){if(_(ne.parent.node)){Y.add(J.key);return}var K=!0,le=!1;(J.children||[]).filter(function(me){return!_(me.node)}).forEach(function(me){var Oe=me.key,Be=M.has(Oe);K&&!Be&&(K=!1),!le&&(Be||O.has(Oe))&&(le=!0)}),K||M.delete(J.key),le&&O.add(J.key),Y.add(J.key)}})}return{checkedKeys:Array.from(M),halfCheckedKeys:Array.from(P(O,M))}}function S(g,F,v,$){var _=[],M;$?M=$:M=Ne;var O=new Set(g.filter(function(R){var se=!!(0,Ae.Z)(v,R);return se||_.push(R),se})),T=new Map,L=0;Object.keys(v).forEach(function(R){var se=v[R],ne=se.level,J=T.get(ne);J||(J=new Set,T.set(ne,J)),J.add(se),L=Math.max(L,ne)}),(0,pe.ZP)(!_.length,"Tree missing follow keys: ".concat(_.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var Y;return F===!0?Y=te(O,T,L,M):Y=V(O,F.halfCheckedKeys,T,L,M),Y}},67841:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return pe}});function pe(Ae,P){return Ae[P]}},71430:function(An,Tt,x){"use strict";x.d(Tt,{F:function(){return ne},H8:function(){return se},I8:function(){return R},km:function(){return _},oH:function(){return L},w$:function(){return M},zn:function(){return T}});var pe=x(76190),Ae=x(94480),P=x(33885),Ne=x(75931),te=x(11592),V=x(2738),S=x(48736),g=x(67841),F=["children"];function v(J,W){return"".concat(J,"-").concat(W)}function $(J){return J&&J.type&&J.type.isTreeNode}function _(J,W){return J!=null?J:W}function M(J){var W=J||{},K=W.title,le=W._title,me=W.key,Oe=W.children,Be=K||"title";return{title:Be,_title:le||[Be],key:me||"key",children:Oe||"children"}}function O(J,W){var K=new Map;function le(me){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(me||[]).forEach(function(Be){var Ue=Be[W.key],ee=Be[W.children];warning(Ue!=null,"Tree node must have a certain key: [".concat(Oe).concat(Ue,"]"));var fe=String(Ue);warning(!K.has(fe)||Ue===null||Ue===void 0,"Same 'key' exist in the Tree: ".concat(fe)),K.set(fe,!0),le(ee,"".concat(Oe).concat(fe," > "))})}le(J)}function T(J){function W(K){var le=(0,te.Z)(K);return le.map(function(me){if(!$(me))return(0,S.ZP)(!me,"Tree/TreeNode can only accept TreeNode as children."),null;var Oe=me.key,Be=me.props,Ue=Be.children,ee=(0,Ne.Z)(Be,F),fe=(0,P.Z)({key:Oe},ee),D=W(Ue);return D.length&&(fe.children=D),fe}).filter(function(me){return me})}return W(J)}function L(J,W,K){var le=M(K),me=le._title,Oe=le.key,Be=le.children,Ue=new Set(W===!0?[]:W),ee=[];function fe(D){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(Le,Ce){for(var Te=v(Ye?Ye.pos:"0",Ce),be=_(Le[Oe],Te),ke,he=0;he<me.length;he+=1){var Ee=me[he];if(Le[Ee]!==void 0){ke=Le[Ee];break}}var Xe=(0,P.Z)((0,P.Z)({},(0,V.Z)(Le,[].concat((0,Ae.Z)(me),[Oe,Be]))),{},{title:ke,key:be,parent:Ye,pos:Te,children:null,data:Le,isStart:[].concat((0,Ae.Z)(Ye?Ye.isStart:[]),[Ce===0]),isEnd:[].concat((0,Ae.Z)(Ye?Ye.isEnd:[]),[Ce===D.length-1])});return ee.push(Xe),W===!0||Ue.has(be)?Xe.children=fe(Le[Be]||[],Xe):Xe.children=[],Xe})}return fe(J),ee}function Y(J,W,K){var le={};(0,pe.Z)(K)==="object"?le=K:le={externalGetKey:K},le=le||{};var me=le,Oe=me.childrenPropName,Be=me.externalGetKey,Ue=me.fieldNames,ee=M(Ue),fe=ee.key,D=ee.children,Ye=Oe||D,Le;Be?typeof Be=="string"?Le=function(be){return be[Be]}:typeof Be=="function"&&(Le=function(be){return Be(be)}):Le=function(be,ke){return _(be[fe],ke)};function Ce(Te,be,ke,he){var Ee=Te?Te[Ye]:J,Xe=Te?v(ke.pos,be):"0",et=Te?[].concat((0,Ae.Z)(he),[Te]):[];if(Te){var ze=Le(Te,Xe),qe={node:Te,index:be,pos:Xe,key:ze,parentPos:ke.node?ke.pos:null,level:ke.level+1,nodes:et};W(qe)}Ee&&Ee.forEach(function(_t,Lt){Ce(_t,Lt,{node:Te,pos:Xe,level:ke?ke.level+1:-1},et)})}Ce(null)}function R(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=W.initWrapper,le=W.processEntity,me=W.onProcessFinished,Oe=W.externalGetKey,Be=W.childrenPropName,Ue=W.fieldNames,ee=arguments.length>2?arguments[2]:void 0,fe=Oe||ee,D={},Ye={},Le={posEntities:D,keyEntities:Ye};return K&&(Le=K(Le)||Le),Y(J,function(Ce){var Te=Ce.node,be=Ce.index,ke=Ce.pos,he=Ce.key,Ee=Ce.parentPos,Xe=Ce.level,et=Ce.nodes,ze={node:Te,nodes:et,index:be,key:he,pos:ke,level:Xe},qe=_(he,ke);D[ke]=ze,Ye[qe]=ze,ze.parent=D[Ee],ze.parent&&(ze.parent.children=ze.parent.children||[],ze.parent.children.push(ze)),le&&le(ze,Le)},{externalGetKey:fe,childrenPropName:Be,fieldNames:Ue}),me&&me(Le),Le}function se(J,W){var K=W.expandedKeys,le=W.selectedKeys,me=W.loadedKeys,Oe=W.loadingKeys,Be=W.checkedKeys,Ue=W.halfCheckedKeys,ee=W.dragOverNodeKey,fe=W.dropPosition,D=W.keyEntities,Ye=(0,g.Z)(D,J),Le={eventKey:J,expanded:K.indexOf(J)!==-1,selected:le.indexOf(J)!==-1,loaded:me.indexOf(J)!==-1,loading:Oe.indexOf(J)!==-1,checked:Be.indexOf(J)!==-1,halfChecked:Ue.indexOf(J)!==-1,pos:String(Ye?Ye.pos:""),dragOver:ee===J&&fe===0,dragOverGapTop:ee===J&&fe===-1,dragOverGapBottom:ee===J&&fe===1};return Le}function ne(J){var W=J.data,K=J.expanded,le=J.selected,me=J.checked,Oe=J.loaded,Be=J.loading,Ue=J.halfChecked,ee=J.dragOver,fe=J.dragOverGapTop,D=J.dragOverGapBottom,Ye=J.pos,Le=J.active,Ce=J.eventKey,Te=(0,P.Z)((0,P.Z)({},W),{},{expanded:K,selected:le,checked:me,loaded:Oe,loading:Be,halfChecked:Ue,dragOver:ee,dragOverGapTop:fe,dragOverGapBottom:D,pos:Ye,active:Le,key:Ce});return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return(0,S.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),J}}),Te}},8224:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});var pe=x(4676);function Ae(P,Ne,te,V){var S=pe.unstable_batchedUpdates?function(F){pe.unstable_batchedUpdates(te,F)}:te;return P!=null&&P.addEventListener&&P.addEventListener(Ne,S,V),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(Ne,S,V)}}}},55468:function(An,Tt,x){"use strict";x.d(Tt,{g1:function(){return $},os:function(){return M}});var pe=/margin|padding|width|height|max|min|offset/,Ae={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function Ne(O){return O.nodeType===1?O.ownerDocument.defaultView.getComputedStyle(O,null):{}}function te(O,T,L){if(T=T.toLowerCase(),L==="auto"){if(T==="height")return O.offsetHeight;if(T==="width")return O.offsetWidth}return T in Ae||(Ae[T]=pe.test(T)),Ae[T]?parseFloat(L)||0:L}function V(O,T){var L=arguments.length,Y=Ne(O);return T=P[T]?"cssFloat"in O.style?"cssFloat":"styleFloat":T,L===1?Y:te(O,T,Y[T]||O.style[T])}function S(O,T,L){var Y=arguments.length;if(T=P[T]?"cssFloat"in O.style?"cssFloat":"styleFloat":T,Y===3)return typeof L=="number"&&pe.test(T)&&(L="".concat(L,"px")),O.style[T]=L,L;for(var R in T)T.hasOwnProperty(R)&&S(O,R,T[R]);return Ne(O)}function g(O){return O===document.body?document.documentElement.clientWidth:O.offsetWidth}function F(O){return O===document.body?window.innerHeight||document.documentElement.clientHeight:O.offsetHeight}function v(){var O=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:O,height:T}}function $(){var O=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:O,height:T}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function M(O){var T=O.getBoundingClientRect(),L=document.documentElement;return{left:T.left+(window.pageXOffset||L.scrollLeft)-(L.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||L.scrollTop)-(L.clientTop||document.body.clientTop||0)}}},24514:function(An,Tt,x){"use strict";x.d(Tt,{G:function(){return Ne}});var pe=x(47273),Ae=function(V){if((0,pe.Z)()&&window.document.documentElement){var S=Array.isArray(V)?V:[V],g=window.document.documentElement;return S.some(function(F){return F in g.style})}return!1},P=function(V,S){if(!Ae(V))return!1;var g=document.createElement("div"),F=g.style[V];return g.style[V]=S,g.style[V]!==F};function Ne(te,V){return!Array.isArray(te)&&V!==void 0?P(te,V):Ae(te)}},48911:function(An,Tt,x){"use strict";x.d(Tt,{Z:function(){return lr}});var pe=x(54476),Ae=x(76190),P=x(33885),Ne=x(20068),te=x(42978),V=x(75931),S=x(92310),g=x.n(S),F=x(29301),v=x(70425),$=x(34280),_=x(59301),M=x(4676),O=_.forwardRef(function(G,dt){var I=G.height,m=G.offsetY,u=G.offsetX,C=G.children,q=G.prefixCls,Se=G.onInnerResize,H=G.innerProps,ie=G.rtl,Qe=G.extra,we={},ye={display:"flex",flexDirection:"column"};return m!==void 0&&(we={height:I,position:"relative",overflow:"hidden"},ye=(0,P.Z)((0,P.Z)({},ye),{},(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({transform:"translateY(".concat(m,"px)")},ie?"marginRight":"marginLeft",-u),"position","absolute"),"left",0),"right",0),"top",0))),_.createElement("div",{style:we},_.createElement(F.Z,{onResize:function(Ct){var de=Ct.offsetHeight;de&&Se&&Se()}},_.createElement("div",(0,pe.Z)({style:ye,className:g()((0,Ne.Z)({},"".concat(q,"-holder-inner"),q)),ref:dt},H),C,Qe)))});O.displayName="Filler";var T=O;function L(G){var dt=G.children,I=G.setRef,m=_.useCallback(function(u){I(u)},[]);return _.cloneElement(dt,{ref:m})}function Y(G,dt,I,m,u,C,q,Se){var H=Se.getKey;return G.slice(dt,I+1).map(function(ie,Qe){var we=dt+Qe,ye=q(ie,we,{style:{width:m},offsetX:u}),je=H(ie);return _.createElement(L,{key:je,setRef:function(de){return C(ie,de)}},ye)})}function R(G,dt,I,m){var u=I-G,C=dt-I,q=Math.min(u,C)*2;if(m<=q){var Se=Math.floor(m/2);return m%2?I+Se+1:I-Se}return u>C?I-(m-C):I+(m-u)}function se(G,dt,I){var m=G.length,u=dt.length,C,q;if(m===0&&u===0)return null;m<u?(C=G,q=dt):(C=dt,q=G);var Se={__EMPTY_ITEM__:!0};function H(Ct){return Ct!==void 0?I(Ct):Se}for(var ie=null,Qe=Math.abs(m-u)!==1,we=0;we<q.length;we+=1){var ye=H(C[we]),je=H(q[we]);if(ye!==je){ie=we,Qe=Qe||ye!==H(q[we+1]);break}}return ie===null?null:{index:ie,multiple:Qe}}function ne(G,dt,I){var m=_.useState(G),u=(0,te.Z)(m,2),C=u[0],q=u[1],Se=_.useState(null),H=(0,te.Z)(Se,2),ie=H[0],Qe=H[1];return _.useEffect(function(){var we=se(C||[],G||[],dt);(we==null?void 0:we.index)!==void 0&&(I==null||I(we.index),Qe(G[we.index])),q(G)},[G]),[ie]}var J=x(16089),W=(typeof navigator=="undefined"?"undefined":(0,Ae.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),K=W,le=function(G,dt,I,m){var u=(0,_.useRef)(!1),C=(0,_.useRef)(null);function q(){clearTimeout(C.current),u.current=!0,C.current=setTimeout(function(){u.current=!1},50)}var Se=(0,_.useRef)({top:G,bottom:dt,left:I,right:m});return Se.current.top=G,Se.current.bottom=dt,Se.current.left=I,Se.current.right=m,function(H,ie){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=H?ie<0&&Se.current.left||ie>0&&Se.current.right:ie<0&&Se.current.top||ie>0&&Se.current.bottom;return Qe&&we?(clearTimeout(C.current),u.current=!1):(!we||u.current)&&q(),!u.current&&we}};function me(G,dt,I,m,u,C,q){var Se=(0,_.useRef)(0),H=(0,_.useRef)(null),ie=(0,_.useRef)(null),Qe=(0,_.useRef)(!1),we=le(dt,I,m,u);function ye(Ie,De){if(J.Z.cancel(H.current),!we(!1,De)){var lt=Ie;if(!lt._virtualHandled)lt._virtualHandled=!0;else return;Se.current+=De,ie.current=De,K||lt.preventDefault(),H.current=(0,J.Z)(function(){var Ut=Qe.current?10:1;q(Se.current*Ut,!1),Se.current=0})}}function je(Ie,De){q(De,!0),K||Ie.preventDefault()}var Ct=(0,_.useRef)(null),de=(0,_.useRef)(null);function st(Ie){if(G){J.Z.cancel(de.current),de.current=(0,J.Z)(function(){Ct.current=null},2);var De=Ie.deltaX,lt=Ie.deltaY,Ut=Ie.shiftKey,kt=De,rr=lt;(Ct.current==="sx"||!Ct.current&&Ut&<&&!De)&&(kt=lt,rr=0,Ct.current="sx");var Fr=Math.abs(kt),kr=Math.abs(rr);Ct.current===null&&(Ct.current=C&&Fr>kr?"x":"y"),Ct.current==="y"?ye(Ie,rr):je(Ie,kt)}}function tt(Ie){G&&(Qe.current=Ie.detail===ie.current)}return[st,tt]}function Oe(G,dt,I,m){var u=_.useMemo(function(){return[new Map,[]]},[G,I.id,m]),C=(0,te.Z)(u,2),q=C[0],Se=C[1],H=function(Qe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe,ye=q.get(Qe),je=q.get(we);if(ye===void 0||je===void 0)for(var Ct=G.length,de=Se.length;de<Ct;de+=1){var st,tt=G[de],Ie=dt(tt);q.set(Ie,de);var De=(st=I.get(Ie))!==null&&st!==void 0?st:m;if(Se[de]=(Se[de-1]||0)+De,Ie===Qe&&(ye=de),Ie===we&&(je=de),ye!==void 0&&je!==void 0)break}return{top:Se[ye-1]||0,bottom:Se[je]}};return H}var Be=x(67732),Ue=x(83652),ee=function(){function G(){(0,Be.Z)(this,G),(0,Ne.Z)(this,"maps",void 0),(0,Ne.Z)(this,"id",0),(0,Ne.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ue.Z)(G,[{key:"set",value:function(I,m){this.diffRecords.set(I,this.maps[I]),this.maps[I]=m,this.id+=1}},{key:"get",value:function(I){return this.maps[I]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),G}(),fe=ee;function D(G){var dt=parseFloat(G);return isNaN(dt)?0:dt}function Ye(G,dt,I){var m=_.useState(0),u=(0,te.Z)(m,2),C=u[0],q=u[1],Se=(0,_.useRef)(new Map),H=(0,_.useRef)(new fe),ie=(0,_.useRef)(0);function Qe(){ie.current+=1}function we(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Qe();var Ct=function(){var tt=!1;Se.current.forEach(function(Ie,De){if(Ie&&Ie.offsetParent){var lt=Ie.offsetHeight,Ut=getComputedStyle(Ie),kt=Ut.marginTop,rr=Ut.marginBottom,Fr=D(kt),kr=D(rr),Dr=lt+Fr+kr;H.current.get(De)!==Dr&&(H.current.set(De,Dr),tt=!0)}}),tt&&q(function(Ie){return Ie+1})};if(je)Ct();else{ie.current+=1;var de=ie.current;Promise.resolve().then(function(){de===ie.current&&Ct()})}}function ye(je,Ct){var de=G(je),st=Se.current.get(de);Ct?(Se.current.set(de,Ct),we()):Se.current.delete(de),!st!=!Ct&&(Ct?dt==null||dt(je):I==null||I(je))}return(0,_.useEffect)(function(){return Qe},[]),[ye,we,H.current,C]}var Le=14/15;function Ce(G,dt,I){var m=(0,_.useRef)(!1),u=(0,_.useRef)(0),C=(0,_.useRef)(0),q=(0,_.useRef)(null),Se=(0,_.useRef)(null),H,ie=function(je){if(m.current){var Ct=Math.ceil(je.touches[0].pageX),de=Math.ceil(je.touches[0].pageY),st=u.current-Ct,tt=C.current-de,Ie=Math.abs(st)>Math.abs(tt);Ie?u.current=Ct:C.current=de;var De=I(Ie,Ie?st:tt,!1,je);De&&je.preventDefault(),clearInterval(Se.current),De&&(Se.current=setInterval(function(){Ie?st*=Le:tt*=Le;var lt=Math.floor(Ie?st:tt);(!I(Ie,lt,!0)||Math.abs(lt)<=.1)&&clearInterval(Se.current)},16))}},Qe=function(){m.current=!1,H()},we=function(je){H(),je.touches.length===1&&!m.current&&(m.current=!0,u.current=Math.ceil(je.touches[0].pageX),C.current=Math.ceil(je.touches[0].pageY),q.current=je.target,q.current.addEventListener("touchmove",ie,{passive:!1}),q.current.addEventListener("touchend",Qe,{passive:!0}))};H=function(){q.current&&(q.current.removeEventListener("touchmove",ie),q.current.removeEventListener("touchend",Qe))},(0,$.Z)(function(){return G&&dt.current.addEventListener("touchstart",we,{passive:!0}),function(){var ye;(ye=dt.current)===null||ye===void 0||ye.removeEventListener("touchstart",we),H(),clearInterval(Se.current)}},[G])}function Te(G){return Math.floor(Math.pow(G,.5))}function be(G,dt){var I="touches"in G?G.touches[0]:G;return I[dt?"pageX":"pageY"]-window[dt?"scrollX":"scrollY"]}function ke(G,dt,I){_.useEffect(function(){var m=dt.current;if(G&&m){var u=!1,C,q,Se=function(){J.Z.cancel(C)},H=function ye(){Se(),C=(0,J.Z)(function(){I(q),ye()})},ie=function(){u=!1,Se()},Qe=function(je){if(!(je.target.draggable||je.button!==0)){var Ct=je;Ct._virtualHandled||(Ct._virtualHandled=!0,u=!0)}},we=function(je){if(u){var Ct=be(je,!1),de=m.getBoundingClientRect(),st=de.top,tt=de.bottom;if(Ct<=st){var Ie=st-Ct;q=-Te(Ie),H()}else if(Ct>=tt){var De=Ct-tt;q=Te(De),H()}else Se()}};return m.addEventListener("mousedown",Qe),m.ownerDocument.addEventListener("mouseup",ie),m.ownerDocument.addEventListener("mousemove",we),m.ownerDocument.addEventListener("dragend",ie),function(){m.removeEventListener("mousedown",Qe),m.ownerDocument.removeEventListener("mouseup",ie),m.ownerDocument.removeEventListener("mousemove",we),m.ownerDocument.removeEventListener("dragend",ie),Se()}}},[G])}var he=10;function Ee(G,dt,I,m,u,C,q,Se){var H=_.useRef(),ie=_.useState(null),Qe=(0,te.Z)(ie,2),we=Qe[0],ye=Qe[1];return(0,$.Z)(function(){if(we&&we.times<he){if(!G.current){ye(function(Ki){return(0,P.Z)({},Ki)});return}C();var je=we.targetAlign,Ct=we.originAlign,de=we.index,st=we.offset,tt=G.current.clientHeight,Ie=!1,De=je,lt=null;if(tt){for(var Ut=je||Ct,kt=0,rr=0,Fr=0,kr=Math.min(dt.length-1,de),Dr=0;Dr<=kr;Dr+=1){var Nr=u(dt[Dr]);rr=kt;var xr=I.get(Nr);Fr=rr+(xr===void 0?m:xr),kt=Fr}for(var ur=Ut==="top"?st:tt-st,Qr=kr;Qr>=0;Qr-=1){var hn=u(dt[Qr]),Ln=I.get(hn);if(Ln===void 0){Ie=!0;break}if(ur-=Ln,ur<=0)break}switch(Ut){case"top":lt=rr-st;break;case"bottom":lt=Fr-tt+st;break;default:{var pn=G.current.scrollTop,kn=pn+tt;rr<pn?De="top":Fr>kn&&(De="bottom")}}lt!==null&&q(lt),lt!==we.lastTop&&(Ie=!0)}Ie&&ye((0,P.Z)((0,P.Z)({},we),{},{times:we.times+1,targetAlign:De,lastTop:lt}))}},[we,G.current]),function(je){if(je==null){Se();return}if(J.Z.cancel(H.current),typeof je=="number")q(je);else if(je&&(0,Ae.Z)(je)==="object"){var Ct,de=je.align;"index"in je?Ct=je.index:Ct=dt.findIndex(function(Ie){return u(Ie)===je.key});var st=je.offset,tt=st===void 0?0:st;ye({times:0,index:Ct,offset:tt,originAlign:de})}}}var Xe=_.forwardRef(function(G,dt){var I=G.prefixCls,m=G.rtl,u=G.scrollOffset,C=G.scrollRange,q=G.onStartMove,Se=G.onStopMove,H=G.onScroll,ie=G.horizontal,Qe=G.spinSize,we=G.containerSize,ye=G.style,je=G.thumbStyle,Ct=G.showScrollBar,de=_.useState(!1),st=(0,te.Z)(de,2),tt=st[0],Ie=st[1],De=_.useState(null),lt=(0,te.Z)(De,2),Ut=lt[0],kt=lt[1],rr=_.useState(null),Fr=(0,te.Z)(rr,2),kr=Fr[0],Dr=Fr[1],Nr=!m,xr=_.useRef(),ur=_.useRef(),Qr=_.useState(Ct),hn=(0,te.Z)(Qr,2),Ln=hn[0],pn=hn[1],kn=_.useRef(),Ki=function(){Ct===!0||Ct===!1||(clearTimeout(kn.current),pn(!0),kn.current=setTimeout(function(){pn(!1)},3e3))},hr=C-we||0,Wn=we-Qe||0,Hi=_.useMemo(function(){if(u===0||hr===0)return 0;var vi=u/hr;return vi*Wn},[u,hr,Wn]),ui=function(ge){ge.stopPropagation(),ge.preventDefault()},$i=_.useRef({top:Hi,dragging:tt,pageY:Ut,startTop:kr});$i.current={top:Hi,dragging:tt,pageY:Ut,startTop:kr};var Ri=function(ge){Ie(!0),kt(be(ge,ie)),Dr($i.current.top),q(),ge.stopPropagation(),ge.preventDefault()};_.useEffect(function(){var vi=function(Ge){Ge.preventDefault()},ge=xr.current,Me=ur.current;return ge.addEventListener("touchstart",vi,{passive:!1}),Me.addEventListener("touchstart",Ri,{passive:!1}),function(){ge.removeEventListener("touchstart",vi),Me.removeEventListener("touchstart",Ri)}},[]);var Zi=_.useRef();Zi.current=hr;var Za=_.useRef();Za.current=Wn,_.useEffect(function(){if(tt){var vi,ge=function(Ge){var Pt=$i.current,Dt=Pt.dragging,_r=Pt.pageY,nr=Pt.startTop;J.Z.cancel(vi);var Or=xr.current.getBoundingClientRect(),Hr=we/(ie?Or.width:Or.height);if(Dt){var an=(be(Ge,ie)-_r)*Hr,jr=nr;!Nr&&ie?jr-=an:jr+=an;var Rr=Zi.current,en=Za.current,yn=en?jr/en:0,on=Math.ceil(yn*Rr);on=Math.max(on,0),on=Math.min(on,Rr),vi=(0,J.Z)(function(){H(on,ie)})}},Me=function(){Ie(!1),Se()};return window.addEventListener("mousemove",ge,{passive:!0}),window.addEventListener("touchmove",ge,{passive:!0}),window.addEventListener("mouseup",Me,{passive:!0}),window.addEventListener("touchend",Me,{passive:!0}),function(){window.removeEventListener("mousemove",ge),window.removeEventListener("touchmove",ge),window.removeEventListener("mouseup",Me),window.removeEventListener("touchend",Me),J.Z.cancel(vi)}}},[tt]),_.useEffect(function(){return Ki(),function(){clearTimeout(kn.current)}},[u]),_.useImperativeHandle(dt,function(){return{delayHidden:Ki}});var _i="".concat(I,"-scrollbar"),Yn={position:"absolute",visibility:Ln?null:"hidden"},ii={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ie?(Object.assign(Yn,{height:8,left:0,right:0,bottom:0}),Object.assign(ii,(0,Ne.Z)({height:"100%",width:Qe},Nr?"left":"right",Hi))):(Object.assign(Yn,(0,Ne.Z)({width:8,top:0,bottom:0},Nr?"right":"left",0)),Object.assign(ii,{width:"100%",height:Qe,top:Hi})),_.createElement("div",{ref:xr,className:g()(_i,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(_i,"-horizontal"),ie),"".concat(_i,"-vertical"),!ie),"".concat(_i,"-visible"),Ln)),style:(0,P.Z)((0,P.Z)({},Yn),ye),onMouseDown:ui,onMouseMove:Ki},_.createElement("div",{ref:ur,className:g()("".concat(_i,"-thumb"),(0,Ne.Z)({},"".concat(_i,"-thumb-moving"),tt)),style:(0,P.Z)((0,P.Z)({},ii),je),onMouseDown:Ri}))}),et=Xe,ze=20;function qe(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=G/dt*G;return isNaN(I)&&(I=0),I=Math.max(I,ze),Math.floor(I)}var _t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Lt=[],Nt={overflowY:"auto",overflowAnchor:"none"};function sr(G,dt){var I=G.prefixCls,m=I===void 0?"rc-virtual-list":I,u=G.className,C=G.height,q=G.itemHeight,Se=G.fullHeight,H=Se===void 0?!0:Se,ie=G.style,Qe=G.data,we=G.children,ye=G.itemKey,je=G.virtual,Ct=G.direction,de=G.scrollWidth,st=G.component,tt=st===void 0?"div":st,Ie=G.onScroll,De=G.onVirtualScroll,lt=G.onVisibleChange,Ut=G.innerProps,kt=G.extraRender,rr=G.styles,Fr=G.showScrollBar,kr=Fr===void 0?"optional":Fr,Dr=(0,V.Z)(G,_t),Nr=_.useCallback(function(Vn){return typeof ye=="function"?ye(Vn):Vn==null?void 0:Vn[ye]},[ye]),xr=Ye(Nr,null,null),ur=(0,te.Z)(xr,4),Qr=ur[0],hn=ur[1],Ln=ur[2],pn=ur[3],kn=!!(je!==!1&&C&&q),Ki=_.useMemo(function(){return Object.values(Ln.maps).reduce(function(Vn,_n){return Vn+_n},0)},[Ln.id,Ln.maps]),hr=kn&&Qe&&(Math.max(q*Qe.length,Ki)>C||!!de),Wn=Ct==="rtl",Hi=g()(m,(0,Ne.Z)({},"".concat(m,"-rtl"),Wn),u),ui=Qe||Lt,$i=(0,_.useRef)(),Ri=(0,_.useRef)(),Zi=(0,_.useRef)(),Za=(0,_.useState)(0),_i=(0,te.Z)(Za,2),Yn=_i[0],ii=_i[1],vi=(0,_.useState)(0),ge=(0,te.Z)(vi,2),Me=ge[0],Fe=ge[1],Ge=(0,_.useState)(!1),Pt=(0,te.Z)(Ge,2),Dt=Pt[0],_r=Pt[1],nr=function(){_r(!0)},Or=function(){_r(!1)},Hr={getKey:Nr};function an(Vn){ii(function(_n){var ki;typeof Vn=="function"?ki=Vn(_n):ki=Vn;var Ji=ri(ki);return $i.current.scrollTop=Ji,Ji})}var jr=(0,_.useRef)({start:0,end:ui.length}),Rr=(0,_.useRef)(),en=ne(ui,Nr),yn=(0,te.Z)(en,1),on=yn[0];Rr.current=on;var Dn=_.useMemo(function(){if(!kn)return{scrollHeight:void 0,start:0,end:ui.length-1,offset:void 0};if(!hr){var Vn;return{scrollHeight:((Vn=Ri.current)===null||Vn===void 0?void 0:Vn.offsetHeight)||0,start:0,end:ui.length-1,offset:void 0}}for(var _n=0,ki,Ji,Ma,Ms=ui.length,Va=0;Va<Ms;Va+=1){var fa=ui[Va],_o=Nr(fa),Bo=Ln.get(_o),To=_n+(Bo===void 0?q:Bo);To>=Yn&&ki===void 0&&(ki=Va,Ji=_n),To>Yn+C&&Ma===void 0&&(Ma=Va),_n=To}return ki===void 0&&(ki=0,Ji=0,Ma=Math.ceil(C/q)),Ma===void 0&&(Ma=ui.length-1),Ma=Math.min(Ma+1,ui.length-1),{scrollHeight:_n,start:ki,end:Ma,offset:Ji}},[hr,kn,Yn,ui,pn,C]),Rn=Dn.scrollHeight,di=Dn.start,Nn=Dn.end,Gn=Dn.offset;jr.current.start=di,jr.current.end=Nn,_.useLayoutEffect(function(){var Vn=Ln.getRecord();if(Vn.size===1){var _n=Array.from(Vn.keys())[0],ki=Vn.get(_n),Ji=ui[di];if(Ji&&ki===void 0){var Ma=Nr(Ji);if(Ma===_n){var Ms=Ln.get(_n),Va=Ms-q;an(function(fa){return fa+Va})}}}Ln.resetRecord()},[Rn]);var Vt=_.useState({width:0,height:C}),Xt=(0,te.Z)(Vt,2),Yt=Xt[0],tr=Xt[1],jt=function(_n){tr({width:_n.offsetWidth,height:_n.offsetHeight})},or=(0,_.useRef)(),cr=(0,_.useRef)(),Pr=_.useMemo(function(){return qe(Yt.width,de)},[Yt.width,de]),bn=_.useMemo(function(){return qe(Yt.height,Rn)},[Yt.height,Rn]),xn=Rn-C,ci=(0,_.useRef)(xn);ci.current=xn;function ri(Vn){var _n=Vn;return Number.isNaN(ci.current)||(_n=Math.min(_n,ci.current)),_n=Math.max(_n,0),_n}var Si=Yn<=0,qn=Yn>=xn,jn=Me<=0,yi=Me>=de,bi=le(Si,qn,jn,yi),wi=function(){return{x:Wn?-Me:Me,y:Yn}},Ai=(0,_.useRef)(wi()),xi=(0,v.useEvent)(function(Vn){if(De){var _n=(0,P.Z)((0,P.Z)({},wi()),Vn);(Ai.current.x!==_n.x||Ai.current.y!==_n.y)&&(De(_n),Ai.current=_n)}});function Xi(Vn,_n){var ki=Vn;_n?((0,M.flushSync)(function(){Fe(ki)}),xi()):an(ki)}function ti(Vn){var _n=Vn.currentTarget.scrollTop;_n!==Yn&&an(_n),Ie==null||Ie(Vn),xi()}var Pi=function(_n){var ki=_n,Ji=de?de-Yt.width:0;return ki=Math.max(ki,0),ki=Math.min(ki,Ji),ki},za=(0,v.useEvent)(function(Vn,_n){_n?((0,M.flushSync)(function(){Fe(function(ki){var Ji=ki+(Wn?-Vn:Vn);return Pi(Ji)})}),xi()):an(function(ki){var Ji=ki+Vn;return Ji})}),li=me(kn,Si,qn,jn,yi,!!de,za),un=(0,te.Z)(li,2),sn=un[0],Xn=un[1];Ce(kn,$i,function(Vn,_n,ki,Ji){var Ma=Ji;return bi(Vn,_n,ki)?!1:!Ma||!Ma._virtualHandled?(Ma&&(Ma._virtualHandled=!0),sn({preventDefault:function(){},deltaX:Vn?_n:0,deltaY:Vn?0:_n}),!0):!1}),ke(hr,$i,function(Vn){an(function(_n){return _n+Vn})}),(0,$.Z)(function(){function Vn(ki){var Ji=Si&&ki.detail<0,Ma=qn&&ki.detail>0;kn&&!Ji&&!Ma&&ki.preventDefault()}var _n=$i.current;return _n.addEventListener("wheel",sn,{passive:!1}),_n.addEventListener("DOMMouseScroll",Xn,{passive:!0}),_n.addEventListener("MozMousePixelScroll",Vn,{passive:!1}),function(){_n.removeEventListener("wheel",sn),_n.removeEventListener("DOMMouseScroll",Xn),_n.removeEventListener("MozMousePixelScroll",Vn)}},[kn,Si,qn]),(0,$.Z)(function(){if(de){var Vn=Pi(Me);Fe(Vn),xi({x:Vn})}},[Yt.width,de]);var Qn=function(){var _n,ki;(_n=or.current)===null||_n===void 0||_n.delayHidden(),(ki=cr.current)===null||ki===void 0||ki.delayHidden()},fi=Ee($i,ui,Ln,q,Nr,function(){return hn(!0)},an,Qn);_.useImperativeHandle(dt,function(){return{nativeElement:Zi.current,getScrollInfo:wi,scrollTo:function(_n){function ki(Ji){return Ji&&(0,Ae.Z)(Ji)==="object"&&("left"in Ji||"top"in Ji)}ki(_n)?(_n.left!==void 0&&Fe(Pi(_n.left)),fi(_n.top)):fi(_n)}}}),(0,$.Z)(function(){if(lt){var Vn=ui.slice(di,Nn+1);lt(Vn,ui)}},[di,Nn,ui]);var qi=Oe(ui,Nr,Ln,q),Ii=kt==null?void 0:kt({start:di,end:Nn,virtual:hr,offsetX:Me,offsetY:Gn,rtl:Wn,getSize:qi}),Ra=Y(ui,di,Nn,de,Me,Qr,we,Hr),ua=null;C&&(ua=(0,P.Z)((0,Ne.Z)({},H?"height":"maxHeight",C),Nt),kn&&(ua.overflowY="hidden",de&&(ua.overflowX="hidden"),Dt&&(ua.pointerEvents="none")));var Co={};return Wn&&(Co.dir="rtl"),_.createElement("div",(0,pe.Z)({ref:Zi,style:(0,P.Z)((0,P.Z)({},ie),{},{position:"relative"}),className:Hi},Co,Dr),_.createElement(F.Z,{onResize:jt},_.createElement(tt,{className:"".concat(m,"-holder"),style:ua,ref:$i,onScroll:ti,onMouseEnter:Qn},_.createElement(T,{prefixCls:m,height:Rn,offsetX:Me,offsetY:Gn,scrollWidth:de,onInnerResize:hn,ref:Ri,innerProps:Ut,rtl:Wn,extra:Ii},Ra))),hr&&Rn>C&&_.createElement(et,{ref:or,prefixCls:m,scrollOffset:Yn,scrollRange:Rn,rtl:Wn,onScroll:Xi,onStartMove:nr,onStopMove:Or,spinSize:bn,containerSize:Yt.height,style:rr==null?void 0:rr.verticalScrollBar,thumbStyle:rr==null?void 0:rr.verticalScrollBarThumb,showScrollBar:kr}),hr&&de>Yt.width&&_.createElement(et,{ref:cr,prefixCls:m,scrollOffset:Me,scrollRange:de,rtl:Wn,onScroll:Xi,onStartMove:nr,onStopMove:Or,spinSize:Pr,containerSize:Yt.width,horizontal:!0,style:rr==null?void 0:rr.horizontalScrollBar,thumbStyle:rr==null?void 0:rr.horizontalScrollBarThumb,showScrollBar:kr}))}var er=_.forwardRef(sr);er.displayName="List";var yr=er,lr=yr},45614:function(An){"use strict";An.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(An){"use strict";An.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(An,Tt,x){"use strict";var pe=Object.defineProperty,Ae=Object.defineProperties,P=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,S=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))te.call(t,r)&&S(e,r,t[r]);if(Ne)for(var r of Ne(t))V.call(t,r)&&S(e,r,t[r]);return e},F=(e,t)=>Ae(e,P(t)),v=e=>typeof e=="symbol"?e:e+"",$=(e,t)=>{var r={};for(var i in e)te.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Ne)for(var i of Ne(e))t.indexOf(i)<0&&V.call(e,i)&&(r[i]=e[i]);return r};function _(e){return Array.isArray(e)}var M={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function O(){return"window"in globalThis&&"document"in globalThis}function T(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function L(){return typeof navigator.vibrate=="function"}function Y(){var e,t;if(!O())return"other";const r=(t=(e=navigator.userAgentData)==null?void 0:e.platform)!=null?t:navigator.platform;return/^mac/i.test(r)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(r)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function R(){if(!O())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);return e?parseInt(e[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);return e?parseInt(e[1])>=79:!1}return!0}function se(){return HTMLElement.prototype.hasOwnProperty("popover")}var ne={strings:M,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ne._locale||(ne._locale=O()?navigator.language.slice(0,5):"en-US"),ne._locale},set locale(e){ne._locale=e,ne._numberFormatter=void 0,ne.dirty=!0},get numberFormatter(){return ne._numberFormatter||(ne._numberFormatter=new Intl.NumberFormat(ne.locale)),ne._numberFormatter},merge(e,t){if(typeof e=="string"&&t)ne.strings[e]=g(g({},ne.strings[e]),t),ne.dirty=!0;else for(const r of Object.keys(e))ne.merge(r,e[r])},get dirty(){return ne._dirty},set dirty(e){ne._dirty||ne._dirty===e||(ne._dirty=!0,setTimeout(()=>{ne._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return ne._subscribers.push(e),ne._subscribers.length-1},unsubscribe(e){e<0||e>=ne._subscribers.length||(ne._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const r of t){const i=r.getAttribute("data-l10n-tooltip");if(i){const s=J(i);s&&r.setAttribute("data-tooltip",s)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const r of t){const i=r.getAttribute("data-l10n-arial-label");if(i){const s=J(i);s&&r.setAttribute("aria-label",s)}}}};function J(e,...t){if(e===void 0)return;let r="";const i=ne.locale;ne.strings[i]&&(r=ne.strings[i][e]);const s=i.slice(0,2);if(!r&&ne.strings[s]&&(r=ne.strings[s][e]),r||(r=ne.strings.en[e]),!r)return;const c=/(%@|%([0-9]+)\$@)/g;let d=c.exec(r),k=0;for(;d;){if(t[k++]){const X=d[2]?parseInt(d[2],10)-1:k-1;let ce=t[X];typeof ce=="number"&&(ce=ne.numberFormatter.format(ce)),r=r.replace(d[1],ce)}d=c.exec(r)}return r=r.replace(/%%/g,"%"),r}var W={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},K={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},le={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},me={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},Oe={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},Be={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function Ue(e){var t,r,i,s,c,d;const k=e.split("!");let j,X,ce,Pe=255,nt=255,vt=255,Et=-1;const Br=k.length>0&&k[0].startsWith("-");Br&&(k[0]=k[0].slice(1));for(let En=0;En<k.length;En++){j=Pe,X=nt,ce=vt;const wr=(t=k[En].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],nn=wr==null?void 0:wr.toLowerCase(),Fn=wr&&(d=(c=(s=(i=(r=me[nn])!=null?r:me[Oe[wr]])!=null?i:K[wr])!=null?s:Be[wr])!=null?c:W[wr])!=null?d:k[En].trim();let cn=Fn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(cn!=null&&cn[1]&&cn[2]&&cn[3])Pe=Math.max(0,Math.min(255,Number.parseInt(cn[1],16))),nt=Math.max(0,Math.min(255,Number.parseInt(cn[2],16))),vt=Math.max(0,Math.min(255,Number.parseInt(cn[3],16)));else if(cn=Fn.match(/^#([\da-f]{3})$/i),cn!=null&&cn[1]){const Bi=Number.parseInt(cn[1][0],16),ra=Number.parseInt(cn[1][1],16),Qi=Number.parseInt(cn[1][2],16);Pe=Math.max(0,Math.min(255,Bi*16+Bi)),nt=Math.max(0,Math.min(255,ra*16+ra)),vt=Math.max(0,Math.min(255,Qi*16+Qi))}else if(cn=Fn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),cn!=null&&cn[1]&&cn[2]&&cn[3])Pe=Math.max(0,Math.min(255,Number.parseInt(cn[1]))),nt=Math.max(0,Math.min(255,Number.parseInt(cn[2]))),vt=Math.max(0,Math.min(255,Number.parseInt(cn[3])));else return;Et>=0&&(Pe=(1-Et)*Pe+Et*j,nt=(1-Et)*nt+Et*X,vt=(1-Et)*vt+Et*ce,Et=-1),En+1<k.length&&(Et=Math.max(0,Math.min(100,Number.parseInt(k[++En])))/100)}return Et>=0&&(Pe=Et*Pe+(1-Et)*j,nt=Et*nt+(1-Et)*X,vt=Et*vt+(1-Et)*ce),Br&&(Pe=255-Pe,nt=255-nt,vt=255-vt),"#"+("00"+Math.round(Pe).toString(16)).slice(-2)+("00"+Math.round(nt).toString(16)).slice(-2)+("00"+Math.round(vt).toString(16)).slice(-2)}function ee(e){var t,r;return e=e.trim(),(r=(t=le[e.toLowerCase()])!=null?t:le[Oe[e]])!=null?r:Ue(e)}function fe(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&t.a===void 0&&(t.a=1),t}function D(e,t,r){return r<0&&(r+=6),r>=6&&(r-=6),r<1?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e}function Ye(e){let[t,r,i]=[e.h,e.s,e.l];t=(t+360)%360/60,i=Math.max(0,Math.min(i,1)),r=Math.max(0,Math.min(r,1));const s=i<=.5?i*(r+1):i+r-i*r,c=i*2-s;return{r:Math.round(255*D(c,s,t+2)),g:Math.round(255*D(c,s,t)),b:Math.round(255*D(c,s,t-2))}}function Le(e){return e<0?0:e>255?255:Math.round(e)}function Ce(e){const{r:t,g:r,b:i}=e;let s=((1<<24)+(Le(t)<<16)+(Le(r)<<8)+Le(i)).toString(16).slice(1);return s[0]===s[1]&&s[2]===s[3]&&s[4]===s[5]&&s[6]===s[7]&&(s=s[0]+s[2]+s[4]),"#"+s}function Te(e){let{r:t,g:r,b:i}=e;t=t/255,r=r/255,i=i/255;const s=Math.min(t,r,i),c=Math.max(t,r,i),d=c-s;let k,j;c===s?k=0:t===c?k=(r-i)/d:r===c?k=2+(i-t)/d:i===c&&(k=4+(t-r)/d),k=Math.min(k*60,360),k<0&&(k+=360);const X=(s+c)/2;return c===s?j=0:X<=.5?j=d/(c+s):j=d/(2-c-s),{h:k,s:j,l:X}}function be(e){let t=fe(e);if(!t)return e;let{h:r,s:i,l:s}=Te(t);return i+=.1,s-=.1,Ce(Ye({h:r,s:i,l:s}))}var ke={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},he={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Ee=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function Xe(e,t,r){if(!/[A-Za-z\d]/.test(e)||(r==="up"&&(r=void 0),!t&&!r))return e;const i=e.codePointAt(0);if(i===void 0)return e;for(const s of Ee)if((!t||s.variant===t)&&(!r||s.style===r)&&i>=s.offset&&i<s.offset+s.len){const c=s.start+i-s.offset;return String.fromCodePoint(he[c]||c)}return e}function et(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in he)if(he[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of Ee)if(e>=r.start&&e<r.start+r.len)return{char:String.fromCodePoint(e-r.start+r.offset),variant:r.variant,style:r.style};return{char:String.fromCodePoint(e)}}function ze(e){var t;let r="";for(const i of e){if("{}<>[]$&#^_%:'\u02DC".includes(i)){r+=i;continue}const s=(t=i.codePointAt(0))!=null?t:0;let c=ke[s];if(c)c.startsWith("\\")?r+=c+" ":r+=c;else{const{char:d,variant:k,style:j}=et(s);switch(c=d,k){case"double-struck":c=`\\mathbb{${c}}`;break;case"fraktur":c=`\\mathfrak{${c}}`;break;case"script":c=`\\mathscr{${c}}`;break;case"sans-serif":c=`\\mathsf{${c}}`;break;case"monospace":c=`\\mathtt{${c}}`;break;case"calligraphic":c=`\\mathcal{${c}}`;break}switch(j){case"bold":c=`\\mathbf{${c}}`;break;case"italic":c=`\\mathit{${c}}`;break;case"bolditalic":c=`\\mathbfit{${c}}`;break}r+=c}}return r}function qe(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var _t={},Lt=g({},ke),Nt={},sr={},er={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},yr={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},lr={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},G={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:lr},"amsmath.sty":{package:yr,primitive:!0},"texvc.sty":{package:er,primitive:!1}},dt={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},I=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,m,u;R()?(m=new RegExp("\\p{Letter}","u"),u=new RegExp("[0-9\\p{Letter}]","u")):(m=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,u=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function C(e,t,r="mord",i){t!==void 0&&(_t[e]={definitionType:"symbol",type:r,variant:i,codepoint:t},Lt[t]||(Lt[t]=e))}function q(e,t,r){if(typeof e=="string"){for(let i=0;i<e.length;i++){const s=e.charAt(i);C(s,s.codePointAt(0))}return}for(const[i,s,c,d]of e)C(i,s,c!=null?c:t,d!=null?d:r)}function Se(e,t){for(let r=e;r<=t;r++)C(String.fromCodePoint(r),r)}function H(e){var t;return(t=sr[e])!=null?t:null}function ie(e,t){var r,i;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const s=[];for(const d in Nt)d.startsWith(t)&&!Nt[d].infix&&s.push({match:d,frequency:(r=Nt[d].frequency)!=null?r:0});for(const d in _t)d.startsWith(t)&&s.push({match:d,frequency:(i=_t[d].frequency)!=null?i:0});const c=t.substring(1);for(const d of Object.keys(e.options.macros))d.startsWith(c)&&s.push({match:"\\"+d,frequency:0});return s.sort((d,k)=>{var j,X;return d.frequency===k.frequency?d.match.length===k.match.length?d.match<k.match?-1:1:d.match.length-k.match.length:((j=k.frequency)!=null?j:0)-((X=d.frequency)!=null?X:0)}),s.map(d=>d.match)}function Qe(e){let t="auto";const r=e.match(/:([^=]+)/);return r&&(t=r[1].trim()),t}function we(e){if(!e)return[];const t=[];let r=e.split("]");if(r[0].startsWith("[")){t.push({isOptional:!0,type:Qe(r[0].slice(1))});for(let i=1;i<=r.length;i++)t.push(...we(r[i]))}else if(r=e.split("}"),r[0].startsWith("{")){t.push({isOptional:!1,type:Qe(r[0].slice(1))});for(let i=1;i<=r.length;i++)t.push(...we(r[i]))}return t}function ye(e){if(!e)return"";let t="",r=!0;for(const i of e)typeof i.value=="string"?t+=i.value:r=!1;return r?t:""}function je(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const i of e)sr[i]=r}function Ct(e,t,r){typeof e=="string"&&(e=[e]);const s={tabular:!0,params:we(t),createAtom:r};for(const c of e)sr[c]=s}function de(e,t,r){var i,s;r||(r={});const c={definitionType:"function",params:we(t),ifMode:r.ifMode,isFunction:(i=r.isFunction)!=null?i:!1,applyMode:r.applyMode,infix:(s=r.infix)!=null?s:!1,parse:r.parse,createAtom:r.createAtom,applyStyle:r.applyStyle,serialize:r.serialize,render:r.render};if(typeof e=="string")Nt["\\"+e]=c;else for(const d of e)Nt["\\"+d]=c}var st;function tt(e){return st||(st=De(G)),e?De(g(g({},st),e)):st}function Ie(e,t){var r,i,s,c;if(typeof e=="string"){let d=0;const k=e;return/(^|[^\\])#1/.test(k)&&(d=1),/(^|[^\\])#2/.test(k)&&(d=2),/(^|[^\\])#3/.test(k)&&(d=3),/(^|[^\\])#4/.test(k)&&(d=4),/(^|[^\\])#5/.test(k)&&(d=5),/(^|[^\\])#6/.test(k)&&(d=6),/(^|[^\\])#7/.test(k)&&(d=7),/(^|[^\\])#8/.test(k)&&(d=8),/(^|[^\\])#9/.test(k)&&(d=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(i=t==null?void 0:t.captureSelection)!=null?i:!0,args:d,def:k}}return g({expand:(s=t==null?void 0:t.expand)!=null?s:!0,captureSelection:(c=t==null?void 0:t.captureSelection)!=null?c:!0,args:0},e)}function De(e){if(!e)return{};const t={};for(const r of Object.keys(e)){const i=e[r];if(i==null)delete t[r];else if(typeof i=="object"&&"package"in i)for(const s of Object.keys(i.package))t[s]=Ie(i.package[s],{expand:!i.primitive,captureSelection:i.captureSelection});else t[r]=Ie(i)}return t}function lt(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Nt[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=_t[e]:dt[e]&&(r={definitionType:"symbol",type:"mord",codepoint:dt[e]})}else if(t==="math"){if(r=_t[e],!r&&e.length===1){const i=kt("math",e.codePointAt(0));return i.startsWith("\\")?F(g({},lt(i,"math")),{command:i}):null}}else dt[e]?r={definitionType:"symbol",type:"mord",codepoint:dt[e]}:t==="text"&&(r={definitionType:"symbol",type:"mord",codepoint:e.codePointAt(0)});return r!=null?r:null}function Ut(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function kt(e,t){if(t===void 0)return"";if(e==="math"&&Lt[t])return Lt[t];if(e==="text"){const r=Object.keys(dt).find(i=>dt[i]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var rr=[0,.68889,0,0,.72222],Fr=[0,.68889,0,0,.66667],kr=[0,.68889,0,0,.77778],Dr=[0,.68889,0,0,.61111],Nr=[.16667,.68889,0,0,.77778],xr=[0,.68889,0,0,.55556],ur=[0,0,0,0,.25],Qr=[0,.825,0,0,2.33334],hn=[0,.9,0,0,2.33334],Ln=[0,.68889,0,0,.54028],pn=[-.03598,.46402,0,0,.5],kn=[-.13313,.36687,0,0,1],Ki=[.01354,.52239,0,0,1],hr=[.01354,.52239,0,0,1.11111],Wn=[0,.54986,0,0,1],Hi=[0,.69224,0,0,.5],ui=[0,.43056,0,0,1],$i=[.08198,.58198,0,0,.77778],Ri=[.19444,.69224,0,0,.41667],Zi=[.1808,.675,0,0,1],Za=[.19444,.69224,0,0,.83334],_i=[.13667,.63667,0,0,1],Yn=[-.064,.437,0,0,1.334],ii=[.08167,.58167,0,0,.77778],vi=[0,.69224,0,0,.72222],ge=[0,.69224,0,0,.66667],Me=[-.13313,.36687,0,0,.77778],Fe=[.06062,.54986,0,0,.77778],Ge=[0,.69224,0,0,.77778],Pt=[.25583,.75583,0,0,.77778],Dt=[.25142,.75726,0,0,.77778],_r=[.20576,.70576,0,0,.77778],nr=[.30274,.79383,0,0,.77778],Or=[.22958,.72958,0,0,.77778],Hr=[.1808,.675,0,0,.77778],an=[.13667,.63667,0,0,.77778],jr=[.13597,.63597,0,0,.77778],Rr=[.03517,.54986,0,0,.77778],en=[0,.675,0,0,.77778],yn=[.19444,.69224,0,0,.61111],on=[0,.54986,0,0,.76042],Dn=[0,.54986,0,0,.66667],Rn=[.0391,.5391,0,0,.77778],di=[.03517,.54986,0,0,1.33334],Nn=[.38569,.88569,0,0,.77778],Gn=[.23222,.74111,0,0,.77778],Vt=[.19444,.69224,0,0,.77778],Xt=[0,.37788,0,0,.5],Yt=[0,.54986,0,0,.72222],tr=[0,.69224,0,0,.83334],jt=[.11111,.69224,0,0,.66667],or=[.26167,.75726,0,0,.77778],cr=[.48256,.98256,0,0,.77778],Pr=[.28481,.79383,0,0,.77778],bn=[.08167,.58167,0,0,.22222],xn=[.08167,.58167,0,0,.38889],ci=[0,.43056,.04028,0,.66667],ri=[.41951,.91951,0,0,.77778],Si=[.24982,.74947,0,0,.38865],qn=[.08319,.58283,0,0,.75623],jn=[0,.10803,0,0,.27764],yi=[0,.47534,0,0,.50181],bi=[.18906,.47534,0,0,.50181],wi=[0,.69141,0,0,.50181],Ai=[.24982,.74947,0,0,.27764],xi=[0,.69141,0,0,.21471],Xi=[.25,.75,0,0,.44722],ti=[0,.64444,0,0,.575],Pi=[.08556,.58556,0,0,.89444],za=[0,.69444,0,0,.89444],li=[0,.68611,0,0,.9],un=[0,.68611,0,0,.86944],sn=[.25,.75,0,0,.575],Xn=[.25,.75,0,0,.31944],Qn=[0,.69444,0,0,.63889],fi=[0,.69444,0,0,.31944],qi=[0,.44444,0,0,.63889],Ii=[0,.44444,0,0,.51111],Ra=[0,.69444,0,0,.575],ua=[.13333,.63333,0,0,.89444],Co=[0,.44444,0,0,.31944],Vn=[0,.69444,0,0,.86944],_n=[0,.68611,0,0,.69166],ki=[0,.68611,0,0,.83055],Ji=[0,.68611,0,0,.89444],Ma=[0,.69444,0,0,.60278],Ms=[.19444,.69444,0,0,.51111],Va=[0,.69444,0,0,.83055],fa=[-.10889,.39111,0,0,1.14999],_o=[.19444,.69444,0,0,.575],Bo=[.19444,.69444,0,0,1.14999],To=[.19444,.69444,0,0,.70277],Ps=[.05556,.75,0,0,.575],mo=[0,.68611,0,0,.95833],xs=[.08556,.58556,0,0,.76666],Ts=[-.02639,.47361,0,0,.575],$s=[0,.44444,0,0,.89444],Uo=[0,.55556,0,0,.76666],Ro=[-.10889,.39111,0,0,.89444],Cs=[.00222,.50222,0,0,.89444],el=[.19667,.69667,0,0,.89444],vl=[.08556,.58556,0,0,1.14999],tc=[0,.69444,0,0,.70277],rc=[-.02778,.47222,0,0,.575],Rl=[.25,.75,0,0,.51111],Zs=[-.13889,.36111,0,0,1.14999],kc=[.19444,.69444,0,0,1.02222],Ql=[.12963,.69444,0,0,.89444],Kl=[.19444,.69444,0,0,.44722],Vs=[0,.64444,.13167,0,.59111],os=[.19444,.64444,.13167,0,.59111],ni=[0,.68611,.17208,0,.8961],ca=[.19444,.44444,.105,0,.53222],ta=[0,.44444,.085,0,.82666],oa=[0,.69444,.06709,0,.59111],Oa=[0,.69444,.12945,0,.35555],so=[0,.69444,0,0,.94888],Ws=[0,.69444,.11472,0,.59111],Bs=[0,.68611,.10778,0,.88555],Ss=[0,.69444,.07939,0,.62055],vs=[0,.69444,.12417,0,.30667],to=[0,.64444,.13556,0,.51111],Qa=[.19444,.64444,.13556,0,.51111],ss=[0,.68333,.16389,0,.74333],ls=[.19444,.43056,.08847,0,.46],Ls=[0,.43056,.07514,0,.71555],Jo=[0,.69444,.06646,0,.51111],Io=[0,.69444,0,0,.83129],hA=[0,.69444,.1225,0,.51111],ru=[0,.68333,.09403,0,.76666],lc=[0,.68333,.11111,0,.76666],pA=[0,.69444,.06961,0,.51444],cl=[0,.69444,0,0,.27778],mA=[.25,.75,0,0,.38889],tl=[0,.64444,0,0,.5],bs=[0,.69444,0,0,.77778],qc=[0,.68333,0,0,.75],Us=[0,.68333,0,0,.77778],PA=[0,.68333,0,0,.68056],cc=[0,.68333,0,0,.72222],Hl=[.25,.75,0,0,.5],ro=[.25,.75,0,0,.27778],Gs=[0,.69444,0,0,.5],gA=[0,.69444,0,0,.55556],Eu=[0,.43056,0,0,.44445],cs=[0,.43056,0,0,.5],Ba=[.19444,.43056,0,0,.55556],ya=[0,.43056,0,0,.55556],rs=[.08333,.58333,0,0,.77778],bo=[0,.43056,0,0,.27778],$o=[0,.66786,0,0,.27778],Zo=[0,.69444,0,0,.75],Do=[0,.66786,0,0,.5],Es=[0,.68333,0,0,.625],nc=[.19444,.69444,0,0,.44445],Vc=[0,.69444,0,0,.72222],Xs=[.19444,.69444,0,0,.5],vA=[.19444,.69444,0,0,1],wl=[.011,.511,0,0,1.126],eA=[.19444,.69444,0,0,.61111],rl=[.05556,.75,0,0,.5],_d=[0,.68333,0,0,.83334],nu=[.0391,.5391,0,0,.66667],$A=[-.05555,.44445,0,0,.5],Af=[0,.43056,0,0,.77778],Wc=[0,.55556,0,0,.66667],Gu=[-.03625,.46375,0,0,.77778],Dc=[-.01688,.48312,0,0,.77778],Id=[.0391,.5391,0,0,1],Yo=[0,.69444,0,0,.61111],No=[-.03472,.46528,0,0,.5],qo=[.25,.75,0,0,.44445],bc=[-.14236,.35764,0,0,1],jl=[.244,.744,0,0,.412],Xu=[.19444,.69444,0,0,.88889],bA=[.12963,.69444,0,0,.77778],ZA=[.19444,.69444,0,0,.38889],Fd=[.011,.511,0,0,1.638],Md=[.19444,.69444,0,0,0],VA=[0,.44444,0,0,.575],WA=[.19444,.44444,0,0,.575],Fo=[0,.68611,0,0,.75555],yA=[0,.69444,0,0,.66759],GA=[0,.68611,0,0,.80555],b0=[0,.68611,.08229,0,.98229],iu=[0,.68611,0,0,.76666],Bh=[0,.44444,0,0,.58472],uf=[.19444,.44444,0,0,.6118],Ld=[.19444,.43056,0,0,.5],zf=[0,.68333,.02778,.08334,.76278],Sh=[0,.68333,.08125,.05556,.83125],_u=[0,.43056,0,.05556,.48472],df=[.19444,.43056,0,.08334,.51702],xl=[.25,.75,0,0,.42778],Cl=[0,.69444,0,0,.55],Nc=[0,.69444,0,0,.73334],Oc=[0,.69444,0,0,.79445],y0=[0,.69444,0,0,.51945],Iu=[0,.69444,0,0,.70278],Eh=[0,.69444,0,0,.76389],Fu=[.25,.75,0,0,.34306],kd=[0,.69444,0,0,.56111],$p=[0,.69444,0,0,.25556],au=[.19444,.45833,0,0,.56111],tA=[0,.45833,0,0,.56111],yc=[0,.69444,0,0,.30556],Vo=[0,.69444,0,0,.58056],Ju=[0,.69444,0,0,.67223],$f=[0,.69444,0,0,.85556],Zf=[0,.69444,0,0,.55834],Pc=[0,.65556,.11156,0,.5],Yu=[0,.69444,.08094,0,.70834],ff=[.17014,0,0,0,.44445],qu=[0,.69444,.0799,0,.5],w0=[0,.69444,0,0,.73752],x0=[0,.69444,.09205,0,.5],zl=[0,.69444,.09031,0,.77778],ed=[0,.69444,.07816,0,.27778],C0=[0,.69444,.00316,0,.5],ue=[.19444,.69444,0,0,.83334],xe=[.05556,.75,0,0,.83334],Je=[0,.75,0,0,.5],ct=[.125,.08333,0,0,.27778],Bt=[0,.08333,0,0,.27778],bt=[0,.65556,0,0,.5],$t=[0,.69444,0,0,.47222],zt=[0,.69444,0,0,.66667],Qt=[0,.69444,0,0,.59722],dr=[0,.69444,0,0,.54167],Ir=[0,.69444,0,0,.70834],mr=[.25,.75,0,0,.28889],tn=[0,.69444,0,0,.51667],Vr=[0,.44444,0,0,.44445],Yr=[.19444,.44444,0,0,.51667],On=[0,.44444,0,0,.38333],wn=[0,.44444,0,0,.51667],In=[0,.69444,0,0,.83334],Cn=[.35001,.85,0,0,.45834],zn=[.35001,.85,0,0,.57778],Ti=[.35001,.85,0,0,.41667],ji=[.35001,.85,0,0,.58334],hi=[0,.72222,0,0,.55556],na=[1e-5,.6,0,0,.66667],wa=[1e-5,.6,0,0,.77778],Jn=[.25001,.75,0,0,.94445],mi=[.306,.805,.19445,0,.47222],ai=[.30612,.805,.19445,0,.47222],Pn=[.25001,.75,0,0,.83334],oi=[.35001,.85,0,0,.47222],Vi=[.25001,.75,0,0,1.11111],Pa=[.65002,1.15,0,0,.59722],ma=[.65002,1.15,0,0,.81111],Wi=[.65002,1.15,0,0,.47222],Ia=[.65002,1.15,0,0,.66667],Ka=[0,.75,0,0,1],es=[.55001,1.05,0,0,1.27778],lo=[.862,1.36,.44445,0,.55556],ys=[.86225,1.36,.44445,0,.55556],As=[.55001,1.05,0,0,1.11111],ga=[.65002,1.15,0,0,.52778],ol=[.65002,1.15,0,0,.61111],go=[.55001,1.05,0,0,1.51112],ts=[.95003,1.45,0,0,.73611],ns=[.95003,1.45,0,0,1.04445],wc=[.95003,1.45,0,0,.52778],si=[.95003,1.45,0,0,.75],Gi=[0,.75,0,0,1.44445],zi=[.95003,1.45,0,0,.58334],Di=[1.25003,1.75,0,0,.79167],yo=[1.25003,1.75,0,0,1.27778],Ni=[1.25003,1.75,0,0,.58334],Aa=[1.25003,1.75,0,0,.80556],$a=[0,.825,0,0,1.8889],Wa=[1.25003,1.75,0,0,.63889],Fl=[.64502,1.155,0,0,.875],nl=[1e-5,.6,0,0,.875],Gc=[-99e-5,.601,0,0,.66667],Rs=[.64502,1.155,0,0,.66667],Tc=[1e-5,.9,0,0,.88889],Kn=[.65002,1.15,0,0,.88889],Ac=[.90001,0,0,0,.88889],Mu=[-.00499,.605,0,0,1.05556],co=[0,.12,0,0,.45],dn=[0,.61111,0,0,.525],Mo=[.08333,.69444,0,0,.525],Al=[-.08056,.53055,0,0,.525],us=[-.05556,.55556,0,0,.525],ia=[0,.43056,0,0,.525],Bl=[.22222,.43056,0,0,.525],$l=[0,0,0,0,.525],Uc={"AMS-Regular":{32:ur,65:rr,66:Fr,67:rr,68:rr,69:Fr,70:Dr,71:kr,72:kr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:kr,76:Fr,77:[0,.68889,0,0,.94445],78:rr,79:Nr,80:Dr,81:Nr,82:rr,83:xr,84:Fr,85:rr,86:rr,87:[0,.68889,0,0,1],88:rr,89:rr,90:Fr,107:xr,160:ur,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:xr,295:Ln,710:Qr,732:hn,770:Qr,771:hn,989:ii,1008:ci,8245:[0,.54986,0,0,.275],8463:Ln,8487:rr,8498:xr,8502:Fr,8503:[0,.68889,0,0,.44445],8504:Fr,8513:[0,.68889,0,0,.63889],8592:pn,8594:pn,8602:kn,8603:kn,8606:Ki,8608:Ki,8610:hr,8611:hr,8619:Wn,8620:Wn,8621:[-.13313,.37788,0,0,1.38889],8622:kn,8624:Hi,8625:Hi,8630:ui,8631:ui,8634:$i,8635:$i,8638:Ri,8639:Ri,8642:Ri,8643:Ri,8644:Zi,8646:Zi,8647:Zi,8648:Za,8649:Zi,8650:Za,8651:Ki,8652:Ki,8653:kn,8654:kn,8655:kn,8666:_i,8667:_i,8669:[-.13313,.37788,0,0,1],8672:Yn,8674:Yn,8705:[0,.825,0,0,.5],8708:xr,8709:ii,8717:[0,.43056,0,0,.42917],8722:pn,8724:[.08198,.69224,0,0,.77778],8726:ii,8733:Ge,8736:vi,8737:vi,8738:[.03517,.52239,0,0,.72222],8739:bn,8740:[.25142,.74111,0,0,.27778],8741:xn,8742:[.25142,.74111,0,0,.5],8756:ge,8757:ge,8764:Me,8765:[-.13313,.37788,0,0,.77778],8769:Me,8770:Gu,8774:nr,8776:Dc,8778:ii,8782:Fe,8783:Fe,8785:$i,8786:$i,8787:$i,8790:Ge,8791:Or,8796:[.08198,.91667,0,0,.77778],8806:Pt,8807:Pt,8808:Dt,8809:Dt,8812:[.25583,.75583,0,0,.5],8814:_r,8815:_r,8816:nr,8817:nr,8818:Or,8819:Or,8822:Hr,8823:Hr,8828:an,8829:an,8830:Or,8831:Or,8832:_r,8833:_r,8840:nr,8841:nr,8842:jr,8843:jr,8847:Rr,8848:Rr,8858:$i,8859:$i,8861:$i,8862:en,8863:en,8864:en,8865:en,8872:[0,.69224,0,0,.61111],8873:vi,8874:[0,.69224,0,0,.88889],8876:Dr,8877:Dr,8878:rr,8879:rr,8882:Rr,8883:Rr,8884:an,8885:an,8888:[0,.54986,0,0,1.11111],8890:Ba,8891:yn,8892:yn,8901:[0,.54986,0,0,.27778],8903:ii,8905:ii,8906:ii,8907:Ge,8908:Ge,8909:[-.03598,.46402,0,0,.77778],8910:on,8911:on,8912:Rr,8913:Rr,8914:Dn,8915:Dn,8916:ge,8918:Rn,8919:Rn,8920:di,8921:di,8922:Nn,8923:Nn,8926:an,8927:an,8928:nr,8929:nr,8934:Gn,8935:Gn,8936:Gn,8937:Gn,8938:_r,8939:_r,8940:nr,8941:nr,8994:Vt,8995:Vt,9416:[.15559,.69224,0,0,.90222],9484:Hi,9488:Hi,9492:Xt,9496:Xt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:en,9633:en,9650:Yt,9651:Yt,9654:Rr,9660:Yt,9661:Yt,9664:Rr,9674:jt,9733:[.19444,.69224,0,0,.94445],10003:tr,10016:tr,10731:jt,10846:[.19444,.75583,0,0,.61111],10877:an,10878:an,10885:Pt,10886:Pt,10887:jr,10888:jr,10889:or,10890:or,10891:cr,10892:cr,10901:an,10902:an,10933:Dt,10934:Dt,10935:or,10936:or,10937:or,10938:or,10949:Pt,10950:Pt,10955:Pr,10956:Pr,57350:bn,57351:xn,57352:ii,57353:ci,57356:Dt,57357:Dt,57358:ri,57359:nr,57360:nr,57361:ri,57366:Dt,57367:Dt,57368:Dt,57369:Dt,57370:jr,57371:jr},"Caligraphic-Regular":{32:ur,65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:ur},"Fraktur-Regular":{32:ur,33:[0,.69141,0,0,.29574],34:xi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Si,41:Si,42:[0,.62119,0,0,.27764],43:qn,44:jn,45:qn,46:jn,47:[.24982,.74947,0,0,.50181],48:yi,49:yi,50:yi,51:bi,52:bi,53:bi,54:wi,55:bi,56:wi,57:bi,58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:Ai,93:Ai,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:ur,8216: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:ur,33:[0,.69444,0,0,.35],34:Ma,35:[.19444,.69444,0,0,.95833],36:Ps,37:[.05556,.75,0,0,.95833],38:za,39:fi,40:Xi,41:Xi,42:[0,.75,0,0,.575],43:ua,44:[.19444,.15556,0,0,.31944],45:On,46:[0,.15556,0,0,.31944],47:sn,48:ti,49:ti,50:ti,51:ti,52:ti,53:ti,54:ti,55:ti,56:ti,57:ti,58:Co,59:[.19444,.44444,0,0,.31944],60:Pi,61:Ro,62:Pi,63:[0,.69444,0,0,.54305],64:za,65:un,66:[0,.68611,0,0,.81805],67:ki,68:[0,.68611,0,0,.88194],69:Fo,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:li,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:li,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:un,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Xn,92:sn,93:Xn,94:Ra,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Qn,99:Ii,100:Qn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Qn,105:fi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:fi,109:[0,.44444,0,0,.95833],110:qi,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:qi,118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:Ii,123:sn,124:Xn,125:sn,126:[.35,.34444,0,0,.575],160:ur,163:[0,.69444,0,0,.86853],168:Ra,172:[0,.44444,0,0,.76666],176:Vn,177:ua,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:ua,216:[.04861,.73472,0,0,.89444],223:Qt,230:[0,.44444,0,0,.83055],247:ua,248:[.09722,.54167,0,0,.575],305:Co,338:[0,.68611,0,0,1.16944],339:$s,567:[.19444,.44444,0,0,.35139],710:Ra,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Ra,715:Ra,728:Ra,729:fi,730:Vn,732:Ra,733:Ra,915:_n,916:mo,920:Ji,923:GA,926:iu,928:li,931:ki,933:Ji,934:ki,936:Ji,937:ki,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:fi,8217:fi,8220:Ma,8221:Ma,8224:Ms,8225:Ms,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:yA,8465:Va,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Va,8501:tc,8592:fa,8593:_o,8594:fa,8595:_o,8596:fa,8597:sn,8598:Bo,8599:Bo,8600:Bo,8601:Bo,8636:fa,8637:fa,8640:fa,8641:fa,8656:fa,8657:To,8658:fa,8659:To,8660:fa,8661:[.25,.75,0,0,.70277],8704:Qn,8706:[0,.69444,.06389,0,.62847],8707:Qn,8709:Ps,8711:mo,8712:xs,8715:xs,8722:ua,8723:ua,8725:sn,8726:sn,8727:rc,8728:Ts,8729:Ts,8730:[.18,.82,0,0,.95833],8733:$s,8734:[0,.44444,0,0,1.14999],8736:vi,8739:Xn,8741:sn,8743:Uo,8744:Uo,8745:Uo,8746:Uo,8747:[.19444,.69444,.12778,0,.56875],8764:Ro,8768:[.19444,.69444,0,0,.31944],8771:Cs,8776:[.02444,.52444,0,0,.89444],8781:Cs,8801:Cs,8804:el,8805:el,8810:vl,8811:vl,8826:Pi,8827:Pi,8834:Pi,8835:Pi,8838:el,8839:el,8846:Uo,8849:el,8850:el,8851:Uo,8852:Uo,8853:ua,8854:ua,8855:ua,8856:ua,8857:ua,8866:tc,8867:tc,8868:za,8869:za,8900:Ts,8901:[-.02639,.47361,0,0,.31944],8902:rc,8968:Rl,8969:Rl,8970:Rl,8971:Rl,8994:Zs,8995:Zs,9651:kc,9657:rc,9661:kc,9667:rc,9711:Bo,9824:Ql,9825:Ql,9826:Ql,9827:Ql,9837:[0,.75,0,0,.44722],9838:Kl,9839:Kl,10216:Xi,10217:Xi,10815:li,10927:el,10928:el,57376:Md},"Main-BoldItalic":{32:ur,33:[0,.69444,.11417,0,.38611],34:Ss,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Oa,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:Vs,49:Vs,50:Vs,51:Vs,52:os,53:Vs,54:Vs,55:os,56:Vs,57:Vs,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Ws,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:ni,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:ni,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:oa,95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:ca,104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:ca,114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:ur,168:[0,.69444,.11473,0,.59111],176:so,184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:ta,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:ta,567:[.19444,.44444,.04611,0,.385],710:oa,711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:Oa,730:so,732:Ws,733:Ws,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:ni,931:[0,.68611,.11431,0,.82666],933:Bs,934:[0,.68611,.05632,0,.82666],936:Bs,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Oa,8217:Oa,8220:[0,.69444,.16772,0,.62055],8221:Ss},"Main-Italic":{32:ur,33:vs,34:pA,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:vs,40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:to,49:to,50:to,51:to,52:Qa,53:to,54:to,55:Qa,56:to,57:to,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63: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:ru,80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:ss,86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:Jo,95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:ls,104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:ls,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:ur,168:[0,.66786,.10474,0,.51111],176:Io,184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:Ls,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Ls,710:Jo,711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:Io,732:[0,.66786,.11585,0,.51111],733:hA,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:ru,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:ss,931:[0,.68333,.12028,0,.71555],933:lc,934:[0,.68333,.05986,0,.71555],936:lc,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:vs,8217:vs,8220:[0,.69444,.1685,0,.51444],8221:pA,8463:Ln},"Main-Regular":{32:ur,33:cl,34:Gs,35:ue,36:rl,37:xe,38:bs,39:cl,40:mA,41:mA,42:Je,43:rs,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Hl,48:tl,49:tl,50:tl,51:tl,52:tl,53:tl,54:tl,55:tl,56:tl,57:tl,58:bo,59:[.19444,.43056,0,0,.27778],60:Rn,61:Me,62:Rn,63:$t,64:bs,65:qc,66:[0,.68333,0,0,.70834],67:cc,68:[0,.68333,0,0,.76389],69:PA,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:qc,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Us,76:Es,77:[0,.68333,0,0,.91667],78:qc,79:Us,80:PA,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:cc,85:qc,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:qc,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:ro,92:Hl,93:ro,94:Gs,95:[.31,.12056,.02778,0,.5],97:cs,98:gA,99:Eu,100:gA,101:Eu,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:gA,105:$o,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:cl,109:[0,.43056,0,0,.83334],110:ya,111:cs,112:Ba,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:ya,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:Eu,123:Hl,124:ro,125:Hl,126:[.35,.31786,0,0,.5],160:ur,163:[0,.69444,0,0,.76909],167:nc,168:Do,172:[0,.43056,0,0,.66667],176:Zo,177:rs,182:eA,184:ff,198:[0,.68333,0,0,.90278],215:rs,216:[.04861,.73194,0,0,.77778],223:Gs,230:[0,.43056,0,0,.72222],247:rs,248:[.09722,.52778,0,0,.5],305:bo,338:[0,.68333,0,0,1.01389],339:Af,567:[.19444,.43056,0,0,.30556],710:Gs,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Gs,715:Gs,728:Gs,729:$o,730:Zo,732:Do,733:Gs,915:Es,916:_d,920:Us,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:qc,931:cc,933:Us,934:cc,936:Us,937:cc,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:cl,8217:cl,8220:Gs,8221:Gs,8224:nc,8225:nc,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Ln,8465:Vc,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Vc,8501:Yo,8592:kn,8593:Xs,8594:kn,8595:Xs,8596:kn,8597:Hl,8598:vA,8599:vA,8600:vA,8601:vA,8614:[.011,.511,0,0,1],8617:wl,8618:wl,8636:kn,8637:kn,8640:kn,8641:kn,8652:[.011,.671,0,0,1],8656:kn,8657:eA,8658:kn,8659:eA,8660:kn,8661:[.25,.75,0,0,.61111],8704:gA,8706:[0,.69444,.05556,.08334,.5309],8707:gA,8709:rl,8711:_d,8712:nu,8715:nu,8722:rs,8723:rs,8725:Hl,8726:Hl,8727:No,8728:$A,8729:$A,8730:[.2,.8,0,0,.83334],8733:Af,8734:ui,8736:vi,8739:ro,8741:Hl,8743:Wc,8744:Wc,8745:Wc,8746:Wc,8747:[.19444,.69444,.11111,0,.41667],8764:Me,8768:[.19444,.69444,0,0,.27778],8771:Gu,8773:[-.022,.589,0,0,1],8776:Dc,8781:Gu,8784:[-.133,.67,0,0,.778],8801:Gu,8804:jr,8805:jr,8810:Id,8811:Id,8826:Rn,8827:Rn,8834:Rn,8835:Rn,8838:jr,8839:jr,8846:Wc,8849:jr,8850:jr,8851:Wc,8852:Wc,8853:rs,8854:rs,8855:rs,8856:rs,8857:rs,8866:Yo,8867:Yo,8868:bs,8869:bs,8872:[.249,.75,0,0,.867],8900:$A,8901:[-.05555,.44445,0,0,.27778],8902:No,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:qo,8969:qo,8970:qo,8971:qo,8994:bc,8995:bc,9136:jl,9137:jl,9651:Xu,9657:No,9661:Xu,9667:No,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:jl,10223:jl,10229:[.011,.511,0,0,1.609],10230:Fd,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:Fd,10815:qc,10927:jr,10928:jr,57376:Md},"Math-BoldItalic":{32:ur,48:VA,49:VA,50:VA,51:WA,52:WA,53:WA,54:ti,55:WA,56:ti,57:WA,65:un,66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:b0,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Fo,77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104: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:Bh,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:ur,915:[0,.68611,.15972,0,.65694],916:mo,920:[0,.68611,.03194,0,.86722],923:GA,926:[0,.68611,.07458,0,.84125],928:b0,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:iu,936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:Bh,960:[0,.44444,.03704,0,.68241],961:uf,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:uf,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:ur,48:cs,49:cs,50:cs,51:Ld,52:Ld,53:Ld,54:tl,55:Ld,56:tl,57:Ld,65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:Sh,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:zf,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:_u,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:ur,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:zf,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Sh,931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:_u,960:[0,.43056,.03588,0,.57003],961:df,962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:df,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:ur,33:[0,.69444,0,0,.36667],34:Zf,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:yc,40:xl,41:xl,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:Cl,49:Cl,50:Cl,51:Cl,52:Cl,53:Cl,54:Cl,55:Cl,56:Cl,57:Cl,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:y0,64:Nc,65:Nc,66:Nc,67:Iu,68:Oc,69:[0,.69444,0,0,.64167],70:Yo,71:Nc,72:Oc,73:[0,.69444,0,0,.33056],74:y0,75:Eh,76:Vo,77:[0,.69444,0,0,.97778],78:Oc,79:Oc,80:Iu,81:[.10556,.69444,0,0,.79445],82:Iu,83:Yo,84:Nc,85:Eh,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Nc,89:[0,.69444,.0275,0,.73334],90:Ju,91:Fu,93:Fu,94:Cl,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:kd,99:[0,.45833,0,0,.48889],100:kd,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:kd,105:$p,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:$p,109:[0,.45833,0,0,.86667],110:tA,111:[0,.45833,0,0,.55],112:au,113:au,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:tA,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:ur,168:Cl,176:Nc,180:Cl,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Cl,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Cl,729:yc,730:Nc,732:Cl,733:Cl,915:Vo,916:[0,.69444,0,0,.91667],920:$f,923:Ju,926:Nc,928:Oc,931:Oc,933:$f,934:Oc,936:$f,937:Oc,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:yc,8217:yc,8220:Zf,8221:Zf},"SansSerif-Italic":{32:ur,33:[0,.69444,.05733,0,.31945],34:C0,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:ed,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:ct,45:[0,.44444,.01946,0,.33333],46:Bt,47:[.25,.75,.13164,0,.5],48:Pc,49:Pc,50:Pc,51:Pc,52:Pc,53:Pc,54:Pc,55:Pc,56:Pc,57:Pc,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:zt,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:Yu,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:dr,77:[0,.69444,.08094,0,.875],78: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:ur,168:[0,.67937,.06385,0,.5],176:w0,184:ff,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:x0,715:Gs,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:w0,732:[0,.67659,.08826,0,.5],733:x0,915:[0,.69444,.13372,0,.54167],916:In,920:[0,.69444,.07555,0,.77778],923:Yo,926:[0,.69444,.12816,0,.66667],928:Yu,931:[0,.69444,.11983,0,.72222],933:zl,934:[0,.69444,.04603,0,.72222],936:zl,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:ed,8217:ed,8220:[0,.69444,.14205,0,.5],8221:C0},"SansSerif-Regular":{32:ur,33:[0,.69444,0,0,.31945],34:Gs,35:ue,36:rl,37:xe,38:[0,.69444,0,0,.75834],39:cl,40:mA,41:mA,42:Je,43:rs,44:ct,45:[0,.44444,0,0,.33333],46:Bt,47:Hl,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:$t,64:zt,65:zt,66:zt,67:Qn,68:[0,.69444,0,0,.72223],69:Qt,70:[0,.69444,0,0,.56945],71:zt,72:Ir,73:cl,74:$t,75:[0,.69444,0,0,.69445],76:dr,77:[0,.69444,0,0,.875],78:Ir,79:[0,.69444,0,0,.73611],80:Qn,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:Yo,91:mr,93:mr,94:Gs,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:tn,99:Vr,100:tn,101:Vr,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:tn,105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:wn,111:[0,.44444,0,0,.5],112:Yr,113:Yr,114:[0,.44444,.01389,0,.34167],115:On,116:[0,.57143,0,0,.36111],117:wn,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:ur,168:[0,.67937,0,0,.5],176:zt,184:ff,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Gs,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Gs,715:Gs,728:Gs,729:[0,.67937,0,0,.27778],730:zt,732:[0,.67659,0,0,.5],733:Gs,915:dr,916:In,920:bs,923:Yo,926:zt,928:Ir,931:Vc,933:bs,934:Vc,936:bs,937:Vc,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:cl,8217:cl,8220:Gs,8221:Gs},"Script-Regular":{32:ur,65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:ur},"Size1-Regular":{32:ur,40:Cn,41:Cn,47:zn,91:Ti,92:zn,93:Ti,123:ji,125:ji,160:ur,710:hi,732:hi,770:hi,771:hi,8214:[-99e-5,.601,0,0,.77778],8593:na,8595:na,8657:wa,8659:wa,8719:Jn,8720:Jn,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:ai,8748:mi,8749:mi,8750:ai,8896:Pn,8897:Pn,8898:Pn,8899:Pn,8968:oi,8969:oi,8970:oi,8971:oi,9168:Gc,10216:oi,10217:oi,10752:Vi,10753:Vi,10754:Vi,10756:Pn,10758:Pn},"Size2-Regular":{32:ur,40:Pa,41:Pa,47:ma,91:Wi,92:ma,93:Wi,123:Ia,125:Ia,160:ur,710:Ka,732:Ka,770:Ka,771:Ka,8719:es,8720:es,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:ys,8748:lo,8749:lo,8750:ys,8896:As,8897:As,8898:As,8899:As,8968:ga,8969:ga,8970:ga,8971:ga,10216:ol,10217:ol,10752:go,10753:go,10754:go,10756:As,10758:As},"Size3-Regular":{32:ur,40:ts,41:ts,47:ns,91:wc,92:ns,93:wc,123:si,125:si,160:ur,710:Gi,732:Gi,770:Gi,771:Gi,8730:[.95003,1.45,0,0,1],8968:zi,8969:zi,8970:zi,8971:zi,10216:si,10217:si},"Size4-Regular":{32:ur,40:Di,41:Di,47:yo,91:Ni,92:yo,93:Ni,123:Aa,125:Aa,160:ur,710:$a,732:$a,770:$a,771:$a,8730:[1.25003,1.75,0,0,1],8968:Wa,8969:Wa,8970:Wa,8971:Wa,9115:Fl,9116:nl,9117:Fl,9118:Fl,9119:nl,9120:Fl,9121:Rs,9122:Gc,9123:Rs,9124:Rs,9125:Gc,9126:Rs,9127:Tc,9128:Kn,9129:Ac,9130:[0,.3,0,0,.88889],9131:Tc,9132:Kn,9133:Ac,9143:[.88502,.915,0,0,1.05556],10216:Aa,10217:Aa,57344:Mu,57345:Mu,57680:co,57681:co,57682:co,57683:co},"Typewriter-Regular":{32:$l,33:dn,34:dn,35:dn,36:Mo,37:Mo,38:dn,39:dn,40:Mo,41:Mo,42:[0,.52083,0,0,.525],43:Al,44:[.13889,.125,0,0,.525],45:Al,46:[0,.125,0,0,.525],47:Mo,48:dn,49:dn,50:dn,51:dn,52:dn,53:dn,54:dn,55:dn,56:dn,57:dn,58:ia,59:[.13889,.43056,0,0,.525],60:us,61:[-.19549,.41562,0,0,.525],62:us,63:dn,64:dn,65:dn,66:dn,67:dn,68:dn,69:dn,70:dn,71:dn,72:dn,73:dn,74:dn,75:dn,76:dn,77:dn,78:dn,79:dn,80:dn,81:[.13889,.61111,0,0,.525],82:dn,83:dn,84:dn,85:dn,86:dn,87:dn,88:dn,89:dn,90:dn,91:Mo,92:Mo,93:Mo,94:dn,95:[.09514,0,0,0,.525],96:dn,97:ia,98:dn,99:ia,100:dn,101:ia,102:dn,103:Bl,104:dn,105:dn,106:[.22222,.61111,0,0,.525],107:dn,108:dn,109:ia,110:ia,111:ia,112:Bl,113:Bl,114:ia,115:ia,116:[0,.55358,0,0,.525],117:ia,118:ia,119:ia,120:ia,121:Bl,122:ia,123:Mo,124:Mo,125:Mo,126:dn,127:dn,160:$l,176:dn,184:[.19445,0,0,0,.525],305:ia,567:Bl,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:dn,715:dn,728:dn,730:dn,770:dn,771:dn,776:dn,915:dn,916:dn,920:dn,923:dn,926:dn,928:dn,931:dn,933:dn,934:dn,936:dn,937:dn,8216:dn,8217:dn,8242:dn,9251:[.11111,.21944,0,0,.525]}},xc=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Sl=10,ul=.25,ou=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:[ul,ul,ul],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},El=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],il=5,ks={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Cc(e,t){e===void 0&&(e=77);const r=Uc[t][e];if(r)return{defaultMetrics:!1,depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]};if(e===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const i=String.fromCodePoint(e);if(i in ks)e=ks[i].codePointAt(0);else if(xc.test(i))return e=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var 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]},TA={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 hf(e){if(TA[e]){const[X,ce,Pe]=TA[e],nt=`<span class="stretchy" style="height:${Pe}em"><svg width="100%" height="${Pe}em" viewBox="0 0 ${X} ${ce}" preserveAspectRatio="none" ><path fill="currentcolor" d="${xA[e]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Pe/2)/100}em;min-width:0">${nt}</span>`}const[t,r,i,s]=wA[e];let c,d;const k=i/1e3;t.length===3?(c=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],d=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(c=["slice-1-of-2","slice-2-of-2"],d=["xMinYMin","xMaxYMin"]):(c=["slice-1-of-1"],d=[s]);const j=t.map((X,ce)=>`<span class="${c[ce]}" style=height:${k}em><svg width=400em height=${k}em viewBox="0 0 400000 ${i}" preserveAspectRatio="${d[ce]} slice"><path fill="currentcolor" d="${xA[X]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${k}em;min-width:${r}em;">${j}</span>`}function Vf(e){return wA[e]?wA[e][2]/1e3:TA[e][2]}function ao(e){const t=[];for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===13&&e.charCodeAt(r+1)===10&&(i=10,r++),(i===13||i===12)&&(i=10),i===0&&(i=65533),i>=55296&&i<=56319){const s=e.charCodeAt(r+1);if(s>=56320&&s<=57343){const c=i-55296,d=s-56320;i=Ch(2,16)+c*Ch(2,10)+d,r++}}t.push(i)}return t}var Wo=8205,Zl=[[Wo,1],[65038,2],[127995,5],[129456,4],[917536,96]],ds,Ll=[127462,127487];function Vl(e){var t;if(ds===void 0){ds={};for(const r of Zl)for(let i=r[0];i<=r[0]+r[1]-1;i++)ds[i]=!0}return(t=ds[e])!=null?t:!1}function Js(e){return e>=Ll[0]&&e<=Ll[1]}function CA(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],r=ao(e);let i=0;for(;i<r.length;){const s=r[i++],c=r[i];if(c===Wo){const d=i-1;for(i+=2;r[i]===Wo;)i+=2;t.push(String.fromCodePoint(...r.slice(d,i-d+1)))}else if(Vl(c)){const d=i-1;for(;Vl(r[i]);)i+=r[i]===Wo?2:1;t.push(String.fromCodePoint(...r.slice(d,2*i-d-1)))}else Js(s)?(i+=1,t.push(String.fromCodePoint(...r.slice(i-2,2)))):t.push(String.fromCodePoint(s))}return t}var pf=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 mf(e,t){var r,i,s,c;const d=[];let k=e.next();if(k&&k!=="\\relax"){if(k==="\\noexpand")k=e.next(),k&&d.push(k);else if(k==="\\obeyspaces")e.obeyspaces=!0;else if(k==="\\bgroup")d.push("<{>");else if(k==="\\egroup")d.push("<}>");else if(k==="\\string"){if(k=e.next(),k)if(k.startsWith("\\"))for(const j of k)d.push(j==="\\"?"\\backslash":j);else k==="<{>"?d.push("\\{"):k==="<space>"?d.push("~"):k==="<}>"&&d.push("\\}")}else if(k==="\\csname"){for(;e.peek()==="<space>";)e.next();let j="",X=!1,ce=[];do{if(ce.length===0)if(/^#[\d?@]$/.test(e.peek())){const Pe=e.get().slice(1);ce=td((i=(r=t==null?void 0:t(Pe))!=null?r:t==null?void 0:t("?"))!=null?i:"\\placeholder{}",t),k=ce[0]}else k=e.next(),ce=k?[k]:[];X=ce.length===0,!X&&k==="\\endcsname"&&(X=!0,ce.shift()),X||(X=k==="<$>"||k==="<$$>"||k==="<{>"||k==="<}>"||typeof k=="string"&&k.length>1&&k.startsWith("\\")),X||(j+=ce.shift())}while(!X);j&&d.push("\\"+j),d.push(...ce)}else if(k!=="\\endcsname")if(k.length>1&&k.startsWith("#")){const j=k.slice(1);d.push(...td((c=(s=t==null?void 0:t(j))!=null?s:t==null?void 0:t("?"))!=null?c:"\\placeholder{}",t))}else d.push(k)}return d}function td(e,t=null){const r=[];let i="";for(const d of e.toString().split(/\r?\n/)){i&&r.push(i),i=" ";const k=d.match(/((?:\\%)|[^%])*/);k!==null&&r.push(k[0])}const s=new pf(ze(r.join(""))),c=[];do c.push(...mf(s,t));while(!s.end());return c}function Ao(e){let t="";const r=[];for(const i of e)i&&(t&&/^[a-zA-Z\*]/.test(i)&&r.push(t),r.push(i),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(i)&&r.push(" "),t=/\\[a-zA-Z]+\*?$/.test(i)?" ":"");return r.join("")}function _s(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:Ao([e,...t.map(r=>`{${r}}`)])}function BA(e){return Ao(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var SA=class gg{constructor(t){gg._registry[t]=this}static createAtom(t,r,i){return gg._registry[t].createAtom(r,lt(r,t),i)}static serialize(t,r){var i;if(!t||t.length===0)return"";if((i=r.skipStyles)!=null&&i){const s=[];for(const c of Wf(t)){const d=gg._registry[c[0].mode];s.push(...d.serialize(c,r))}return Ao(s)}return Ao(rd(t,r))}static getFont(t,r,i){return gg._registry[t].getFont(r,i)}};SA._registry={};var Wl=SA;function Wf(e){const t=[];let r=[],i="NONE";for(const s of e)s.type!=="first"&&(s.mode!==i?(r.length>0&&t.push(r),r=[s],i=s.mode):r.push(s));return r.length>0&&t.push(r),t}function UA(e,t){const r=[];let i=[],s;for(const c of e)if(c.type!=="first"&&c.style){let d;t==="variant"?(d=c.style.variant,c.style.variantStyle&&c.style.variantStyle!=="up"&&(d+="-"+c.style.variantStyle)):d=c.style[t],d===s?i.push(c):(i.length>0&&r.push(i),i=[c],s=d)}return i.length>0&&r.push(i),r}function Gf(e,t){var r;const{parent:i}=e[0],s=i==null?void 0:i.computedStyle.color,c=[];for(const d of Wf(e)){const k=t.defaultMode;for(const j of UA(d,"color")){const X=j[0].computedStyle,ce=Wl._registry[j[0].mode].serialize(j,F(g({},t),{defaultMode:k==="text"?"text":"math"}));!t.skipStyles&&X.color&&X.color!=="none"&&(!i||s!==X.color)?c.push(_s("\\textcolor",(r=X.verbatimColor)!=null?r:X.color,Ao(ce))):c.push(Ao(ce))}}return c}function Xf(e,t){const{parent:r}=e[0],i=r==null?void 0:r.computedStyle.backgroundColor;return UA(e,"backgroundColor").map(s=>{var c;if(s.length>0||s[0].type!=="box"){const d=s[0].computedStyle;if(d.backgroundColor&&d.backgroundColor!=="none"&&(!r||i!==d.backgroundColor))return _s("\\colorbox",(c=d.verbatimBackgroundColor)!=null?c:d.backgroundColor,Ao(Gf(s,F(g({},t),{defaultMode:"text"}))))}return Ao(Gf(s,t))})}function rd(e,t){if(e.length===0)return[];const{parent:r}=e[0],i=r==null?void 0:r.computedStyle.fontSize,s=[];for(const c of UA(e,"fontSize")){const d=c[0].computedStyle.fontSize,k=Xf(c,t);k&&(d&&d!=="auto"&&(!r||i!==d)?s.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][d],...k):s.push(...k))}return s}function Dd(e){return e?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[e]:void 0}function Nd(e){if(e.length===0)return"ord";const t=Dd(e[0].type),r=Dd(e[e.length-1].type);return t&&t===r?t:"ord"}function nd(e,t){if(typeof e=="string")return e;if(typeof e=="number"){console.assert(Number.isFinite(e));const r=Math.ceil(100*e)/100;return r===0?"0":r.toString()+(t!=null?t:"")}return""}var zr=class N1{constructor(t,r){var i,s,c,d,k;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:_(t)?this.children=t.filter(X=>X!==null):t&&t instanceof N1&&(this.children=[t]),this.children)for(const X of this.children)X.parent=this;this.type=(i=r==null?void 0:r.type)!=null?i:"ignore",this.isSelected=(r==null?void 0:r.isSelected)===!0,r!=null&&r.caret&&(this.caret=r.caret),this.classes=(s=r==null?void 0:r.classes)!=null?s:"",this.isTight=(c=r==null?void 0:r.isTight)!=null?c:!1,r!=null&&r.attributes&&(this.attributes=r.attributes);let j=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&(j=(k=Wl.getFont((d=r.mode)!=null?d:"math",this,F(g({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?k:void 0),j||(j="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(r==null?void 0:r.maxFontSize)!==void 0&&(this.maxFontSize=r.maxFontSize),_h(this,j)}set atomID(t){t===void 0||t.length===0||(this.id=t)}selected(t){if(this.isSelected!==t&&(this.isSelected=t,this.children))for(const r of this.children)r.selected(t)}setStyle(t,r,i){if(r===void 0)return;const s=nd(r,i);s.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[t]=s)}setTop(t){Number.isFinite(t)&&Math.abs(t)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=nd(t,"em"),this.height-=t,this.depth+=t)}get left(){var t;return(t=this.cssProperties)!=null&&t["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=nd(t,"em")))}set right(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=nd(t,"em")))}set bottom(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=nd(t,"em")))}get width(){return this._width*this.scale}set width(t){this._width=t,this.hasExplicitWidth=!0}set softWidth(t){}get height(){return this._height*this.scale}set height(t){this._height=t}get depth(){return this._depth*this.scale}set depth(t){this._depth=t}wrap(t){const r=t.parent;if(!r)return this;t.isPhantom&&this.setStyle("opacity",0);const i=t.color;i&&i!==r.color&&this.setStyle("color",i);let s=t.backgroundColor;this.isSelected&&(s=be(s)),s&&s!==r.backgroundColor&&(this.setStyle("background-color",s),this.setStyle("display","inline-block"));const c=t.scalingFactor;return this.scale=c,this.skew*=c,this.italic*=c,this}toMarkup(){var t,r,i,s;let c=(t=this.value)!=null?t:"";if(this.children)for(const vt of this.children)c+=vt.toMarkup();let d="";if(this.svgBody)d=hf(this.svgBody);else if(this.svgOverlay){d='<span style="',d+="display: inline-block;",d+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,d+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,d+='">',d+=c,d+="</span>",d+='<svg style="position:absolute;overflow:visible;',d+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const vt=(r=this.cssProperties)==null?void 0:r.padding;vt?(d+=`top:${vt};`,d+=`left:${vt};`,d+=`width:calc(100% - 2 * ${vt} );`):d+="top:0;left:0;width:100%;",d+="z-index:2;",d+='"',this.svgStyle&&(d+=this.svgStyle),d+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,d+=`>${this.svgOverlay}</svg>`}let k="";const j=this.classes.split(" ");j.push((i={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?i:""),this.caret==="latex"&&j.push("ML__latex-caret"),this.isSelected&&j.push("ML__selected");const X=j.length===1?j[0]:j.filter((vt,Et,Br)=>vt.length>0&&Br.indexOf(vt)===Et).join(" ");if(X.length>0&&(k+=` class="${X}"`),this.id&&(k+=` data-atom-id=${this.id}`),this.cssId&&(k+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(k+=" "+Object.keys(this.attributes).map(vt=>`${vt}="${this.attributes[vt]}"`).join(" ")),this.htmlData){const vt=this.htmlData.split(",");for(const Et of vt){const Br=Et.match(/([^=]+)=(.+$)/);if(Br){const En=Br[1].trim().replace(/ /g,"-");En&&(k+=` data-${En}="${Br[2]}" `)}else{const En=Et.trim().replace(/ /g,"-");En&&(k+=` data-${En} `)}}}const ce=(s=this.cssProperties)!=null?s:{};this.hasExplicitWidth&&ce.width===void 0&&(ce.width=`${Math.ceil(this._width*100)/100}em`);const Pe=Object.keys(ce).map(vt=>`${vt}:${ce[vt]}`);if(this.scale!==void 0&&this.scale!==1&&(c.length>0||d.length>0)&&Pe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const vt=this.htmlStyle.split(";");let Et="";for(const Br of vt){const En=Br.match(/([^=]+):(.+$)/);if(En){const wr=En[1].trim().replace(/ /g,"-");wr&&(Et+=`${wr}:${En[2]};`)}}Et&&(k+=` style="${Et}"`)}Pe.length>0&&(k+=` style="${Pe.join(";")}"`);let nt="";return k.length>0||d.length>0?nt=`<span${k}>${c}${d}</span>`:nt=c,this.caret==="text"?nt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(nt+='<span class="ML__caret"></span>'),nt}tryCoalesceWith(t){if(this.svgBody||!this.value||t.svgBody||!t.value)return!1;const r=this.children&&this.children.length>0,i=t.children&&t.children.length>0;if(r||i)return!1;if(t.cssProperties||this.cssProperties){for(const j of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&j in t.cssProperties||this.cssProperties&&j in this.cssProperties)return!1}const s=this.cssProperties?Object.keys(this.cssProperties).length:0,c=t.cssProperties?Object.keys(t.cssProperties).length:0;if(s!==c)return!1;if(s>0){for(const j of Object.keys(this.cssProperties))if(this.cssProperties[j]!==t.cssProperties[j])return!1}const d=this.classes.trim().replace(/\s+/g," ").split(" "),k=t.classes.trim().replace(/\s+/g," ").split(" ");if(d.length!==k.length)return!1;d.sort(),k.sort();for(const[j,X]of d.entries())if(X==="vertical-separator"||X!==k[j])return!1;return this.value+=t.value,this.height=Math.max(this.height,t.height),this.depth=Math.max(this.depth,t.depth),this._width=this._width+t._width,this.maxFontSize=Math.max(this.maxFontSize,t.maxFontSize),this.italic=t.italic,!0}};function Od(e){if(!e||e.length===0)return[];e[0].children=Od(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=Od(e[r].children),t.push(e[r]));return t}function gf(e){return e.children&&(e.children=Od(e.children)),e}function Jf(e,t){if(!e)return new zr(null,t);const r=new zr(null,{classes:"ML__strut",type:"ignore"});r.setStyle("height",Math.max(0,e.height),"em");const i=[r];if(e.depth!==0){const s=new zr(null,{classes:"ML__strut--bottom",type:"ignore"});s.setStyle("height",e.height+e.depth,"em"),s.setStyle("vertical-align",-e.depth,"em"),i.push(s)}return i.push(e),new zr(i,F(g({},t),{type:"lift"}))}function vf(e){const t=Vf(e)/2,r=new zr(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function _h(e,t){var r;if(e.type==="latex"){e.height=.9,e.depth=.2,e._width=1;return}if(e.value){e.height=-1/0,e.depth=-1/0,e._width=0,e.skew=-1/0,e.italic=-1/0;for(let i=0;i<e.value.length;i++){const s=Cc(e.value.codePointAt(i),t);e.height=Math.max(e.height,s.height),e.depth=Math.max(e.depth,s.depth),e._width+=s.width,e.skew=s.skew,e.italic=s.italic}return}if(e.children&&e.children.length>0){let i=-1/0,s=-1/0,c=0;for(const d of e.children)d.height>i&&(i=d.height),d.depth>s&&(s=d.depth),c=Math.max(c,(r=d.maxFontSize)!=null?r:0);e.height=i,e.depth=s,e._width=e.children.reduce((d,k)=>d+k.width,0),e.maxFontSize=c}}function Ih(e){if("individualShift"in e){const t=e.individualShift;let r=t[0];const i=[r],s=-r.shift-r.box.depth;let c=s;for(let d=1;d<t.length;d++){const k=t[d],j=-k.shift-c-k.box.depth,X=j-(r.box.height+r.box.depth);c=c+j,i.push(X),i.push(k),r=k}return[i,s]}if("top"in e){let t=e.top;for(const r of e.children)t-=typeof r=="number"?r:r.box.height+r.box.depth;return[e.children,t]}else{if("bottom"in e)return[e.children,-e.bottom];if("firstBaseline"in e){const t=e.firstBaseline[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.firstBaseline,-t.box.depth]}else if("shift"in e){const t=e.children[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.children,-t.box.depth-e.shift]}}return[null,0]}function Yf(e){var t;const[r,i]=Ih(e);if(!r)return[[],0,0];const s=new zr(null,{classes:"pstrut"});let c=0;for(const Et of r)if(typeof Et!="number"){const Br=Et.box;c=Math.max(c,Br.maxFontSize,Br.height)}c+=2,s.height=c,s.setStyle("height",c,"em");const d=[];let k=i,j=i,X=i,ce=0;for(const Et of r){if(typeof Et=="number")X+=Et;else{const Br=Et.box,En=(t=Et.classes)!=null?t:[],wr=new zr([s,Br],{classes:En.join(" "),style:Et.style});Br.setStyle("height",Br.height+Br.depth,"em"),Br.setStyle("display","inline-block"),wr.setStyle("top",-c-X-Br.depth,"em"),Et.marginLeft&&wr.setStyle("margin-left",Et.marginLeft,"em"),Et.marginRight&&wr.setStyle("margin-right",Et.marginRight,"em"),d.push(wr),X+=Br.height+Br.depth,ce=Math.max(ce,wr.width)}k=Math.min(k,X),j=Math.max(j,X)}d.forEach(Et=>{Et.softWidth=ce});const Pe=new zr(d,{classes:"vlist"});if(Pe.softWidth=ce,Pe.height=j,Pe.setStyle("height",j,"em"),k>=0)return[[new zr(Pe,{classes:"vlist-r"})],j,-k];const nt=new zr(new zr(null),{classes:"vlist"});nt.height=-k,nt.setStyle("height",-k,"em");const vt=new zr(8203,{classes:"vlist-s",maxFontSize:0});return vt.softWidth=0,vt.height=0,vt.depth=0,[[new zr([Pe,vt],{classes:"vlist-r"}),new zr(nt,{classes:"vlist-r"})],j,-k]}var bl=class extends zr{constructor(e,t){var r;const[i,s,c]=Yf(e);super(i.length===1?i[0]:i,{type:t==null?void 0:t.type,classes:((r=t==null?void 0:t.classes)!=null?r:"")+" vlist-t"+(i.length===2?" vlist-t2":"")}),this.height=s,this.depth=c,this.softWidth=i.reduce((d,k)=>Math.max(d,k.width),0)}};function Lu(e,t){var r,i,s,c,d;const k=e.metrics,j=new zr(t.base),X=(r=t.baseShift)!=null?r:0,ce=(i=t.slant)!=null?i:0;let Pe=0,nt=0;t.above&&(Pe=(s=t.aboveShift)!=null?s:Math.max(k.bigOpSpacing1,k.bigOpSpacing3-t.above.depth)),t.below&&(nt=(c=t.belowShift)!=null?c:Math.max(k.bigOpSpacing2,k.bigOpSpacing4-t.below.height));let vt=null;if(t.below&&t.above){const Et=k.bigOpSpacing5+t.below.height+t.below.depth+nt+j.depth+X;vt=new bl({bottom:Et,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},nt,{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ce,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)vt=new bl({top:j.height-X,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},nt,{box:j,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const Et=j.depth+X;vt=new bl({bottom:Et,children:[{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ce,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else{const Et=j.depth+X;vt=new bl({bottom:Et,children:[{box:j},k.bigOpSpacing5]}).wrap(e)}return new zr(vt,{type:(d=t.type)!=null?d:"op"})}var bf=7,id=6,yf=5,RA=4,su=3,fs=2,Rc=1,Gl=0,ku=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)=>F(g({},s),{[c]:Qs[c][i]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return wo[[Gl,Rc,Gl,Rc,fs,su,fs,su][this.id]]}get sub(){return wo[[Gl,Gl,Gl,Gl,fs,fs,fs,fs][this.id]]}get fracNum(){return wo[[Gl,Rc,Gl,Rc,fs,su,RA,yf][this.id]]}get fracDen(){return wo[[Gl,Gl,Gl,Gl,fs,fs,RA,RA][this.id]]}get cramp(){return wo[[Gl,Gl,fs,fs,RA,RA,id,id][this.id]]}get isTight(){return this.sizeDelta<0}},uo={7:new ku(bf,0,!1),6:new ku(id,0,!0),5:new ku(yf,0,!1),4:new ku(RA,0,!0),3:new ku(su,-3,!1),2:new ku(fs,-3,!0),1:new ku(Rc,-4,!1),0:new ku(Gl,-4,!0)},wo=F(g({},uo),{displaystyle:uo[bf],textstyle:uo[yf],scriptstyle:uo[su],scriptscriptstyle:uo[Rc]});function rA(e,t){var r;if(!e)return 0;const i={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:Sl,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(r=e.unit)!=null?r:"pt"];if(Number.isFinite(t)){const s=Ch(10,t);return Math.round(e.dimension/Sl*i*s)/s}return e.dimension*i}function lu(e,t){if(e===null)return 0;const r=rA(e)/Sl;if(Number.isFinite(t)){const i=Ch(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 B0(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=B0(e)),"number"in e)if(!("base"in e)||e.base==="decimal")i=Number(e.number).toString();else if(e.base==="alpha")i=`\`${String.fromCodePoint(e.number)}`;else{const s=Math.round(e.number)>>>0;e.base==="hexadecimal"?(i=Number(s).toString(16).toUpperCase(),s<=255?i=i.padStart(2,"0"):s<=65535?i=i.padStart(4,"0"):s<=16777215?i=i.padStart(6,"0"):i=i.padStart(8,"0"),i=`"${i}`):e.base==="octal"&&(i=Number(s).toString(8),s<=63?i=i.padStart(2,"0"):s<=30583?i=i.padStart(4,"0"):i=i.padStart(8,"0"),i=`'${i}`)}return"register"in e&&("factor"in e&&(e.factor===-1?i="-":e.factor!==1&&(i=Number(e.factor).toString())),"global"in e&&e.global&&(i+="\\global"),i+=`\\${e.register}`),"string"in e&&(i=e.string),(r=e.relax)!=null&&r&&(i+="\\relax"),i}function EA(e,t){return e==null?null:"number"in e?F(g({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?F(g({},e),{factor:e.factor*t}):F(g({},e),{factor:t}):"dimension"in e?F(g({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue: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 Fh={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function qf(){return g({},Fh)}function S0(){return{registers:qf(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ne.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ue,backgroundColorMap:ee,getMacro:e=>Ut(e,tt())}}var So=class O1{constructor(t,r){var i,s,c,d,k,j,X,ce,Pe,nt,vt,Et,Br,En,wr;let nn;t!=null&&t.parent?(this.parent=t.parent,nn=t.parent,this.registers={}):(nn=g(g({},S0()),(i=t==null?void 0:t.from)!=null?i:{}),this.registers=nn.registers),nn.atomIdsSettings&&(this.atomIdsSettings=g({},nn.atomIdsSettings)),this.renderPlaceholder=nn.renderPlaceholder,this.isPhantom=(d=(c=t==null?void 0:t.isPhantom)!=null?c:(s=this.parent)==null?void 0:s.isPhantom)!=null?d:!1,this.letterShapeStyle=nn.letterShapeStyle,this.minFontScale=nn.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=(j=(k=this.parent)==null?void 0:k.color)!=null?j:"",r!=null&&r.backgroundColor&&r.backgroundColor!=="none"?this.backgroundColor=r.backgroundColor:this.backgroundColor=(ce=(X=this.parent)==null?void 0:X.backgroundColor)!=null?ce:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Pe=this.parent)==null?void 0:Pe.size)?this.size=r.fontSize:this.size=(vt=(nt=this.parent)==null?void 0:nt.size)!=null?vt:il;let Fn=(Br=(Et=this.parent)==null?void 0:Et.mathstyle)!=null?Br:wo.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(nn instanceof O1)switch(t.mathstyle){case"cramp":Fn=Fn.cramp;break;case"superscript":Fn=Fn.sup;break;case"subscript":Fn=Fn.sub;break;case"numerator":Fn=Fn.fracNum;break;case"denominator":Fn=Fn.fracDen;break}switch(t.mathstyle){case"textstyle":Fn=wo.textstyle;break;case"displaystyle":Fn=wo.displaystyle;break;case"scriptstyle":Fn=wo.scriptstyle;break;case"scriptscriptstyle":Fn=wo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Fn,this.smartFence=nn.smartFence,this.placeholderSymbol=nn.placeholderSymbol,this.colorMap=(En=nn.colorMap)!=null?En:cn=>cn,this.backgroundColorMap=(wr=nn.backgroundColorMap)!=null?wr:cn=>cn,this.getMacro=nn.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const t=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,t}scale(t){return t*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===bf||this.mathstyle.id===id}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(El[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(t){var r;if((r=this.registers)!=null&&r[t])return this.registers[t];if(this.parent)return this.parent.getRegister(t)}getRegisterAsNumber(t){const r=this.getRegister(t);if(typeof r=="number")return r;if(typeof r=="string")return Number(r)}getRegisterAsGlue(t){var r;if((r=this.registers)!=null&&r[t]){const i=this.registers[t];return typeof i=="object"&&"glue"in i?i:typeof i=="object"&&"dimension"in i?{glue:{dimension:i.dimension}}:typeof i=="number"?{glue:{dimension:i}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(t)}getRegisterAsEm(t,r){return lu(this.getRegisterAsDimension(t),r)}getRegisterAsDimension(t){var r;if((r=this.registers)!=null&&r[t]){const i=this.registers[t];return typeof i=="object"&&"glue"in i?i.glue:typeof i=="object"&&"dimension"in i?i:typeof i=="number"?{dimension:i}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(t)}setRegister(t,r){if(r===void 0){delete this.registers[t];return}this.registers[t]=r}evaluate(t){if(!t||!("register"in t))return t;let r=this;if("global"in t&&t.global)for(;r.parent;)r=r.parent;let i=1;"factor"in t&&t.factor!==1&&t.factor!==void 0&&(i=t.factor);const s=r.getRegister(t.register);if(s===void 0)return;if(typeof s=="string")return{string:Number(s).toString()+s};if(typeof s=="number")return{number:i*s};const c=r.evaluate(s);if(c!==void 0)return"string"in c?{string:Number(s).toString()+c.string}:"number"in c?{number:i*c.number}:"dimension"in c?F(g({},c),{dimension:i*c.dimension}):"glue"in c?F(g({},c),{glue:F(g({},c.glue),{dimension:i*c.glue.dimension}),shrink:c.shrink?F(g({},c.shrink),{dimension:i*c.shrink.dimension}):void 0,grow:c.grow?F(g({},c.grow),{dimension:i*c.grow.dimension}):void 0}):t}toDimension(t){const r=this.evaluate(t);return r===void 0?null:"dimension"in r?r:"glue"in r?r.glue:"number"in r?{dimension:r.number}:null}toEm(t,r){if(t===null)return 0;const i=this.toDimension(t);return i===null?0:rA(i,r)/Sl}toNumber(t){if(t===null)return null;const r=this.evaluate(t);return r===void 0?null:"number"in r?r.number:"dimension"in r?r.dimension:"glue"in r?r.glue.dimension:"string"in r?Number(r.string):null}toColor(t){var r,i;if(t===null)return null;const s=this.evaluate(t);return s===void 0?null:"string"in s?(i=(r=this.colorMap)==null?void 0:r.call(this,s.string))!=null?i:s.string:null}toBackgroundColor(t){var r,i;if(t===null)return null;const s=this.evaluate(t);return s===void 0?null:"string"in s?(i=(r=this.backgroundColorMap)==null?void 0:r.call(this,s.string))!=null?i:s.string:null}},wf=["body","above","below","superscript","subscript"];function Pd(e){return typeof e=="string"&&wf.includes(e)}function eh(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var Ur=class g0{constructor(t){var r,i,s,c,d,k;this.type=t.type,typeof t.value=="string"&&(this.value=t.value),this.command=(i=(r=t.command)!=null?r:this.value)!=null?i:"",this.mode=(s=t.mode)!=null?s:"math",t.isFunction&&(this.isFunction=!0),t.limits&&(this.subsupPlacement=t.limits),this.style=g({},t.style),this.displayContainsHighlight=(c=t.displayContainsHighlight)!=null?c:!1,this.captureSelection=(d=t.captureSelection)!=null?d:!1,this.skipBoundary=(k=t.skipBoundary)!=null?k:!1,t.verbatimLatex!==void 0&&t.verbatimLatex!==null&&(this.verbatimLatex=t.verbatimLatex),t.args&&(this.args=t.args),t.body&&(this.body=t.body),this._changeCounter=0}static createBox(t,r,i){var s;if(!r)return null;const c=Dm(r),d=[];for(const j of c){const X=j[0].style,ce=Nm(t,j,{style:{color:X.color,backgroundColor:X.backgroundColor,fontSize:X.fontSize}});ce&&d.push(ce)}if(d.length===0)return null;const k=((s=i==null?void 0:i.classes)!=null?s:"").trim();return d.length===1&&!k&&!(i!=null&&i.type)?d[0].wrap(t):new zr(d,{classes:k,type:i==null?void 0:i.type}).wrap(t)}static serialize(t,r){return Wl.serialize(t,r)}static commonAncestor(t,r){if(t===r||t.parent===r.parent)return t.parent;const i=new WeakSet;let{parent:s}=t;for(;s;)i.add(s),s=s.parent;for(s=r.parent;s;){if(i.has(s))return s;s=s.parent}console.assert(!!s)}static fromJson(t){return typeof t=="string"?new g0({type:"mord",value:t,mode:"math"}):new g0(t)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const t={};if(this.type&&(t.type=this.type),this.mode!=="math"&&(t.mode=this.mode),this.command&&this.command!==this.value&&(t.command=this.command),this.value!==void 0&&(t.value=this.value),this.style&&Object.keys(this.style).length>0&&(t.style=g({},this.style)),this.verbatimLatex!==void 0&&(t.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(t.explicitSubsupPlacement=!0),this.isFunction&&(t.isFunction=!0),this.displayContainsHighlight&&(t.displayContainsHighlight=!0),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.skipBoundary&&(t.skipBoundary=!0),this.captureSelection&&(t.captureSelection=!0),this.args&&(t.args=_0(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(i=>i.type!=="first").map(i=>i.toJson()));return t.type==="mord"&&Object.keys(t).length===2&&"value"in t?t.value:t}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(t){if(t){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:r}=this;for(;r;)r.parent||r._changeCounter++,"verbatimLatex"in r&&(r.verbatimLatex=void 0),r._children=void 0,r=r.parent}}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=lt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?Ao([_s(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?Ao([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Wl.serialize(this.body,F(g({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return Wl.serialize(this.above,t)}belowToLatex(t){return Wl.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=F(g({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const i=Wl.serialize(this.subscript,t);i.length===0?r+="_{}":i.length===1?/^[0-9]$/.test(i)?r+=`_${i}`:r+=`_{${i}}`:r+=`_{${i}}`}if(this.branch("superscript")!==void 0){const i=Wl.serialize(this.superscript,t);i.length===0?r+="^{}":i.length===1?i==="\u2032"?r+="^\\prime ":i==="\u2033"?r+="^\\doubleprime ":/^[0-9]$/.test(i)?r+=`^${i}`:r+=`^{${i}}`:r+=`^{${i}}`}return r}get treeDepth(){let t=1,r=this.parent;for(;r;)r=r.parent,t+=1;return t}get inCaptureSelection(){let t=this;for(;t;){if(t.captureSelection)return!0;t=t.parent}return!1}get parentPrompt(){let t=this.parent;for(;t;){if(t.type==="prompt"&&!t.captureSelection)return t;t=t.parent}return null}branch(t){if(Pd(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of wf)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(Pd(t)),Pd(t)?(this._branches?this._branches[t]||(this._branches[t]=[this.makeFirstAtom(t)]):this._branches={[t]:[this.makeFirstAtom(t)]},this.isDirty=!0,this._branches[t]):[]}get row(){return eh(this.parentBranch)?this.parentBranch[0]:-1}get col(){return eh(this.parentBranch)?this.parentBranch[1]:-1}get body(){var t;return(t=this._branches)==null?void 0:t.body}set body(t){this.setChildren(t,"body")}get superscript(){var t;return(t=this._branches)==null?void 0:t.superscript}set superscript(t){this.setChildren(t,"superscript")}get subscript(){var t;return(t=this._branches)==null?void 0:t.subscript}set subscript(t){this.setChildren(t,"subscript")}get above(){var t;return(t=this._branches)==null?void 0:t.above}set above(t){this.setChildren(t,"above")}get below(){var t;return(t=this._branches)==null?void 0:t.below}set below(t){this.setChildren(t,"below")}get computedStyle(){var t,r;const i=typeof this.style.verbatimColor=="string",s=typeof this.style.verbatimBackgroundColor=="string",c=g(g({},(r=(t=this.parent)==null?void 0:t.computedStyle)!=null?r:{}),this.style);return delete c.variant,delete c.variantStyle,s||delete c.verbatimBackgroundColor,i||delete c.verbatimColor,c}applyStyle(t){this.isDirty=!0,this.style=g(g({},this.style),t),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const r of this.children)r.applyStyle(t)}getInitialBaseElement(){var t,r,i;return this.hasEmptyBranch("body")?this:(console.assert(((t=this.body)==null?void 0:t[0].type)==="first"),(i=(r=this.body[1])==null?void 0:r.getInitialBaseElement())!=null?i:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(t){const r=this.branch(t);return r?(console.assert(r.length>0),console.assert(r[0].type==="first"),r.length===1):!0}setChildren(t,r){var i;if(!t||(console.assert(Pd(r)),!Pd(r)))return;console.assert(((i=t[0])==null?void 0:i.type)!=="first");const s=[this.makeFirstAtom(r),...t];this._branches?this._branches[r]=s:this._branches={[r]:s};for(const c of t)c.parent=this,c.parentBranch=r;this.isDirty=!0}makeFirstAtom(t){const r=new g0({type:"first",mode:this.mode});return r.parent=this,r.parentBranch=t,r}addChild(t,r){console.assert(t.type!=="first"),this.createBranch(r).push(t),this.isDirty=!0,t.parent=this,t.parentBranch=r}addChildBefore(t,r){console.assert(r.parentBranch!==void 0);const i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r),0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildAfter(t,r){console.assert(r.parentBranch!==void 0);const i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r)+1,0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildren(t,r){const i=this.createBranch(r);for(const s of t)s.parent=this,s.parentBranch=r,i.push(s);this.isDirty=!0}addChildrenAfter(t,r){console.assert(t.length===0||t[0].type!=="first"),console.assert(r.parentBranch!==void 0);const i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r)+1,0,...t),this.isDirty=!0;for(const s of t)s.parent=this,s.parentBranch=r.parentBranch;return t[t.length-1]}removeBranch(t){const r=this.branch(t);if(Pd(t)&&(this._branches[t]=void 0),!r)return[];for(const i of r)i.parent=void 0,i.parentBranch=void 0;return console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}removeChild(t){if(console.assert(t.parent===this),t.type==="first")return;const r=this.branch(t.parentBranch),i=r.indexOf(t);console.assert(i>=0),r.splice(i,1),this.isDirty=!0,t.parent=void 0,t.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:t}=this;return t[t.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:t}=this;return t[t.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const t=[];for(const r of wf)if(this._branches[r])for(const i of this._branches[r])t.push(...i.children),t.push(i);return this._children=t,t}render(t){if(this.type==="first"&&!t.atomIdsSettings)return null;const r=lt(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const i=new So({parent:t},this.style);let s=this.createBox(i,{classes:this.parent?"":"ML__base"});return s?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(s=this.attachSupsub(i,{base:s})),s.wrap(i)):null}attachSupsub(t,r){var i;const s=r.base,c=this.superscript,d=this.subscript;if(!c&&!d)return s;let k=null,j=null;const X=(i=r.isCharacterBox)!=null?i:this.isCharacterBox();let ce=0;if(c){const Br=new So({parent:t,mathstyle:"superscript"});k=g0.createBox(Br,c),X||(ce=s.height-t.metrics.supDrop*Br.scalingFactor)}let Pe=0;if(d){const Br=new So({parent:t,mathstyle:"subscript"});j=g0.createBox(Br,d),X||(Pe=s.depth+t.metrics.subDrop*Br.scalingFactor)}let nt;t.isDisplayStyle?nt=t.metrics.sup1:t.isCramped?nt=t.metrics.sup3:nt=t.metrics.sup2;const vt=.5/Sl/t.scalingFactor;let Et=null;if(j&&k){ce=Math.max(ce,nt,k.depth+.25*t.metrics.xHeight),Pe=Math.max(Pe,t.metrics.sub2);const Br=t.metrics.defaultRuleThickness;if(ce-k.depth-(j.height-Pe)<4*Br){Pe=4*Br-(ce-k.depth)+j.height;const wr=.8*t.metrics.xHeight-(ce-k.depth);wr>0&&(ce+=wr,Pe-=wr)}const En=this.isExtensibleSymbol&&s.italic?-s.italic:0;Et=new bl({individualShift:[{box:j,shift:Pe,marginLeft:En},{box:k,shift:-ce}]}).wrap(t)}else j&&!k?(Pe=Math.max(Pe,t.metrics.sub1,j.height-.8*Ml),Et=new bl({shift:Pe,children:[{box:j,marginRight:vt,marginLeft:this.isCharacterBox()?-s.italic:0}]})):!j&&k&&(ce=Math.max(ce,nt,k.depth+.25*Ml),Et=new bl({shift:-ce,children:[{box:k,marginRight:vt}]}));return new zr([s,new zr(Et,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const i=this.superscript?g0.createBox(new So({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,s=this.subscript?g0.createBox(new So({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!i&&!s?r.base.wrap(t):Lu(t,F(g({},r),{above:i,below:s}))}bind(t,r){if(!r||t.isPhantom||this.value==="\u200B")return r;let i=this.parent;for(;i&&!i.captureSelection;)i=i.parent;return i!=null&&i.captureSelection||(this.id||(this.id=t.makeID()),r.atomID=this.id),r}createBox(t,r){var i,s,c,d;const k=(i=this.value)!=null?i:this.body,j=(s=r==null?void 0:r.boxType)!=null?s:Dd(this.type);let X=(c=r==null?void 0:r.classes)!=null?c:"";this.mode==="text"&&(X+=" ML__text");const ce=typeof k=="string"||k===void 0?new zr(k!=null?k:null,{type:j,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:F(g({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:X}):(d=g0.createBox(t,k,{type:j,classes:X}))!=null?d:new zr(null);return t.isTight&&(ce.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(ce.italic=0),ce.right=ce.italic,this.bind(t,ce),this.caret&&!this.superscript&&!this.subscript&&(ce.caret=this.caret),ce}isDigit(){var t;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((t=this.body)==null?void 0:t.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var t;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((t=this.body)==null?void 0:t.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function Dm(e){let t;const r=[];let i=[];for(const s of e)if(!t&&!s.style)i.push(s);else{const c=s.computedStyle;t&&c.color===t.color&&c.backgroundColor===t.backgroundColor&&c.fontSize===t.fontSize?i.push(s):(i.length>0&&r.push(i),i=[s],t=c)}return i.length>0&&r.push(i),r}function Nm(e,t,r){var i,s,c,d,k;if(!t||t.length===0)return null;const j=new So({parent:e},r.style),X=!((i=j.atomIdsSettings)!=null&&i.groupNumbers);let ce=[];if(t.length===1){const nt=t[0],vt=nt.render(j);vt&&(X&&nt.isSelected&&vt.selected(!0),ce=[vt])}else{let nt="",vt=!0;for(const Et of t){(s=j.atomIdsSettings)!=null&&s.groupNumbers&&nt&&(vt&&Et.isDigit()||!vt&&E0(Et))&&(j.atomIdsSettings.overrideID=nt);const Br=Et.render(j);j.atomIdsSettings&&(j.atomIdsSettings.overrideID=void 0),Br&&((c=j.atomIdsSettings)!=null&&c.groupNumbers&&((Et.isDigit()||E0(Et))&&(!nt||vt!==Et.isDigit())&&(vt=Et.isDigit(),nt=(d=Et.id)!=null?d:""),nt&&(!(Et.isDigit()||E0(Et))||!Et.hasEmptyBranch("superscript")||!Et.hasEmptyBranch("subscript"))&&(nt="")),X&&Et.isSelected&&Br.selected(!0),ce.push(Br))}}if(ce.length===0)return null;const Pe=new zr(ce,F(g({isTight:j.isTight},r),{type:(k=r.type)!=null?k:"lift"}));return Pe.isSelected=ce.every(nt=>nt.isSelected),Pe.wrap(j)}function E0(e){return e.mode==="text"}function _0(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof Ur?{atoms:t.map(r=>r.toJson())}:typeof t=="object"&&"group"in t?{group:t.group.map(r=>r.toJson())}:t)}var Td=class P1 extends Ur{constructor(t,r,i){super({type:"text",command:t,mode:"text",displayContainsHighlight:!0}),this.value=r,this.verbatimLatex=r,this.applyStyle(i)}static fromJson(t){return new P1(t.command,t.value,t.style)}render(t){const r=this.createBox(t);return this.caret&&(r.caret=this.caret),r}_serialize(t){var r;return(r=this.verbatimLatex)!=null?r:kt("text",this.value.codePointAt(0))}};function Mh(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let i=0;for(;i<r&&I0(e.ranges[i],t.ranges[i])==="equal";)i++;return i===r?"equal":"different"}}return"different"}function I0(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Xl(e){let t=1/0,r=-1/0;for(const i of e.ranges)t=Math.min(t,i[0],i[1]),r=Math.max(r,i[0],i[1]);return[t,r]}function ad(e){return typeof e=="number"&&!Number.isNaN(e)}function th(e){return Array.isArray(e)&&e.length===2}function Lh(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function kh(e,t){const r=e.at(t);let i;if(r){i=r.mode;let s=r.parent;for(;!i&&s;)s&&(i=s.mode),s=s.parent}return i}function rh(e,t){if(!t)return"";if(typeof t=="string")return t;if(!e||t.after===void 0)return t.value;let r=!1,i=!1,s=!1,c=!1,d=!1,k=!1,j=!1,X=!1,ce=!1,Pe=!1,nt=!1,vt=!1,Et=!1,Br=!1,En=!1,wr=e[0],nn=0;for(;wr!=null&&wr.type&&/^(subsup|placeholder)$/.test(wr.type);)nn+=1,wr=e[nn];return r=!wr||wr.type==="first",wr&&(Br=wr.mode==="text",i=!Br&&wr.type==="mord"&&m.test(wr.value),s=!Br&&wr.type==="mord"&&/\d+$/.test(wr.value),c=!Br&&wr.isFunction,d=wr.type==="genfrac",k=wr.type==="surd",j=wr.type==="mbin",X=wr.type==="mrel",ce=wr.type==="mop"||wr.type==="operator"||wr.type==="extensible-symbol",Pe=wr.type==="mpunct"||wr.type==="minner",nt=wr.type==="array",vt=wr.type==="mopen",Et=wr.type==="mclose"||wr.type==="leftright",En=wr.type==="space"),t.after.includes("nothing")&&r||t.after.includes("letter")&&i||t.after.includes("digit")&&s||t.after.includes("function")&&c||t.after.includes("frac")&&d||t.after.includes("surd")&&k||t.after.includes("binop")&&j||t.after.includes("relop")&&X||t.after.includes("operator")&&ce||t.after.includes("punct")&&Pe||t.after.includes("array")&&nt||t.after.includes("openfence")&&vt||t.after.includes("closefence")&&Et||t.after.includes("text")&&Br||t.after.includes("space")&&En?t.value:""}function F0(e,t,r){return r?rh(e,r[t]):""}var fp={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function M0(e,t){var r;let i=(r=t==null?void 0:t.format)!=null?r:"auto";return i==="auto"&&([i,e]=Om(e)),i==="ascii-math"?(e=e.replace(/\u2061/gu,""),e=e.replace(/\u3016/gu,"{"),e=e.replace(/\u3017/gu,"}"),e=e.replace(/([^\\])sinx/g,"$1\\sin x"),e=e.replace(/([^\\])cosx/g,"$1\\cos x "),e=e.replace(/\u2013/g,"-"),["ascii-math",nA(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function nA(e,t){var r,i,s;if(!e)return"";let c=!1,d;const k=(r=t.inlineShortcuts)!=null?r:fp;if(!c&&(e.startsWith("^")||e.startsWith("_"))&&(d=Ud(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[0]+"{"+d.match+"}",e+=nA(d.rest,t),c=!0),c||(d=e.match(/^(sqrt|\u221A)(.*)/),d&&(d=Ud(d[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt{"+((i=d.match)!=null?i:"\\placeholder{}")+"}",e+=nA(d.rest,t),c=!0)),c||(d=e.match(/^(\\cbrt|\u221B)(.*)/),d&&(d=Ud(d[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt[3]{"+((s=d.match)!=null?s:"\\placeholder{}")+"}",e+=nA(d.rest,t),c=!0)),c||(d=e.match(/^abs(.*)/),d&&(d=Ud(d[1],{inlineShortcuts:k,noWrap:!0}),e="\\left|"+d.match+"\\right|",e+=nA(d.rest,t),c=!0)),c||(d=e.match(/^["”“](.*?)["”“](.*)/),d&&(e="\\text{"+d[1]+"}",e+=nA(d[2],t),c=!0)),c||(d=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),d&&(e=xf(d[1],k),e+=nA(d[2],t),c=!0)),!c&&/^([fgh])[^a-zA-Z]/.test(e)&&(d=Ud(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+d.match+"\\right)":e[0]+d.match,e+=nA(d.rest,t),c=!0),c||(d=e.match(/^([a-zA-Z]+)(.*)/),d&&(e=xf(d[1],k),e+=nA(d[2],t),c=!0)),!c)if(d=Ud(e,{inlineShortcuts:k,noWrap:!0}),d.match&&d.rest[0]==="/"){const j=Ud(d.rest.slice(1),{inlineShortcuts:k,noWrap:!0});j.match&&(e="\\frac{"+d.match+"}{"+j.match+"}"+nA(j.rest,t)),c=!0}else d.match&&(e=e.startsWith("(")?"\\left("+d.match+"\\right)"+nA(d.rest,t):d.match+nA(d.rest,t),c=!0);return c||(d=e.match(/^(\s+)(.*)$/),d&&(e=" "+nA(d[2],t),c=!0)),e}function Ud(e,t){let r="";e=e.trim();let i=e,s=e.charAt(0),c={"(":")","{":"}","[":"]"}[s];if(c){let d=1,k=1;for(;k<e.length&&d>0;)e[k]===s&&d++,e[k]===c&&d--,k++;d===0?(t.noWrap&&s==="("?r=nA(e.substring(1,k-1),t):(s==="{"&&c==="}"&&(s="\\{",c="\\}"),r="\\left"+s+nA(e.substring(1,k-1),t)+"\\right"+c),i=e.slice(Math.max(0,k))):(r=e.substring(1,k),i="")}else{let d=e.match(/^([a-zA-Z]+)/);if(d){let k=F0(null,e,t.inlineShortcuts);if(k)return k=k.replace("_{#?}",""),k=k.replace("^{#?}",""),{match:k,rest:e.slice(k.length)}}if(d=e.match(/^([a-zA-Z])/),d)return{match:d[1],rest:e.slice(1)};if(d=e.match(/^(-)?\d+(\.\d*)?/),d)return{match:d[0],rest:e.slice(d[0].length)};/^\\(left|right)/.test(e)||(d=e.match(/^(\\[a-zA-Z]+)/),d&&(i=e.slice(d[1].length),r=d[1]))}return{match:r,rest:i}}function xf(e,t){let r=F0(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var L0=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function nh(e){const t=e.trim();for(const r of L0)if(t.startsWith(r[0])&&t.endsWith(r[1]))return[!0,t.substring(r[0].length,t.length-r[1].length)];return[!1,e]}function Om(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=nh(e),t?["latex",e]:e.startsWith("`")&&e.endsWith("`")?(e=e.substring(1,e.length-1),["ascii-math",e]):e.includes("\\")?["latex",e]:/\$.+\$/.test(e)?["latex",`\\text{${e}}`]:[void 0,e]}var Pm="$$",Tm="$$",Um=(e,t,r)=>(L0.some(i=>t.startsWith(i[0])&&t.endsWith(i[1]))||(t=`${Pm} ${t} ${Tm}`),t),hp=class Xg{constructor(t){Xg._modes[t]=this}static onPaste(t,r,i){var s;if(!r.contentEditable&&r.userSelect==="none")return r.model.announce("plonk"),!1;if(typeof i=="string"){const d=new DataTransfer;d.setData("text/plain",i),i=d}const c=new ClipboardEvent("paste",{clipboardData:i,cancelable:!0});return(s=r.host)!=null&&s.dispatchEvent(c)?Xg._modes[t].onPaste(r,i):!1}static copyToClipboard(t,r){if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const i=t.model,s=i.selectionIsCollapsed?[0,i.lastOffset]:Xl(i.selection),c=i.getValue(s,r);navigator.clipboard.writeText(c).then(()=>{},()=>t.model.announce("plonk"))}static onCopy(t,r){var i;if(!r.clipboardData)return;if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const s=t.model,c=s.selectionIsCollapsed?[0,s.lastOffset]:Xl(s.selection);let d=s.getAtoms(c);if(d.every(k=>k.mode==="text"||!k.mode))r.clipboardData.setData("text/plain",d.filter(k=>k instanceof Td).map(k=>k.value).join(""));else if(d.every(k=>k.mode==="latex"))r.clipboardData.setData("text/plain",s.getAtoms(c,{includeChildren:!0}).map(k=>{var j;return(j=k.value)!=null?j:""}).join(""));else{let k;d.length===1&&d[0].verbatimLatex!==void 0?k=d[0].verbatimLatex:k=s.getValue(c,"latex-expanded"),r.clipboardData.setData("application/x-latex",k);try{r.clipboardData.setData("text/plain",t.options.onExport(t,k,c))}catch(j){}if(d.length===1){const j=d[0];(j.type==="root"||j.type==="group")&&(d=j.body.filter(X=>X.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(d.map(j=>j.toJson())))}catch(j){}if((i=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&i.ComputeEngine){const j=window.MathfieldElement.computeEngine;if(j)try{const X=j.jsonSerializationOptions;j.jsonSerializationOptions={metadata:["latex"]};const ce=j.parse(s.getValue(c,"latex-unstyled"));j.jsonSerializationOptions=X;const Pe=JSON.stringify(ce.json);Pe&&r.clipboardData.setData("application/json",Pe)}catch(X){}}}r.preventDefault()}static insert(t,r,i={}){var s;const c=i.mode==="auto"?t.mode:(s=i.mode)!=null?s:t.mode;return Xg._modes[c].insert(t,r,i)}onPaste(t,r){return!1}insert(t,r,i){return!1}};hp._modes={};var Ds=hp,Zp=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Vp={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function od(e){var t;return((t=e.element)==null?void 0:t.mathfield)===e}function Wp(e){var t,r;return(r=(t=e.querySelector(".ML__caret"))!=null?t:e.querySelector(".ML__text-caret"))!=null?r:e.querySelector(".ML__latex-caret")}function ih(e){const t=Wp(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function pp(e){var t;if(!e.parent)return"root";let r=(t=e.parent.id)!=null?t:"";return r+=typeof e.parentBranch=="string"?"-"+e.parentBranch:`-${e.parentBranch[0]}/${e.parentBranch[0]}`,r}function ah(e,t,r){if(!t)return null;const i=e.field.getBoundingClientRect(),s=t.right-t.left,c=t.bottom-t.top,d=Math.ceil(t.left-i.left+e.field.scrollLeft*r),k=Math.ceil(t.top-i.top);return{left:d,right:d+s,top:k,bottom:k+c}}function Dh(e){const t=e.getBoundingClientRect(),r=parseInt(getComputedStyle(e).marginRight),i={top:t.top-1,bottom:t.bottom,left:t.left,right:t.right-1+r};if(e.children.length===0||e.tagName.toUpperCase()==="SVG")return i;for(const s of e.children)if(s.nodeType===1&&"atomId"in s.dataset&&!s.classList.contains("pstrut")){const c=Dh(s);i.left=Math.min(i.left,c.left),i.right=Math.max(i.right,c.right),i.top=Math.min(i.top,c.top),i.bottom=Math.max(i.bottom,c.bottom)}return i}function oh(e,t){var r,i;if(!t.id)return null;let s=(i=(r=e.atomBoundsCache)==null?void 0:r.get(t.id))!=null?i:null;if(s!==null)return s;const c=e.field.querySelector(`[data-atom-id="${t.id}"]`);return s=c?Dh(c):null,e.atomBoundsCache&&(s?e.atomBoundsCache.set(t.id,s):e.atomBoundsCache.delete(t.id)),s!=null?s:null}function Gp(e,t,r){const i=new Map;for(const s of e.model.getAtoms(t,{includeChildren:!0})){if(r!=null&&r.excludeAtomsWithBackground&&s.style.backgroundColor)continue;const c=e.field,d=c.offsetWidth;let j=Math.floor(c.getBoundingClientRect().width)/d;j=isNaN(j)?1:j;const X=ah(e,oh(e,s),j);if(X){const ce=pp(s);if(i.has(ce)){const Pe=i.get(ce);i.set(ce,{left:Math.min(Pe.left,X.left),right:Math.max(Pe.right,X.right),top:Math.min(Pe.top,X.top),bottom:Math.max(Pe.bottom,X.bottom)})}else i.set(ce,X)}}return[...i.values()]}function Rm(e,t){return e.model.selection.ranges.reduce((r,i)=>r.concat(...Gp(e,i,t)),[])}function Nh(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function k0(e){let t=0,r=0;const i=e.offsetWidth,s=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent;return new DOMRect(r,t,i,s)}var Qm=`@keyframes ML__caret-blink {
|
|
|
0%,
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
.ML__container {
|
|
|
display: inline-flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
min-height: 39px;
|
|
|
/* Need some room for the virtual keyboard toggle */
|
|
|
width: 100%;
|
|
|
/* Encourage browsers to consider allocating a hardware accelerated
|
|
|
layer for this element. */
|
|
|
isolation: isolate;
|
|
|
/* Prevent the browser from trying to interpret touch gestures in the field */
|
|
|
/* "Disabling double-tap to zoom removes the need for browsers to
|
|
|
delay the generation of click events when the user taps the screen." */
|
|
|
touch-action: none;
|
|
|
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_selection-color: var(--selection-color, #000);
|
|
|
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
|
|
|
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
|
|
|
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
|
|
|
--_smart-fence-color: var(--smart-fence-color, currentColor);
|
|
|
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
|
|
|
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
|
|
|
--_correct-color: var(--correct-color, #10a000);
|
|
|
--_incorrect-color: var(--incorrect-color, #a01b00);
|
|
|
--_composition-background-color: var(--composition-background-color, #fff1c2);
|
|
|
--_composition-text-color: var(--composition-text-color, black);
|
|
|
--_composition-underline-color: var(--composition-underline-color, transparent);
|
|
|
}
|
|
|
/* This is the actual field content (formula) */
|
|
|
.ML__content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
align-self: center;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
padding: 2px 3px 2px 1px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle,
|
|
|
.ML__menu-toggle {
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
width: 34px;
|
|
|
height: 34px;
|
|
|
padding: 0;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
/* Avoid some weird blinking with :hover */
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
color: hsl(var(--_hue), 40%, 50%);
|
|
|
fill: currentColor;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:hover,
|
|
|
.ML__menu-toggle:hover {
|
|
|
background: hsla(0, 0%, 70%, 0.3);
|
|
|
color: #333;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle > span,
|
|
|
.ML__menu-toggle > span {
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
/* The invisible element used to capture keyboard events. We're just trying
|
|
|
really hard to make sure it doesn't show. */
|
|
|
.ML__keyboard-sink {
|
|
|
display: inline-block;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
/* Need these for Microsoft Edge */
|
|
|
position: fixed;
|
|
|
clip: rect(0 0 0 0);
|
|
|
/* Need this to prevent iOS Safari from auto-zooming */
|
|
|
font-size: 1em;
|
|
|
font-family: KaTeX_Main;
|
|
|
line-height: 0.5;
|
|
|
/* On Chromium, if this is 0, no keyboard events are received */
|
|
|
}
|
|
|
[part="placeholder"] {
|
|
|
color: var(--neutral-400);
|
|
|
}
|
|
|
.ML__composition {
|
|
|
background: var(--_composition-background-color);
|
|
|
color: var(--_composition-text-color);
|
|
|
text-decoration: underline var(--_composition-underline-color);
|
|
|
}
|
|
|
.ML__caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__text-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__latex-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_latex-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.019em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__focused .ML__latex-caret::after,
|
|
|
.ML__focused .ML__text-caret::after,
|
|
|
.ML__focused .ML__caret::after {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.ML__focused .ML__text {
|
|
|
background: var(--_text-highlight-background-color);
|
|
|
}
|
|
|
/* When using smartFence, the anticipated closing fence is displayed
|
|
|
with this style */
|
|
|
.ML__smart-fence__close {
|
|
|
opacity: var(--_smart-fence-opacity);
|
|
|
color: var(--_smart-fence-color);
|
|
|
}
|
|
|
.ML__selected,
|
|
|
.ML__focused .ML__selected .ML__contains-caret,
|
|
|
.ML__focused .ML__selected .ML__smart-fence__close,
|
|
|
.ML__focused .ML__selected .ML__placeholder {
|
|
|
color: var(--_selection-color);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
.ML__selection {
|
|
|
box-sizing: border-box;
|
|
|
background: var(--_selection-background-color) !important;
|
|
|
}
|
|
|
.ML__contains-caret.ML__close,
|
|
|
.ML__contains-caret.ML__open,
|
|
|
.ML__contains-caret > .ML__close,
|
|
|
.ML__contains-caret > .ML__open,
|
|
|
.ML__contains-caret .ML__sqrt-sign,
|
|
|
.ML__contains-caret .ML__sqrt-line {
|
|
|
color: var(--_caret-color);
|
|
|
}
|
|
|
.ML__contains-highlight {
|
|
|
box-sizing: border-box;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__focused .ML__contains-highlight {
|
|
|
background: var(--_contains-highlight-background-color);
|
|
|
}
|
|
|
.ML__raw-latex {
|
|
|
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
font-weight: 400;
|
|
|
font-size: 0.8em;
|
|
|
letter-spacing: -0.05em;
|
|
|
color: var(--_latex-color);
|
|
|
}
|
|
|
.ML__suggestion {
|
|
|
color: var(--neutral-500);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:focus {
|
|
|
outline: none;
|
|
|
border-radius: 8px;
|
|
|
border: 2px solid hsl(var(--_hue), 40%, 50%);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-pressed,
|
|
|
.ML__virtual-keyboard-toggle.is-active:hover,
|
|
|
.ML__virtual-keyboard-toggle.is-active {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to automatically show a
|
|
|
tooltip over a element on hover.
|
|
|
*/
|
|
|
[data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
[data-tooltip]::after {
|
|
|
content: attr(data-tooltip);
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
z-index: 2;
|
|
|
pointer-events: none;
|
|
|
right: auto;
|
|
|
top: calc(-100% - 4px);
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
border-radius: 4px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
text-align: center;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-style: normal;
|
|
|
font-weight: 400;
|
|
|
font-size: 13px;
|
|
|
/* Phone */
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
[data-tooltip]::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
menu [data-tooltip]::after {
|
|
|
left: 100%;
|
|
|
top: 0%;
|
|
|
}
|
|
|
menu .ML__base {
|
|
|
cursor: default;
|
|
|
}
|
|
|
/** Don't display if we're tracking, i.e. have the pointer down */
|
|
|
.tracking [data-tooltip]:hover::after {
|
|
|
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
/** But do display if tracking and inside a menu */
|
|
|
.tracking menu li[data-tooltip]:hover::after,
|
|
|
[data-tooltip]:hover::after {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
transition-property: opacity, scale;
|
|
|
transition-duration: 0.15s;
|
|
|
transition-delay: 1s;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__prompt {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.ML__editablePromptBox {
|
|
|
outline: 1px solid #acacac;
|
|
|
border-radius: 2px;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__focusedPromptBox {
|
|
|
outline: highlight auto 1px;
|
|
|
}
|
|
|
.ML__lockedPromptBox {
|
|
|
background-color: rgba(142, 142, 141, 0.4);
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__correctPromptBox {
|
|
|
outline: 1px solid var(--_correct-color);
|
|
|
box-shadow: 0 0 5px var(--_correct-color);
|
|
|
}
|
|
|
.ML__incorrectPromptBox {
|
|
|
outline: 1px solid var(--_incorrect-color);
|
|
|
box-shadow: 0 0 5px var(--_incorrect-color);
|
|
|
}
|
|
|
.variant-submenu {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
.variant-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
text-align: center;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.insert-matrix-submenu {
|
|
|
display: grid;
|
|
|
padding: 8px;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
}
|
|
|
.insert-matrix-submenu [part=menu-item] {
|
|
|
font-size: 21px;
|
|
|
border: none;
|
|
|
border-radius: 0;
|
|
|
line-height: 21px;
|
|
|
text-align: center;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.border-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
line-height: 1.2;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.swatches-submenu {
|
|
|
--_swatch-size: 2rem;
|
|
|
--_columns: 4;
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
padding: 8px;
|
|
|
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.menu-swatch {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-sizing: border-box;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
margin: 2px;
|
|
|
padding: 0;
|
|
|
background: var(--neutral-200);
|
|
|
}
|
|
|
.menu-swatch > .label {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
.menu-swatch > .label > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
min-width: var(--_swatch-size);
|
|
|
min-height: var(--_swatch-size);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.menu-swatch.active {
|
|
|
background: var(--neutral-100);
|
|
|
scale: 1.4;
|
|
|
}
|
|
|
.menu-swatch.active > .label > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.menu-swatch .ui-checkmark,
|
|
|
.menu-swatch .ui-mixedmark {
|
|
|
position: absolute;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
color: white;
|
|
|
}
|
|
|
.menu-swatch.dark-contrast .ui-checkmark,
|
|
|
.menu-swatch.dark-contrast .ui-mixedmark {
|
|
|
color: #000;
|
|
|
}
|
|
|
`,Xp=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,Cf=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,Km=`/* The element that display info while in latex mode */
|
|
|
#mathlive-suggestion-popover {
|
|
|
background-color: rgba(97, 97, 97);
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 8px;
|
|
|
position: fixed;
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
}
|
|
|
#mathlive-suggestion-popover.top-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-bottom: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.bottom-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-top: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-animated {
|
|
|
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-visible {
|
|
|
display: flex;
|
|
|
}
|
|
|
@keyframes ML__fade-in {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
/* The wrapper class for the entire content of the popover panel */
|
|
|
#mathlive-suggestion-popover ul {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
list-style: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
align-items: flex-start;
|
|
|
max-height: 400px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
margin: 8px;
|
|
|
padding: 8px;
|
|
|
width: calc(100% - 16px - 16px);
|
|
|
column-gap: 1em;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
/* Since the content can be clicked on, provide feedback on hover */
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a {
|
|
|
color: #5ea6fd;
|
|
|
padding-top: 0.3em;
|
|
|
margin-top: 0.4em;
|
|
|
display: block;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a:hover {
|
|
|
color: #5ea6fd;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li:hover,
|
|
|
#mathlive-suggestion-popover li.is-pressed,
|
|
|
#mathlive-suggestion-popover li.is-active {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
|
|
|
.ML__popover__command {
|
|
|
font-size: 1.6rem;
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
.ML__popover__current {
|
|
|
background: #5ea6fd;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.ML__popover__latex {
|
|
|
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
align-self: center;
|
|
|
}
|
|
|
/* The keyboard shortcuts for a symbol as displayed in the popover */
|
|
|
.ML__popover__keybinding {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 0.8em;
|
|
|
opacity: 0.7;
|
|
|
}
|
|
|
/* Style for the character that joins the modifiers of a keyboard shortcut
|
|
|
(usually a "+" sign)*/
|
|
|
.ML__shortcut-join {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
`,Dl=`/* The element that displays the keys as the user type them */
|
|
|
#mathlive-keystroke-caption-panel {
|
|
|
visibility: hidden;
|
|
|
/*min-width: 160px;*/
|
|
|
/*background-color: rgba(97, 97, 200, .95);*/
|
|
|
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
|
|
|
border-color: var(--secondary-border, hsl(0, 0%, 91%));
|
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 16px;
|
|
|
position: absolute;
|
|
|
z-index: 1;
|
|
|
display: flex;
|
|
|
flex-direction: row-reverse;
|
|
|
justify-content: center;
|
|
|
--keystroke: white;
|
|
|
--on-keystroke: #555;
|
|
|
--keystroke-border: #f7f7f7;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
body:not([theme='light']) #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
}
|
|
|
body[theme='dark'] #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
#mathlive-keystroke-caption-panel > span {
|
|
|
min-width: 14px;
|
|
|
/*height: 8px;*/
|
|
|
margin: 0 8px 0 0;
|
|
|
padding: 4px;
|
|
|
background-color: var(--keystroke);
|
|
|
color: var(--on-keystroke);
|
|
|
fill: currentColor;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 1em;
|
|
|
border-radius: 6px;
|
|
|
border: 2px solid var(--keystroke-border);
|
|
|
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
|
|
|
}
|
|
|
`,Rd=`.ML__keyboard {
|
|
|
--_keyboard-height: 0;
|
|
|
--_keyboard-zindex: var(--keyboard-zindex, 105);
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
|
|
|
--_padding-top: var(--keyboard-padding-top, 5px);
|
|
|
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
|
|
|
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
|
|
|
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
|
|
|
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
|
|
|
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_keycap-height: var(--keycap-height, 60px);
|
|
|
/* Keycap width (incl. margin) */
|
|
|
--_keycap-max-width: var(--keycap-max-width, 100px);
|
|
|
--_keycap-gap: var(--keycap-gap, 8px);
|
|
|
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
|
|
|
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
|
|
|
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 70px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
|
|
|
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
|
|
|
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
|
|
|
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
|
|
|
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
|
|
|
}
|
|
|
.is-math-mode .MLK__rows .if-text-mode,
|
|
|
.is-text-mode .MLK__rows .if-math-mode {
|
|
|
display: none;
|
|
|
}
|
|
|
.if-can-undo,
|
|
|
.if-can-redo,
|
|
|
.if-can-copy,
|
|
|
.if-can-cut,
|
|
|
.if-can-paste {
|
|
|
opacity: 0.4;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.can-undo .if-can-undo,
|
|
|
.can-redo .if-can-redo,
|
|
|
.can-copy .if-can-copy,
|
|
|
.can-cut .if-can-cut,
|
|
|
.can-paste .if-can-paste {
|
|
|
opacity: 1;
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
body > .ML__keyboard {
|
|
|
position: fixed;
|
|
|
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
|
|
|
border-top: 1px solid var(--_border);
|
|
|
}
|
|
|
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
|
|
|
box-shadow: none;
|
|
|
border: none;
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
|
|
|
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
|
|
|
transition-property: transform, opacity;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__keyboard {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
z-index: var(--_keyboard-zindex);
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
opacity: 1;
|
|
|
transform: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.ML__keyboard :where(div) {
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
transform: none;
|
|
|
}
|
|
|
.MLK__backdrop {
|
|
|
position: absolute;
|
|
|
bottom: calc(-1 * var(--_keyboard-height));
|
|
|
width: 100%;
|
|
|
height: var(--_keyboard-height);
|
|
|
box-sizing: border-box;
|
|
|
padding-top: var(--_padding-top);
|
|
|
padding-bottom: var(--_padding-bottom);
|
|
|
padding-left: var(--_padding-horizontal);
|
|
|
padding-right: var(--_padding-horizontal);
|
|
|
opacity: 0;
|
|
|
visibility: hidden;
|
|
|
transform: translate(0, 0);
|
|
|
background: var(--_background);
|
|
|
}
|
|
|
.backdrop-is-transparent .MLK__backdrop {
|
|
|
background: transparent;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop
|
|
|
(backdrop-is-transparent), make sure to let pointer event go through. */
|
|
|
.backdrop-is-transparent .MLK__plate {
|
|
|
background: transparent;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop, make sure to
|
|
|
allow pointer events on it. */
|
|
|
.backdrop-is-transparent .MLK__layer > div > div {
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
.ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
transform: translate(0, calc(-1 * var(--_keyboard-height)));
|
|
|
opacity: 1;
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.caps-lock-indicator {
|
|
|
display: none;
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
background: #0cbc0c;
|
|
|
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
|
|
|
border-radius: 8px;
|
|
|
right: 8px;
|
|
|
top: 8px;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .caps-lock-indicator {
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .shift {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
}
|
|
|
.MLK__plate {
|
|
|
position: absolute;
|
|
|
top: var(--_padding-top);
|
|
|
left: var(--_padding-horizontal);
|
|
|
width: calc(100% - 2 * var(--_padding-horizontal));
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
container-type: inline-size;
|
|
|
touch-action: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
pointer-events: all;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 16px;
|
|
|
/* Size of toolbar labels */
|
|
|
font-weight: 400;
|
|
|
text-shadow: none;
|
|
|
}
|
|
|
.ML__box-placeholder {
|
|
|
color: var(--_box-placeholder-color);
|
|
|
}
|
|
|
.MLK__tex {
|
|
|
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__tex-math {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.MLK__layer {
|
|
|
display: none;
|
|
|
outline: none;
|
|
|
}
|
|
|
.MLK__layer.is-visible {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
}
|
|
|
/* Keyboard layouts are made or rows of keys... */
|
|
|
.MLK__rows {
|
|
|
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
border-collapse: separate;
|
|
|
clear: both;
|
|
|
border: 0;
|
|
|
margin: 0;
|
|
|
margin-bottom: var(--_keycap-gap);
|
|
|
gap: var(--_keycap-gap);
|
|
|
/* If the styling include, e.g., some shadows, they will be
|
|
|
cut off by the overflow. In that case, set the padding to
|
|
|
compensate. */
|
|
|
padding-left: var(--_row-padding-left);
|
|
|
padding-right: var(--_row-padding-right);
|
|
|
overflow: visible;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
gap: var(--_keycap-gap);
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
/* For the alignment of the text on some modifiers (e.g. shift) */
|
|
|
/* Extra spacing between two adjacent keys */
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex-math {
|
|
|
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .big-op {
|
|
|
font-size: calc(1.25 * var(--_keycap-font-size));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bottom {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .left {
|
|
|
align-items: flex-start;
|
|
|
padding-left: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .right {
|
|
|
align-items: flex-end;
|
|
|
padding-right: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w0 {
|
|
|
width: 0;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w5 {
|
|
|
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w15 {
|
|
|
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w20 {
|
|
|
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w40 {
|
|
|
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w50 {
|
|
|
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .MLK__keycap.w50 {
|
|
|
font-size: 80%;
|
|
|
padding-top: 10px;
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .separator {
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .horizontal-rule {
|
|
|
height: 6px;
|
|
|
margin-top: 3px;
|
|
|
margin-bottom: 0;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
border-top: var(--_horizontal-rule);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost {
|
|
|
background: var(--_toolbar-background);
|
|
|
border: none;
|
|
|
color: var(--_toolbar-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost:hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bigfnbutton {
|
|
|
font-size: var(--_keycap-extra-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift,
|
|
|
.MLK__rows > .MLK__row .action {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
background: var(--_keycap-secondary-background);
|
|
|
border-color: var(--_keycap-secondary-border);
|
|
|
border-bottom-color: var(--_keycap-secondary-border-bottom);
|
|
|
line-height: 0.8;
|
|
|
font-size: min(1rem, var(--_keycap-small-font-size));
|
|
|
font-weight: 600;
|
|
|
padding: 8px 12px 8px 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift:hover,
|
|
|
.MLK__rows > .MLK__row .action:hover {
|
|
|
background: var(--_keycap-secondary-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary {
|
|
|
background: var(--_keycap-primary-background);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary:hover {
|
|
|
background: var(--_keycap-primary-background-hover);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected,
|
|
|
.MLK__rows > .MLK__row .action.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-active,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-active {
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning {
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning svg.svg-glyph {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
/** A regular keycap
|
|
|
* Use the :where() pseudo-class to give it a very low specifity,
|
|
|
* so that it can be overriden by custom style.
|
|
|
*/
|
|
|
:where(.MLK__rows > .MLK__row div) {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: space-evenly;
|
|
|
width: calc(var(--_keycap-width) - var(--_keycap-gap));
|
|
|
height: var(--_keycap-height);
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
vertical-align: top;
|
|
|
text-align: center;
|
|
|
float: left;
|
|
|
color: var(--_keycap-text);
|
|
|
fill: currentColor;
|
|
|
font-size: var(--_keycap-font-size);
|
|
|
background: var(--_keycap-background);
|
|
|
border: 1px solid var(--_keycap-border);
|
|
|
border-bottom-color: var(--_keycap-border-bottom);
|
|
|
border-radius: 6px;
|
|
|
cursor: pointer;
|
|
|
touch-action: none;
|
|
|
/* Keys with a variants panel */
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div):hover {
|
|
|
overflow: visible;
|
|
|
background: var(--_keycap-background-hover);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) .ML__latex {
|
|
|
pointer-events: none;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
|
|
|
margin: 8px 0;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
min-height: 20px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
|
|
|
margin: 8px 0;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
|
|
|
font-size: 25px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
z-index: calc(var(--_keyboard-zindex) - 5);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) small {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) aside {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 10px;
|
|
|
line-height: 10px;
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
|
|
|
Note there are a different set of tooltip rules for the keyboard toggle
|
|
|
(it's in a different CSS tree) */
|
|
|
.ML__keyboard [data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]::after {
|
|
|
position: absolute;
|
|
|
display: inline-table;
|
|
|
content: attr(data-tooltip);
|
|
|
top: inherit;
|
|
|
bottom: 100%;
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
z-index: 2;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
border-radius: 2px;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover::after {
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
}
|
|
|
.MLK__toolbar {
|
|
|
align-self: center;
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
max-width: 996px;
|
|
|
min-height: 32px;
|
|
|
/* Icons for undo/redo, etc. */
|
|
|
}
|
|
|
.MLK__toolbar svg {
|
|
|
height: 20px;
|
|
|
width: 20px;
|
|
|
}
|
|
|
.MLK__toolbar > .left {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > .right {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
/* "button" in the toolbar */
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
color: var(--_toolbar-text);
|
|
|
fill: currentColor;
|
|
|
background: var(--_toolbar-background);
|
|
|
font-size: var(--_toolbar-font-size);
|
|
|
padding: 4px 15px;
|
|
|
cursor: pointer;
|
|
|
width: max-content;
|
|
|
min-width: 42px;
|
|
|
min-height: 34px;
|
|
|
border: none;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
padding-bottom: 8px;
|
|
|
padding-top: 8px;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 4px;
|
|
|
margin-left: 4px;
|
|
|
margin-right: 4px;
|
|
|
border-radius: 8px;
|
|
|
box-shadow: none;
|
|
|
border-bottom: 2px solid transparent;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.disabled svg,
|
|
|
.MLK__toolbar > div > div.disabled:hover svg,
|
|
|
.MLK__toolbar > div > div.disabled.is-pressed svg {
|
|
|
color: var(--_toolbar-text);
|
|
|
opacity: 0.2;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:hover,
|
|
|
.MLK__toolbar > div > div:active,
|
|
|
.MLK__toolbar > div > div.is-pressed,
|
|
|
.MLK__toolbar > div > div.is-active {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
background: var(--_toolbar-background-selected);
|
|
|
border-radius: 0;
|
|
|
border-bottom-color: var(--_toolbar-text-active);
|
|
|
padding-bottom: 4px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
/* This is the element that displays variants on press+hold */
|
|
|
.MLK__variant-panel {
|
|
|
visibility: hidden;
|
|
|
position: fixed;
|
|
|
display: flex;
|
|
|
flex-flow: row wrap-reverse;
|
|
|
justify-content: center;
|
|
|
align-content: center;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
bottom: auto;
|
|
|
top: 0;
|
|
|
box-sizing: content-box;
|
|
|
transform: none;
|
|
|
z-index: calc(var(--_keyboard-zindex) + 1);
|
|
|
touch-action: none;
|
|
|
max-width: 350px;
|
|
|
background: var(--_variant-panel-background);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 6px;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
transition: none;
|
|
|
}
|
|
|
.MLK__variant-panel.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.MLK__variant-panel.compact {
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
|
|
|
}
|
|
|
.MLK__variant-panel .item {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
font-size: var(--_variant-keycap-font-size);
|
|
|
height: var(--_variant-keycap-length);
|
|
|
width: var(--_variant-keycap-length);
|
|
|
margin: 0;
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 5px;
|
|
|
border: 1px solid transparent;
|
|
|
background: transparent;
|
|
|
pointer-events: all;
|
|
|
cursor: pointer;
|
|
|
color: var(--_variant-keycap-text);
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
@media (max-height: 412px) {
|
|
|
.MLK__variant-panel .item {
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
.MLK__variant-panel .item .ML__latex {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-active {
|
|
|
background: var(--_variant-keycap-background-active);
|
|
|
color: var(--_variant-keycap-text-active);
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-pressed {
|
|
|
background: var(--_variant-keycap-background-pressed);
|
|
|
color: var(--_variant-keycap-text-pressed);
|
|
|
}
|
|
|
.MLK__variant-panel .item.small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button {
|
|
|
box-sizing: border-box;
|
|
|
background: #fbfbfb;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
width: calc(100% - 12px);
|
|
|
height: calc(100% - 12px);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover {
|
|
|
background: #f0f0f0;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.MLK__variant-panel .item.box > div,
|
|
|
.MLK__variant-panel .item.box > span {
|
|
|
border: 1px dashed rgba(0, 0, 0, 0.24);
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning {
|
|
|
min-height: 60px;
|
|
|
min-width: 60px;
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
padding: 5px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning.is-pressed,
|
|
|
.MLK__variant-panel .item .warning.is-active {
|
|
|
background: red;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning svg.svg-glyph {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
}
|
|
|
.MLK__variant-panel .item aside {
|
|
|
font-size: var(--_variant-keycap-aside-font-size);
|
|
|
line-height: 12px;
|
|
|
opacity: 0.78;
|
|
|
padding-top: 2px;
|
|
|
}
|
|
|
.MLK__keycap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
right: 4px;
|
|
|
top: 4px;
|
|
|
font-size: var(--_keycap-shift-font-size);
|
|
|
color: var(--_keycap-shift-color);
|
|
|
}
|
|
|
.hide-shift .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
@media (max-width: 414px) {
|
|
|
.MLK__variant-panel {
|
|
|
max-width: 350px;
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
/* @xs breakpoint: iPhone 5 */
|
|
|
@container (max-width: 414px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--_keycap-height), 42px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
font-size: 100%;
|
|
|
margin-left: 2px;
|
|
|
margin-right: 2px;
|
|
|
}
|
|
|
.MLK__rows .shift,
|
|
|
.MLK__rows .action {
|
|
|
font-size: 65%;
|
|
|
}
|
|
|
.MLK__rows .warning svg.svg-glyph {
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
min-height: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 744px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--keycap-height, 52px), 52px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
.MLK__tooltip::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.fnbutton {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.bigfnbutton {
|
|
|
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.small {
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > aside {
|
|
|
display: none;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
/* Medium breakpoint: larger phones */
|
|
|
@container (max-width: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@media (max-height: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 1444px) {
|
|
|
.MLK__rows .if-wide {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
.ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
}
|
|
|
/* Same as the media query, but with a class */
|
|
|
[theme='dark'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
[theme='light'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--_keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
}
|
|
|
`,Bf=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,sd=`.ui-menu *,
|
|
|
.ui-menu ::before,
|
|
|
.ui-menu ::after {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ui-menu {
|
|
|
display: none;
|
|
|
color-scheme: light dark;
|
|
|
-webkit-user-select: none;
|
|
|
/* Important: Safari iOS doesn't respect user-select */
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0 0 0 0);
|
|
|
--active-label-color: #fff;
|
|
|
/* ui-menu-text-active */
|
|
|
--label-color: #121212;
|
|
|
/* ui-menu-text */
|
|
|
--menu-bg: #e2e2e2;
|
|
|
/* ui-menu-background */
|
|
|
--active-bg: #5898ff;
|
|
|
/* ui-menu-background-active */
|
|
|
--active-bg-dimmed: #c5c5c5;
|
|
|
/* ui-menu-background-active-muted */
|
|
|
}
|
|
|
/** Use the :where pseudo selector to make the specificity of the
|
|
|
* selector 0, so that it can be overridden by the user.
|
|
|
*/
|
|
|
:where(.ui-menu-container) {
|
|
|
position: absolute;
|
|
|
overflow: visible;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
z-index: 10000;
|
|
|
border-radius: 8px;
|
|
|
background: var(--ui-menu-bg);
|
|
|
box-shadow: var(--ui-menu-shadow);
|
|
|
list-style: none;
|
|
|
padding: 6px 0 6px 0;
|
|
|
margin: 0;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
color: var(--ui-menu-text);
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
text-shadow: none;
|
|
|
text-transform: none;
|
|
|
letter-spacing: 0;
|
|
|
outline: none;
|
|
|
opacity: 1;
|
|
|
/* The [popover] elements have a 1px solid black border. Ugh. */
|
|
|
border: none;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|
|
|
:where(.ui-menu-container > li) {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
align-items: center;
|
|
|
padding: 1px 7px 1px 7px;
|
|
|
margin-top: 0;
|
|
|
margin-left: 6px;
|
|
|
margin-right: 6px;
|
|
|
border-radius: 4px;
|
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
|
outline: none;
|
|
|
fill: currentColor;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
text-align: left;
|
|
|
color: inherit;
|
|
|
font-family: var(--ui-font-family);
|
|
|
font-size: var(--ui-font-size);
|
|
|
line-height: var(--ui-line-height);
|
|
|
letter-spacing: var(--ui-letter-spacing);
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label) {
|
|
|
appearance: none;
|
|
|
background: none;
|
|
|
outline: none;
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
padding: 1px 2px 1px 1px;
|
|
|
overflow: visible;
|
|
|
border: 1px solid transparent;
|
|
|
white-space: nowrap;
|
|
|
text-align: start;
|
|
|
}
|
|
|
:where(.ui-menu-container > li:has(.heading)) {
|
|
|
margin-top: 0.5em;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.heading) {
|
|
|
font-weight: bold;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.indent > .label) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.indent) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[role='divider']) {
|
|
|
border-bottom: 1px solid var(--ui-menu-divider);
|
|
|
border-radius: 0;
|
|
|
padding: 0;
|
|
|
margin-left: 15px;
|
|
|
margin-right: 15px;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
width: calc(100% - 30px);
|
|
|
/** 100% - (margin-left + margin-right) */
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-disabled='true']) {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active) {
|
|
|
background: var(--ui-menu-bg-active);
|
|
|
background: -apple-system-control-accent;
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active.is-submenu-open) {
|
|
|
background: var(--ui-menu-bg-active-muted);
|
|
|
color: inherit;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
|
|
|
padding-inline-end: 0;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
/** Keyboard shortcut */
|
|
|
:where(.ui-menu-container > li > kbd) {
|
|
|
font-family: var(--ui-font-family);
|
|
|
margin-inline-start: 12px;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active > kbd) {
|
|
|
opacity: 0.85;
|
|
|
}
|
|
|
.ui-trailing-chevron {
|
|
|
display: flex;
|
|
|
margin-inline-start: 24px;
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
.ui-trailing-chevron:dir(rtl) {
|
|
|
transform: scaleX(-1);
|
|
|
}
|
|
|
.ui-checkmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
.ui-mixedmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
`,Xc;function cu(e){let t="";switch(e){case"mathfield-element":t=`
|
|
|
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
|
|
|
:host([hidden]) { display: none; }
|
|
|
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
|
|
|
:host(:focus), :host(:focus-within) {
|
|
|
outline: Highlight auto 1px; /* For Firefox */
|
|
|
outline: -webkit-focus-ring-color auto 1px;
|
|
|
}
|
|
|
:host([readonly]:focus), :host([readonly]:focus-within),
|
|
|
:host([read-only]:focus), :host([read-only]:focus-within) {
|
|
|
outline: none;
|
|
|
}
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
:host(:not(:focus)) :first-child { pointer-events: none !important; }
|
|
|
}`;break;case"core":t=Xp;break;case"mathfield":t=Qm;break;case"environment-popover":t=Cf;break;case"suggestion-popover":t=Km;break;case"keystroke-caption":t=Dl;break;case"virtual-keyboard":t=Rd;break;case"ui":t=Bf;break;case"menu":t=sd;break;default:debugger}return t}function _A(e){return Xc||(Xc={}),Xc[e]||(Xc[e]=new CSSStyleSheet,Xc[e].replaceSync(cu(e))),Xc[e]}var Du;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(cu(e))),window.document.head.appendChild(r);return}if(Du||(Du={}),((t=Du[e])!=null?t:0)!==0)Du[e]+=1;else{const r=_A(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],Du[e]=1}}function cd(e){if("adoptedStyleSheets"in document&&Du!=null&&Du[e]&&(Du[e]-=1,Du[e]<=0)){const t=Xc[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var sh=class T1 extends Ur{constructor(t){var r;super(F(g({},t),{type:"accent",body:(r=t.body)!=null?r:void 0})),t.accentChar?this.accent=t.accentChar:this.svgAccent=t==null?void 0:t.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(t){return new T1(t)}toJson(){return F(g({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const i=new So({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body))!=null?r:new zr("\u25A2",{style:this.style});let c=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(c=s.skew);let d=Math.min(s.height,Ml),k;if(this.svgAccent)k=vf(this.svgAccent),d=i.metrics.bigOpSpacing1-d;else if(this.accent){const X=new zr(this.accent,{fontFamily:"Main-Regular"});X.italic=0;const ce=this.accent===8407?" ML__accent-vec":"";k=new zr(new zr(X),{classes:"ML__accent-body"+ce})}k=new bl({shift:0,children:[{box:new zr(s)},-d,{box:k,marginLeft:s.left+2*c,classes:["ML__center"]}]});const j=new zr(k,{type:"lift"});return this.caret&&(j.caret=this.caret),this.bind(i,j.wrap(i)),this.attachSupsub(i,{base:j})}},Qd={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},Oh=Object.fromEntries(Object.entries(Qd).map(([e,t])=>[t,e]));function D0(e){var t;return(t={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[e])!=null?t:e.codePointAt(0)}function Ph(e,t,r,i){var s;const d=new zr(D0(e),{fontFamily:"Main-Regular",isSelected:i.isSelected,classes:"ML__small-delim "+((s=i.classes)!=null?s:"")}).wrap(t);return r&&d.setTop((1-t.scalingFactor)*ul),d}function Jp(e,t,r,i,s){var c,d;const k=new So({parent:i,mathstyle:"textstyle"},s==null?void 0:s.style),j=new zr(D0(e),{fontFamily:`Size${t}-Regular`,isSelected:s.isSelected,classes:((c=s.classes)!=null?c:"")+` ML__delim-size${t}`,type:(d=s.type)!=null?d:"ignore"}).wrap(k);return r&&j.setTop((1-k.scalingFactor)*ul),j}function mp(e,t,r,i,s){var c;let d,k,j,X;d=j=X=D0(e),k=null;let ce="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?j=d=X=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?j=d=X=8741:e==="\\uparrow"?j=X=9168:e==="\\Uparrow"?j=X=8214:e==="\\downarrow"?d=j=9168:e==="\\Downarrow"?d=j=8214:e==="\\updownarrow"?(d=8593,j=9168,X=8595):e==="\\Updownarrow"?(d=8657,j=8214,X=8659):e==="["||e==="\\lbrack"?(d=9121,j=9122,X=9123,ce="Size4-Regular"):e==="]"||e==="\\rbrack"?(d=9124,j=9125,X=9126,ce="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(j=d=9122,X=9123,ce="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(d=9121,j=X=9122,ce="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(j=d=9125,X=9126,ce="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(d=9124,j=X=9125,ce="Size4-Regular"):e==="("||e==="\\lparen"?(d=9115,j=9116,X=9117,ce="Size4-Regular"):e===")"||e==="\\rparen"?(d=9118,j=9119,X=9120,ce="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(d=9127,k=9128,X=9129,j=9130,ce="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(d=9131,k=9132,X=9133,j=9130,ce="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(d=9127,X=9129,j=9130,ce="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(d=9131,X=9133,j=9130,ce="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(d=9127,X=9133,j=9130,ce="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(d=9131,X=9129,j=9130,ce="Size4-Regular"):e==="\\surd"?(d=57345,X=9143,j=57344,ce="Size4-Regular"):e==="\\ulcorner"?(d=9484,j=X=32):e==="\\urcorner"?(d=9488,j=X=32):e==="\\llcorner"?(X=9492,j=d=32):e==="\\lrcorner"&&(d=9496,j=d=32);const Pe=Cc(d,ce),nt=Pe.height+Pe.depth,vt=Cc(j,ce),Et=vt.height+vt.depth,Br=Cc(X,ce),En=Br.height+Br.depth;let wr=0,nn=1;if(k!==null){const We=Cc(k,ce);wr=We.height+We.depth,nn=2}const Fn=nt+En+wr,cn=Math.max(0,Math.ceil((t-Fn)/(nn*Et))),Bi=Fn+cn*nn*Et;let ra=ul;r&&(ra=ra*i.scalingFactor);const Qi=Bi/2-ra,h=.008,B=[];B.push({box:new zr(X,{fontFamily:ce})}),B.push(-h);const Q=new zr(j,{fontFamily:ce});if(k===null)for(let We=0;We<cn;We++)B.push({box:Q});else{for(let We=0;We<cn;We++)B.push({box:Q});B.push(-h),B.push({box:new zr(k,{fontFamily:ce})}),B.push(-h);for(let We=0;We<cn;We++)B.push({box:Q})}B.push(-h),B.push({box:new zr(d,{fontFamily:ce})});let ve="";ce==="Size1-Regular"?ve=" delim-size1":ce==="Size4-Regular"&&(ve=" delim-size4");const Ke=new bl({bottom:Qi,children:B},{classes:ve});return new zr(Ke,F(g({},s!=null?s:{}),{classes:((c=s==null?void 0:s.classes)!=null?c:"")+" ML__delim-mult"}))}var Yp=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Th=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Hm=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),N0=[0,1.2,1.8,2.4,3];function jm(e,t,r,i){return e===void 0||e==="."?ch(r,i.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Yp.has(e)||Hm.has(e)?Jp(e,t,!1,r,i):Th.has(e)?mp(e,N0[t],!1,r,i):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}var qp=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],em=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],tm=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function rm(e){return e.type==="small"?"Main-Regular":e.type==="large"?"Size"+e.size+"-Regular":(console.assert(e.type==="stack"),"Size4-Regular")}function gp(e,t,r,i){const s={"-4":0,"-3":1,0:2}[i.mathstyle.sizeDelta];for(let c=s;c<r.length&&r[c].type!=="stack";c++){const d=Cc(e,rm(r[c]));if(d.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let k=d.height+d.depth;if(r[c].type==="small"&&(r[c].mathstyle==="scriptscriptstyle"?k*=Math.max(El[Math.max(1,i.size-2)],i.minFontScale):r[c].mathstyle==="scriptstyle"&&(k*=Math.max(El[Math.max(1,i.size-1)],i.minFontScale))),k>t)return r[c]}return r[r.length-1]}function Sf(e,t,r,i,s,c){if(!t||t.length===0||t===".")return ch(s);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let d;Hm.has(t)?d=qp:Yp.has(t)?d=tm:d=em;const k=gp(D0(t),r,d,s),j=new So({parent:s,mathstyle:k.mathstyle},c==null?void 0:c.style);return k.type==="small"?Ph(t,j,i,F(g({},c),{type:e})):k.type==="large"?Jp(t,k.size,i,j,F(g({},c),{type:e})):(console.assert(k.type==="stack"),mp(t,r,i,j,F(g({},c),{type:e})))}function lh(e,t,r,i,s,c){if(t===".")return ch(s,c==null?void 0:c.classes);const d=ul*s.scalingFactor,k=901,j=5/Sl,X=Math.max(r-d,i+d),ce=Math.max(X/500*k,2*X-j);return Sf(e,t,ce,!0,s,c)}function ch(e,t){const r=new zr(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new So({parent:e,mathstyle:"textstyle"}))}var Nu=class U1 extends Ur{constructor(t){var r;super({type:"placeholder",command:"\\placeholder",mode:(r=t==null?void 0:t.mode)!=null?r:"math",style:t==null?void 0:t.style}),this.captureSelection=!0}static fromJson(t){return new U1(t)}toJson(){return super.toJson()}render(t){let r;return this.value=t.placeholderSymbol,typeof t.renderPlaceholder=="function"?r=t.renderPlaceholder(t):r=this.createBox(t),this.caret&&(r.classes+=" ML__placeholder-selected"),r}_serialize(t){return t.skipPlaceholders?"":"\\placeholder{}"}},vp=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],IA=["cases","dcases","rcases"],O0=["align","align*","aligned","gather","gathered","split"],nm=["array","subequations","eqnarray"];function bp(e){return nm.concat(O0).concat(IA).concat(vp).includes(e)}function Uh(e){return vp.includes(e)}function Rh(e){return IA.includes(e)}function zm(e){return O0.includes(e)}function yp(e,t,r){let i=0;for(const X of r)"align"in X&&(i+=1);let s=0;const c=[];for(const X of t){let ce=0;for(s=Math.max(s,Math.min(X.length,i));ce<X.length;){const Pe=[],nt=Math.min(X.length,ce+i);for(;ce<nt;){const vt=X[ce];vt.length===0?Pe.push([new Ur({type:"first",mode:e.mode})]):vt[0].type!=="first"?Pe.push([new Ur({type:"first",mode:e.mode}),...vt]):(console.assert(!vt.slice(1).some(Et=>Et.type==="first")),Pe.push(vt)),ce+=1}c.push(Pe)}}c.length>0&&c[c.length-1].length===1&&c[c.length-1][0].length===1&&c[c.length-1][0][0].type==="first"&&c.pop();const d=[];for(const X of c){if(X.length!==s)for(let ce=X.length;ce<s;ce++)X.push([new Ur({type:"first",mode:e.mode}),new Nu]);d.push(X)}let k=0,j=0;for(const X of d){j=0;for(const ce of X){for(const Pe of ce)Pe.parent=e,Pe.parentBranch=[k,j];j+=1}k+=1}return e.isDirty=!0,d}var hs=class R1 extends Ur{constructor(t,r,i,s={}){var c;super({type:"array"}),this.environmentName=t,this.rowGaps=i,s.mathstyleName&&(this.mathstyleName=s.mathstyleName),s.columns&&(s.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=s.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=yp(this,r,this.colFormat),s.leftDelim&&(this.leftDelim=s.leftDelim),s.rightDelim&&(this.rightDelim=s.rightDelim),s.arraycolsep!==void 0&&(this.arraycolsep=s.arraycolsep),this.colSeparationType=s.colSeparationType,s.arraystretch!==void 0&&(this.arraystretch=s.arraystretch),this.minColumns=(c=s.minColumns)!=null?c:1}static fromJson(t){return new R1(t.environmentName,t.array,t.rowGaps,t)}toJson(){const t=F(g({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(r=>r.map(i=>i.map(s=>s.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(t.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(t.arraycolsep=this.arraycolsep),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}branch(t){var r;if(eh(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return eh(t)?(this.isDirty=!0,(r=this.branch(t))!=null?r:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(t=>!!t.align).length}removeBranch(t){if(Pd(t))return super.removeBranch(t);const r=this.branch(t);return this.array[t[0]][t[1]]=void 0,r.forEach(i=>{i.parent=void 0,i.parentBranch=void 0}),console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}get hasChildren(){return this.children.length>0}get children(){const t=[];for(const r of this.array)for(const i of r)if(i)for(const s of i)t.push(...s.children),t.push(s);return[...t,...super.children]}render(t){var r,i,s,c,d,k;const j=new So({parent:t,mathstyle:this.mathstyleName},this.style),X=j.getRegisterAsEm("arrayrulewidth"),ce=j.getRegisterAsEm("arraycolsep"),Pe=j.getRegisterAsEm("doublerulesep"),nt=(i=(r=this.arraystretch)!=null?r:j.getRegisterAsNumber("arraystretch"))!=null?i:1;let vt=typeof this.arraycolsep=="number"?this.arraycolsep:ce;this.colSeparationType==="small"&&(vt=.2778*(new So({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const Et=nt*ou,Br=.7*Et,En=.3*Et;let wr=0;const nn=[];let Fn=0;const cn=this.array.length;for(let ft=0;ft<cn;++ft){const Kt=this.array[ft];Fn=Math.max(Fn,Kt.length);const br=new So({parent:j,mathstyle:this.mathstyleName},this.style);let xt=Br/br.scalingFactor,ir=En/br.scalingFactor;const gr={cells:[],height:0,depth:0,pos:0};for(const Sr of Kt){const ln=(s=Ur.createBox(br,Sr,{type:"ignore"}))!=null?s:new zr(null,{type:"ignore"});ir=Math.max(ir,ln.depth),xt=Math.max(xt,ln.height),gr.cells.push(ln)}let Xr=(c=lu(this.rowGaps[ft]))!=null?c:0;Xr>0&&(Xr+=En,ir=Math.max(ir,Xr),Xr=0),ft<cn-1&&!Uh(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(ir+=j.getRegisterAsEm("jot")),gr.height=xt,gr.depth=ir,wr+=xt,gr.pos=wr,wr+=ir+Xr,nn.push(gr)}const Bi=wr/2+ul,ra=[];for(let ft=0;ft<Fn;ft++){const Kt=[];for(const br of nn){const xt=br.cells[ft];xt.depth=br.depth,xt.height=br.height,Kt.push({box:xt,shift:br.pos-Bi})}Kt.length>0&&ra.push(new bl({individualShift:Kt}))}const Qi=[];let h=!1,B=!1,Q=0,ve=!this.leftDelim;const{colFormat:Ke}=this;for(const ft of Ke){if("align"in ft&&Q>=ra.length)break;if("align"in ft)h?Qi.push(Ou(2*vt)):(B||ve)&&Qi.push(Ou(vt)),Qi.push(new zr(ra[Q],{classes:"col-align-"+ft.align})),Q++,h=!0,B=!1,ve=!1;else if("gap"in ft){if(typeof ft.gap=="number")Qi.push(Ou(ft.gap));else{const Kt=P0(t,nn,Bi,ft.gap);Kt&&Qi.push(Kt)}h=!1,B=!1,ve=!1}else if("separator"in ft){const Kt=new zr(null,{classes:"vertical-separator"});Kt.height=wr,Kt.setStyle("height",wr,"em"),Kt.setStyle("border-right",`${X}em ${ft.separator} currentColor`),Kt.setStyle("vertical-align",-(wr-Bi),"em");let br=0;B?br=Pe-X:h&&(br=vt-X),Kt.left=br,Qi.push(Kt),h=!1,B=!0,ve=!1}}h&&!this.rightDelim&&Qi.push(Ou(vt));const Ze=new zr(Qi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Ze.caret=this.caret),this.bind(t,Ze);const We=Ze.height,at=Ze.depth,At=this.bind(t,new zr([this.bind(t,lh("open",(d=this.leftDelim)!=null?d:".",We,at,j,{isSelected:this.isSelected})),Ze,this.bind(t,lh("close",(k=this.rightDelim)!=null?k:".",We,at,j,{isSelected:this.isSelected}))],{type:"ord"}));return At?(At.setStyle("display","inline-block"),this.caret&&(At.caret=this.caret),this.bind(t,this.attachSupsub(t,{base:At}))):null}_serialize(t){var r;const i=[];if(this.environmentName==="lines"?i.push("{\\displaylines"):i.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(i.push("{"),this.colFormat!==void 0)for(const s of this.colFormat)"align"in s&&typeof s.align=="string"?i.push(s.align):"separator"in s&&s.separator==="solid"?i.push("|"):"separator"in s&&s.separator==="dashed"&&i.push(":");i.push("}")}for(let s=0;s<this.array.length;s++){for(let c=0;c<this.array[s].length;c++)c>0&&i.push(" & "),i.push(Ur.serialize(this.array[s][c],t));if(s<this.array.length-1){const c=this.rowGaps[s];c!=null&&c.dimension?i.push(`\\\\[${c.dimension} ${(r=c.unit)!=null?r:"pt"}] `):i.push("\\\\ ")}}return this.environmentName==="lines"?i.push("}"):i.push(`\\end{${this.environmentName}}`),Ao(i)}getCell(t,r){return this.array[t][r]}setCell(t,r,i){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[t][r]!==void 0);for(const c of this.array[t][r])c.parent=void 0,c.parentBranch=void 0;let s=i;(i.length===0||i[0].type!=="first")&&(s=[new Ur({type:"first",mode:this.mode}),...i]),this.array[t][r]=s;for(const c of s)c.parent=this,c.parentBranch=[t,r];this.isDirty=!0}addRowBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let i=0;i<this.colCount;i++)r.push(Fi(this));this.array.splice(t,0,r);for(let i=t;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const d of c)d.parentBranch=[i,s]}this.isDirty=!0}addRowAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let i=0;i<this.colCount;i++)r.push(Fi(this));this.array.splice(t+1,0,r);for(let i=t+1;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const d of c)d.parentBranch=[i,s]}this.isDirty=!0}removeRow(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>t);const r=this.array.splice(t,1);for(const i of r)for(const s of i)if(s)for(const c of s)c.parent=void 0,c.parentBranch=void 0;for(let i=t;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const d of c)d.parentBranch=[i,s]}this.isDirty=!0}addColumnBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t,0,Fi(this));for(let r=0;r<this.rowCount;r++)for(let i=t;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}this.isDirty=!0}addColumnAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t+1,0,Fi(this));for(let r=0;r<this.rowCount;r++)for(let i=t+1;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>t);for(const r of this.array){const i=r.splice(t,1);for(const s of i)if(s)for(const c of s)c.parent=void 0,c.parentBranch=void 0}for(let r=0;r<this.rowCount;r++)for(let i=t;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}this.isDirty=!0}get cells(){const t=[];for(const r of this.array)for(const i of r)i&&t.push(i.filter(s=>s.type!=="first"));return t}};function Fi(e){const t=new Ur({type:"first",mode:e.mode});t.parent=e;const r=new Nu;return r.parent=e,[t,r]}function Ou(e){const t=new zr(null,{classes:"arraycolsep"});return t.width=e,t}function P0(e,t,r,i){if(!i)return null;const s=[];for(const c of t){const d=Ur.createBox(e,i,{type:"ignore"});d&&(d.depth=c.depth,d.height=c.height,s.push({box:d,shift:c.pos-r}))}return new bl({individualShift:s}).wrap(e)}var uc=class Q1 extends Ur{constructor(t){super({mode:t.mode,command:t.command,style:t.style,body:t.body,type:"box"}),this.framecolor=t.framecolor,this.backgroundcolor=t.backgroundcolor,this.padding=t.padding,this.offset=t.offset,this.border=t.border}static fromJson(t){return new Q1(t)}toJson(){return F(g({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(t){var r,i,s,c;const d=Ur.createBox(t,this.body,{type:"lift"});if(!d)return null;const k=t.toEm((r=this.offset)!=null?r:{dimension:0});d.depth+=k,d.setStyle("display","inline-block"),d.setStyle("position","relative"),d.setStyle("height",Math.floor(100*d.height+d.depth)/100,"em"),d.setStyle("vertical-align",-Math.floor(100*d.height)/100,"em");const j=new So({parent:t},this.style),X=j.toEm((i=this.padding)!=null?i:{register:"fboxsep"}),ce=new zr(null,{classes:"ML__box"});ce.height=d.height+X,ce.depth=d.depth+X,ce.setStyle("box-sizing","border-box"),ce.setStyle("position","absolute"),ce.setStyle("top",-X+.3,"em"),ce.setStyle("left",0),ce.setStyle("height",ce.height+ce.depth,"em"),ce.setStyle("width","100%"),this.backgroundcolor&&ce.setStyle("background-color",(s=j.toColor(this.backgroundcolor))!=null?s:"transparent"),this.framecolor&&ce.setStyle("border",`${j.getRegisterAsEm("fboxrule",2)}em solid ${(c=j.toColor(this.framecolor))!=null?c:"black"}`),this.border&&ce.setStyle("border",this.border);const Pe=new zr([ce,d],{type:"lift"});return Pe.setStyle("display","inline-block"),Pe.setStyle("position","relative"),Pe.setStyle("line-height",0),Pe.height=d.height+X+(k>0?k:0),Pe.depth=d.depth+X+(k<0?-k:0),Pe.setStyle("padding-left",X,"em"),Pe.setStyle("padding-right",X,"em"),Pe.setStyle("height",Math.floor(100*(d.height+d.depth+2*X+Math.abs(k)))/100,"em"),Pe.setStyle("margin-top",-X,"em"),Pe.setStyle("top",Math.floor(100*(d.depth-d.height+2*X-k))/100,"em"),Pe.setStyle("vertical-align",Math.floor(100*(d.depth+2*X))/100,"em"),this.caret&&(Pe.caret=this.caret),this.attachSupsub(t,{base:Pe})}_serialize(t){return t.skipStyles?Ao([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},im=class K1 extends Ur{constructor(t,r){var i;super({type:"composition",mode:(i=r==null?void 0:r.mode)!=null?i:"math",value:t})}static fromJson(t){return new K1(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(t){const r=new zr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},Go=class H1 extends Ur{constructor(t){super({type:"error",value:t,command:t,mode:"math"}),this.verbatimLatex=t}static fromJson(t){return new H1(t.command)}toJson(){return super.toJson()}render(t){const r=this.createBox(t,{classes:"ML__error"});return this.caret&&(r.caret=this.caret),r}},sl=class j1 extends Ur{constructor(t,r,i){super({type:"group",mode:r,style:i}),this.body=t,this.boxType=t.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,t&&t.length===1&&t[0].command===","&&(this.captureSelection=!0)}static fromJson(t){return new j1(t.body,t.mode,t.style)}render(t){const r=Ur.createBox(t,this.body,{type:this.boxType});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=lt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):`{${this.bodyToLatex(t)}}`}},Ys=class z1 extends Ur{constructor(t,r,i){super({type:"leftright",style:i.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=i.leftDelim,this.rightDelim=i.rightDelim}static fromJson(t){var r;return new z1((r=t.variant)!=null?r:"",t.body,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}_serialize(t){var r,i;const s=this.matchingRightDelim();return this.variant==="left...right"?Ao(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",s]):this.variant==="mleft...mright"?Ao(["\\mleft",(i=this.leftDelim)!=null?i:".",this.bodyToLatex(t),"\\mright",s]):Ao([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(t),s])}matchingRightDelim(){var t,r;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const i=(t=this.leftDelim)!=null?t:".";return(r=Qd[i])!=null?r:i}render(t){var r,i;const s=new So({parent:t},this.style);console.assert(this.body!==void 0);const c=new So({parent:t,mathstyle:"textstyle"},this.style),d=(r=Ur.createBox(s,this.body,{type:"inner"}))!=null?r:new zr(null,{type:"inner"}),k=d.height/c.scalingFactor,j=d.depth/c.scalingFactor,X=[];if(this.leftDelim&&X.push(this.bind(c,lh("open",this.leftDelim,k,j,c,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),d&&($m(d.children,this,s,k,j),X.push(d)),this.rightDelim){let vt=this.containsCaret?" ML__contains-caret":"",Et=this.rightDelim;Et==="?"&&(s.smartFence?(Et=this.matchingRightDelim(),vt+=" ML__smart-fence__close"):Et="."),X.push(this.bind(c,lh("close",Et,k,j,c,{isSelected:this.isSelected,classes:vt+" ML__close",mode:this.mode,style:this.style})))}let ce=this.variant==="mleft...mright";const Pe=this.leftSibling;Pe&&(!ce&&Pe.isFunction&&(ce=!0),!ce&&Pe.type==="subsup"&&((i=Pe.leftSibling)!=null&&i.isFunction)&&(ce=!0));const nt=new zr(X,{type:ce?"close":"inner",classes:"left-right"});return nt.setStyle("margin-top",`${-d.depth}em`),nt.setStyle("height",`${d.height+d.depth}em`),this.caret&&(nt.caret=this.caret),this.bind(s,nt.wrap(s))}};function $m(e,t,r,i,s){if(e)for(let c=0;c<e.length;c++){const d=e[c];d.type==="middle"?(e[c]=t.bind(r,lh("inner",d.value,i,s,r,{isSelected:t.isSelected})),e[c].caret=d.caret,e[c].isSelected=d.isSelected,e[c].cssId=d.cssId,e[c].htmlData=d.htmlData,e[c].htmlStyle=d.htmlStyle,e[c].attributes=d.attributes,e[c].cssProperties=d.cssProperties):d.children&&$m(d.children,t,r,i,s)}}var T0=class $1 extends Ur{constructor(t,r){var i;super({type:"macro",command:t,style:r.style}),this.body=r.body,r.captureSelection===void 0?r.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=r.captureSelection,this.macroArgs=r.args,this.expand=(i=r.expand)!=null?i:!1}static fromJson(t){return new $1(t.command,t)}toJson(){const t=super.toJson();return this.expand&&(t.expand=!0),this.captureSelection!==void 0&&(t.captureSelection=this.captureSelection),this.macroArgs&&(t.args=this.macroArgs),t}_serialize(t){var r;return t.expandMacro&&this.expand?this.bodyToLatex(t):this.command+((r=this.macroArgs)!=null?r:"")}render(t){const r=Ur.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},Ga=class Z1 extends Ur{constructor(){super({type:"macro-argument"})}static fromJson(t){return new Z1}toJson(){return super.toJson()}_serialize(t){return""}render(t){return null}},Ef=class V1 extends Ur{constructor(t,r,i=!1,s,c){var d;super({type:"prompt",mode:(d=c==null?void 0:c.mode)!=null?d:"math",style:c==null?void 0:c.style,command:"\\placeholder"}),this.body=s,this.correctness=r,this.placeholderId=t,this.locked=i,this.captureSelection=this.locked}static fromJson(t){return new V1(t.placeholderId,t.correctness,t.locked,t.body,t)}toJson(){const t=super.toJson();return this.placeholderId&&(t.placeholderId=this.placeholderId),this.body||delete t.body,this.body&&(t.body=this.body.filter(r=>r.type!=="first").map(r=>r.toJson())),this.correctness&&(t.correctness=this.correctness),t.locked=this.locked,t}render(t){const r=new So({parent:t}),i=r.getRegisterAsEm("fboxsep"),s=i,c=i,d=Ur.createBox(t,this.body);if(!d)return null;d.height||(d.height=r.metrics.xHeight),d.setStyle("vertical-align",-d.height,"em"),this.correctness==="correct"?d.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&d.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const k=new zr(d,{type:"ord"});k.setStyle("display","inline-block"),k.setStyle("height",d.height+d.depth,"em"),k.setStyle("vertical-align",-c,"em");let j="ML__prompt ";this.locked?j+=" ML__lockedPromptBox ":j+=" ML__editablePromptBox ",this.correctness==="correct"?j+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(j+=" ML__incorrectPromptBox "),this.containsCaret&&(j+=" ML__focusedPromptBox ");const X=new zr(null,{classes:j,attributes:{part:"prompt"}});X.height=k.height+c,X.depth=k.depth+c,X.width=k.width+2*s,X.setStyle("box-sizing","border-box"),X.setStyle("position","absolute"),X.setStyle("height",k.height+k.depth+2*c,"em"),s===0&&X.setStyle("width","100%"),s!==0&&(X.setStyle("width",`calc(100% + ${2*s}em)`),X.setStyle("top",i,"em"),X.setStyle("left",-s,"em")),(!this.body||this.body.length===1)&&(X.width=3*s,X.setStyle("width",`calc(100% + ${3*s}em)`),X.setStyle("left",-1.5*s,"em"));let ce="";this.correctness==="incorrect"&&(ce+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),ce&&(X.svgOverlay=ce);const Pe=new zr([X,k],{classes:"ML__prompt-atom"});return Pe.setStyle("position","relative"),Pe.setStyle("display","inline-block"),Pe.setStyle("line-height",0),Pe.height=k.height+c+.2,Pe.depth=k.depth+c,Pe.left=s,Pe.right=s,Pe.setStyle("height",k.height+c,"em"),Pe.setStyle("top",k.depth-k.height,"em"),Pe.setStyle("vertical-align",k.depth+c,"em"),Pe.setStyle("margin-left",.5,"em"),Pe.setStyle("margin-right",.5,"em"),this.caret&&(Pe.caret=this.caret),this.bind(r,this.attachSupsub(t,{base:Pe}))}_serialize(t){var r;const i=(r=this.bodyToLatex(t))!=null?r:"";if(t.skipPlaceholders)return i;let s="\\placeholder";return this.placeholderId&&(s+=`[${this.placeholderId}]`),this.correctness==="correct"?s+="[correct]":this.correctness==="incorrect"&&(s+="[incorrect]"),this.locked&&(s+="[locked]"),_s(s,i)}},Ns=class W1 extends Ur{constructor(t){super({type:"subsup",style:t==null?void 0:t.style}),this.subsupPlacement="auto"}static fromJson(t){const r=new W1(t);for(const i of wf)t[i]&&r.setChildren(t[i],i);return r}render(t){var r;const i=new So({parent:t,isPhantom:!0}),s=this.leftSibling,c=(r=s.render(i))!=null?r:new zr(null),d=new zr(null);return d.height=c.height,d.depth=c.depth,this.attachSupsub(t,{base:d,isCharacterBox:s.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function Kd(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var U0=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var i,s,c,d;r!=null||(r={}),this.tokens=e,this.context=t instanceof So&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new So({from:t,mathstyle:r.mathstyle},r.style),this.args=(i=r.args)!=null?i:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(s=r.style)!=null?s:{},parseMode:(c=r.parseMode)!=null?c:"math",mathstyle:(d=r.mathstyle)!=null?d:"displaystyle",tabular:!1}}beginContext(e){var t,r,i;const s=this.parsingContext,c={parent:s,mathlist:[],style:g({},s.style),parseMode:(t=e==null?void 0:e.mode)!=null?t:s.parseMode,mathstyle:(r=e==null?void 0:e.mathstyle)!=null?r:s.mathstyle,tabular:(i=e==null?void 0:e.tabular)!=null?i:!1};this.parsingContext=c}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(g({before: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 g({},e.style);e=e.parent}return{}}set style(e){this.parsingContext.style=e}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(e){return this.tokens[this.index]===e?(this.index++,!0):!1}lastSubsupAtom(){let e;return this.mathlist.length>0&&(e=this.mathlist[this.mathlist.length-1],e.type==="subsup"||e.subsupPlacement!==void 0)||(e=new Ns({style:this.style}),this.mathlist.push(e)),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t<this.tokens.length&&this.tokens[t].startsWith("\\")){const r=lt(this.tokens[t],this.parseMode);return!r||r.definitionType==="symbol"||r.ifMode&&!r.ifMode.includes(this.parseMode)?!1:(e=r.infix)!=null?e:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const e=this.peek();return e!=="\\\\"&&e!=="\\cr"&&e!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var e;const t=(e=this.args)==null?void 0:e.call(this,"?");return t?dc(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Nu({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(e){const t=this.index;let r=this.end(),i="";for(;!r;){const c=this.get();Kd(c)?(i+=c,r=this.end()||i.length>=e.length):r=!0}const s=e.toUpperCase()===i.toUpperCase();return s||(this.index=t),s}scanString(){let e="";for(;!this.end();){const t=this.peek();if(t==="]")return e;if(t==="<space>")e+=" ";else if(t.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),e+=t.substring(1);else if(Kd(t))e+=t;else return e;this.next()}return e}scanBalancedString(){let e="",t=this.end(),r=1;for(;!t;){const i=this.get();i==="<space>"?e+=" ":i==="<{>"?(e+="{",r+=1):i==="<}>"?(r-=1,r>0?e+="}":this.index-=1):i==="<$>"?e+="$":i==="<$$>"?e+="$$":e+=i,t=r===0||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",r=1;for(;r>0&&!this.end();){const i=this.get();i==="<}>"?(r-=1,r>0&&(t+="}")):i==="<{>"?(r+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(i)&&(t+=" "),t+=(e={"<space>":" ","<$$>":"$$","<$>":"$"}[i])!=null?e:i)}return t}scanNumber(e=!0){var t,r;let i=!1,s=this.peek();for(;s==="<space>"||s==="+"||s==="-";)this.get(),s==="-"&&(i=!i),s=this.peek();e=!!e;let c=10,d=/\d/;if(this.match("'"))c=8,d=/[0-7]/,e=!0;else if(this.match('"'))c=16,d=/[\dA-F]/,e=!0;else if(this.match("x"))c=16,d=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return s=this.get(),s?s.length===2&&s.startsWith("\\")?{number:(i?-1:1)*((t=s.codePointAt(1))!=null?t:0),base:"alpha"}:{number:(i?-1:1)*((r=s.codePointAt(0))!=null?r:0),base:"alpha"}:null;let k="";for(;this.hasPattern(d);)k+=this.get();if(!e&&(this.match(".")||this.match(",")))for(k+=".";this.hasPattern(d);)k+=this.get();const j=e?Number.parseInt(k,c):Number.parseFloat(k);return Number.isNaN(j)?null:{number:i?-j:j,base:c===16?"hexadecimal":c===8?"octal":"decimal"}}scanRegister(){var e;const t=this.index,r=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return r;let i=!1;if(r===null)for(;;){const c=this.peek();if(c==="-")i=!i;else if(c!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const c=this.get();return c.startsWith("\\")?r?{register:c,global:!0,factor:(i?-1:1)*r.number}:i?{register:c,global:!0,factor:-1}:{register:c,global:!0}:(this.index=t,null)}let s=this.get();return s!=null&&s.startsWith("\\")?(s=s.substring(1),this.context.registers[s]?!i||r!==null?{register:s,factor:(i?-1:1)*((e=r==null?void 0:r.number)!=null?e:1)}:{register:s}:(this.index=t,null)):(this.index=t,null)}scanValue(){const e=this.scanRegister();if(e)return e;const t=this.index,r=this.scanGlueOrDimen();if(r&&("unit"in r||"glue"in r&&"unit"in r.glue))return r;this.index=t;const i=this.scanNumber();if(i)return i;if(this.end()||!Kd(this.peek()))return null;const s=this.scanString();return s.length>0?{string:s}:null}scanDimen(){const e=this.scanNumber(!1);if(e===null)return null;const t=e.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let r;return this.matchKeyword("pt")?r="pt":this.matchKeyword("mm")?r="mm":this.matchKeyword("cm")?r="cm":this.matchKeyword("ex")?r="ex":this.matchKeyword("px")?r="px":this.matchKeyword("em")?r="em":this.matchKeyword("bp")?r="bp":this.matchKeyword("dd")?r="dd":this.matchKeyword("pc")?r="pc":this.matchKeyword("in")?r="in":this.matchKeyword("mu")&&(r="mu"),r?{dimension:t,unit:r}:{dimension:t}}scanGlueOrDimen(){const e=this.scanDimen();if(e===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return e;const t={glue:e};if(this.matchKeyword("plus")){const r=this.scanDimen();if(r)t.grow=r;else return t}if(this.skipWhitespace(),this.match("\\relax"))return t;if(this.skipWhitespace(),this.matchKeyword("minus")){const r=this.scanDimen();if(r)t.shrink=r;else return t}return!t.grow&&!t.shrink?e:t}scanColspec(){this.skipWhitespace();const e=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const t=this.get();t==="c"||t==="r"||t==="l"?e.push({align:t}):t==="|"?e.push({separator:"solid"}):t===":"?e.push({separator:"dashed"}):t==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),e.push({gap:this.scan(r=>r==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return e}scanModeSet(){let e;if(this.match("\\(")&&(e="textstyle"),!e&&this.match("\\[")&&(e="displaystyle"),!e)return null;this.beginContext({mode:"math",mathstyle:e});const t=this.scan(r=>r===(e==="displaystyle"?"\\]":"\\)"));return this.match(e==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const t=this.scan(r=>r===e);return this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanEnvironment(){if(!this.match("\\begin"))return null;const e=this.scanArgument("string");if(!e)return null;const t=H(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const r=[];if(t.params)for(const k of t.params)if(k.isOptional)r.push(this.scanOptionalArgument(k.type));else{const j=this.scanArgument(k.type);j||this.onError({code:"missing-argument",arg:e}),r.push(j)}this.beginContext({tabular:t.tabular});const i=[],s=[];let c=[],d=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),d=!0),!d&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),d=!0),!d)if(this.matchColumnSeparator())c.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){c.push(this.mathlist),this.mathlist=[];let k=null;this.skipWhitespace(),this.match("[")&&(k=this.scanDimen(),this.skipWhitespace(),this.match("]")),s.push(k!=null?k:{dimension:0}),i.push(c),c=[]}else this.mathlist.push(...this.scan(k=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(k)));while(!d);return c.push(this.mathlist),c.length>0&&i.push(c),this.endContext(),t.createAtom(e,i,s,r)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=d=>d==="<}>");let t="",r=null,i=[],s=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=lt(t,"math"),r&&(i=this.scanArguments(r)[1]),s=this.mathlist,this.mathlist=[]):this.parseExpression();let c;return t?(console.assert(!!r),i.unshift(this.mathlist),s&&i.unshift(s),c=[r.createAtom({command:t,args:i,style:this.style,mode:this.parseMode})]):c=this.mathlist,this.endContext(),c}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(i=>i==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new sl(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 Ys("",this.mathlist,{leftDelim:"(",rightDelim:e===0?")":"?"});return this.endContext(),t}scanDelim(){this.skipWhitespace();const e=this.peek();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;if(!Kd(e)&&!e.startsWith("\\"))return null;this.next();const t=lt(e,"math");return t?t.definitionType==="function"&&t.ifMode&&!t.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:e}),null):t.definitionType==="symbol"&&(t.type==="mopen"||t.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(e)?e:(this.onError({code:"unexpected-delimiter",arg:e}),null):(this.onError({code:"unknown-command",arg:e}),null)}scanLeftRight(){var e;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Go("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Go("\\mright");let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const r=this.scanDelim();if(!r)return this.onError({code:"unexpected-delimiter"}),new Go(t==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const i=this.mathlist;this.endContext();const s=(e=this.scanDelim())!=null?e:".";return new Ys(t==="\\right"?"left...right":"mleft...mright",i,{leftDelim:r,rightDelim:s,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let e=this.peek();if(e!=="^"&&e!=="_"&&e!=="'")return!1;const t=this.lastSubsupAtom();for(;e==="^"||e==="_"||e==="'";)this.match("'")?this.match("'")?t.addChild(new Ur({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new Ur({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(qe(this.scanArgument("expression")),e==="_"?"subscript":"superscript"),e=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const e=this.match("\\limits"),t=!e&&this.match("\\nolimits"),r=!t&&!e&&this.match("\\displaylimits");if(!e&&!t&&!r)return!1;const i=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return i===null?!1:(i.explicitSubsupPlacement=!0,e&&(i.subsupPlacement="over-under"),t&&(i.subsupPlacement="adjacent"),r&&(i.subsupPlacement="auto"),!0)}scanArguments(e){if(!(e!=null&&e.params))return[void 0,[]];let t;const r=[];let i=e.infix?2:0;for(;i<e.params.length;){const s=e.params[i];s.type==="rest"?r.push(this.scan(c=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(c))):s.isOptional?r.push(this.scanOptionalArgument(s.type)):s.type.endsWith("*")?t=s.type.slice(0,-1):r.push(this.scanArgument(s.type)),i+=1}return[t,r]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;this.next();let t;if(Kd(e)){const r=Wl.createAtom(this.parseMode,e,g({},this.style));return r?[r]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const r=lt(e,this.parseMode);if(!r)return this.onError({code:"unknown-command",arg:e}),[new Go(e)];if(r.definitionType==="symbol"){const i=g({},this.style);r.variant&&(i.variant=r.variant),t=new Ur({type:r.type,command:e,style:i,value:String.fromCodePoint(r.codepoint),mode:this.parseMode,verbatimLatex:e})}else{if(r.applyMode||r.applyStyle||r.infix)return this.onError({code:"invalid-command",arg:e}),[new Go(e)];r.createAtom&&(t=r.createAtom({command:e,args:[],style:this.style,mode:this.parseMode}))}}return t?[t]:null}scanArgument(e){var t;this.skipFiller();const r=this.parseMode;if(e==="auto"&&(e=r),!this.match("<{>")){if(e==="string")return this.scanString();if(e==="value")return this.scanValue();if(e==="delim")return(t=this.scanDelim())!=null?t:".";if(e==="expression")return this.scanExpression();if(e==="math"){e!==r&&this.beginContext({mode:"math"});const s=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),s}if(e==="text"){e!==r&&this.beginContext({mode:"text"});const s=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),s}return e==="balanced-string"||console.assert(!1),null}if(e==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}if(e==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}let i=null;if(e==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}return e==="string"?i=this.scanString():e==="balanced-string"?i=this.scanBalancedString():e==="colspec"?i=this.scanColspec():e==="value"&&(i=this.scanValue()),this.skipUntilToken("<}>"),i}scanOptionalArgument(e){if(e=e==="auto"?this.parseMode:e,this.skipFiller(),!this.match("["))return null;let t=null;for(;!this.end()&&!this.match("]");)if(e==="string")t=this.scanString();else if(e==="value")t=this.scanValue();else if(e==="colspec")t=this.scanColspec();else if(e==="bbox"){const r={},i=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const s of i){const c=s.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(c)r.padding={dimension:parseInt(c[1]),unit:c[2]};else{const d=s.match(/^\s*border\s*:\s*(.*)/);d?r.border=d[1]:r.backgroundcolor={string:s}}}t=r}else e==="math"&&(this.beginContext({mode:"math"}),t=this.mathlist.concat(this.scan(r=>r==="]")),this.endContext());return t}scanSymbolOrCommand(e){var t,r,i;if(e==="\\placeholder"){const k=this.scanOptionalArgument("string"),j=this.scanOptionalArgument("math"),X=Ur.serialize(j,{defaultMode:"math"});let ce=[],Pe;!Pe&&X==="correct"?Pe="correct":!Pe&&X==="incorrect"?Pe="incorrect":X!==""&&(ce=j);const nt=this.scanOptionalArgument("string")==="locked",vt=this.scanArgument("auto");let Et;return vt&&Array.isArray(vt)&&vt.length>0?Et=vt:vt&&typeof vt=="object"&&"group"in vt?Et=vt.group:Et=ce,k?[new Ef(k,Pe,nt,Et!=null?Et:ce,{mode:this.parseMode,style:this.style})]:[new Nu({mode:this.parseMode,style:this.style})]}if(e==="\\renewcommand"||e==="\\newcommand"||e==="\\providecommand"||e==="\\def"){const k=this.index,j=this.scanLiteralGroup()||this.next();if(!j)return null;if(this.context.registers[j.substring(1)]){const X=this.scanArgument("string");X!==null&&(this.context.registers[j.substring(1)]=X);const ce=Ao([e,BA(this.tokens.slice(k,this.index))]);return[new Ur({type:"text",value:"",verbatimLatex:ce})]}}let s=this.scanMacro(e);if(s)return[s];const c=lt(e,this.parseMode);if(!c)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(k=>new Ur({type:"text",value:k,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new Go(e)]);const d=this.index;if(c.definitionType==="symbol"){const k=g({},this.style);c.variant&&(k.variant=c.variant),s=new Ur({type:c.type,command:e,style:k,value:String.fromCodePoint(c.codepoint),mode:this.parseMode})}else{if(c.ifMode&&!c.ifMode.includes(this.parseMode))return[];const k=this.parseMode;c.applyMode&&(this.parseMode=c.applyMode);let j,X=[];if(c.parse?X=c.parse(this):[j,X]=this.scanArguments(c),this.parseMode=k,c.applyMode&&!c.applyStyle&&!c.createAtom)return qe(X[0]);if(c.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if(typeof c.createAtom=="function")s=c.createAtom({command:e,args:X,style:this.style,mode:this.parseMode}),j&&(s.body=qe(this.scanArgument(j)));else if(typeof c.applyStyle=="function"){const ce=g(g({},this.style),c.applyStyle(e,X,this.context)),Pe=this.parseMode;if(c.applyMode&&(this.parseMode=c.applyMode),j){const nt=this.style;this.style=ce;const vt=this.scanArgument(j);return this.style=nt,this.parseMode=Pe,qe(vt)}this.style=ce}else s=new Ur({type:"mord",command:(r=c.command)!=null?r:e,style:g({},this.style),value:e,mode:(i=c.applyMode)!=null?i:this.parseMode})}if(!s)return null;if(s instanceof Ur&&s.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const k=Ao([e,BA(this.tokens.slice(d,this.index))]);k&&(s.verbatimLatex=k)}if(s.verbatimLatex===null&&(s.verbatimLatex=void 0),s.isFunction&&this.smartFence){const k=this.scanSmartFence();if(k)return[s,k]}return[s]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(Kd(e)){const t=Wl.createAtom(this.parseMode,e,g({},this.style));if(!t)return null;if(t.isFunction&&this.smartFence){const r=this.scanSmartFence();if(r)return[t,r]}return[t]}return e.startsWith("\\")?this.scanSymbolOrCommand(e):e==="<space>"?this.parseMode==="text"?[new Td(" "," ",this.style)]:null:(e==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e}),null)}scanMacro(e){var t;const r=this.context.getMacro(e);if(!r)return null;const i=this.index,s=r.args,c={"?":(t=this.args)==null?void 0:t.call(this,"?")};for(let d=1;d<=s;d++){let k=this.scanLiteralGroup();if(!k){const j=this.index;this.scanExpression(),k=BA(this.tokens.slice(j,this.index))}c[d]=k}return new T0(e,{expand:r.expand,captureSelection:r.captureSelection,args:i===this.index?null:BA(this.tokens.slice(i,this.index)),style:this.parsingContext.style,body:dc(r.def,{context:this.context,parseMode:this.parseMode,args:d=>c[d],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,r,i;let s=(i=(r=(t=(e=this.scanEnvironment())!=null?e:this.scanModeShift())!=null?t:this.scanModeSet())!=null?r:this.scanGroup())!=null?i:this.scanLeftRight();if(s===null){if(this.parseSupSub()||this.parseLimits())return!0;s=this.scanSymbolCommandOrLiteral()}return s?(Array.isArray(s)?this.mathlist.push(...s):this.mathlist.push(s),!0):!1}};function dc(e,t){var r,i,s,c;const d=(r=t==null?void 0:t.args)!=null?r:void 0,k=new U0(td(e,d),t==null?void 0:t.context,{args:d,mathstyle:(i=t==null?void 0:t.mathstyle)!=null?i:"displaystyle",parseMode:(s=t==null?void 0:t.parseMode)!=null?s:"math",style:(c=t==null?void 0:t.style)!=null?c:{}}),j=[];for(;!k.end();)j.push(...k.scan(()=>!1));return j}function Ad(e,t){var r;const i=new U0(td(e,null),t==null?void 0:t.context,{mathstyle:"displaystyle",parseMode:(r=t==null?void 0:t.parseMode)!=null?r:"math"});for(;!i.end();)i.scan();return i.errors}var wp=class G1 extends Ur{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const i=Ks.go(gn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=dc(i),this._verbatimLatex=t+"{"+r+"}",this.arg=r,this.captureSelection=!0}static fromJson(t){return new G1(t.command,t.arg)}set verbatimLatex(t){}get verbatimLatex(){return this._verbatimLatex}toJson(){return F(g({},super.toJson()),{arg:this.arg})}render(t){const r=Ur.createBox(t,this.body,{type:"inner"});return this.caret&&(r.caret=this.caret),this.bind(t,r)}_serialize(t){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};de(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new wp(e.command,(t=e.args[0])!=null?t:"")}});var gn={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",i={};i.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var s,c=10,d=[];;){s!==e?(c=10,s=e):c--;var k=gn.stateMachines[t],j=k.transitions[r]||k.transitions["*"];e:for(var X=0;X<j.length;X++){var ce=gn.patterns.match_(j[X].pattern,e);if(ce){for(var Pe=j[X].task,nt=0;nt<Pe.action_.length;nt++){var vt;if(k.actions[Pe.action_[nt].type_])vt=k.actions[Pe.action_[nt].type_](i,ce.match_,Pe.action_[nt].option);else if(gn.actions[Pe.action_[nt].type_])vt=gn.actions[Pe.action_[nt].type_](i,ce.match_,Pe.action_[nt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Pe.action_[nt].type_+")"];gn.concatArray(d,vt)}if(r=Pe.nextState||r,e.length>0){if(Pe.revisit||(e=ce.remainder),!Pe.toContinue)break e}else return d}}if(c<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Object.prototype.toString.call(t)==="[object Array]")for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"state of aggregation $":function(e){var t=gn.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e){return gn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return gn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return gn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return gn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return gn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return gn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return gn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return gn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return gn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return gn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return gn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return gn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return gn.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return gn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return gn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return gn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return gn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return gn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return gn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=gn.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,i,s,c,d,k,j,X){var ce=function(wr,nn){if(typeof nn=="string")return wr.indexOf(nn)!==0?null:nn;var Fn=wr.match(nn);return Fn?Fn[0]:null},Pe=function(wr,nn,Fn){for(var cn=0;nn<wr.length;){var Bi=wr.charAt(nn),ra=ce(wr.substr(nn),Fn);if(ra!==null&&cn===0)return{endMatchBegin:nn,endMatchEnd:nn+ra.length};if(Bi==="{")cn++;else if(Bi==="}"){if(cn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];cn--}nn++}return cn>0,null},nt=ce(e,t);if(nt===null||(e=e.substr(nt.length),nt=ce(e,r),nt===null))return null;var vt=Pe(e,nt.length,i||s);if(vt===null)return null;var Et=e.substring(0,i?vt.endMatchEnd:vt.endMatchBegin);if(c||d){var Br=this.findObserveGroups(e.substr(vt.endMatchEnd),c,d,k,j);if(Br===null)return null;var En=[Et,Br.match_];return{match_:X?En.join(""):En,remainder:Br.remainder}}else return{match_:Et,remainder:e.substr(vt.endMatchEnd)}},match_:function(e,t){var r=gn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return gn.patterns.patterns[e](t);var i=t.match(r);if(i){var s;return i[2]?s=[i[1],i[2]]:i[1]?s=i[1]:s=i[0],{match_:s,remainder:t.substr(i[0].length)}}return null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},rm:function(e,t){return{type_:"rm",p1:t||""}},text:function(e,t){return gn.go(t,"text")},"{text}":function(e,t){var r=["{"];return gn.concatArray(r,gn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return gn.go(t,"tex-math")},"tex-math tight":function(e,t){return gn.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t[0]}},ce:function(e,t){return gn.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var i=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return i[1]=i[1].replace(/\$/g,""),r.push({type_:"frac",p1:i[1],p2:i[2]}),i[3]&&(i[3]=i[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:i[3]})),r},"9,9":function(e,t){return gn.go(t,"9,9")}},createTransitions:function(e){var t,r,i,s,c={};for(t in e)for(r in e[t])for(i=r.split("|"),e[t][r].stateArray=i,s=0;s<i.length;s++)c[i[s]]=[];for(t in e)for(r in e[t])for(i=e[t][r].stateArray||[],s=0;s<i.length;s++){var d=e[t][r];if(d.action_){d.action_=[].concat(d.action_);for(var k=0;k<d.action_.length;k++)typeof d.action_[k]=="string"&&(d.action_[k]={type_:d.action_[k]})}else d.action_=[];for(var j=t.split("|"),X=0;X<j.length;X++)if(i[s]==="*")for(var ce in c)c[ce].push({pattern:j[X],task:d});else c[i[s]].push({pattern:j[X],task:d})}return c},stateMachines:{}};gn.stateMachines={ce:{transitions:gn.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[0-9]+$/)){var i=e.d;e.d=void 0,r=this.output(e),e.b=i}else r=this.output(e);return gn.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return gn.concatArray(r,this.output(e)),gn.concatArray(r,gn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var i=gn.patterns.match_("orbital",e.o||""),s=gn.patterns.match_("one lowercase greek letter $",e.o||""),c=gn.patterns.match_("one lowercase latin letter $",e.o||""),d=gn.patterns.match_("$one lowercase latin letter$ $",e.o||""),k=t==="-"&&(i&&i.remainder===""||s||c||d);k&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!i&&c&&(e.o="$"+e.o+"$");var j=[];return k?(gn.concatArray(j,this.output(e)),j.push({type_:"hyphen"})):(i=gn.patterns.match_("digits",e.d||""),r&&i&&i.remainder===""?(gn.concatArray(j,gn.actions["d="](e,t)),gn.concatArray(j,this.output(e))):(gn.concatArray(j,this.output(e)),gn.concatArray(j,gn.actions.bond(e,t,"-")))),j},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:gn.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),i=r!==t;return i&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var i;if(!e.r)i=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&i.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&gn.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),i.push({type_:"chemfive",a:gn.go(e.a,"a"),b:gn.go(e.b,"bd"),p:gn.go(e.p,"pq"),o:gn.go(e.o,"o"),q:gn.go(e.q,"pq"),d:gn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var s;e.rdt==="M"?s=gn.go(e.rd,"tex-math"):e.rdt==="T"?s=[{type_:"text",p1:e.rd||""}]:s=gn.go(e.rd);var c;e.rqt==="M"?c=gn.go(e.rq,"tex-math"):e.rqt==="T"?c=[{type_:"text",p1:e.rq||""}]:c=gn.go(e.rq),i={type_:"arrow",r:e.r,rd:s,rq:c}}for(var d in e)d!=="parenthesisLevel"&&d!=="beginsWithBond"&&delete e[d];return i},"oxidation-output":function(e,t){var r=["{"];return gn.concatArray(r,gn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:gn.go(t[0]),p2:gn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:gn.go(t[0]),p2:gn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:gn.go(t[0]),p2:gn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:gn.go(t[0]),p2:gn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:gn.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:gn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:gn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:gn.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:gn.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:gn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:gn.go(t[1],"pq")}}}},bd:{transitions:gn.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:gn.go(t[1],"bd")}}}},oxidation:{transitions:gn.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:gn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:gn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:gn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:gn.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(gn.concatArray(r,gn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?gn.concatArray(r,gn.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&(t[3]==="e"||t[4]==="*"?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),gn.concatArray(r,gn.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=gn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var i=gn.patterns.match_("{(...)}",e.q||"");if(i&&i.remainder===""&&(e.q=i.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var s={d:gn.go(e.d,"pu"),q:gn.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:s.d,p2:s.q}:(t=s.d,s.d.length>1||s.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),gn.concatArray(t,s.q))}else t=gn.go(e.d,"pu-2");for(var c in e)delete e[c];return t}}},"pu-2":{transitions:gn.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=gn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=gn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var i in e)delete e[i];return t}}},"pu-9,9":{transitions:gn.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;r===0&&(r=3);for(var i=e.text_.length-3;i>0;i-=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var s in e)delete e[s];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,i=0;i<r;i+=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(i))}else t.push(e.text_);for(var s in e)delete e[s];return t}}}};var Ks={go:function(e,t){if(!e)return"";for(var r="",i=!1,s=0;s<e.length;s++){var c=e[s];typeof c=="string"?r+=c:(r+=Ks._go2(c),c.type_==="1st-level escape"&&(i=!0))}return!t&&!i&&r&&(r="{"+r+"}"),r},_goInner:function(e){return e&&Ks.go(e,!0)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:Ks._goInner(e.a),b:Ks._goInner(e.b),p:Ks._goInner(e.p),o:Ks._goInner(e.o),q:Ks._goInner(e.q),d:Ks._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{X}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="{\\vphantom{X}}",t+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),e.dType==="kv"?((r.d||r.q)&&(t+="{\\vphantom{X}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{\\smash[t]{"+r.q+"}}")):e.dType==="oxidation"?(r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"),r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}")):(r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}"),r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"));break;case"rm":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+Ks._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+Ks._goInner(e.p1);break;case"bond":if(t=Ks._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var i="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+i+"}{"+i+"}{"+i+"}{"+i+"}";break;case"pu-frac":var s="\\frac{"+Ks._goInner(e.p1)+"}{"+Ks._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+s+"}{"+s+"}{"+s+"}{"+s+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+Ks._goInner(e.p1)+"}{"+Ks._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+Ks._goInner(e.p1)+"}{"+Ks._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+Ks._goInner(e.p1)+"}{"+Ks._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+Ks._goInner(e.p1)+"}_{"+Ks._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+Ks._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var c={rd:Ks._goInner(e.rd),rq:Ks._goInner(e.rq)},d=Ks._getArrow(e.r);c.rd||c.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(d="\\long"+d,c.rd&&(d="\\overset{"+c.rd+"}{"+d+"}"),c.rq&&(e.r==="<-->"?d="\\underset{\\lower2mu{"+c.rq+"}}{"+d+"}":d="\\underset{\\lower6mu{"+c.rq+"}}{"+d+"}"),d=" {}\\mathrel{"+d+"}{} "):(c.rq&&(d+="[{"+c.rq+"}]"),d+="{"+c.rd+"}",d=" {}\\mathrel{\\x"+d+"}{} "):d=" {}\\mathrel{\\long"+d+"}{} ",t=d;break;case"operator":t=Ks._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function R0(e){}function Q0(e){}var Qc=class X1 extends Ur{constructor(t){super(F(g({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new X1(t)}toJson(){return F(g({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new zr(this.value,{type:"middle"})}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=lt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):_s(this.command,this.value)}},Bc=class J1 extends Ur{constructor(t){super(F(g({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new J1(t)}toJson(){return F(g({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=jm(this.value,this.size,t,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return r?(r=this.bind(t,r),this.caret&&(r.caret=this.caret),r):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=lt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):_s(this.command,this.value)}},ic=class Y1 extends Ur{constructor(t,r,i,s){var c,d;super({type:"enclose",command:t,style:s.style}),this.body=r,this.backgroundcolor=s.backgroundcolor,i.updiagonalarrow&&(i.updiagonalstrike=!1),i.box&&(i.left=!1,i.right=!1,i.bottom=!1,i.top=!1),this.notation=i,this.shadow=(c=s.shadow)!=null?c:"none",this.strokeWidth=(d=s.strokeWidth)!=null?d:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=s.strokeStyle,this.svgStrokeStyle=s.svgStrokeStyle,this.strokeColor=s.strokeColor,this.borderStyle=s.borderStyle,this.padding=s.padding,this.captureSelection=!1}static fromJson(t){return new Y1(t.command,t.body,t.notation,t)}toJson(){return F(g({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(t){var r;if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const i=lt(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);let s=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){s+="{"+Object.keys(this.notation).join(" ")+"}";let c="",d="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(c+=d+'mathbackground="'+this.backgroundcolor+'"',d=","),this.shadow&&this.shadow!=="auto"&&(c+=d+'shadow="'+this.shadow+'"',d=","),this.strokeWidth||this.strokeStyle!=="solid"?(c+=d+this.borderStyle,d=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(c+=d+'mathcolor="'+this.strokeColor+'"',d=","),c&&(s+=`[${c}]`)}return _s(s,this.bodyToLatex(t))}render(t){const r=new So({parent:t},this.style),i=Ur.createBox(r,this.body);if(!i)return null;const s=am(this.borderStyle),c=r.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});i.setStyle("position","relative"),i.setStyle("display","inline-block"),i.setStyle("top",c,"em"),i.setStyle("height",i.height+i.depth,"em"),i.setStyle("width",i.width,"em");const d=new zr(null,{classes:"ML__notation"});let k=i.height+i.depth+2*c;const j=i.width+2*c;let X="";if(this.notation.horizontalstrike&&(X+=this.line(3,50,97,50)),this.notation.verticalstrike&&(X+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(X+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(X+=this.line(3,3,97,97)),this.notation.updiagonalarrow){X+=this.line(c.toString(),(c+i.depth+i.height).toString(),(c+i.width).toString(),c.toString());const Et=.03*Math.sqrt(j*j+k*k)*1,Br=i.width*Et,En=(i.depth+i.height)*Et,wr=c+i.width;let nn=c;nn+En-.4*Br<0&&(nn=.4*Br-En),X+='<polygon points="',X+=`${wr},${nn} ${wr-Br-.4*En},${nn+En-.4*Br} `,X+=`${wr-.7*Br},${nn+.7*En} ${wr-Br+.4*En},${nn+En+.4*Br} `,X+=`${wr},${nn}`,X+=`" stroke='none' fill="${this.strokeColor}"`,X+="/>"}let ce=0;if(this.notation.phasorangle){const nt=FA(r),vt=(i.height+i.depth+2*nt+c).toString(),Et=(i.height+i.depth)/2;X+=this.line(c.toString(),vt,(c+Et+i.width).toString(),vt),X+=this.line(c.toString(),vt,(c+Et).toString(),(c-nt).toString()),k+=nt,ce=Et,i.left+=k/2-c}if(this.notation.longdiv){const nt=FA(r);k+=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="${K0(r)}" stroke="${this.strokeColor}" fill="none"`,X+="/>"}if(d.width=i.width+2*c+ce,d.height=i.height+c,d.depth=i.depth+c,d.setStyle("box-sizing","border-box"),d.setStyle("left",`calc(-${s} / 2 )`),d.setStyle("height",`${Math.floor(100*k)/100}em`),d.setStyle("top",`calc(${s} / 2 )`),this.backgroundcolor&&d.setStyle("background-color",this.backgroundcolor),this.notation.box&&d.setStyle("border","1px solid red"),this.notation.actuarial&&(d.setStyle("border-top",this.borderStyle),d.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(d.setStyle("border-bottom",this.borderStyle),d.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(d.setStyle("border-radius","8px"),d.setStyle("border",this.borderStyle)),this.notation.circle&&(d.setStyle("border-radius","50%"),d.setStyle("border",this.borderStyle)),this.notation.top&&d.setStyle("border-top",this.borderStyle),this.notation.left&&d.setStyle("border-left",this.borderStyle),this.notation.right&&d.setStyle("border-right",this.borderStyle),this.notation.bottom&&d.setStyle("border-bottom",this.borderStyle),X){let nt="";this.shadow==="auto"&&(nt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(nt+=`filter: drop-shadow(${this.shadow})`),nt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,nt+=' stroke-linecap="round"',this.svgStrokeStyle&&(nt+=` stroke-dasharray="${this.svgStrokeStyle}"`),d.svgStyle=nt,d.svgOverlay=X}const Pe=new zr([d,i]);return Pe.setStyle("position","relative"),Pe.setStyle("vertical-align",c,"em"),Pe.setStyle("height",`${Math.floor(100*(i.height+i.depth+2*c))/100}em`),Pe.setStyle("display","inline-block"),Pe.height=d.height,Pe.depth=d.depth,Pe.width=d.width-2*c,Pe.left=c,Pe.right=c,this.caret&&(Pe.caret=this.caret),Pe.wrap(r)}line(t,r,i,s){return`<line x1="${fc(t)}" y1="${fc(r)}" x2="${fc(i)}" y2="${fc(s)}" vector-effect="non-scaling-stroke"></line>`}};function fc(e){return typeof e=="number"?`${Math.floor(100*e)/100}%`:e}function am(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return t===null?"1px":t[1]}function K0(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function FA(e){const t=e.isDisplayStyle?Ml:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var _f=class q1 extends Ur{constructor(t,r,i){var s,c;super(F(g({},i),{type:"genfrac",displayContainsHighlight:!0})),this.above=t,this.below=r,this.hasBarLine=(s=i==null?void 0:i.hasBarLine)!=null?s:!0,this.continuousFraction=(c=i==null?void 0:i.continuousFraction)!=null?c:!1,this.numerPrefix=i==null?void 0:i.numerPrefix,this.denomPrefix=i==null?void 0:i.denomPrefix,this.mathstyleName=i==null?void 0:i.mathstyleName,this.leftDelim=i==null?void 0:i.leftDelim,this.rightDelim=i==null?void 0:i.rightDelim,this.fractionNavigationOrder=i==null?void 0:i.fractionNavigationOrder}static fromJson(t){return new q1(t.above,t.below,t)}toJson(){const t={};return this.continuousFraction&&(t.continuousFraction=!0),this.numerPrefix&&(t.numerPrefix=this.numerPrefix),this.denomPrefix&&(t.denomPrefix=this.denomPrefix),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),this.hasBarLine||(t.hasBarLine=!1),this.mathstyleName&&(t.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(t.fractionNavigationOrder=this.fractionNavigationOrder),g(g({},super.toJson()),t)}get children(){if(this._children)return this._children;const t=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const r of this.below)t.push(...r.children),t.push(r);for(const r of this.above)t.push(...r.children),t.push(r)}else{for(const r of this.above)t.push(...r.children),t.push(r);for(const r of this.below)t.push(...r.children),t.push(r)}return this._children=t,t}render(t){var r,i;const s=new So({parent:t,mathstyle:this.mathstyleName},this.style),c=s.metrics,d=new So({parent:s,mathstyle:this.continuousFraction?"":"numerator"},this.style),k=this.numerPrefix?new zr([new zr(this.numerPrefix),Ur.createBox(d,this.above)],{isTight:d.isTight,type:"ignore"}):(r=Ur.createBox(d,this.above,{type:"ignore"}))!=null?r:new zr(null,{type:"ignore"}),j=new So({parent:s,mathstyle:this.continuousFraction?"":"denominator"},this.style),X=this.denomPrefix?new zr([new zr(this.denomPrefix),Ur.createBox(j,this.below,{type:"ignore"})]):(i=Ur.createBox(j,this.below,{type:"ignore"}))!=null?i:new zr(null,{type:"ignore"}),ce=this.hasBarLine?c.defaultRuleThickness:0;let Pe,nt=0,vt;s.isDisplayStyle?(Pe=d.metrics.num1,nt=ce>0?3*ce:7*ce,vt=j.metrics.denom1):(ce>0?(Pe=d.metrics.num2,nt=ce):(Pe=d.metrics.num3,nt=3*c.defaultRuleThickness),vt=j.metrics.denom2);const Et=[];this.isSelected&&Et.push("ML__selected");const Br=k.depth,En=X.height;let wr;if(ce<=0){const Qi=Pe-Br-(En-vt);Qi<nt&&(Pe+=(nt-Qi)/2,vt+=(nt-Qi)/2),wr=new bl({individualShift:[{box:k,shift:-Pe,classes:[...Et,"ML__center"]},{box:X,shift:vt,classes:[...Et,"ML__center"]}]}).wrap(s)}else{const Qi=new zr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Qi.softWidth=Math.max(k.width,X.width),Qi.height=ce/2,Qi.depth=ce/2;const h=ul+ce/2;Pe<nt+Br+h&&(Pe=nt+Br+h);const B=ul-ce/2;vt<nt+En-B&&(vt=nt+En-B),wr=new bl({individualShift:[{box:X,shift:vt,classes:[...Et,"ML__center"]},{box:Qi,shift:-B,classes:Et},{box:k,shift:-Pe,classes:[...Et,"ML__center"]}]}).wrap(s)}const nn=s.isDisplayStyle?c.delim1:c.delim2,Fn=this.leftDelim?this.bind(t,Sf("open",this.leftDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):ch(s,"open");let cn=null;this.continuousFraction?cn=new zr(null,{type:"close"}):this.rightDelim?cn=this.bind(t,Sf("close",this.rightDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):cn=ch(s,"close");const Bi=new zr([Fn,wr,cn],{isTight:s.isTight,type:"inner",classes:"mfrac"}),ra=this.bind(t,Bi);return this.caret&&(ra.caret=this.caret),this.attachSupsub(t,{base:ra})}},Nl=class ev extends Ur{constructor(t,r){var i;super({type:"latex",value:t,mode:"latex"}),this.isSuggestion=(i=r==null?void 0:r.isSuggestion)!=null?i:!1,this.isError=!1}static fromJson(t){const r=new ev(t.value);return t.isSuggestion&&(r.isSuggestion=!0),t.isError&&(r.isError=!0),r}toJson(){const t={};return this.isSuggestion&&(t.isSuggestion=!0),this.isError&&(t.isError=!0),g({type:"latex",value:this.value},t)}get computedStyle(){return{}}render(t){const r=new zr(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},If=class tv extends Ur{constructor(t){super({type:"latexgroup",mode:"latex"}),this.body=[...t].map(r=>new Nl(r)),this.skipBoundary=!1}static fromJson(t){return new tv("")}toJson(){return super.toJson()}render(t){const r=Ur.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){var r,i;return(i=(r=this.body)==null?void 0:r.map(s=>s.value).join(""))!=null?i:""}},xp=class rv extends Ur{constructor(t,r){super(F(g({},r),{type:"extensible-symbol",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new rv(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.value&&(t.symbol=this.value),t}render(t){var r;const i=t.isDisplayStyle&&this.value!=="\\smallint",s=new zr(this.value,{fontFamily:i?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(i?"large-op":"small-op"),type:"op",maxFontSize:t.scalingFactor,isSelected:this.isSelected});if(!s)return null;s.right=s.italic;const c=(s.height-s.depth)/2-ul*t.scalingFactor,d=s.italic;s.setTop(c);let k=s;if(this.superscript||this.subscript){const j=(r=this.subsupPlacement)!=null?r:"auto";k=j==="over-under"||j==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:s,baseShift:c,slant:d}):this.attachSupsub(t,{base:s})}return new zr(this.bind(t,k),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=lt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[];return i.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),Ao(i)}},Jc=class nv extends Ur{constructor(t){const r=t.body;super(F(g({},t),{type:"overlap",body:typeof r=="string"?[new Ur({value:r})]:r,style:t==null?void 0:t.style})),this.skipBoundary=!0,this.align=t==null?void 0:t.align,this.boxType=t==null?void 0:t.boxType}static fromJson(t){return new nv(t)}toJson(){const t={};return this.align&&(t.align=this.align),this.boxType&&(t.boxType=this.boxType),g(g({},super.toJson()),t)}render(t){const r=Ur.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new zr([r,new zr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},hc=class iv extends Ur{constructor(t){var r,i,s,c;super({type:"overunder",command:t.command,style:t.style,mode:t.mode,body:t.body,skipBoundary:(r=t.skipBoundary)!=null?r:!0}),this.subsupPlacement=t.supsubPlacement,this.svgAbove=t.svgAbove,this.svgBelow=t.svgBelow,this.svgBody=t.svgBody,this.above=t.above,this.below=t.below,this.boxType=(i=t.boxType)!=null?i:"ord",this.paddedBody=(s=t.paddedBody)!=null?s:!1,this.paddedLabels=(c=t.paddedLabels)!=null?c:!1}static fromJson(t){return new iv(t)}toJson(){const t=super.toJson();return this.skipBoundary||(t.skipBoundary=!1),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.svgAbove&&(t.svgAbove=this.svgAbove),this.svgBelow&&(t.svgBelow=this.svgBelow),this.svgBody&&(t.svgBody=this.svgBody),this.boxType!=="ord"&&(t.boxType=this.boxType),this.paddedBody&&(t.paddedBody=!0),this.paddedLabels&&(t.paddedLabels=!0),t}render(t){let r=this.svgBody?vf(this.svgBody):Ur.createBox(t,this.body,{type:"ignore"});const i=new So({parent:t,mathstyle:"scriptstyle"},this.style);let s=null;this.svgAbove?s=vf(this.svgAbove):this.above&&(s=Ur.createBox(i,this.above,{type:"ignore"}));let c=null;this.svgBelow?c=vf(this.svgBelow):this.below&&(c=Ur.createBox(i,this.below,{type:"ignore"})),this.paddedBody&&(r=new zr([ch(t,"open"),r,ch(t,"close")],{type:"ignore"}));let d=Qh(t,{base:r,above:s,below:c,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return d?(this.subsupPlacement==="over-under"?d=this.attachLimits(t,{base:d,type:d.type}):d=this.attachSupsub(t,{base:d}),this.caret&&(d.caret=this.caret),this.bind(t,d)):null}};function Qh(e,t){if(!t.base)return null;if(!t.above&&!t.below){const k=new zr(t.base,{type:t.type});return k.setStyle("position","relative"),k}let r=0;t.above&&(r=e.metrics.bigOpSpacing5);let i=null;const s=t.base,c=0,d=["ML__center"];if(t.paddedAboveBelow&&d.push("ML__label_padding"),t.below&&t.above){const k=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+s.depth+c;i=new bl({bottom:k,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:d},{box:s,classes:["ML__center"]},r,{box:t.above,classes:d},e.metrics.bigOpSpacing5]})}else t.below?i=new bl({top:s.height-c,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:d},{box:s,classes:["ML__center"]}]}):t.above&&(i=new bl({bottom:s.depth+c,children:[{box:s,classes:["ML__center"]},r,{box:t.above,classes:d},e.metrics.bigOpSpacing5]}));return new zr(i,{type:t.type})}var Pu=class av extends Ur{constructor(t){var r,i,s,c;super(F(g({},t),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(r=t.isInvisible)!=null?r:!1,this.smashDepth=(i=t.smashDepth)!=null?i:!1,this.smashHeight=(s=t.smashHeight)!=null?s:!1,this.smashWidth=(c=t.smashWidth)!=null?c:!1}static fromJson(t){return new av(t)}toJson(){const t={};return this.isInvisible&&(t.isInvisible=!0),this.smashDepth&&(t.smashDepth=!0),this.smashHeight&&(t.smashHeight=!0),this.smashWidth&&(t.smashWidth=!0),g(g({},super.toJson()),t)}render(t){const r=new So({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Ur.createBox(r,this.body,{classes:"inner"});const i=Ur.createBox(this.isInvisible?r:t,this.body);if(!i)return null;if(this.smashWidth){const s=new zr(null,{classes:"fix"});return new zr([i,s],{classes:"rlap"}).wrap(t)}if(!this.smashHeight&&!this.smashDepth)return i;if(this.smashHeight&&(i.height=0),this.smashDepth&&(i.depth=0),i.children)for(const s of i.children)this.smashHeight&&(s.height=0),this.smashDepth&&(s.depth=0);return new bl({firstBaseline:[{box:i}]},{type:i.type}).wrap(t)}},iA=class ov extends Ur{constructor(t){var r;super(g({type:"spacing"},t)),this.width=t==null?void 0:t.width,this._braced=(r=t==null?void 0:t.braced)!=null?r:!1}static fromJson(t){return new ov(t)}toJson(){const t=super.toJson();return this.width!==void 0&&(t.width=this.width),this._braced&&(t.braced=!0),t}render(t){var r;if(this.command==="space")return new zr(this.mode==="math"?null:" ");let i;if(this.width!==void 0)i=new zr(null,{classes:"mspace"}),i.left=t.toEm(this.width);else{const s=(r={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?r:"mediumspace";i=new zr(null,{classes:s})}return i=this.bind(t,i),this.caret&&(i.caret=this.caret),i}_serialize(t){var r;if(!t.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const i=lt(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);const s=(r=this.command)!=null?r:"";return this.width===void 0?s:this._braced&&!("register"in this.width)?`${s}{${kl(this.width)}}`:`${s}${kl(this.width)}`}},Cp=class sv extends Ur{constructor(t){var r;super(F(g({},t),{type:"surd",mode:(r=t.mode)!=null?r:"math",style:t.style,displayContainsHighlight:!0,body:t.body})),this.above=t.index}static fromJson(t){return new sv(F(g({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=lt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=this.command,s=this.bodyToLatex(t);return this.above&&!this.hasEmptyBranch("above")?_s(`${i}[${this.aboveToLatex(t)}]`,s):/^[0-9]$/.test(s)?`${i}${s}`:_s(i,s)}get children(){if(this._children)return this._children;const t=[];if(this.above)for(const r of this.above)t.push(...r.children),t.push(r);if(this.body)for(const r of this.body)t.push(...r.children),t.push(r);return this._children=t,t}render(t){var r;const i=new So({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body,{type:"inner"}))!=null?r:new zr(null),c=i.scalingFactor,d=i.metrics.defaultRuleThickness/c,k=t.isDisplayStyle?Ml:d,j=new zr(null,{classes:"ML__sqrt-line",style:this.style});j.height=d,j.softWidth=s.width;let X=c*(d+k/4);const Pe=Math.max(c*2*k,s.height+s.depth)+X+d,nt=new So({parent:t},this.style),vt=this.bind(nt,new zr(Sf("inner","\\surd",Pe,!1,nt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!vt)return null;const Et=vt.height+vt.depth-d;Et>s.height+s.depth+X&&(X=(X+Et-(s.height+s.depth))/2),vt.setTop(vt.height-s.height-X);const Br=this.bind(t,new bl({firstBaseline:[{box:new zr(s)},X-2*d,{box:j},d]})),En=Ur.createBox(new So({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!En){const Fn=new zr([vt,Br],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Fn.setStyle("display","inline-block"),Fn.setStyle("height",Fn.height+Fn.depth,"em"),this.caret&&(Fn.caret=this.caret),this.bind(t,Fn)}const wr=new bl({shift:-.6*(Math.max(vt.height,Br.height)-Math.max(vt.depth,Br.depth)),children:[{box:En}]}),nn=new zr([new zr(wr,{classes:"ML__sqrt-index",type:"ignore"}),vt,Br],{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)}},Kh=class extends zr{constructor(e){super(null,{type:"skip"}),this._width=e}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function Ah(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"){Ah(e.parent,t);return}i>0&&r[i-1].type==="skip"?r[i-1].width+=t:r.splice(i,0,new Kh(t))}var Hd={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},jd={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function da(e){Ff(e,(t,r)=>{r.type==="bin"&&(!t||/^(middle|bin|op|rel|open|punct)$/.test(t.type))&&(r.type="ord"),(t==null?void 0:t.type)==="bin"&&/^(rel|close|punct)$/.test(r.type)&&(t.type="ord"),r.type!=="ignore"&&(t=r)})}function ll(e,t){if(!e.children)return e;const r=e.children;da(r);const i=t.getRegisterAsEm("thinmuskip"),s=t.getRegisterAsEm("medmuskip"),c=t.getRegisterAsEm("thickmuskip");return Ff(r,(d,k)=>{var j,X,ce;if(!d)return;const Pe=d.type,nt=k.isTight?(j=jd[Pe])!=null?j:null:(X=Hd[Pe])!=null?X:null,vt=(ce=nt==null?void 0:nt[k.type])!=null?ce:null;vt===3&&Ah(k,i),vt===4&&Ah(k,s),vt===5&&Ah(k,c)}),e}function Ff(e,t,r=void 0){if(!e)return r;e=[...e];for(const i of e)i.type==="lift"?r=Ff(i.children,t,r):i.type==="ignore"?Ff(i.children,t):(t(r,i),Ff(i.children,t),r=i);return r}var ud=class lv extends Ur{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new Ur({type:"root",mode:t.content,body:t.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new lv(F(g({},t),{tooltip:ka(t.tooltip)}))}toJson(){var t;const r=(t=this.tooltip.body)==null?void 0:t.filter(i=>i.type!=="first").map(i=>i.toJson());return F(g({},super.toJson()),{tooltip:r})}render(t){const r=Ur.createBox(new So,this.body);if(!r)return null;const i=new So({parent:t,mathstyle:"displaystyle"},{fontSize:il}),s=gf(ll(new zr(this.tooltip.render(i),{classes:"ML__tooltip-content"}),i)),c=new zr([s,r],{classes:"ML__tooltip-container"});return this.caret&&(c.caret=this.caret),this.bind(t,c)}},JA=class cv extends Ur{constructor(t,r){super(F(g({},r),{type:"operator",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.variantStyle=r==null?void 0:r.variantStyle,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new cv(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.variantStyle&&(t.variantStyle=this.variantStyle),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.value&&(t.symbol=this.value),t}render(t){var r;const i=new zr(this.value,{type:"op",mode:"math",maxFontSize:t.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:t.letterShapeStyle});let s=i;if(this.superscript||this.subscript){const c=(r=this.subsupPlacement)!=null?r:"auto";s=c==="over-under"||c==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i}):this.attachSupsub(t,{base:i})}return new zr(this.bind(t,s),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=lt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),Ao(i)}};function ka(e){if(_(e))return e.map(i=>ka(i));if(typeof e=="string")return Ur.fromJson(e);e=g({},e);for(const i of wf)e[i]&&(e[i]=ka(e[i]));e.args&&(e.args=zd(e.args)),e.array&&(e.array=ka(e.array));const t=e.type;let r;t==="accent"&&(r=sh.fromJson(e)),t==="array"&&(r=hs.fromJson(e)),t==="box"&&(r=uc.fromJson(e)),t==="chem"&&(r=wp.fromJson(e)),t==="composition"&&(r=im.fromJson(e)),t==="delim"&&(r=Qc.fromJson(e)),t==="enclose"&&(r=ic.fromJson(e)),t==="error"&&(r=Go.fromJson(e)),t==="extensible-symbol"&&(r=xp.fromJson(e)),t==="genfrac"&&(r=_f.fromJson(e)),t==="group"&&(r=sl.fromJson(e)),t==="latex"&&(r=Nl.fromJson(e)),t==="latexgroup"&&(r=If.fromJson(e)),t==="leftright"&&(r=Ys.fromJson(e)),t==="macro"&&(r=T0.fromJson(e)),t==="macro-argument"&&(r=Ga.fromJson(e)),t==="operator"&&(r=JA.fromJson(e)),t==="overlap"&&(r=Jc.fromJson(e)),t==="overunder"&&(r=hc.fromJson(e)),t==="placeholder"&&(r=Nu.fromJson(e)),t==="prompt"&&(r=Ef.fromJson(e)),t==="phantom"&&(r=Pu.fromJson(e)),t==="sizeddelim"&&(r=Bc.fromJson(e)),t==="spacing"&&(r=iA.fromJson(e)),t==="subsup"&&(r=Ns.fromJson(e)),t==="surd"&&(r=Cp.fromJson(e)),t==="text"&&(r=Td.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=Ur.fromJson(e));for(const i of wf)e[i]&&r.setChildren(e[i],i);return e.verbatimLatex!==void 0&&(r.verbatimLatex=e.verbatimLatex),e.subsupPlacement&&(r.subsupPlacement=e.subsupPlacement),e.explicitSubsupPlacement&&(r.explicitSubsupPlacement=!0),e.isFunction&&(r.isFunction=!0),e.isExtensibleSymbol&&(r.isExtensibleSymbol=!0),e.skipBoundary&&(r.skipBoundary=!0),e.captureSelection&&(r.captureSelection=!0),r}function zd(e){if(e&&Array.isArray(e))return e.map(t=>t==="<null>"?null:typeof t=="object"&&"group"in t?{group:t.group.map(r=>ka(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>ka(r)):t)}var aA={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},H0={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},Au=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Zm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Vm=[/^[a-z]$/,/^[A-Z]$/,Au,Zm],Wm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Jl=class extends Wl{constructor(){super("math")}createAtom(e,t,r){var i,s,c,d;if(t===null)return new Ur({type:"mord",mode:"math",command:e,value:e,style:r});const k=window.MathfieldElement.isFunction((i=t.command)!=null?i:e);if(t.definitionType==="symbol"){const X=new Ur({type:(s=t.type)!=null?s:"mord",mode:"math",command:(c=t.command)!=null?c:e,value:String.fromCodePoint(t.codepoint),style:r});return k&&(X.isFunction=!0),e.startsWith("\\")&&(X.verbatimLatex=e),X}const j=new Ur({type:"mord",mode:"math",command:(d=t.command)!=null?d:e,value:e,style:r});return k&&(j.isFunction=!0),e.startsWith("\\")&&(j.verbatimLatex=e),j}serialize(e,t){const r=b(e,F(g({},t),{defaultMode:"math"}));return r.length===0||t.defaultMode!=="text"?r:["$ ",...r," $"]}getFont(e,t){console.assert(t.variant!==void 0);let{variant:r}=t,{variantStyle:i}=t;r==="normal"&&!i&&/[\u00A3\u0131\u0237]/.test(e.value)&&(r="main",i="italic"),r==="normal"&&!i&&e.value.length===1&&Vm.forEach((k,j)=>{var X;k.test(e.value)&&Wm[(X=t.letterShapeStyle)!=null?X:"tex"][j]==="it"&&(i="italic")}),i==="up"&&(i=void 0);const s=i?r+"-"+i:r;console.assert(aA[s]!==void 0);const[c,d]=aA[s];return H0[r]&&!H0[r].test(e.value)?(e.value=Xe(e.value,r,i),null):(Au.test(e.value)&&(e.classes+=" lcGreek"),d&&(e.classes+=" "+d),c)}};function b(e,t){const{parent:r}=e[0],i=f(r);return UA(e,"variant").map(s=>{const c=f(s[0]);let d="";c&&c!==i&&(d={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[c],console.assert(d!==void 0));const k=Ao(s.map(j=>j._serialize(t)));return d?_s(d,k):k})}function f(e){if(!e)return"";const{style:t}=e;if(t.variant===void 0)return"";let r=t.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(t.variant)&&t.variantStyle&&t.variantStyle!=="up"&&(r+="-"+t.variantStyle),r}new Jl;function w(e,t){return e.map(r=>r._serialize(t))}function y(e,t){return UA(e,"fontShape").map(r=>{const i=w(r,t),{fontShape:s}=r[0].style;let c="";return s==="it"&&(c="\\textit"),s==="sl"&&(c="\\textsl"),s==="sc"&&(c="\\textsc"),s==="n"&&(c="\\textup"),!c&&s?`{${_s("\\fontshape",s)}${Ao(i)}}`:c?_s(c,Ao(i)):Ao(i)})}function re(e,t){return UA(e,"fontSeries").map(r=>{const i=y(r,t),{fontSeries:s}=r[0].style;let c="";return s==="b"&&(c="\\textbf"),s==="l"&&(c="\\textlf"),s==="m"&&(c="\\textmd"),s&&!c?`{${_s("\\fontseries",s)}${Ao(i)}}`:c?_s(c,Ao(i)):Ao(i)})}function _e(e,t){return UA(e,"fontSize").map(r=>{var i,s;const c=re(r,t),d=(s=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(i=r[0].style.fontSize)!=null?i:""])!=null?s:"";return d?`${d} ${Ao(c)}`:Ao(c)})}function Ve(e,t,r){return UA(e,"fontFamily").map(i=>{var s,c;const d=_e(i,t),k=(c={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(s=i[0].style.fontFamily)!=null?s:""])!=null?c:"";return k?`\\${k}{${Ao(d)}}`:i[0].style.fontFamily?`{\\fontfamily{${i[0].style.fontFamily}} ${Ao(d)}}`:r?`\\text{${Ao(d)}}`:Ao(d)})}var ht={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},pt=class extends Wl{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new Td(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return Ve(e,F(g({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,i,s,c,d;const{fontFamily:k}=t;if(ht[k]?e.classes+=" "+ht[k]:k&&e.setStyle("font-family",k),t.fontShape&&(e.classes+=" ",e.classes+=(r={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape])!=null?r:""),t.fontSeries){const j=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);j&&(e.classes+=" ",e.classes+=(s={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(i=j[1])!=null?i:""])!=null?s:"",e.classes+=" ",e.classes+=(d={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(c=j[2])!=null?c:""])!=null?d:"")}return"Main-Regular"}};new pt;var qt=class extends Wl{constructor(){super("latex")}createAtom(e){return new Nl(e)}serialize(e,t){return e.filter(r=>r instanceof Nl&&!r.isSuggestion).map(r=>r.value)}getFont(){return null}};new qt;var Ar={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},pr={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},qr={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},Ui={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Tn={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},pi={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Xa={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},ea={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Yi={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},Ta={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},oo={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Fa={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Mi={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function Lo(e){const t=e.split("+"),r={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:t.pop()};return t.includes("shift")&&(r.shift=!0),t.includes("alt")&&(r.alt=!0),t.includes("ctrl")&&(r.ctrl=!0),t.includes("cmd")&&(r.cmd=!0),t.includes("win")&&(r.win=!0),t.includes("meta")&&(r.meta=!0),r}function eo(e){let t="";return e.shift&&(t+="shift+"),e.alt&&(t+="alt+"),e.ctrl&&(t+="ctrl+"),e.cmd&&(t+="cmd+"),e.win&&(t+="win+"),e.meta&&(t+="meta+"),t+e.key}var Ua={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},ei=[],Sc;function oA(){switch(Y()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function xo(e){(!e.platform||e.platform===oA())&&ei.push(e)}function Ec(e,t){var r;const i={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return i;for(const[s,c]of Object.entries(t.mapping)){if(c[0]===e)return i.key=`[${s}]`,i;if(c[1]===e)return i.shift=!0,i.key=`[${s}]`,i;if(c[2]===e)return i.alt=!0,i.key=`[${s}]`,i;if(c[3]===e)return i.shift=!0,i.alt=!0,i.key=`[${s}]`,i}return i.key=(r=Ua[e])!=null?r:"",i}function dd(e){if(e.code)return e;const t=Object.entries(uu().mapping);let r=!1,i=!1,s="";for(let c=0;c<4;c++){for(const[d,k]of t)if(k[c]===e.key){s=d,c===3?(r=!0,i=!0):c===2?r=!0:c===1&&(i=!0);break}if(s)break}return new KeyboardEvent(e.type,F(g({},e),{altKey:r,shiftKey:i,code:s}))}function Yc(e){var t,r;if(!e||e.key==="Unidentified"||e.key==="Dead")return;const i=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const s of ei)((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);ei.sort((s,c)=>c.score-s.score)}function sA(e){Sc=ei.find(t=>e.startsWith(t.locale))}function uu(){return Sc!=null?Sc:ei[0]}function YA(){switch(oA()){case"apple":return pr;case"windows":return qr;case"linux":return Ui}return pr}switch(oA()){case"apple":xo(pr),xo(Tn),xo(oo),xo(ea);break;case"windows":xo(qr),xo(pi),xo(Fa),xo(Yi);break;case"linux":xo(Ui),xo(Xa),xo(Mi),xo(Ta);break}xo(Ar);function du(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 Tu(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 Uu(e,t){return!e&&t||e&&!t?!1:!e||!t?!0:e.alt===t.alt&&e.control===t.control&&e.shift===t.shift&&e.meta===t.meta}var $d=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function qA(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:$d.has(e.code)}function fd(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var Kc=class v0{static get scrim(){return v0._scrim||(v0._scrim=new v0),v0._scrim}static open(t){v0.scrim.open(t)}static close(){v0.scrim.close()}static get state(){return v0.scrim.state}static get element(){return v0.scrim.element}constructor(t){var r,i;this.lightDismiss=(r=t==null?void 0:t.lightDismiss)!=null?r:!0,this.translucent=(i=t==null?void 0:t.translucent)!=null?i:!1,this.state="closed"}get element(){if(this._element)return this._element;const t=document.createElement("div");return t.setAttribute("role","presentation"),t.style.position="fixed",t.style.contain="content",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.zIndex="var(--scrim-zindex, 10099)",t.style.outline="none",this.translucent?(t.style.background="rgba(255, 255, 255, .2)",t.style.backdropFilter="contrast(40%)"):t.style.background="transparent",this._element=t,t}open(t){var r;if(this.state!=="closed")return;this.state="opening",this.onDismiss=t==null?void 0:t.onDismiss,this.savedActiveElement=fd();const{element:i}=this;((r=t==null?void 0:t.root)!=null?r:document.body).appendChild(i),i.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const s=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const c=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${c+s}px`,t!=null&&t.child&&i.append(t.child),this.state="open"}close(){var t,r,i,s;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:c}=this;c.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),c.remove(),document.body.style.overflow=(t=this.savedOverflow)!=null?t:"",document.body.style.marginRight=(r=this.savedMarginRight)!=null?r:"",fd()!==this.savedActiveElement&&((s=(i=this.savedActiveElement)==null?void 0:i.focus)==null||s.call(i)),c.innerHTML="",this.state="closed"}handleEvent(t){this.lightDismiss&&(t.target===this._element&&t.type==="click"?(this.close(),t.preventDefault(),t.stopPropagation()):t.target===document&&(t.type==="touchmove"||t.type==="scroll")&&(this.close(),t.preventDefault(),t.stopPropagation()))}};function vg(e,t,r){let i=null,s=null,c=!1,d=!1,k=!1;const j=new AbortController,X=j.signal;return e.addEventListener("keydown",ce=>{if(c||ce.key==="Process"||ce.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(ce.code)){i=null;return}i=ce,s=null,r.onKeystroke(ce)?e.textContent="":i=null},{capture:!0,signal:X}),e.addEventListener("keypress",ce=>{c||(i&&s&&r.onKeystroke(i),s=ce)},{capture:!0,signal:X}),e.addEventListener("compositionstart",ce=>{e.textContent="",c=!0,r.onCompositionStart(ce.data)},{capture:!0,signal:X}),e.addEventListener("compositionupdate",ce=>{c&&r.onCompositionUpdate(ce.data)},{capture:!0,signal:X}),e.addEventListener("compositionend",ce=>{e.textContent="",c&&(c=!1,r.onCompositionEnd(ce.data))},{capture:!0,signal:X}),e.addEventListener("beforeinput",ce=>ce.stopImmediatePropagation(),{signal:X}),e.addEventListener("input",ce=>{var Pe;if(!c&&(e.textContent="",ce.inputType!=="insertCompositionText")){if(ce.inputType==="insertFromPaste"){ce.preventDefault(),ce.stopPropagation();return}r.onInput((Pe=ce.data)!=null?Pe:""),ce.preventDefault(),ce.stopPropagation()}},{signal:X}),e.addEventListener("paste",ce=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(ce)||ce.preventDefault(),ce.stopImmediatePropagation()},{signal:X}),e.addEventListener("cut",ce=>r.onCut(ce),{capture:!0,signal:X}),e.addEventListener("copy",ce=>r.onCopy(ce),{capture:!0,signal:X}),e.addEventListener("blur",ce=>{var Pe,nt;if(((nt=(Pe=ce.relatedTarget)==null?void 0:Pe._mathfield)==null?void 0:nt.element)===t){e.focus({preventScroll:!0}),ce.preventDefault(),ce.stopPropagation();return}const vt=Kc.state;if(vt==="open"||vt==="opening"){ce.preventDefault(),ce.stopPropagation();return}if(ce.relatedTarget===ce.target.getRootNode().host){ce.preventDefault(),ce.stopPropagation();return}k||d||(k=!0,i=null,s=null,r.onBlur(),k=!1)},{capture:!0,signal:X}),e.addEventListener("focus",ce=>{k||d||(d=!0,r.onFocus(),d=!1)},{capture:!0,signal:X}),{dispose:()=>j.abort(),cancelComposition:()=>{c&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!d&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>fd()===e,setAriaLabel:ce=>e.setAttribute("aria-label",ce),setValue:ce=>{var Pe;e.textContent=ce,e.style.left="-1000px",(Pe=window.getSelection())==null||Pe.selectAllChildren(e)},moveTo:(ce,Pe)=>{e.style.top=`${Pe}px`,e.style.left=`${ce}px`}}}function Hh(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 jh(e){e=dd(e);const t=[];return e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.length===0?`[${e.code}]`:(t.push(`[${e.code}]`),t.join("+"))}function om(e){if(O()){const t=Y(),r=e.startsWith("!"),i=e.endsWith(t);if(r&&!i||!r&&i)return!0}return e==="!other"?!1:e==="other"}function bg(e,t,r){if(e.length===0)return"";const i=eo(Lo(jh(r))),s=eo({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(Y()),cmd:!1,win:!1});for(let c=e.length-1;c>=0;c--)if((e[c].key===i||e[c].key===s)&&(!e[c].ifMode||e[c].ifMode===t))return e[c].command;return""}function Gm(e){let t=e;return _(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function yg(e,t){let r=[];if(typeof t=="string"){const c=Vp[t];_(c)?r=c.slice():c&&r.push(c)}const i=Gm(t),s=new RegExp("^"+i.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const c of e)s.test(Gm(c.command))&&r.push(c.key);return r.map(du)}function Xm(e,t){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);if(e.ifLayout!==void 0&&(t.score===0||!e.ifLayout.includes(t.id)))return;const r=Lo(e.key);let i=e.ifPlatform;if(r.cmd){if(i&&i!=="macos"&&i!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+i+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);i||(i=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 F(g({},e),{key:eo(r)});const s=Ec(r.key,t);if(!s)return F(g({},e),{key:eo(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 ${eo(s)} using the ${t.displayName} keyboard layout`);return s.shift=s.shift||r.shift,s.alt=s.alt||r.alt,s.meta=r.meta,s.ctrl=r.ctrl,F(g({},e),{key:eo(s)})}function sm(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map(r=>typeof r=="string"?`"${r}"`:r.toString()).join(", ")+")"}return e}function Jg(e,t){const r=[],i=[];for(const s of e)try{const c=Xm(s,t);if(!c)continue;const d=i.find(k=>k.key===c.key&&k.ifMode===c.ifMode);if(d)throw new Error(`Ambiguous key binding ${s.key} (${sm(s.command)}) matches ${d.key} (${sm(d.command)}) with the ${t.displayName} keyboard layout`);i.push(c)}catch(c){c instanceof Error&&r.push(c.message)}return[i,r]}var wg=class extends Ds{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(Xl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const c=[];for(const j of t)I.test(j)&&c.push(new Nl(j));let d=e.at(e.position);if(d instanceof If&&(d=d.lastChild),!(d.parent instanceof If)){const j=new If("");d.parent.addChildAfter(j,d),d=j.firstChild}const k=d.parent.addChildrenAfter(c,d);return e.silenceNotifications=s,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(k)):k&&(e.position=e.offsetOf(k))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};function xg(e){return e.atoms.find(t=>t.type==="latexgroup")}function j0(e){var t,r;const i=e.atoms.find(s=>s.type==="latexgroup");return i?(r=(t=i.body)==null?void 0:t.filter(s=>s.type==="latex"))!=null?r:[]:[]}function Jm(e,t){var r;let i=0,s=!1;const c=Number.isFinite(t==null?void 0:t.before)?(r=t==null?void 0:t.before)!=null?r:0:e.lastOffset;for(;i<=c&&!s;){const j=e.at(i);s=j instanceof Nl&&j.isSuggestion,s||i++}if(!s)return[void 0,void 0];let d=i,k=!1;for(;d<=c&&!k;){const j=e.at(d);k=!(j instanceof Nl&&j.isSuggestion),k||d++}return[i-1,d-1]}new wg;function lm(e){const t=j0(e.model).filter(r=>r.isSuggestion);if(t.length!==0){e.model.position=e.model.offsetOf(t[0].leftSibling);for(const r of t)r.parent.removeChild(r)}}function Bp(e,t){var r;const{model:i}=e;lm(e);for(const ce of j0(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 d=s.map(ce=>ce.value).join(""),k=ie(e,d);if(k.length===0){if(/^\\[a-zA-Z\*]+$/.test(d))for(const ce of s)ce.isError=!0;LA(e);return}const j=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=j<0?k.length-1:j%k.length;const X=k[e.suggestionIndex];if(X!==d){const ce=s[s.length-1];ce.parent.addChildrenAfter([...X.slice(d.length-X.length)].map(Pe=>new Nl(Pe,{isSuggestion:!0})),ce),$h(e,{interactive:!0})}qm(e,k)}function cm(e){const[t,r]=Jm(e,{before:e.position});if(t===void 0||r===void 0)return!1;let i=!1;return e.getAtoms([t,r]).forEach(s=>{s.isSuggestion&&(s.isSuggestion=!1,i=!0)}),i}function zh(e,t="accept",r){var i,s;LA(e);const c=xg(e.model);if(!c)return!1;if(t==="accept-suggestion"||t==="accept-all"){const X=j0(e.model).filter(ce=>ce.isSuggestion);if(X.length!==0){for(const ce of X)ce.isSuggestion=!1;e.model.position=e.model.offsetOf(X[X.length-1])}if(t==="accept-suggestion")return X.length!==0}const k=j0(e.model).filter(X=>!X.isSuggestion).map(X=>X.value).join(""),j=c.leftSibling;return c.parent.removeChild(c),e.model.position=e.model.offsetOf(j),e.switchMode((i=r==null?void 0:r.mode)!=null?i:"math"),t==="reject"||(Ds.insert(e.model,k,{selectionMode:(s=r==null?void 0:r.selectItem)!=null&&s?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function Sp(e){var t;let r=document.getElementById(e);return r?r.dataset.refcount=Number(Number.parseInt((t=r.dataset.refcount)!=null?t:"0")+1).toString():(r=document.createElement("div"),r.setAttribute("aria-hidden","true"),r.dataset.refcount="1",r.id=e,document.body.append(r)),r}function Ym(e){var t;const r=document.getElementById(e);if(!r)return;const i=Number.parseInt((t=r.getAttribute("data-refcount"))!=null?t:"0");i<=1?r.remove():r.dataset.refcount=Number(i-1).toString()}function Cg(e,t){const r=new So({from:e.context}),i=new Ur({mode:"math",type:"root",body:dc(t,{context:r})}),s=gf(ll(new zr(i.render(r),{classes:"ML__base"}),r));return Jf(s,{classes:"ML__latex"}).toMarkup()}function qm(e,t){var r;if(t.length===0){LA(e);return}let i="";for(const[c,d]of t.entries()){const k=d,j=Cg(e,d),X=yg(e.keybindings,k).join("<br>");i+=`<li role="button" data-command="${k}" ${c===e.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${k}</span><span class="ML__popover__command">${j}</span>`,X&&(i+=`<span class="ML__popover__keybinding">${X}</span>`),i+="</li>"}const s=uh(e,`<ul>${i}</ul>`);fu()&&((r=s.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var c;s&&!fu()&&(s.classList.add("is-visible"),Ep(e),(c=s.querySelector(".ML__popover__current"))==null||c.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function fu(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Ep(e,t){var r;if(!e.element||e.element.mathfield!==e||!fu())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){LA(e);return}if(t!=null&&t.deferred){setTimeout(()=>Ep(e),32);return}const i=ih(e.field);if(!i)return;const s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=window.innerWidth-document.documentElement.clientWidth,k=window.innerHeight-document.documentElement.clientHeight,j=window.mathVirtualKeyboard.boundingRect.height,X=document.getElementById("mathlive-suggestion-popover");i.x+X.offsetWidth/2>c-d?X.style.left=`${c-X.offsetWidth-d}px`:i.x-X.offsetWidth/2<0?X.style.left="0":X.style.left=`${i.x-X.offsetWidth/2}px`;const ce=i.y-i.height;s-k-j-i.y<ce?(X.classList.add("ML__popover--reverse-direction"),X.classList.remove("top-tip"),X.classList.add("bottom-tip"),X.style.top=`${i.y-i.height-X.offsetHeight-15}px`):(X.classList.remove("ML__popover--reverse-direction"),X.classList.add("top-tip"),X.classList.remove("bottom-tip"),X.style.top=`${i.y+15}px`)}function LA(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function uh(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=Sp("mathlive-suggestion-popover"),ld("suggestion-popover"),ld("core"),r.addEventListener("pointerdown",i=>i.preventDefault()),r.addEventListener("click",i=>{let s=i.target;for(;s&&!s.dataset.command;)s=s.parentElement;s&&(zh(e,"reject"),Ds.insert(e.model,s.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})),r.innerHTML=window.MathfieldElement.createHTML(t),r}function Yg(){document.getElementById("mathlive-suggestion-popover")&&(Ym("mathlive-suggestion-popover"),cd("suggestion-popover"),cd("core"))}function qg(){const e=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(e.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let t=e[1],r=t.match(/http.*\.ts[\?:]/);return r&&(t=e[2]),r=t.match(/(https?:.*):[0-9]+:[0-9]+/),r||(r=t.match(/at (.*(\.ts))[\?:]/),r||(r=t.match(/at (.*(\.mjs|\.js))[\?:]/))),r?r[1]:(console.error(e),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${t}").`),"")}var hu=null,Bg,eg,Am=((eg=(Bg=globalThis==null?void 0:globalThis.document)==null?void 0:Bg.currentScript)==null?void 0:eg.src)||qg();function Sg(e){return dp(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(hu===null)try{const t=yield fetch(Am,{method:"HEAD"});t.status===200&&(hu=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${Am}")`)}return new URL(e,hu!=null?hu:Am).href})}function e1(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var pu="not-loaded";function t1(){return dp(this,null,function*(){return pu="not-loaded",um()})}function um(){return dp(this,null,function*(){var e;if(pu!=="not-loaded")return;if(pu="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){pu="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const r=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],i=Array.from(document.fonts).map(d=>d.family);if(r.every(d=>i.includes(d))){pu="ready";return}if(!window.MathfieldElement.fontsDirectory){pu="not-loaded";return}const s=yield Sg(window.MathfieldElement.fontsDirectory);if(!s){document.body.classList.add("ML__fonts-did-not-load"),pu="error";return}const c=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(d=>e1(d[0].replace(/-[a-zA-Z]+$/,""),`${s}/${d[0]}`,d[1]));try{(yield Promise.all(c.map(k=>{try{return k.load()}catch(j){}}))).forEach(k=>document.fonts.add(k)),pu="ready";return}catch(d){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${s}"`,{cause:d}),document.body.classList.add("ML__fonts-did-not-load")}pu="error"}})}function r1(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r),t=t|0;return Math.abs(t)}function _l(e,t){e&&(e.dirty||(e.dirty=!0,requestAnimationFrame(()=>{od(e)&&e.dirty&&(e.atomBoundsCache=new Map,$h(e,t),e.atomBoundsCache=void 0)})))}function Eg(e,t){var r;t=t!=null?t:{};const i=new So({from:F(g({},e.context),{atomIdsSettings:{seed:t.forHighlighting?r1(Ur.serialize([e.model.root],{expandMacro:!1,defaultMode:e.options.defaultMode})):"random",groupNumbers:(r=t.forHighlighting)!=null?r:!1},letterShapeStyle:e.options.letterShapeStyle}),mathstyle:e.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),s=e.model.root.render(i);return Jf(ll(s,i),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function _g(e,t){const{model:r}=e;r.root.caret=void 0,r.root.isSelected=!1,r.root.containsCaret=!0;for(const s of r.atoms)s.caret=void 0,s.isSelected=!1,s.containsCaret=!1;if(r.selectionIsCollapsed){const s=r.at(r.position);s.caret=e.model.mode;let c=s.parent;for(;c;)c.containsCaret=!0,c=c.parent}else{const s=r.getAtoms(r.selection,{includeChildren:!0});for(const c of s)c.isSelected=!0}return Eg(e,t).toMarkup()}function $h(e,t){if(!od(e))return;t!=null||(t={});const r=e.element.querySelector("[part=virtual-keyboard-toggle]");r&&(r.style.display=e.hasEditableContent?"":"none");const i=e.field;if(!i)return;const s=e.isSelectionEditable&&e.hasFocus(),c=i.classList.contains("ML__focused");c&&!s?i.classList.remove("ML__focused"):!c&&s&&i.classList.add("ML__focused");let d=_g(e,t);const k=e.element.querySelector("[part=menu-toggle]");if(k&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||e.userSelect==="none"?k.style.display="none":k.style.display=""),e.model.atoms.length<=1){const j=e.options.contentPlaceholder;j&&(d+=`<span part=placeholder class="ML__content-placeholder">${Tl(j)}</span>`)}i.innerHTML=window.MathfieldElement.createHTML(d),dm(e,t.interactive),e.dirty=!1}function dm(e,t){const r=e.field;if(!r)return;for(const k of r.querySelectorAll(".ML__selection, .ML__contains-highlight"))k.remove();!(t!=null&&t)&&pu!=="error"&&pu!=="ready"&&setTimeout(()=>{pu==="ready"?dm(e):setTimeout(()=>dm(e),128)},32);const i=e.model,s=r.offsetWidth,c=r.getBoundingClientRect().width;let d=Math.floor(c)/s;if(d=isNaN(d)?1:d,i.selectionIsCollapsed){Ep(e,{deferred:!0});let k=i.at(i.position);for(;k&&k.type!=="prompt"&&!(k.containsCaret&&k.displayContainsHighlight);)k=k.parent;if(k!=null&&k.containsCaret&&k.displayContainsHighlight){const j=ah(e,oh(e,k),d);if(j){j.left/=d,j.right/=d,j.top/=d,j.bottom/=d;const X=document.createElement("div");X.classList.add("ML__contains-highlight"),X.style.position="absolute",X.style.left=`${j.left+1}px`,X.style.top=`${Math.ceil(j.top)}px`,X.style.width=`${Math.ceil(j.right-j.left)}px`,X.style.height=`${Math.ceil(j.bottom-j.top)}px`,r.insertBefore(X,r.childNodes[0])}}return}for(const k of n1(Rm(e,{excludeAtomsWithBackground:!0}))){k.left/=d,k.right/=d,k.top/=d,k.bottom/=d;const j=document.createElement("div");j.classList.add("ML__selection"),j.style.position="absolute",j.style.left=`${k.left}px`,j.style.top=`${k.top}px`,j.style.width=`${Math.ceil(k.right-k.left)}px`,j.style.height=`${Math.ceil(k.bottom-k.top-1)}px`,r.insertBefore(j,r.childNodes[0])}}function n1(e){let t=[];for(const r of e){let i=!1;for(const s of t)if(r.left===s.left&&r.right===s.right&&r.top===s.top&&r.bottom===s.bottom){i=!0;break}i||t.push(r)}e=t,t=[];for(const r of e){let i=0;for(const s of e)if(r.left>=s.left&&r.right<=s.right&&r.top>=s.top&&r.bottom<=s.bottom&&(i+=1,i>1))break;i===1&&t.push(r)}return t}var Ig=3,n;function o(e,t){t=g({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},t!=null?t:{}),n||(n={});for(const r of Object.keys(e))console.assert(!n[r],"Selector already defined: ",r),n[r]=F(g({},t),{fn:e[r]})}function a(e){let t;if(Array.isArray(e)){if(e[0]==="performWithFeedback")return a(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,r=>r[1].toUpperCase()),n[t]}function l(e){var t;return(t=a(e))==null?void 0:t.target}function A(e,t){var r;if(!t)return!1;let i,s=[],c=!1,d=!1;_(t)?(i=t[0],s=t.slice(1)):i=t,i=i.replace(/-\w/g,X=>X[1].toUpperCase());const k=n[i],j=k==null?void 0:k.target;if(j==="model"){if(!e.isSelectionEditable&&(k!=null&&k.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(i)&&(i!=="deleteBackward"&&e.flushInlineShortcutBuffer(),e.snapshot(i)),/^complete/.test(i)||lm(e),n[i].fn(e.model,...s),Bp(e),d=!0,c=!0}else if(j==="virtual-keyboard")d=(r=window.mathVirtualKeyboard.executeCommand(t))!=null?r:!1,c=!0;else if(n[i]){if(!e.isSelectionEditable&&(k!=null&&k.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(i)&&e.flushInlineShortcutBuffer(),d=n[i].fn(e,...s),c=!0}else throw new Error(`Unknown command "${i}"`);return j!=="virtual-keyboard"&&(!e.model.selectionIsCollapsed||k!=null&&k.changeSelection&&t!=="deleteBackward")&&(e.flushInlineShortcutBuffer(),k!=null&&k.changeContent||e.stopCoalescingUndo(),e.defaultStyle={}),d&&_l(e),c}function p(e,t){var r;if(!e)return!1;e.focus(),Tg.keypressVibration&&L()&&navigator.vibrate(Ig);const i=a(t);window.MathfieldElement.playSound((r=i==null?void 0:i.audioFeedback)!=null?r:"keypress");const s=e.executeCommand(t);return e.scrollIntoView(),s}o({performWithFeedback:(e,t)=>p(e,t)});function N(e){return Bp(e,{atIndex:e.suggestionIndex+1}),!1}function E(e){return Bp(e,{atIndex:e.suggestionIndex-1}),!1}o({complete:zh},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),o({nextSuggestion:N,previousSuggestion:E},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var U="mathlive#virtual-keyboard-message";function Z(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===U}var oe=class Av{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new Av),this._singleton}set alphabeticLayout(t){this.sendMessage("update-setting",{alphabeticLayout:t})}set layouts(t){this.sendMessage("update-setting",{layouts:t})}get normalizedLayouts(){return[]}set editToolbar(t){this.sendMessage("update-setting",{editToolbar:t})}set actionKeycap(t){this.sendMessage("update-setting",{actionKeycap:t})}set shiftKeycap(t){this.sendMessage("update-setting",{shiftKeycap:t})}set backspaceKeycap(t){this.sendMessage("update-setting",{backspaceKeycap:t})}set tabKeycap(t){this.sendMessage("update-setting",{tabKeycap:t})}set container(t){throw new Error("Container inside an iframe cannot be changed")}show(t){this.sendMessage("show",t)}hide(t){this.sendMessage("hide",t)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(t){t?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(t){return this.sendMessage("execute-command",{command:t}),!0}updateToolbar(t){this.sendMessage("update-toolbar",t)}update(t){this.sendMessage("update-setting",t)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(t,r,i){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,i){this.listeners[t]&&this.listeners[t].delete(r)}handleEvent(t){if(Z(t)){if(!Nh(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");this.handleMessage(t.data)}}handleMessage(t){const{action:r}=t;if(r==="execute-command"){const{command:i}=t;l(i)==="virtual-keyboard"&&this.executeCommand(i);return}if(r==="synchronize-proxy"){this._boundingRect=t.boundingRect,this._isShifted=t.isShifted;return}if(r==="geometry-changed"){this._boundingRect=t.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(t,r={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(g({type:U,action:t},r),this.targetOrigin)}},Re={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",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"}]},ae;function mt(e,t){var r,i,s;const c=$r.singleton;if(!c)return;const d=Er(e),k=(i=(r=c.getKeycap(d==null?void 0:d.id))==null?void 0:r.variants)!=null?i:"";if(typeof k=="string"&&!ot(k)||Array.isArray(k)&&k.length===0){t==null||t();return}const j={};let X="";for(const Br of Gt(k)){const En=Bn(Br),wr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);j[wr]=En;const[nn,Fn]=Gr(En);X+=`<div id=${wr} class="item ${Fn}">${nn}</div>`}const ce=document.createElement("div");ce.setAttribute("aria-hidden","true"),ce.className="MLK__variant-panel",ce.style.height="auto";const Pe=Object.keys(j).length;let nt=5;Pe===1?nt=1:Pe===2||Pe===4?nt=2:Pe===3||Pe===5||Pe===6?nt=3:Pe>=7&&Pe<14&&(nt=4),ce.style.width=`calc(var(--variant-keycap-length) * ${nt} + 12px)`,ce.innerHTML=Tg.createHTML(X),Kc.open({root:(s=c==null?void 0:c.container)==null?void 0:s.querySelector(".ML__keyboard"),child:ce}),ae=new AbortController;const{signal:vt}=ae,Et=e==null?void 0:e.getBoundingClientRect();if(Et){Et.top-ce.clientHeight<0&&(ce.style.width="auto",Pe<=6?ce.style.height="56px":Pe<=12?ce.style.height="108px":Pe<=18?ce.style.height="205px":ce.classList.add("compact"));const Br=Math.max(0,Math.min(window.innerWidth-ce.offsetWidth,(Et.left+Et.right-ce.offsetWidth)/2)),En=Et.top-ce.clientHeight+5;ce.style.transform=`translate(${Br}px, ${En}px)`,ce.classList.add("is-visible"),requestAnimationFrame(()=>{ce.addEventListener("pointerup",wr=>{const nn=Er(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||(Jt(j[nn.id]),ut(),t==null||t(),wr.preventDefault())},{capture:!0,passive:!1,signal:vt}),ce.addEventListener("pointerenter",wr=>{const nn=Er(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.add("is-active")},{capture:!0,signal:vt}),ce.addEventListener("pointerleave",wr=>{const nn=Er(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.remove("is-active")},{capture:!0,signal:vt}),window.addEventListener("pointercancel",()=>{ut(),t==null||t()},{signal:vt}),window.addEventListener("pointerup",()=>{ut(),t==null||t()},{signal:vt})})}}function ut(){ae==null||ae.abort(),ae=null,Kc.state==="open"&&Kc.close()}function yt(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(me))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+me[r]+'"></span>',command:["applyStyle",{color:r}]});return t}if(e==="background-color"){const t=[];for(const r of Object.keys(le))t.push({class:"swatch-button",label:'<span style="background:'+le[r]+'"></span>',command:["applyStyle",{backgroundColor:r}]});return t}}function ot(e){return $e[e]!==void 0}function Gt(e){var t;return typeof e!="string"?e:($e[e]||($e[e]=(t=yt(e))!=null?t:[]),$e[e])}function Rt(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function Ft(e){return Object.keys(e).map(t=>`${t} {${Rt(e[t])}}`).join("")}function Mr(e){if(!e)return"";const t=new So,r=new Ur({mode:"math",type:"root",body:dc(e,{context:t,args:s=>s==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),i=gf(ll(new zr(r.render(t),{classes:"ML__base"}),t));return Jf(i,{classes:"ML__latex"}).toMarkup()}function rn(e){var t;if(Array.isArray(e))return e.map(i=>rn(i)).flat();const r=typeof e=="string"?{markup:e}:e;return"rows"in r&&Array.isArray(r.rows)&&(r.rows=r.rows.map(i=>i.map(s=>Bn(s)))),(t=r.id)!=null||(r.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[r]}function Wr(){var e,t;let i=window.mathVirtualKeyboard.alphabeticLayout;if(i==="auto"){const k=uu();k&&(i=k.virtualLayout),(!i||i==="auto")&&(i=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ne.locale.slice(0,2)])!=null?e:"qwerty")}const s={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},c=(t=s[i])!=null?t:s.qwerty,d=i==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const k of c){const j=[];for(const X of k)/[a-z]/.test(X)?j.push({label:X,class:"hide-shift",shift:{label:X.toUpperCase()},variants:ot(X)?X:void 0}):X==="~"?i!=="dvorak"?j.push("[backspace]"):j.push({label:"[backspace]",width:1}):X==="^"?j.push("[shift]"):X===" "&&j.push("[separator-5]");d.push(j)}return d.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:rn({rows:d})}}function ar(e){if(e==="alphabetic")return Wr();if(typeof e=="string")return console.assert(Re[e]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${e}"`),ar(Re[e]);let t;if("rows"in e&&Array.isArray(e.rows)){console.assert(!("layers"in e||"markup"in e),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const s=e,{rows:c}=s,d=$(s,["rows"]);t=F(g({},d),{layers:rn({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const s=e,{markup:c}=s,d=$(s,["markup"]);t=F(g({},d),{layers:rn(e.markup)})}else t=g({},e),"layers"in e?t.layers=rn(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let r=!1,i=!1;for(const s of t.layers)if(s.rows)for(const c of s.rows.flat()){Kr(c)&&(r=!0);const d=c.command;typeof d=="string"&&["undo","redo","cut","copy","paste"].includes(d)&&(i=!0)}return(!("displayShiftedKeycaps"in e)||e.displayShiftedKeycaps===void 0)&&(t.displayShiftedKeycaps=r),(!("displayEditToolbar"in e)||e.displayEditToolbar===void 0)&&(t.displayEditToolbar=!i),t}function Mt(e,t){var r,i;let s='<div class="left">';if(e.normalizedLayouts.length>1)for(const[c,d]of e.normalizedLayouts.entries()){const k=d,j=[c===t?"selected":"layer-switch"];k.tooltip&&j.push("MLK__tooltip"),k.labelClass&&j.push(...k.labelClass.split(" ")),s+=`<div class="${j.join(" ")}"`,k.tooltip&&(s+=" data-tooltip='"+((r=J(k.tooltip))!=null?r:k.tooltip)+"' "),c!==t&&(s+=`data-layer="${k.layers[0].id}"`),s+=`>${(i=k.label)!=null?i:"untitled"}</div>`}return s+="</div>",s}function Cr(e,t){let r="";if(e.editToolbar==="none")return"";const s=[];t.selectionIsCollapsed?s.push("undo","redo","pasteFromClipboard"):s.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const c={undo:`<div class='action ${t.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${J("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${t.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${J("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${J("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${J("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${J("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return r+=s.map(d=>c[d]).join(""),r}function it(e){for(const t of e)wt(t)}function wt(e){const t=$r.singleton;if(!t)return;const r={};if(!e.id){if(e.hasAttribute("data-label")&&(r.label=e.dataset.label),e.hasAttribute("data-latex")&&(r.latex=e.dataset.latex),e.hasAttribute("data-key")&&(r.key=e.dataset.key),e.hasAttribute("data-insert")&&(r.insert=e.dataset.insert),e.hasAttribute("data-variants")&&(r.variants=e.dataset.variants),e.hasAttribute("data-aside")&&(r.aside=e.dataset.aside),e.className&&(r.class=e.className),!r.label&&!r.latex&&!r.key&&!r.insert&&(r.latex=e.innerText,r.label=e.innerHTML),e.hasAttribute("data-command"))try{r.command=JSON.parse(e.dataset.command)}catch(i){}e.id=t.registerKeycap(r)}if(!e.innerHTML){const[i,s]=Gr(r);e.innerHTML=window.MathfieldElement.createHTML(i)}}function Wt(){ld("virtual-keyboard"),ld("core"),um()}function Ht(){cd("core"),cd("virtual-keyboard")}var Tr=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function Zr(e){e.resetKeycapRegistry(),Wt();const t=document.createElement("div");t.className="ML__keyboard";const r=document.createElement("div");r.className="MLK__plate",r.innerHTML=window.MathfieldElement.createHTML(Tr+e.normalizedLayouts.map((d,k)=>Jr(e,d,k)).join(""));const i=document.createElement("div");i.className="MLK__backdrop",i.appendChild(r),t.appendChild(i),t.addEventListener("pointerdown",It,{passive:!1});const s=t.querySelectorAll(".ML__edit-toolbar");if(s)for(const d of s)d.addEventListener("click",k=>{var j,X;let ce=k.target,Pe="";for(;ce&&!Pe;)Pe=(j=ce==null?void 0:ce.getAttribute("data-command"))!=null?j:"",ce=(X=ce==null?void 0:ce.parentElement)!=null?X:null;Pe&&e.executeCommand(JSON.parse(Pe))});it(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const c=t.querySelectorAll(".MLK__layer");console.assert(c.length>0,"No virtual keyboards available");for(const d of c)d.addEventListener("pointerdown",k=>k.preventDefault());return e.currentLayer=e.latentLayer,t}function Jr(e,t,r){const i=[];if(!("layers"in t))return"";for(const s of t.layers)i.push(`<div tabindex="-1" class="MLK__layer" id="${s.id}">`),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(i.push("<div class='MLK__toolbar' role='toolbar'>"),i.push(Mt(e,r)),t.displayEditToolbar&&i.push('<div class="ML__edit-toolbar right"></div>'),i.push("</div>")),i.push(Lr(e,s)),i.push("</div>");return i.join("")}function Lr(e,t){if(typeof t=="string")return t;let r="";if(typeof t.style=="string"?r+=`<style>${t.style}</style>`:typeof t.style=="object"&&(r+=`<style>${Ft(t.style)}</style>`),t.backdrop&&(r+=`<div class='${t.backdrop}'>`),t.container&&(r+=`<div class='${t.container}'>`),t.rows){r+="<div class=MLK__rows>";for(const i of t.rows){r+="<div dir='ltr' class=MLK__row>";for(const s of i)if(s){const c=e.registerKeycap(s),[d,k]=Gr(s);/(^|\s)separator/.test(k)?r+=`<div class="${k}"`:r+=`<div tabindex="-1" id="${c}" class="${k}"`,s.tooltip&&(r+=` data-tooltip="${s.tooltip}"`),r+=`>${d}</div>`}r+="</div>"}r+="</div>"}else t.markup&&(r+=t.markup);return t.container&&(r+="</div>"),t.backdrop&&(r+="</div>"),r}function Gr(e,t={shifted:!1}){var r,i,s,c,d,k,j;let X="",ce=(r=e.class)!=null?r:"";if(t.shifted&&Kr(e)&&(ce+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?X=Mr(e.shift):typeof e.shift=="object"&&(X=e.shift.label?e.shift.label:(i=Mr(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?i:""),typeof e.shift=="object"&&(ce=(c=(s=e.shift.class)!=null?s:e.class)!=null?c:"");else{if(X=e.label?e.label:(d=Mr(e.latex||e.insert||"")||e.key)!=null?d:"",e.shift){let Pe;typeof e.shift=="string"?Pe=Mr(e.shift):e.shift.label?Pe=e.shift.label:Pe=(k=Mr(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?k:"",X+=`<span class="MLK__shift">${Pe}</span>`}e.aside&&(X+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(ce)&&(ce+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(ce)||(ce+=" MLK__keycap"),!/\bw[0-9]+\b/.test(ce)&&e.width&&(ce+=(j={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?j:""),[X,ce||"MLK__keycap"]}var $n={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",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 Bn(e){var t;if(typeof e=="string"){if(e==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(e="[,]"),!$n[e])return{latex:e};e={label:e}}let r;return"label"in e&&e.label&&$n[e.label]&&(r=F(g(g({},$n[e.label]),e),{label:$n[e.label].label})),"key"in e&&e.key&&$n[e.key]&&(r=F(g(g({},$n[e.key]),e),{key:$n[e.key].key})),r?(r.command==="insertDecimalSeparator"&&(r.label=(t=window.MathfieldElement.decimalSeparator)!=null?t:"."),e.label==="[action]"&&(r=g(g({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=g(g({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=g(g({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=g(g({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var rt;function It(e){var t;if(e.button!==0)return;const r=$r.singleton;if(!r)return;let i=e.target;for(;i&&!i.getAttribute("data-layer");)i=i.parentElement;if(i){r.currentLayer=(t=i.getAttribute("data-layer"))!=null?t:"",e.preventDefault();return}const s=Er(e.target);if(!(s!=null&&s.id))return;const c=r.getKeycap(s.id);if(!c)return;console.assert(e.type==="pointerdown");const d=new AbortController,k=d.signal;s.classList.add("is-pressed"),s.addEventListener("pointerenter",Ot(d),{capture:!0,signal:k}),s.addEventListener("pointerleave",Ot(d),{capture:!0,signal:k}),s.addEventListener("pointercancel",Ot(d),{signal:k}),s.addEventListener("pointerup",Ot(d),{signal:k}),Kr(c)&&(s.classList.add("is-active"),r.shiftPressCount++),c.variants&&(rt&&clearTimeout(rt),rt=setTimeout(()=>{s.classList.contains("is-pressed")&&(s.classList.remove("is-pressed"),s.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),mt(s,()=>{d.abort(),s==null||s.classList.remove("is-active")}))},300)),e.preventDefault()}function Ot(e){return t=>{const r=Er(t.target);if(!(r!=null&&r.id))return;const i=$r.singleton;if(!i)return;const s=i.getKeycap(r.id);if(s){if(t.type==="pointerenter"&&t.target===r&&t.isPrimary&&r.classList.add("is-pressed"),t.type==="pointercancel"){r.classList.remove("is-pressed"),Kr(s)&&(i.shiftPressCount--,r.classList.toggle("is-active",i.isShifted)),e.abort();return}if(t.type==="pointerleave"&&t.target===r){r.classList.remove("is-pressed"),Kr(s)&&(i.shiftPressCount--,r.classList.toggle("is-active",i.isShifted));return}if(t.type==="pointerup"){rt&&clearTimeout(rt),Kr(s)?r.classList.toggle("is-active",i.isShifted):r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),i.isShifted&&s.shift?typeof s.shift=="string"?i.executeCommand(["insert",s.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Jt(s.shift):Jt(s),i.shiftPressCount===1&&!t.shiftKey&&(i.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function Jt(e){var t;let r=e.command;!r&&e.insert&&(r=["insert",e.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!r&&e.key&&(r=["typedText",e.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!r&&e.latex&&(r=["insert",e.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),r||(r=["typedText",e.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(t=$r.singleton)==null||t.executeCommand(r)}function fr(e){if(e.nodeType!==1)return!1;const t=e.classList;return t.contains("MLK__keycap")||t.contains("shift")||t.contains("action")||t.contains("fnbutton")||t.contains("bigfnbutton")}function Er(e){if(!e)return;let t=e;for(;t&&!fr(t);)t=t.parentElement;return t!=null?t:void 0}function Kr(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var $r=class uv{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var t,r,i;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(r=(t=window.document)==null?void 0:t.body)!=null?r:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(s=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(i=window.top)==null||i.addEventListener("message",this)}catch(s){window.addEventListener("message",this)}document.body.addEventListener("focusin",s=>{const c=s.target;c!=null&&c.isConnected&&setTimeout(()=>{const d=mn();d&&!d.readOnly&&d.mathVirtualKeyboardPolicy==="auto"&&T()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",s=>{s.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{mn()||this.hide()},300)})}get currentLayer(){var t,r,i;return(i=(r=(t=this._element)==null?void 0:t.querySelector(".MLK__layer.is-visible"))==null?void 0:r.id)!=null?i:""}set currentLayer(t){var r;if(!this._element){this.latentLayer=t;return}let i=t?this._element.querySelector(`#${t}.MLK__layer`):null;i||(i=this._element.querySelector(".MLK__layer")),i&&((r=this._element.querySelector(".MLK__layer.is-visible"))==null||r.classList.remove("is-visible"),i.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(t){var r;this._shiftPressCount=t>2||t<0?0:t,(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(t){const r="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[r]=t,r}getKeycap(t){return t?this.keycapRegistry[t]:void 0}getLayer(t){const r=this.normalizedLayouts;for(const i of r)for(const s of i.layers)if(s.id===t)return s}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(t){this._alphabeticLayout=t,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(t){this._actionKeycap=typeof t=="string"?{label:t}:t}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(t){this._shiftKeycap=typeof t=="string"?{label:t}:t}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(t){this._backspaceKeycap=typeof t=="string"?{label:t}:t}get tabKeycap(){return this._tabKeycap}set tabKeycap(t){this._tabKeycap=typeof t=="string"?{label:t}:t}get layouts(){return this._layouts}set layouts(t){this.updateNormalizedLayouts(t),this.rebuild()}updateNormalizedLayouts(t){const r=Array.isArray(t)?[...t]:[t],i=r.findIndex(s=>s==="default");i>=0&&r.splice(i,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(r),this._normalizedLayouts=r.map(s=>ar(s))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(t){this._editToolbar=t,this.rebuild()}get container(){return this._container}set container(t){this._container=t,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new uv}catch(t){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(t,r,i){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,i){this.listeners[t]&&this.listeners[t].delete(r)}get element(){return this._element}set element(t){var r;this._element!==t&&((r=this._element)==null||r.remove(),this._element=t)}get visible(){return this._visible}set visible(t){t?this.show():this.hide()}get boundingRect(){var t;if(!this._visible)return new DOMRect;const r=(t=this._element)==null?void 0:t.getElementsByClassName("MLK__plate")[0];return r?r.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var t,r;const i=this.boundingRect.height;if(this.container===document.body){(t=this._element)==null||t.style.setProperty("--_keyboard-height",`calc(${i}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const s=i-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${s}px)`:`${s}px`}else(r=this._element)==null||r.style.setProperty("--_keyboard-height",`${i}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const t=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=t,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const t=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(t&&(t.backdrop||t.container)));const r=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(r)for(const i of r){const s=this.getKeycap(i.id);if(s){const[c,d]=Gr(s,{shifted:this.isShifted});i.innerHTML=window.MathfieldElement.createHTML(c),i.className=d}}}show(t){var r;if(this._visible)return;const i=this.container;if(i&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const s=this._element.getElementsByClassName("MLK__plate")[0];if(s&&this.observer.observe(s),i===window.document.body){const c=i.style.paddingBottom;this.originalContainerBottomPadding=c;const d=s.offsetHeight-1;i.style.paddingBottom=c?`calc(${c} + ${d}px)`:`${d}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,t!=null&&t.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var s;return(s=this._element)==null?void 0:s.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(t){var r;const i=this.container;if(i&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const s=this._element.getElementsByClassName("MLK__plate")[0];s&&this.observer.unobserve(s),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),ut(),Ht(),(r=this._element)==null||r.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(i.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var t,r;return(r=(t=this.element)==null?void 0:t.offsetHeight)!=null?r:0}buildAndAttachElement(){var t;console.assert(!this.element),this.element=Zr(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",r=>{r.shiftKey||((r.ctrlKey||r.button===2)&&mt(r.target),r.preventDefault(),r.stopPropagation())},{capture:!0}),(t=this.container)==null||t.appendChild(this.element)}handleEvent(t){if(Z(t)){if(!Nh(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");t.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:t.data.action!=="update-setting"&&t.data.action!=="proxy-created"&&t.data.action!=="execute-command"&&(console.assert(t.source!==void 0),this.connectedMathfieldWindow=t.source),this.handleMessage(t.data,t.source)}if(this._element)switch(t.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":t.button!==2&&t.preventDefault();break;case"keydown":{t.key==="Shift"&&!t.repeat&&(this.shiftPressCount=1);break}case"keyup":{(t.key==="Shift"||!t.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(t,r){const{action:i}=t;if(i==="execute-command"){const{command:s}=t,c=l(s);if(window.top!==void 0&&c!=="virtual-keyboard")return;this.executeCommand(s);return}if((i==="connect"||i==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r),i!=="disconnect"&&window===window.top){if(i==="show"){typeof t.animate!="undefined"?this.show({animate:t.animate}):this.show();return}if(i==="hide"){typeof t.animate!="undefined"?this.hide({animate:t.animate}):this.hide();return}if(i==="update-setting"){t.alphabeticLayout&&(this.alphabeticLayout=t.alphabeticLayout),t.layouts&&(this.layouts=t.layouts),t.editToolbar&&(this.editToolbar=t.editToolbar);return}if(i==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r);return}}}sendMessage(t,r,i){if(i||(i=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||i===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:g({type:U,action:t},r)}));return}if(i)i.postMessage(g({type:U,action:t},r),{targetOrigin:this.targetOrigin});else if(r.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:r.command})),t==="execute-command"&&Array.isArray(r.command)&&r.command[0]==="insert"){const s=r.command[1].split("");for(const c of s)this.dispatchEvent(new KeyboardEvent("keydown",{key:c,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:c,bubbles:!0}))}}stateWillChange(t){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:t},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(t){const r=this._element;if(!r)return;r.classList.toggle("is-math-mode",t.mode==="math"),r.classList.toggle("is-text-mode",t.mode==="text"),r.classList.toggle("can-undo",t.canUndo),r.classList.toggle("can-redo",t.canRedo),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-paste",!0);const i=r.querySelectorAll(".ML__edit-toolbar");if(i)for(const s of i)s.innerHTML=Cr(this,t)}update(t){this._style=t.style,this.updateToolbar(t)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(t){let r,i=[],s=l(t);return _(t)?(r=t[0],r==="performWithFeedback"&&(t=t.slice(1),s=l(t)),i=t.slice(1)):r=t,r=r.replace(/-\w/g,c=>c[1].toUpperCase()),s==="virtual-keyboard"?n[r].fn(void 0,...i):(this.sendMessage("execute-command",{command:t}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function mn(){var e,t;let r=fd(),i=null;for(;r;){if("host"in r&&((t=(e=r.host)==null?void 0:e.tagName)==null?void 0:t.toLowerCase())==="math-field"){i=r.host;break}r=r.parentNode}return i}if(O()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=$r.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>oe.singleton,configurable:!0});function Hn(e){const t={};for(const r of Object.keys(e))switch(r){case"scriptDepth":const i=e.scriptDepth;if(_(i))t.scriptDepth=[i[0],i[1]];else if(typeof i=="number")t.scriptDepth=[i,i];else if(typeof i=="string"){const[c,d]=i.split(",").map(k=>parseInt(k.trim()));t.scriptDepth=[c,d]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let s=e.mathVirtualKeyboardPolicy.toLowerCase();if(s==="sandboxed"){if(window!==window.top){const c=$r.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>c})}s="manual"}t.mathVirtualKeyboardPolicy=s;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?ne.locale.startsWith("fr")?t.letterShapeStyle="french":t.letterShapeStyle="tex":t.letterShapeStyle=e.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(e.defaultMode)?t.defaultMode=e.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),t.defaultMode="math");break;case"macros":t.macros=De(e.macros);break;default:_(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=g({},e[r]):t[r]=e[r]}return t}function gi(e,t){let r;typeof t=="string"?r=[t]:t===void 0?r=Object.keys(e):r=t;const i={};for(const s of r)e[s]===null?i[s]=null:_(e[s])?i[s]=[...e[s]]:typeof e[s]=="object"&&!(e[s]instanceof Element)&&s!=="computeEngine"?i[s]=g({},e[s]):i[s]=e[s];return typeof t=="string"?i[t]:i}function Ci(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ue,backgroundColorMap:ee,letterShapeStyle:ne.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:e=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(e),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:Zp,inlineShortcuts:fp,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Um,value:""}}function Sa(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function gt(e,t){!e||!t||(_(e)?e.forEach(r=>gt(r,t)):typeof e=="object"&&!e.style.color&&!e.style.backgroundColor&&!e.style.fontFamily&&!e.style.fontShape&&!e.style.fontSeries&&!e.style.fontSize&&!e.style.variant&&!e.style.variantStyle&&(e.applyStyle(t),gt(e.body,t),gt(e.above,t),gt(e.below,t),gt(e.subscript,t),gt(e.superscript,t)))}function Li(e,t,r,i){function s(d,k){for(const j of c)if(j.style[d]!==k)return!1;return!0}if(t=e.normalizeRange(t),t[0]===t[1])return!1;const c=e.getAtoms(t,{includeChildren:!0});i.operation==="toggle"&&(r.color&&s("color",r.color)&&(r.color="none",delete r.verbatimColor),r.backgroundColor&&s("backgroundColor",r.backgroundColor)&&(r.backgroundColor="none",delete r.verbatimBackgroundColor),r.fontFamily&&s("fontFamily",r.fontFamily)&&(r.fontFamily="none"),r.fontSeries&&s("fontSeries",r.fontSeries)&&(r.fontSeries="auto"),r.fontShape&&s("fontShape",r.fontShape)&&(r.fontShape="auto"),r.fontSize&&s("fontSize",r.fontSize)&&(r.fontSize=il),r.variant&&s("variant",r.variant)&&(r.variant="normal"),r.variantStyle&&s("variantStyle",r.variantStyle)&&(r.variantStyle=""));for(const d of c)d.applyStyle(r);return!0}function Oo(e,t){const r=e.at(e.position);if(r.type==="composition")r.value=t;else{const{caret:i}=r;r.caret=void 0;const s=new im(t,{mode:r.mode});s.caret=i,r.parent.addChildAfter(s,r),e.position+=1}}function Ha(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}je(["math","displaymath"],Oi),je("center",Oi),de("displaylines","",{parse:e=>{const t=[];let r=[];e.beginContext({tabular:!0});do{if(e.end()||e.match("<}>"))break;e.matchColumnSeparator()||e.matchRowSeparator()?(t.push([r]),r=[]):r.push(...e.scan(i=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(i)))}while(!0);return e.endContext(),t.push([r]),t},createAtom:e=>new hs("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Ct("array","{columns:colspec}",(e,t,r,i)=>new hs(e,Da(t),r,{columns:i[0],mathstyleName:"textstyle"})),Ct(["equation","equation*","subequations"],"",(e,t,r)=>new hs(e,Da(t),r,{columns:[{align:"c"}]})),Ct(["multline","multline*"],"",Oi),Ct(["align","align*","aligned","eqnarray"],"",Oi),Ct("split","",Oi),Ct(["gather","gathered"],"",Oi),Ct(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Oi),Ct(["smallmatrix","smallmatrix*"],"[columns:colspec]",Oi),Ct(["cases","dcases","rcases"],"",Oi);function Un(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function Da(e,t=1){return Un(e)?Array(t).fill([[new Ur({type:"first"}),new Nu]]):e.map(r=>r.length===0?[[new Ur({type:"first"})]]:r.map(i=>i.length===0?[new Ur({type:"first"})]:(i[0].type!=="first"&&i.unshift(new Ur({type:"first"})),i)))}function Oi(e,t=[[[]]],r=[],i=[]){switch(t=Da(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":return new hs(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new hs(e,t,r,{mathstyleName:"textstyle"});case"center":return new hs(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new hs(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new hs(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new hs(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:xa(i[0])});case"bmatrix":case"bmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:xa(i[0])});case"Bmatrix":case"Bmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:xa(i[0])});case"vmatrix":case"vmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:xa(i[0])});case"Vmatrix":case"Vmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:xa(i[0])});case"matrix":case"matrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:xa(i==null?void 0:i[0])});case"smallmatrix":case"smallmatrix*":return new hs(e,t,r,{mathstyleName:"scriptstyle",columns:xa(i==null?void 0:i[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new hs(e,t,r,{mathstyleName:e==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new hs(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new hs(e,t,r,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let s=0;for(const k of t)s=Math.max(s,k.length);const c=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let d=2;for(;d<s;)c.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),d+=2;return c.push({gap:0}),new hs(e,t,r,{arraycolsep:0,columns:c,minColumns:2})}}return new hs(e,t,r,{mathstyleName:"textstyle"})}function xa(e){return e!=null?e:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function La(e,t){let r=e.at(e.position);for(;r&&!(r.parent instanceof hs);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof hs)){const i=e.at(e.position);if(r=i,!r.parent.parent){let s=e.extractAtoms([e.position,e.lastOffset]),c=e.extractAtoms([0,e.position]);c.length===0&&(c=Ea()),s.length===0&&(s=Ea());let d;return t.endsWith("column")?(d=Oi("split",[[c,s]]),e.root=d,is(d,0,0)?Ja(e,d,0,0):is(d,0,1)?Ja(e,d,0,1):e.position=e.offsetOf(i)):(d=Oi("lines",[[c],[s]]),e.root=d,is(d,0,0)?Ja(e,d,0,0):is(d,1,0)?Ja(e,d,1,0):e.position=e.offsetOf(i)),[void 0,[0,0]]}if(r.parent instanceof Ys){const s=r.parent;let c=e.extractAtoms([e.position,e.offsetOf(s.lastChild)]),d=e.extractAtoms([e.offsetOf(s.firstChild),e.position]);d.length===0&&(d=Ea()),c.length===0&&(c=Ea());let k="pmatrix";const j=s.leftDelim,X=s.rightDelim;j==="("&&(X===")"||X==="?")?k="pmatrix":(j==="["||j==="\\lbrack")&&(X==="]"||X==="\\rbrack"||X==="?")?k="bmatrix":j==="\\vert"&&X==="\\vert"?k="vmatrix":j==="\\Vert"&&X==="\\Vert"?k="Vmatrix":(j==="{"||j==="\\lbrace")&&(X==="."||X==="?")&&(k="cases");const ce=Oi(k,t.endsWith("column")?[[d,c]]:[[d],[c]]);return s.parent.addChildBefore(ce,s),s.parent.removeChild(s),is(ce,0,0)?Ja(e,ce,0,0):t.endsWith("column")?is(ce,0,1)?Ja(e,ce,0,1):e.position=e.offsetOf(r):is(ce,1,0)?Ja(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 is(e,t,r){const i=e.getCell(t,r);return!i||i.length!==2?!1:i[1].type==="placeholder"}function as(e,t,r,i){const s=t.getCell(r,i);return s?[e.offsetOf(s[0]),e.offsetOf(s[s.length-1])]:-1}function Ja(e,t,r,i){const s=as(e,t,r,i);typeof s!="number"&&e.setSelection(s)}function Xo(e,t,r,i,s){const c=t.getCell(r,i);c&&e.setPositionHandlingPlaceholder(e.offsetOf(c[s==="start"?0:c.length-1]))}function Qo(e,t){const[r,[i,s]]=La(e,t);if(r)switch(t){case"after row":r.addRowAfter(i),Xo(e,r,i+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(s),Xo(e,r,i,s+1,"end");break;case"before row":r.addRowBefore(i),Xo(e,r,i,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(s),Xo(e,r,i,s,"start");break}}function ha(e){return e.contentWillChange({inputType:"insertText"})?(Qo(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Eo(e){return e.contentWillChange({inputType:"insertText"})?(Qo(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Ca(e){return e.contentWillChange({inputType:"insertText"})?(Qo(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function pc(e){return e.contentWillChange({inputType:"insertText"})?(Qo(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function ws(e,t){if(!e.contentWillChange({}))return!1;e.mathfield.snapshot();let r=".",i=".";switch(t){case"pmatrix":case"pmatrix*":r="(",i=")";break;case"bmatrix":case"bmatrix*":r="[",i="]";break;case"Bmatrix":case"Bmatrix*":r="\\lbrace",i="\\rbrace";break;case"vmatrix":case"vmatrix*":r="\\vert",i="\\vert";break;case"Vmatrix":case"Vmatrix*":r="\\Vert",i="\\Vert";break;case"matrix":case"matrix*":r=".",i=".";break;case"cases":case"dcases":r="\\lbrace";break;case"rcases":i="\\rbrace";break}const s=e.at(e.position),c=s.type==="array"?s:e.parentEnvironment;return c.environmentName=t,c.leftDelim=r,c.rightDelim=i,e.contentDidChange({}),!0}function Po(e,t){let r=e.at(e.position);for(;r&&!(Array.isArray(r.parentBranch)&&r.parent instanceof hs);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof hs){const i=r.parent,s=r.parentBranch;let c;switch(t){case"row":if(i.rowCount>1){i.removeRow(s[0]);const d=i.getCell(Math.max(0,s[0]-1),s[1]);c=e.offsetOf(d[d.length-1])}break;case"column":if(i.colCount>i.minColumns){i.removeColumn(s[1]);const d=i.getCell(s[0],Math.max(0,s[1]-1));c=e.offsetOf(d[d.length-1])}break}c&&e.setPositionHandlingPlaceholder(c)}}function Ko(e){return e.contentWillChange({inputType:"deleteContent"})?(Po(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function Ol(e){return e.contentWillChange({inputType:"deleteContent"})?(Po(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}o({addRowAfter:ha,addColumnAfter:Ca,addRowBefore:Eo,addColumnBefore:pc,removeRow:Ko,removeColumn:Ol,setEnvironment:ws},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Ea(){return[new Nu]}var dl=class dv{constructor(t){this.recording=!1,this.model=t,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(t){t&&this.index>=0&&(this.stack[this.index].selection=t),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(t){return this.recording?(t&&t===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>dv.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=t!=null?t:"",!0):!1}};dl.maximumDepth=1e3;var Ya=dl;function fo(e,t,r){if(e.at(t).mode!=="text")return t;const i=r==="backward"?-1:1;let s;if(u.test(e.at(t).value)){let c=t,d;do d=e.at(c).mode==="text"&&u.test(e.at(c).value),c+=i;while(e.at(c)&&d);s=e.at(c)?c-2*i:c-i}else if(/\s/.test(e.at(t).value)){let c=t;for(;e.at(c)&&e.at(c).mode==="text"&&/\s/.test(e.at(c).value);)c+=i;if(!e.at(c))s=c-i;else{let d=!0;do d=e.at(c).mode==="text"&&!/\s/.test(e.at(c).value),c+=i;while(e.at(c)&&d);s=e.at(c)?c-2*i:c-i}}else{let c=t;for(;e.at(c)&&e.at(c).mode==="text"&&!/\s/.test(e.at(c).value);)c+=i;s=e.at(c)?c:c-i;let d=!0;for(;e.at(c)&&d;)d=e.at(c).mode==="text"&&/\s/.test(e.at(c).value),d&&(s=c),c+=i;s=e.at(c)?c-2*i:c-i}return s-(i>0?0:1)}function al(e,t,r){var i,s,c,d,k,j,X;const ce=e.position;(i=r==null?void 0:r.extend)!=null&&i||e.collapseSelection(t);let Pe=e.at(e.position);if(t==="forward"&&(Pe.type==="subsup"?(Pe=Pe.rightSibling,Pe||(Pe=e.at(e.position+1))):Pe=e.at(e.position+1)),!Pe)return e.announce("plonk"),!1;let nt=e.offsetOf(Pe);if(Pe instanceof Td)nt=fo(e,nt,t);else if(Pe instanceof Nl)if(Pe.isSuggestion)for(console.assert(t==="forward");Pe&&Pe instanceof Nl;)Pe.isSuggestion=!1,nt=e.offsetOf(Pe),Pe=Pe.rightSibling;else if(t==="forward"){if(Pe=Pe.rightSibling,!Pe||!(Pe instanceof Nl))return e.announce("plonk"),!1;for(;Pe&&Pe instanceof Nl&&/[a-zA-Z\*]/.test(Pe.value);)nt=e.offsetOf(Pe),Pe=Pe.rightSibling}else{if(Pe=Pe.leftSibling,!Pe||!(Pe instanceof Nl))return e.announce("plonk"),!1;for(;Pe&&Pe instanceof Nl&&/[a-zA-Z\*]/.test(Pe.value);)nt=e.offsetOf(Pe),Pe=Pe.leftSibling}else if(t==="forward"&&Pe.type==="mopen"){let vt=0;do Pe.type==="mopen"?vt+=1:Pe.type==="mclose"&&(vt-=1),Pe=Pe.rightSibling;while(!Pe.isLastSibling&&vt!==0);nt=e.offsetOf(Pe.leftSibling)}else if(t==="backward"&&Pe.type==="mclose"){let vt=0;do Pe.type==="mopen"?vt+=1:Pe.type==="mclose"&&(vt-=1),Pe=Pe.leftSibling;while(!Pe.isFirstSibling&&vt!==0);nt=e.offsetOf(Pe)}else if(t==="backward")if(Pe.type==="first")for(;nt>0&&Pe.type==="first";)nt-=1,Pe=e.at(nt);else{const vt=Pe.type;Pe.type==="subsup"&&(nt=e.offsetOf(e.at(nt).leftSibling)),nt-=1;let Et=(s=e.at(nt))==null?void 0:s.type;for(;nt>=0&&Et===vt;)((c=e.at(nt))==null?void 0:c.type)==="subsup"?nt=e.offsetOf(e.at(nt).leftSibling):nt-=1,Et=e.at(nt).type}else{const{type:vt}=Pe;let Et=(d=e.at(nt))==null?void 0:d.type;const{lastOffset:Br}=e;for(;nt<=Br&&(Et===vt||Et==="subsup");){for(;((k=e.at(nt).rightSibling)==null?void 0:k.type)==="subsup";)nt=e.offsetOf(e.at(nt).rightSibling);nt+=1,Et=(j=e.at(nt))==null?void 0:j.type}nt-=1}if((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 no(e,t,r){var i,s;if(r=r!=null?r:{extend:!1},e.mathfield.adoptStyle=t==="backward"?"right":"left",t!=="forward"){const[k,j]=Jm(e);k!==void 0&&j!==void 0&&e.deleteAtoms([k,j])}if(t==="upward")return Mf(e,r);if(t==="downward")return Zd(e,r);if(r.extend){let k=Na(e,e.position,t);k<0&&(k=0),k>e.lastOffset&&(k=e.lastOffset);const j=e.setSelection(e.anchor,k);return e.mathfield.stopCoalescingUndo(),j}if(e.selectionIsPlaceholder){e.collapseSelection(t);const k=no(e,t);return e.mathfield.stopCoalescingUndo(),k}let c=e.position;const d=c;if(e.collapseSelection(t)?(c=e.position,Hs(e,c)||(c=Na(e,c,t))):c=Na(e,c,t),c<0||c>e.lastOffset){let k=!0;return e.silenceNotifications||(k=(s=(i=e.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))!=null?s:!0),k&&e.announce("plonk"),k}return e.setPositionHandlingPlaceholder(c),e.mathfield.stopCoalescingUndo(),e.announce("move",d),!0}function Na(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||Hs(e,t)?t:Na(e,t,r)}function Hs(e,t){var r;const i=e.at(t);let s=i.parent;for(;s&&!s.inCaptureSelection;)s=s.parent;return!(s!=null&&s.inCaptureSelection||(r=i.parent)!=null&&r.skipBoundary&&(!i.isFirstSibling&&i.isLastSibling||i.type==="first")||e.mathfield.hasEditablePrompts&&!i.parentPrompt)}function Zh(e,t,r){let i=1/0,s=0;for(;s<t.length;s++){const c=k0(e.getHTMLElement(t[s])).right,d=Math.abs(r-c);if(d<=i)i=d;else break}return t[s-1]}function Hc(e,t,r,i,s){const c=e.mathfield.hasEditablePrompts,d=c?r.filter(X=>X.type==="prompt"&&!X.captureSelection):r,k=k0(e.mathfield.getHTMLElement(t)).right,j=e.offsetOf(Zh(e.mathfield,d,k))-(c?1:0);if(i){const[X,ce]=e.selection.ranges[0];let Pe;j<(s==="up"?X:ce)?Pe={ranges:[[j,ce]],direction:"backward"}:Pe={ranges:[[X,j]],direction:"forward"},e.setSelection(Pe)}else e.setPositionHandlingPlaceholder(j);e.announce(`move ${s}`)}function Mf(e,t){var r,i;const s=(r=t==null?void 0:t.extend)!=null?r:!1;s||e.collapseSelection("backward");const c=()=>{var j,X;let ce=!0;return e.silenceNotifications||(ce=(X=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ce?"plonk":"line"),ce},d=e.at(e.position);let k=d;for(;k&&k.parentBranch!=="below"&&!(Array.isArray(k.parentBranch)&&k.parent instanceof hs);)k=k.parent;if(Array.isArray(k==null?void 0:k.parentBranch)&&k.parent instanceof hs){const j=k.parent;if(k.parentBranch[0]<1)return c();const X=k.parentBranch[0]-1,ce=j.array[X][k.parentBranch[1]];if(!ce.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();Hc(e,d,ce,s,"up")}else if(k){const j=(i=k.parent.branch("above"))!=null?i:k.parent.createBranch("above");if(!j.some(ce=>ce.type==="prompt"&&ce.placeholderId)&&e.mathfield.hasEditablePrompts)return c();Hc(e,d,j,s,"up")}else return c();return e.mathfield.stopCoalescingUndo(),!0}function Zd(e,t){var r,i;const s=(r=t==null?void 0:t.extend)!=null?r:!1;s||e.collapseSelection("forward");const c=()=>{var j,X;let ce=!0;return e.silenceNotifications||(ce=(X=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ce?"plonk":"line"),ce},d=e.at(e.position);let k=d;for(;k&&k.parentBranch!=="above"&&!(Array.isArray(k.parentBranch)&&k.parent instanceof hs);)k=k.parent;if(Array.isArray(k==null?void 0:k.parentBranch)&&k.parent instanceof hs){const j=k.parent;if(k.parentBranch[0]+1>j.array.length-1)return c();const X=k.parentBranch[0]+1,ce=j.array[X][k.parentBranch[1]];if(!ce.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();Hc(e,d,ce,s,"down")}else if(k){const j=(i=k.parent.branch("below"))!=null?i:k.parent.createBranch("below");if(!j.some(ce=>ce.type==="prompt")&&e.mathfield.hasEditablePrompts)return c();Hc(e,d,j,s,"down")}else return c();return!0}function ja(e){const t=e.position,r=e.at(t).parent;return r!=null&&r.parent?(e.position=e.offsetOf(r),e.mathfield.stopCoalescingUndo(),e.announce("move",t),!0):(e.announce("plonk"),!1)}function Lf(e){let t=0,r=e.at(e.position),i=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(i=!1):i=!0,r=r.parent;return i?t:0}function kf(e){let t=0,r=e.at(e.position),i=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(i=!0):i=!1,r=r.parent;return i?t:0}function mu(e){var t;if(e.collapseSelection(),Lf(e)>=e.mathfield.options.scriptDepth[1])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=r.rightSibling)==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new Ns({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function gu(e){var t;if(e.collapseSelection(),kf(e)>=e.mathfield.options.scriptDepth[0])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=e.at(e.position+1))==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new Ns({style:e.at(e.position).computedStyle}),r),r=e.at(e.position+1)),r.createBranch("subscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.subscript[0]))),!0}function ac(){function e(j){const X=[],ce=[];return[...j.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((nt,vt)=>{const Et=i(nt);Et===0?X.push(nt):ce.push({documentOrder:vt,tabIndex:Et,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(j){return!(!r(j)||s(j)||i(j)<0)}function r(j){return!(j.disabled||j.type==="hidden"&&j.tagName.toUpperCase()==="INPUT"||k(j))}function i(j){var X;const ce=Number.parseInt((X=j.getAttribute("tabindex"))!=null?X:"NaN",10);return Number.isNaN(ce)?j.contentEditable==="true"||(j.nodeName==="AUDIO"||j.nodeName==="VIDEO")&&j.getAttribute("tabindex")===null?0:j.tabIndex:ce}function s(j){return j.tagName.toUpperCase()==="INPUT"&&j.type==="radio"&&!d(j)}function c(j,X){for(const ce of j)if(ce.checked&&ce.form===X)return ce;return null}function d(j){var X;if(!j.name)return!0;const Pe=((X=j.form)!=null?X:j.ownerDocument).querySelectorAll('input[type="radio"][name="'+j.name+'"]'),nt=c(Pe,j.form);return!nt||nt===j}function k(j){if(!O()||j===document.activeElement||j.contains(document.activeElement))return!1;if(getComputedStyle(j).visibility==="hidden")return!0;const X=j.getBoundingClientRect();if(X.width===0||X.height===0)return!0;for(;j;){if(getComputedStyle(j).display==="none")return!0;j=j.parentElement}return!1}return O()?e(document.body):[]}function Is(e,t,r="forward"){const i=e.position;if(Array.isArray(t)){const s=e.offsetOf(t[0]),c=e.offsetOf(t[t.length-1]);return r==="forward"?e.setSelection(s,c):e.setSelection(c,s),e.announce("move",i),e.mathfield.stopCoalescingUndo(),!0}return r==="forward"?Is(e,[t.leftSibling,t]):Is(e,[t,t.leftSibling])}function fl(e,t){const r=e.position;if(typeof t=="number"&&(t=e.at(t)),t.type==="prompt")e.setSelection(e.offsetOf(t.firstChild),e.offsetOf(t.lastChild));else{const i=e.offsetOf(t);t.type==="placeholder"?e.setSelection(i-1,i):e.position=i}return e.announce("move",r),e.mathfield.stopCoalescingUndo(),!0}function Vd(e,t,r=!0){var i,s;const c=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&no(e,t);let d;const k=e.at(e.anchor).parentPrompt;k?t==="forward"?d=e.offsetOf(k)+1:d=e.offsetOf(k.leftSibling):d=Math.max(e.position+c,0);const j=Wd(e,d,t);if(!j||t==="forward"&&e.offsetOf(j)<d||t==="backward"&&e.offsetOf(j)>d){if(!r||!((s=(i=e.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))==null||s))return e.announce("plonk"),!1;const ce=ac();if(!document.activeElement||ce.length<=1)return e.announce("plonk"),!1;let Pe=ce.indexOf(document.activeElement)+c;return Pe<0&&(Pe=ce.length-1),Pe>=ce.length&&(Pe=0),ce[Pe].focus(),e.mathfield.stopCoalescingUndo(),!0}return fl(e,j),!0}function Wd(e,t=0,r="forward"){return e.findAtom(i=>i.type==="placeholder"||i.type==="prompt"||!e.mathfield.readOnly&&i.treeDepth>2&&i.isFirstSibling&&i.isLastSibling,t,r)}o({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},r=e.at(e.position),{parent:i}=r;if(!i)return e.announce("plonk"),!1;const s=r.parentBranch;let c;if(typeof s=="string"&&(c=t[s]),!c){const k=r.subsupPlacement?gu(e):mu(e);return e.mathfield.stopCoalescingUndo(),k}i.branch(c)||i.createBranch(c);const d=e.setSelection(e.getBranchRange(e.offsetOf(i),c));return e.mathfield.stopCoalescingUndo(),d},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>ja(e),moveToNextChar:e=>no(e,"forward"),moveToPreviousChar:e=>no(e,"backward"),moveUp:e=>no(e,"upward"),moveDown:e=>no(e,"downward"),moveToNextWord:e=>al(e,"forward"),moveToPreviousWord:e=>al(e,"backward"),moveToGroupStart:e=>{const t=e.offsetOf(e.at(e.position).firstSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:e=>{const t=e.offsetOf(e.at(e.position).lastSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:e=>{var t,r,i,s;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return Vd(e,"forward");const c=e.at(e.position);if(c.mode==="text"){if(e.selectionIsCollapsed){let nt=c;for(;nt&&nt.mode==="text";)nt=nt.leftSibling;let vt=c;for(;((t=vt.rightSibling)==null?void 0:t.mode)==="text";)vt=vt.rightSibling;if(nt&&vt)return Is(e,[nt,vt])}if(c.rightSibling.mode==="text"){let nt=c;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return nt?(fl(e,(r=nt.leftSibling)!=null?r:nt),e.mathfield.switchMode("math"),!0):fl(e,e.lastOffset)}}const k=e.at(e.anchor).parentPrompt,j=k?e.offsetOf(k)+1:Math.max(e.position+1,0),X=Wd(e,j,"forward");if(X)return fl(e,X);const ce=Ru(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 Is(e,[(i=ce.leftSibling)!=null?i:ce,(s=nt.leftSibling)!=null?s:nt])}return Is(e,ce)}const Pe=c.parent;if(Pe){if(Pe.type==="leftright"||Pe.type==="surd")return Is(e,Pe);if(c.parentBranch==="superscript"&&Pe.subscript)return Is(e,Pe.subscript);if(c.parentBranch==="above"&&Pe.below)return Is(e,Pe.below);if(c.parentBranch==="superscript"||c.parentBranch==="subscript")return fl(e,Pe);if(c.parentBranch==="above"||c.parentBranch==="below")return Is(e,Pe)}return fl(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return Vd(e,"backward");let r=e.at(e.position);const i=r.mode;if(i==="text"){if(e.selectionIsCollapsed){let k=r;for(;k&&k.mode==="text";)k=k.leftSibling;let j=r;for(;((t=j.rightSibling)==null?void 0:t.mode)==="text";)j=j.rightSibling;if(k&&j)return Is(e,[k,j])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?fl(e,r):fl(e,0)}const s=e.at(e.anchor).parentPrompt,c=s?e.offsetOf(s.leftSibling):Math.max(e.position-1,0),d=Wd(e,c,"backward");if(d)return fl(e,d);if(i==="math"){const k=Ru(e,r,X=>X.type==="leftright"||X.type==="text","backward");if(k){if(k.mode==="text"){let X=k;for(;X&&X.mode==="text";)X=X.leftSibling;return Is(e,[k,X])}return Is(e,k)}const j=r.parent;if(j){if(j.type==="leftright"||j.type==="surd")return Is(e,j);if(r.parentBranch==="subscript"&&j.superscript)return Is(e,j.superscript);if(r.parentBranch==="below"&&j.above)return Is(e,j.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return fl(e,j);if(r.parentBranch==="above"||r.parentBranch==="below")return Is(e,j)}return fl(e,0)}return!1},moveToMathfieldStart:e=>e.selectionIsCollapsed&&e.position===0?(e.announce("plonk"),!1):(e.position=0,e.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:e=>e.selectionIsCollapsed&&e.position===e.lastOffset?(e.announce("plonk"),!1):(e.position=e.lastOffset,e.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:mu,moveToSubscript:gu},{target:"model",changeSelection:!0}),o({moveToNextPlaceholder:e=>Vd(e,"forward"),moveToPreviousPlaceholder:e=>Vd(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Ru(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 vu(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let i=e.position,s=!1,c="";for(;!s;){const d=e.at(i);s=t===0||d===void 0||d.type==="first"||d.mode!=="math"||!(d.type&&/mord|mpunct|operator/.test(d.type)||d.type==="mop"&&/[a-zA-Z ]+/.test(d.value))||!d.hasEmptyBranch("superscript")||!d.hasEmptyBranch("subscript")||typeof r=="function"&&!r(d),s||(d.mode="text",d.command=d.value,d.verbatimLatex=void 0,c+=d.value),i-=1,t-=1}e.contentDidChange({data:c,inputType:"insertText"})}function lA(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let i=e.position,s=!1;const c=[];for(;!s;){const d=e.at(i);s=t===0||!d||d.type==="first"||d.isFirstSibling||d.mode!=="text"||d.value===" "||typeof r=="function"&&!r(d),s||(c.push(Ur.serialize([d],{defaultMode:"math"})),d.mode="math"),i-=1,t-=1}bu(e),e.contentDidChange({data:Ao(c),inputType:"insertText"})}function bu(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 Qu(e){let t="",r=e.position,i=!1;for(;!i;){const s=e.at(r);i=!(s&&(s.mode==="text"||s.mode==="math"&&s.type&&/mord|mpunct/.test(s.type))),i||(t=s.value+t),r-=1}return t}function Vh(e,t,r){const{model:i}=e;if(i.mode==="latex"||!i.at(i.position).isLastSibling||!r||!qA(r))return!1;const s=Hh(r);if(!i.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(s));const c=Qu(i)+s;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(s))return!0;if(/[\^_]/.test(s))return/(^|\s)[a-zA-Z][^_]$/.test(c)&&lA(i,1),!0;const d={")":"(","}":"{","]":"["}[s],{parent:k}=i.at(i.position);if(d&&k instanceof Ys&&k.leftDelim===d)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(c))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(s))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(c))return lA(i,1),!1;if(/\D\.[^\d\s]$/.test(c)){lA(i,1);const j=i.at(i.position);return j.value="\u22C5",j.style.variant="normal",j.command="\\cdot",j.verbatimLatex=void 0,i.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(c)||/\.\d$/.test(c)||/\([\d+\-.]$/.test(c))return lA(i,1),!0;if(/\([a-z][,;]$/.test(c))return lA(i,2),!0;if(/[\d+\-=><*|]$/.test(s))return bu(i),!0}else{if(t==="[Space]")return vu(i,void 0,d=>/[a-z][:,;.]$/.test(d.value)),!0;if(/[a-zA-Z]{3,}$/.test(c)&&!/(dxd|abc|xyz|uvw)$/.test(c))return vu(i,void 0,d=>/[a-zA-Z]/.test(d.value)),!0;if(/(^|\W)(if)$/i.test(c))return vu(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 vu(i,void 0,d=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(d.value)),!0;if(s==="?"||s==="."&&!/[\d-+]\.$/.test(c))return!0}return!1}function Gd(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=Gh(),i=e.element.getBoundingClientRect();r.style.left=`${i.left}px`,r.style.top=`${i.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(du(t)||t)+"</span>"+r.innerHTML),r.style.visibility="visible",setTimeout(()=>{r.childNodes.length>0&&r.childNodes[r.childNodes.length-1].remove(),r.childNodes.length===0&&(r.style.visibility="hidden")},3e3)}function Wh(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=Gh();t.innerHTML=""}else{const t=Sp("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function Gh(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(ld("keystroke-caption"),ld("core"),Sp("mathlive-keystroke-caption-panel"))}function z0(){document.getElementById("mathlive-keystroke-caption-panel")&&(Ym("mathlive-keystroke-caption-panel"),cd("core"),cd("keystroke-caption"))}function Xh(e,t){var r,i,s;const{model:c}=e,d=jh(t);if(t.isTrusted){Yc(t);const vt=uu();e.keyboardLayout!==vt.id&&(e.keyboardLayout=vt.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,Gd(e,d),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let k,j="",X;const ce=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(c.mode==="math")if(d==="[Backspace]")ce.pop();else if(!qA(t))e.flushInlineShortcutBuffer();else{const vt=Hh(t),Et=[...(i=(r=ce[ce.length-1])==null?void 0:r.keystrokes)!=null?i:[],vt];ce.push({state:c.getState(),keystrokes:Et,leftSiblings:Ip(e)});let Br=0,En="";for(;!k&&Br<Et.length;)X=ce.length-(Et.length-Br),En=Et.slice(Br).join(""),k=F0(ce[X].leftSiblings,En,e.options.inlineShortcuts),!k&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(En)&&(k=e.options.onInlineShortcut(e,En)),Br+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(k?e.switchMode("math"):Vh(e,d,t)&&(e.switchMode({math:"text",text:"math"}[c.mode]),j=""))}if(!k){if(j||(j=bg(e.keybindings,c.mode,t)),!j&&(d==="[Enter]"||d==="[Return]")){let 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((!j||d==="[Space]")&&c.mode==="math"){if(d==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return Ds.insert(c,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),j="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const vt=c.at(c.position+1),Et=c.at(c.position-1);if((vt==null?void 0:vt.mode)==="text"||(Et==null?void 0:Et.mode)==="text")return Ds.insert(c," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(s=c.at(c.position))!=null&&s.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Hh(t)===","&&(j="insertDecimalSeparator")}}if(!k&&!j){if(c.mathfield.smartFence){if(eu(c,Hh(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 Ys&&vt.rightDelim==="?"&&c.at(c.position).isLastSibling&&/^[)}\]|]$/.test(d))return e.snapshot(),vt.isDirty=!0,vt.rightDelim=d,c.position+=1,c.selectionDidChange(),c.contentDidChange({data:Hh(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!c.selectionIsCollapsed){const Et=Hh(t);if(Et==="("||Et==="{"||Et==="["){const Br={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Et],En={"(":")","{":"\\rbrace","[":"\\rbrack"}[Et],[wr,nn]=Xl(c.selection);return e.snapshot(),c.position=nn,Ds.insert(c,En,{format:"latex"}),c.position=wr,Ds.insert(c,Br,{format:"latex"}),c.setSelection(wr+1,nn+1),c.contentDidChange({data:Et,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Pe=c.at(Math.max(c.position,c.anchor)),{parent:nt}=Pe;if(j==="moveAfterParent"&&(nt==null?void 0:nt.type)==="leftright"&&Pe.isLastSibling&&e.options.smartFence&&eu(c,".",e.defaultStyle)&&(j="",_l(e)),e.keyboardDelegate.cancelComposition(),j)e.executeCommand(j);else if(k){const vt=e.effectiveStyle;c.setState(ce[X].state);const Et=ce[ce.length-1].keystrokes;for(const Br of Et)Ds.insert(c,Br,{silenceNotifications:!0,style:vt});e.snapshot("insert-shortcut"),c.setState(ce[X].state),c.deferNotifications({content:!0,selection:!0,data:k,type:"insertText"},()=>(Ds.insert(c,k,{format:"latex",style:vt}),bu(e.model),k.endsWith(" ")&&(e.switchMode("text"),Ds.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 _p(e,t,r){const{model:i}=e;if(!e.isSelectionEditable){i.announce("plonk");return}r!=null||(r={}),r.focus&&e.focus(),r.feedback&&window.MathfieldElement.playSound("keypress"),typeof r.mode=="string"&&(e.switchMode(r.mode),e.snapshot());let s=CA(t);const c=window.mathVirtualKeyboard;if(c!=null&&c.isShifted&&(s=typeof s=="string"?s.toUpperCase():s.map(j=>j.toUpperCase())),r.simulateKeystroke){let j=!0;for(const X of s)Xh(e,new KeyboardEvent("keypress",{key:X}))&&(j=!1);if(j)return}const d=i.at(i.position),k=g(g({},d.computedStyle),e.defaultStyle);if(i.selectionIsCollapsed||(i.deleteAtoms(Xl(i.selection)),e.snapshot("delete")),i.mode==="latex")i.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{lm(e);for(const j of s)Ds.insert(i,j);e.snapshot("insert-latex"),Bp(e)});else if(i.mode==="text"){for(const j of s)Ds.insert(i,j,{style:k});e.snapshot("insert-text")}else if(i.mode==="math")for(const j of s)fm(e,j,k,d);e.dirty=!0,e.scrollIntoView()}function Ip(e){const t=e.model,r=[];let i=t.at(Math.min(t.position,t.anchor));for(;i.type!=="first";)r.push(i),i=i.leftSibling;return r}function fm(e,t,r,i){const s=e.model;let c={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(t===" "&&e.options.mathModeSpace&&(c=["insert",e.options.mathModeSpace]),c){e.executeCommand(c);return}if(/\d/.test(t)&&e.options.smartSuperscript&&i.parentBranch==="superscript"&&i.parent.type!=="mop"&&i.parent.type!=="operator"&&i.parent.type!=="extensible-symbol"&&i.hasNoSiblings){hm(s),Ds.insert(s,t,{style:r}),e.snapshot(),ja(s),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const d=e.adoptStyle==="left"?i:i.parent?i.rightSibling:null;(d==null?void 0:d.type)==="mord"&&/[a-zA-Z0-9]/.test(d.value)&&(r=g({},r),d.style.variant&&(r.variant=d.style.variant),d.style.variantStyle&&(r.variantStyle=d.style.variantStyle))}Ds.insert(s,t,{style:r}),e.snapshot(`insert-${s.at(s.position).type}`)}function hm(e){e.selectionIsCollapsed||(e.deleteAtoms(Xl(e.selection)),e.mathfield.snapshot("delete"))}function 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 d=Oh[c],k=Qd[c];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[j,X]=Xl(e.selection),ce=e.extractAtoms([j,X]),Pe=s.addChildrenAfter([new Ys("left...right",ce,{leftDelim:c,rightDelim:k})],e.at(j));return e.setSelection(e.offsetOf(Pe.firstChild),e.offsetOf(Pe.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:c,inputType:"insertText"}),!0}if(c==="|"){const j=s instanceof Ys?s.leftDelim+s.rightDelim:"";if(j==="\\lbrace\\rbrace"||j==="\\{\\}"||j==="\\lbrace?")return e.mathfield.snapshot(),Ds.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:r}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:c,inputType:"insertText"}),!0}if(k){if(s instanceof Ys&&s.firstChild===i&&(s.leftDelim==="?"||s.leftDelim==="."))return s.leftDelim=c,s.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(s instanceof Ys)){let Pe=i;for(;Pe&&!(Pe.type==="mclose"&&Pe.value===k);)Pe=Pe.rightSibling;if(Pe){e.mathfield.snapshot();const nt=e.extractAtoms([e.offsetOf(i),e.offsetOf(Pe)]);return nt.pop(),s.addChildrenAfter([new Ys("left...right",nt,{leftDelim:c,rightDelim:k})],i),e.position=e.offsetOf(s.firstChild)+1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const j=e.offsetOf(i.lastSibling);let X;for(X=e.position;X<=j;X++){const Pe=e.at(X);if(Pe instanceof Ys&&(Pe.leftDelim==="?"||Pe.leftDelim===".")&&Fp(c,Pe.rightDelim))break}const ce=e.at(X);if(X<=j&&ce instanceof Ys){ce.leftDelim=c,e.mathfield.snapshot();let Pe=e.extractAtoms([e.position,X-1]);return Pe=Pe.filter(nt=>nt.type!=="first"),ce.addChildren(Pe,ce.parentBranch),e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(s instanceof Ys&&(s.leftDelim==="?"||s.leftDelim===".")&&Fp(c,s.rightDelim)){s.isDirty=!0,s.leftDelim=c,e.mathfield.snapshot();const Pe=e.extractAtoms([e.offsetOf(i.firstSibling),e.position]);for(const nt of Pe)s.parent.addChildBefore(nt,s);return e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(s instanceof Ys&&s.leftDelim==="|")){if(e.mathfield.snapshot(),Ds.insert(e,`\\left${c}\\right?`,{format:"latex",style:r}),i.lastSibling.type!=="first"){const Pe=e.offsetOf(i.lastSibling),nt=e.extractAtoms([e.position,Pe]);e.at(e.position).body=nt,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(d){let j=i;for(;j;){if(j.type==="mopen"&&j.value===d){e.mathfield.snapshot();const vt=j.leftSibling,Et=e.extractAtoms([e.offsetOf(j.leftSibling),e.offsetOf(i)]);Et.shift();const Br=new Ys("left...right",Et,{leftDelim:d,rightDelim:c});return s.addChildrenAfter([Br],vt),e.position=e.offsetOf(Br),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}j=j.leftSibling}if(s instanceof Ys&&i.isLastSibling&&Jh(s.leftDelim,c))return e.mathfield.snapshot(),s.isDirty=!0,s.rightDelim=c,e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const X=e.offsetOf(i.firstSibling);let ce;for(ce=e.position;ce>=X;ce--){const vt=e.at(ce);if(vt instanceof Ys&&(vt.rightDelim==="?"||vt.rightDelim===".")&&Jh(vt.leftDelim,c))break}const Pe=e.at(ce);if(ce>=X&&Pe instanceof Ys)return e.mathfield.snapshot(),Pe.rightDelim=c,Pe.addChildren(e.extractAtoms([ce,e.position]),Pe.parentBranch),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(s instanceof Ys&&(s.rightDelim==="?"||s.rightDelim===".")&&Jh(s.leftDelim,c))return e.mathfield.snapshot(),s.isDirty=!0,s.rightDelim=c,s.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(i.lastSibling)]),s.parentBranch),e.position=e.offsetOf(s),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const nt=s.parent;return nt instanceof Ys&&(nt.rightDelim==="?"||nt.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(nt),eu(e,c,r)):!1}return!1}function Jh(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Qd[e]===t:!0}function Fp(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):Oh[t]===e:!0}o({undo:e=>(e.undo(),!0),redo:e=>(e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},toggleKeystrokeCaption:Wh,toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,r,i)=>(e.switchMode(t,r,i),!0),insert:(e,t,r)=>e.insert(t,r),typedText:(e,t,r)=>(_p(e,t,r),!0),insertDecimalSeparator:e=>{const t=e.model;return t.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&t.at(Math.max(t.position,t.anchor)).isDigit()?(e.insert("{,}",{format:"latex"}),e.snapshot("insert-mord"),!0):(e.insert("."),!0)},commit:e=>{var t;return e.model.contentWillChange({inputType:"insertLineBreak"})&&((t=e.host)==null||t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(e,t,r)=>{const i=e.getPrompts();let s="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),c=0;for(;i.includes(s)&&c<100;){if(c===99)return console.error("could not find a unique ID after 100 tries"),!1;s="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),c++}return e.insert(`\\placeholder[${t!=null?t:s}]{}`,r),!0}}),o({copyToClipboard:e=>(e.focus(),e.model.selectionIsCollapsed&&e.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),o({cutToClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(t=>{t&&e.model.contentWillChange({inputType:"insertFromPaste",data:t})?(e.stopCoalescingUndo(),e.stopRecording(),e.insert(t,{mode:e.model.mode})&&(Bp(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),_l(e))):e.model.announce("plonk"),e.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function Mp(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=$0(e,t),{model:i}=e;return i.selectionIsCollapsed?(e.defaultStyle.fontSeries&&r.fontSeries===e.defaultStyle.fontSeries&&(r.fontSeries="auto"),r.fontShape&&r.fontShape===e.defaultStyle.fontShape&&(r.fontShape="auto"),r.color&&r.color===e.defaultStyle.color&&(r.color="none"),r.backgroundColor&&r.backgroundColor===e.defaultStyle.backgroundColor&&(r.backgroundColor="none"),r.fontSize&&r.fontSize===e.defaultStyle.fontSize&&(r.fontSize="auto"),e.defaultStyle=g(g({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{i.selection.ranges.forEach(s=>Li(i,s,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}o({applyStyle:Mp},{target:"mathfield",canUndo:!0,changeContent:!0});function $0(e,t){var r,i,s,c,d,k,j,X,ce,Pe;const nt={};if(typeof t.color=="string"){const Et=(i=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?i:"none";Et!==t.color&&(nt.verbatimColor=(s=t.verbatimColor)!=null?s:t.color),nt.color=Et}if(typeof t.backgroundColor=="string"){const Et=(d=e.backgroundColorMap((c=t.backgroundColor)!=null?c:t.verbatimBackgroundColor))!=null?d:"none";Et!==t.backgroundColor&&(nt.verbatimBackgroundColor=(k=t.verbatimBackgroundColor)!=null?k:t.backgroundColor),nt.backgroundColor=Et}typeof t.fontFamily=="string"&&(nt.fontFamily=t.fontFamily),typeof t.series=="string"&&(nt.fontSeries=t.series),typeof t.fontSeries=="string"&&(nt.fontSeries=t.fontSeries.toLowerCase()),nt.fontSeries&&(nt.fontSeries=(j={bold:"b",medium:"m",normal:"m"}[nt.fontSeries])!=null?j:nt.fontSeries),typeof t.shape=="string"&&(nt.fontShape=t.shape),typeof t.fontShape=="string"&&(nt.fontShape=t.fontShape.toLowerCase()),nt.fontShape&&(nt.fontShape=(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=(Pe={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[vt.toLowerCase()])!=null?Pe:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[vt]),nt}function Z0(e){let[t,r]=Xl(e.selection);if(t=Lp(e,t,"backward"),r=Lp(e,r,"forward"),t===r){const i=e.at(t);if(i.type==="leftright")return e.setSelection(e.offsetOf(i.firstChild)-1,r);if(i.type==="first"&&(i.parent.type==="leftright"||i.parent.type==="surd"))return e.setSelection(t-1,e.offsetOf(i.parent.lastChild)+1);e.setSelection(t-1,r)}else e.setSelection(t,r);return!0}function Lp(e,t,r){var i,s,c;let d=e.at(t);if(!d)return t;const k=r==="forward"?1:-1;if(d.mode==="text"){for(;d&&!(d.mode!=="text"||!u.test(d.value));)t+=k,d=e.at(t);return r==="backward"?t-1:t}if(d.mode==="latex"){if(/[a-zA-Z\*]/.test(d.value))if(r==="backward")for(;d&&d.mode==="latex"&&d.value!=="\\"&&/[a-zA-Z]/.test(d.value);)t+=k,d=e.at(t);else for(;d&&d.mode==="latex"&&/[a-zA-Z\*]/.test(d.value);)t+=k,d=e.at(t);else if(d.value==="{"){if(r==="forward"){for(;d&&d.mode==="latex"&&d.value!=="}";)t+=k,d=e.at(t);return t}return t-1}else if(d.value==="}"){if(r==="backward"){for(;d&&d.mode==="latex"&&d.value!=="{";)t+=k,d=e.at(t);return t-1}return t}return t-1}if(d.mode==="math"){if(d.isDigit()){for(;(i=e.at(t+k))!=null&&i.isDigit();)t+=k;return r==="backward"?t-1:t}if(d.style.variant||d.style.variantStyle){let j=(s=e.at(t))==null?void 0:s.style;for(;j&&j.variant===d.style.variant&&j.variantStyle===d.style.variantStyle;)j=(c=e.at(t+k))==null?void 0:c.style,t+=k;return r==="backward"?t-1:t}return t}return t}o({selectGroup:e=>{const t=Z0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>no(e,"forward",{extend:!0}),extendSelectionBackward:e=>no(e,"backward",{extend:!0}),extendToNextWord:e=>al(e,"forward",{extend:!0}),extendToPreviousWord:e=>al(e,"backward",{extend:!0}),extendSelectionUpward:e=>no(e,"upward",{extend:!0}),extendSelectionDownward:e=>no(e,"downward",{extend:!0}),extendToNextBoundary:e=>al(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>al(e,"backward",{extend:!0}),extendToGroupStart:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).firstSibling));return t||e.announce("plonk"),t},extendToGroupEnd:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).lastSibling));return t||e.announce("plonk"),t},extendToMathFieldStart:e=>{const t=e.setSelection(e.anchor,0);return t||e.announce("plonk"),t},extendToMathFieldEnd:e=>{const t=e.setSelection(e.anchor,e.lastOffset);return t||e.announce("plonk"),t}},{target:"model",changeSelection:!0});var kA=null,Xd=0,V0=class cf{static start(t,r,i,s){var c;cf.element=t,(c=cf.controller)==null||c.abort(),cf.controller=new AbortController;const d={signal:cf.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",i,d),t.addEventListener("pointerup",s,d),t.addEventListener("pointercancel",s,d),oc(r)&&(cf.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",i,d),window.addEventListener("blur",s,d),window.addEventListener("mouseup",s,d))}static stop(){var t;(t=cf.controller)==null||t.abort(),cf.controller=void 0,typeof cf.pointerId=="number"&&(cf.element.releasePointerCapture(cf.pointerId),cf.pointerId=void 0)}};function oc(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function kp(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const i=e;let s,c=!1,d=!1,k="none",j=!1,X=!1;const ce=t.clientX,Pe=t.clientY,nt=Date.now(),vt=i.field,Et=setInterval(()=>{j?vt.scroll({top:0,left:vt.scrollLeft-16}):X&&vt.scroll({top:0,left:vt.scrollLeft+16})},32);function Br(){V0.stop(),c=!1,clearInterval(Et),e.element.classList.remove("tracking"),t&&t.preventDefault()}function En(nn){if(!i.hasFocus()){Br();return}const Fn=nn.clientX,cn=nn.clientY,Bi=oc(nn)&&nn.pointerType==="touch"?20:5;if(Date.now()<nt+500&&Math.abs(ce-Fn)<Bi&&Math.abs(Pe-cn)<Bi){nn.preventDefault(),nn.stopPropagation();return}const ra=vt.getBoundingClientRect();X=Fn>ra.right,j=Fn<ra.left;let Qi=s;oc(nn)&&(nn.isPrimary||(Qi=DA(i,nn.clientX,nn.clientY,{bias:0})));const h=DA(i,Fn,cn,{bias:Fn<=ce?Fn===ce?0:-1:1});Qi>=0&&h>=0&&(i.model.extendSelectionTo(Qi,h),_l(e)),d&&Z0(i.model)}kA&&Math.abs(kA.x-ce)<5&&Math.abs(kA.y-Pe)<5&&Date.now()<kA.time+500?(Xd+=1,kA.time=nt):(kA={x:ce,y:Pe,time:nt},Xd=1);const wr=vt.getBoundingClientRect();if(ce>=wr.left&&ce<=wr.right&&Pe>=wr.top&&Pe<=wr.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",s=DA(e,ce,Pe,{bias:0}),s>=0){if(e.element.classList.add("tracking"),t.shiftKey){const nn=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,s),cm(e.model)||nn?k="all":k="selection"}else e.model.at(s).type==="placeholder"?(e.model.setSelection(s-1,s),k="selection"):((r=e.model.at(s).rightSibling)==null?void 0:r.type)==="placeholder"?(e.model.setSelection(s,s+1),k="selection"):(e.model.position=s,cm(e.model)?k="all":k="selection");e.defaultStyle={},t.detail===3||Xd>2?(Br(),(t.detail===3||Xd===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},k="all")):c||(c=!0,V0.start(vt,t,En,Br),(t.detail===2||Xd===2)&&(d=!0,Z0(e.model),k="all"))}e.hasFocus()||(k="none",e.focus({preventScroll:!0}))}else kA=null;e.stopCoalescingUndo(),k!=="none"&&(e.model.selectionIsCollapsed&&(k="all"),_l(e)),t.preventDefault()}function Jd(e,t,r){if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)return 0;const i=e-(r.left+r.right)/2,s=t-(r.top+r.bottom)/2;return i*i+s*s}function Yh(e,t,r,i,s){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const c=oh(e,r);if(!c)return[1/0,null];let d=[1/0,null];if(r.hasChildren&&!r.captureSelection&&i>=c.left&&i<=c.right)for(const k of r.children){const j=Yh(e,t,k,i,s);j[0]<=d[0]&&(d=j)}return d[1]||(d=[Jd(i,s,c),r]),t.set(r.id,d),d}function pm(e,t,r){const[,i]=Yh(e,new Map,e.model.root,t,r);return i}function DA(e,t,r,i){var s;const c=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!c)return 0;if(t>c.right||r>c.bottom+8)return e.model.lastOffset;if(t<c.left||r<c.top-8)return 0;i=i!=null?i:{},i.bias=(s=i.bias)!=null?s:0;let d=pm(e,t,r);const k=[];let j=d;for(;j;)k.unshift(j),j=j.parent;for(const ce of k)if(ce.captureSelection){d=ce;break}let X=e.model.offsetOf(d);if(X<0)return-1;if(d.leftSibling)if(i.bias===0&&d.type!=="placeholder"){const ce=oh(e,d);ce&&t<(ce.left+ce.right)/2&&(X=e.model.offsetOf(d.leftSibling))}else i.bias<0&&(X=e.model.offsetOf(d.leftSibling));return X}var jc=class extends Ds{constructor(){super("math")}onPaste(e,t){if(!t||!e.model.contentWillChange({data:typeof t=="string"?t:null,dataTransfer:typeof t=="string"?null:t,inputType:"insertFromPaste"}))return!1;let r="",i="auto",s=typeof t!="string"?t.getData("application/json+mathlive"):"";if(s)try{const c=JSON.parse(s);if(c&&Array.isArray(c)){e.snapshot();const d=ka(c),{model:k}=e;k.selectionIsCollapsed||k.deleteAtoms(Xl(k.selection));const j=k.at(k.position);if(j.parent instanceof hs){console.assert(j.parentBranch!==void 0);const X=[];let ce=[];d[0].type==="first"&&d.shift(),d[d.length-1].type==="first"&&d.pop();for(const Et of d)Et.type==="first"&&ce.length>0?(X.push(ce),ce=[Et]):ce.push(Et);ce.length>0&&X.push(ce);let Pe=Number(j.parentBranch[0]),nt=Number(j.parentBranch[1]);const vt=j.parent.maxColumns;for(;j.parent.colCount-nt<X.length&&j.parent.colCount<vt;)j.parent.addColumn();j.parent.addChildrenAfter(X[0],j);for(let Et=1;Et<X.length;Et++)nt++,nt>=vt&&(nt=0,j.parent.addRowAfter(Pe),Pe++),j.parent.setCell(Pe,nt,X[Et])}else j.parent.addChildrenAfter(d.filter(X=>X.type!=="first"),j);return k.position=k.offsetOf(d[d.length-1]),k.contentDidChange({inputType:"insertFromPaste"}),_l(e),!0}}catch(c){}if(s=typeof t!="string"?t.getData("application/json"):"",s&&window.MathfieldElement.computeEngine)try{const c=JSON.parse(s);if(typeof c=="object"&&"latex"in c&&c.latex&&(r=c.latex),!r){const d=window.MathfieldElement.computeEngine.box(c);d&&!d.has("Error")&&(r=d.latex)}r||(i="latex")}catch(c){}if(!r&&typeof t!="string"&&(r=t.getData("application/x-latex"),r&&(i="latex")),r||(r=typeof t=="string"?t:t.getData("text/plain")),r){let c;return[c,r]=nh(r),i==="auto"&&c&&(i="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:i})&&(e.startRecording(),e.snapshot("paste"),_l(e)),e.startRecording(),!0}return!1}insert(e,t,r){var i,s;const c=typeof t=="string"?t:(s=(i=window.MathfieldElement.computeEngine)==null?void 0:i.box(t).latex)!=null?s:"";if(!r.silenceNotifications&&!e.contentWillChange({data:c,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:d}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const k=e.silenceNotifications;e.silenceNotifications=!0;const j={"?":"\\placeholder{}","@":"\\placeholder{}"};j[0]=r.insertionMode==="replaceAll"?"":e.getValue(e.selection,"latex-unstyled"),r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Xl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward"),!e.at(e.position).isLastSibling&&e.at(e.position+1).type==="placeholder"?e.deleteAtoms([e.position,e.position+1]):e.at(e.position).type==="placeholder"&&e.deleteAtoms([e.position-1,e.position]);let X=-1;j[0]?j["@"]=j[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(X=tg(e),X>=0&&(j["@"]=e.getValue(X,e.position,"latex"))),j[0]||(j[0]=j["?"]);let ce=!1;const Pe=Fn=>(ce=!0,j[Fn]);let[nt,vt]=Yd(e,t,Pe,r);if(!vt)return!1;const Et=vt.length===1&&vt[0].type==="genfrac";Et&&X>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(j["@"]=j["?"],ce=!1,[nt,vt]=Yd(e,t,Pe,r)):X>=0&&e.deleteAtoms([X,e.position]);const{parent:Br}=e.at(e.position),En=Br.hasEmptyBranch("body");if(Et&&nt!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Br instanceof Ys&&Br.leftDelim==="("&&En){const Fn=Br.parent,cn=Br.parentBranch;Fn.removeChild(Br),Fn.setChildren(vt,cn)}const wr=e.at(e.position);wr.parent.addChildrenAfter(vt,wr),nt==="latex"&&typeof t=="string"&&(Br==null?void 0:Br.type)==="root"&&En&&!ce&&(Br.verbatimLatex=t),e.silenceNotifications=k;const nn=vt[vt.length-1];if(r.selectionMode==="placeholder"){const Fn=vt.flatMap(cn=>[cn,...cn.children]).find(cn=>cn.type==="placeholder");if(Fn){const cn=e.offsetOf(Fn);e.setSelection(cn-1,cn),e.announce("move")}else nn&&(e.position=e.offsetOf(nn))}else r.selectionMode==="before"||(r.selectionMode==="after"?nn&&(e.position=e.offsetOf(nn)):r.selectionMode==="item"&&e.setSelection(e.anchor,e.offsetOf(nn)));return e.contentDidChange({data:c,inputType:"insertText"}),e.silenceNotifications=d,!0}};function Yd(e,t,r,i){var s;let c,d=[];if(typeof t!="string"||i.format==="math-json"){const k=window.MathfieldElement.computeEngine;if(!k)return["math-json",[]];[c,t]=["latex",k.box(t).latex],d=dc(t,{context:e.mathfield.context})}else typeof t=="string"&&i.format==="ascii-math"?([c,t]=M0(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),d=dc(t,{context:e.mathfield.context}),c!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&W0(d)):(i.format==="auto"||(s=i.format)!=null&&s.startsWith("latex"))&&(i.format==="auto"&&([c,t]=M0(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),i.format==="latex"&&([,t]=nh(t)),d=dc(t,{context:e.mathfield.context,args:r}),i.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&W0(d));return gt(d,i.style),[c!=null?c:"latex",d]}function mm(e){if(!e||(console.assert(e[0].type==="first"),e.length>1))return null;const t=e[0];return t instanceof Ys&&t.leftDelim==="("&&t.rightDelim===")"?t.removeBranch("body"):null}function W0(e){if(e){for(let t=0;e[t];t++){const r=e[t];if(r instanceof Ys&&r.leftDelim==="("){let i=0,s=0,c=0;for(let d=0;r.body[d];d++)r.body[d].type==="genfrac"&&(i++,s=d),c++;c===0&&i===1&&(e[t]=r.body[s])}}for(const t of e){for(const r of t.branches)if(!t.hasEmptyBranch(r)){W0(t.branch(r));const i=mm(t.branch(r));i&&t.setChildren(i,r)}if(t instanceof hs)for(const r of t.cells)W0(r)}}}function tg(e){let t=e.at(e.position);if(t.mode==="text"){for(;!t.isFirstSibling&&t.mode==="text";)t=t.leftSibling;return e.offsetOf(t)}const r=t;let i=!1;if(t.type==="mclose"){const s=Oh[t.value];for(;!t.isFirstSibling&&!(t.type==="mopen"&&t.value===s);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),i=!0}else t.type==="leftright"&&(t=t.leftSibling,i=!0);if(i)for(;!t.isFirstSibling&&(t.isFunction||hd(t));)t=t.leftSibling;else{const s=[];for(;!t.isFirstSibling&&(hd(t)||s.length>0);)t.type==="mclose"&&s.unshift(t.value),t.type==="mopen"&&s.length>0&&t.value===Oh[s[0]]&&s.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function hd(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new jc;var gm=class extends Ds{constructor(){super("text")}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.model.contentDidChange({inputType:"insertFromPaste"}),e.startRecording(),e.snapshot("paste"),_l(e)),e.startRecording(),!0):!1}insert(e,t,r={}){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:i}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const s=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Xl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const c=vm(t,e.mathfield.context);if(gt(c,r.style),!c)return!1;const d=e.at(e.position),k=d.parent.addChildrenAfter(c,d);return e.silenceNotifications=s,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(k)):k&&(e.position=e.offsetOf(k))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};function vm(e,t){return e=e.replace(/\\/g,"\\textbackslash "),e=e.replace(/#/g,"\\#"),e=e.replace(/\$/g,"\\$"),e=e.replace(/%/g,"\\%"),e=e.replace(/&/g,"\\&"),e=e.replace(/_/g,"\\_"),e=e.replace(/{/g,"\\textbraceleft "),e=e.replace(/}/g,"\\textbraceright "),e=e.replace(/lbrace/g,"\\textbraceleft "),e=e.replace(/rbrace/g,"\\textbraceright "),e=e.replace(/\^/g,"\\textasciicircum "),e=e.replace(/~/g,"\\textasciitilde "),e=e.replace(/£/g,"\\textsterling "),dc(e,{context:t,parseMode:"text"})}new gm;function QA(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var ps=4,cA=20,Pl=2*(cA+ps),G0=(e,t)=>`
|
|
|
<line x1="${e+cA}" y1="${t+cA}"
|
|
|
x2="${e>t?e+cA:7*cA+10*ps}"
|
|
|
y2="${e<t?t+cA:7*cA+10*ps}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,X0=(e,t)=>`
|
|
|
<line x1="${e+cA}" y1="${t+cA}"
|
|
|
x2="${e>t?e+cA:7*cA+10*ps}"
|
|
|
y2="${e<t?t+cA:7*cA+10*ps}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,qh=(e,t,r)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${r})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,pd=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*cA+10*ps+5} ${8*cA+10*ps+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${Pl+ps}"
|
|
|
height="${3*Pl}"
|
|
|
width="${Pl}"
|
|
|
rx="${Pl/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${Pl+ps}"
|
|
|
y="0"
|
|
|
height="${Pl}"
|
|
|
width="${3*Pl}"
|
|
|
rx="${Pl/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${qh(2*(ps+Pl),2*ps+3*Pl,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${qh(2*(ps+Pl),2*ps+Pl,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${qh(2*ps+3*Pl,2*(ps+Pl),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${qh(2*ps+Pl,2*(ps+Pl),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${G0(2*ps+Pl,ps)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${X0(2*ps+2*Pl,ps)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${G0(2*ps+3*Pl,ps)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${G0(ps,2*ps+Pl)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${X0(ps,2*ps+2*Pl)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${G0(ps,2*ps+3*Pl)}
|
|
|
</g>
|
|
|
</svg>`,rg=e=>`
|
|
|
<svg id="matrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,e0=e=>`
|
|
|
<svg id="pmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,J0=e=>`
|
|
|
<svg id="Bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,ng=e=>`
|
|
|
<svg id="bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,ho=e=>`
|
|
|
<svg id="vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,ig=e=>`
|
|
|
<svg id="Vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,ag=e=>`
|
|
|
<svg id="cases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,og=e=>`
|
|
|
<svg id="rcases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,md={matrix:rg,pmatrix:e0,bmatrix:ng,Bmatrix:J0,vmatrix:ho,Vmatrix:ig},gd={cases:ag,rcases:og,Bmatrix:J0};function sg(e){var t,r;const i=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!i)return;let s=0;i.forEach(Et=>{(!s||Et.length>s)&&(s=Et.length)});let c=document.getElementById("mathlive-environment-popover");c||(c=Sp("mathlive-environment-popover"),ld("environment-popover"),ld("core"),c.setAttribute("aria-hidden","true"));let d;const k=c.querySelector(".MLEP__environment-controls");k?d=k:(d=document.createElement("div"),c.innerHTML="",c.appendChild(d)),d.className="MLEP__environment-controls",d.style.display="flex",d.style.width="100%",d.style.height="100%",d.style.boxSizing="border-box",d.innerHTML=pd;let j=[],X="";const ce=e.model.parentEnvironment.environmentName;if(Uh(ce)){const Et=t0(ce);X=md[Et]("active");const Br=md,{[Et]:En}=Br,wr=$(Br,[v(Et)]);j=Object.values(wr).map(nn=>nn("inactive"))}else if(Rh(ce)){const Et=lg(ce);X=gd[Et]("active");const Br=gd,{[Et]:En}=Br,wr=$(Br,[v(Et)]);j=Object.values(wr).map(nn=>nn("inactive"))}else zm(ce)&&(X=md.matrix("active"),j=Object.values(gd).map(Et=>Et("inactive")));const Pe=document.createElement("div");Pe.className="MLEP__environment-delimiter-controls",Pe.style.display="flex",Pe.style.flexDirection="column",Pe.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${X}
|
|
|
${j.join("")}
|
|
|
</div>`,X&&d.appendChild(Pe),d.querySelectorAll("[data-command]").forEach(Et=>{const Br=Et.dataset.command;let En=Br;try{En=JSON.parse(Br)}catch(wr){}Et.addEventListener("mousedown",wr=>wr.preventDefault()),En&&Et.addEventListener("click",()=>e.executeCommand(En))});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 Dp(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function Y0(){document.getElementById("mathlive-environment-popover")&&(Ym("mathlive-environment-popover"),cd("environment-popover"),cd("core"))}function dh(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&bp(r.environmentName)){const i=e.options.environmentPopoverPolicy;t=i==="auto"||i==="on"}}t?sg(e):Dp()}function t0(e){return e.replace("*","")}function lg(e){return e==="dcases"?"cases":e}function qd(e){const t=getComputedStyle(e).direction;return t==="ltr"||t==="rtl"?t:"ltr"}function bm(e,t,r){return t==="left"||t==="leading"&&r==="ltr"||t==="trailing"&&r==="rtl"?e.left:e.right}function r0(e,t,r,i){return r==="middle"?e-t/2:r==="start"&&i==="rtl"||r==="end"&&i==="ltr"||r==="top"||r==="right"?Math.max(0,e-t):e}function Np(e,t,r,i){return r==="middle"?e-t/2:r==="start"&&i==="ltr"||r==="end"&&i==="rtl"||r==="top"||r==="right"?e:e-t}function ym(e,t){var r,i,s;const c=(r=qd(e))!=null?r:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const d=e.getBoundingClientRect(),k=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let j=Math.min(k,(i=t.height)!=null?i:d.height),X=r0(t.location.y,j,t.verticalPos,c);X+j>window.innerHeight-8&&(t.alternateLocation?(X=r0(t.alternateLocation.y,j,t.verticalPos,c),X+j>window.innerHeight-8&&(X=void 0)):X=void 0),Number.isFinite(X)||(X=Math.max(8,window.innerHeight-8-j),8+j>window.innerHeight-8&&(e.style.bottom="8px")),j=Math.min(X+j,window.innerHeight-8)-X;const ce=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Pe=Math.min(ce,(s=t.width)!=null?s:d.width),nt=r0(t.location.x,Pe,t.horizontalPos,c);nt+Pe>window.innerWidth-8&&(t.alternateLocation?(nt=Np(t.alternateLocation.x,Pe,t.verticalPos,c),nt+Pe>window.innerWidth-8&&(nt=void 0)):nt=void 0),Number.isFinite(nt)||(nt=Math.max(8,window.innerWidth-8-Pe),8+Pe>window.innerWidth-8&&(e.style.right="8px")),Pe=Math.min(nt+Pe,window.innerWidth-8)-nt,c==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-nt-Pe).toString()}px`:e.style.left=`${Math.ceil(nt).toString()}px`,e.style.top=`${Math.ceil(X).toString()}px`,j!==d.height&&(e.style.height=`${Math.ceil(j).toString()}px`),Pe!==d.width&&(e.style.width=`${Math.ceil(Pe).toString()}px`)}function Df(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function ef(e){return"submenu"in e}function KA(e){return"type"in e&&e.type==="command"||"onMenuSelect"in e||"id"in e}function n0(e){return"type"in e&&e.type==="divider"}function Nf(e){return"type"in e&&e.type==="heading"}var q0={};function ep(e){let t=q0[e];if(!t){let r;switch(e){case"checkmark":r=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
|
|
|
</span>`;break;case"trailing-chevron":r='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":r='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(r){const i=document.createElement("template");i.innerHTML=r,q0[e]=i,t=i}}if(t){if("content"in t)return t.content.cloneNode(!0);const r=document.createElement("svg");return r.innerHTML=t.innerHTML,r}}var Op=80,tf=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,ef(e)?(this.type="submenu",this.submenu=new fh(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=KA(e)&&e.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var e,t;(e=this._abortController)==null||e.abort(),this._abortController=void 0,(t=this._element)==null||t.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var e;return(e=this._label)!=null?e:""}set label(e){e===void 0&&(e=""),e!==this._label&&(this._label=e,this.dirty=!0)}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this.dirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.element&&(e?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(e){this._checked=e,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(e){e!==this._tooltip&&(this._tooltip=e,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){e!==this._ariaLabel&&(this._ariaLabel=e,this.dirty=!0)}get active(){var e,t;return(t=(e=this.element)==null?void 0:e.classList.contains("active"))!=null?t:!1}set active(e){this.element&&this.element.classList.toggle("active",e)}updateState(e){var t,r,i;const s=this._declaration;if(n0(s)){this.enabled=!1,this.checked=!1;return}Nf(s)&&(this.enabled=!1,this.checked=!1,this.visible=!0),KA(s)&&(this.checked=KA(s)&&((t=Pf(s.checked,e))!=null?t:!1)),(KA(s)||ef(s))&&(this.enabled=(r=Pf(s.enabled,e))!=null?r:!0,this.visible=(i=Pf(s.visible,e))!=null?i:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(KA(s)||Nf(s)||ef(s))&&(this.label=Pf(s.label,e),this.tooltip=Pf(s.tooltip,e),this.ariaLabel=Pf(s.ariaLabel,e)),this._element&&this.updateElement()}set dirty(e){console.assert(e===!0),e&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const e=this.element;e.textContent="",this.enabled?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"),this.checked===!0?(e.setAttribute("aria-checked","true"),e.append(ep("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(ep("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),KA(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=du(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(ep("trailing-chevron"))}get element(){if(this._element)return this._element;if(n0(this._declaration)){const r=document.createElement("li");return r.setAttribute("part","menu-divider"),r.setAttribute("role","divider"),this._element=r,r}const e=document.createElement("li");this._element=e,(KA(this._declaration)||Nf(this._declaration)||ef(this._declaration))&&this._declaration.class&&(e.className=this._declaration.class),e.setAttribute("part","menu-item"),e.setAttribute("tabindex","-1"),this.hasCheck?e.setAttribute("role","menuitemcheckbox"):e.setAttribute("role","menuitem"),this.type==="submenu"&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const t=this.abortController.signal;return e.addEventListener("pointerenter",this,{signal:t}),e.addEventListener("pointerleave",this,{signal:t}),e.addEventListener("pointerup",this,{signal:t}),e.addEventListener("click",this,{signal:t}),this._element}dispatchSelect(){if(!KA(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()},Op)},Op)}openSubmenu(e){var t;if(this.type!=="submenu"||!this.element)return;if((t=e==null?void 0:e.withDelay)!=null&&t){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const r=this.element.getBoundingClientRect(),i=qd(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:bm(r,"trailing",i),y:r.top-4},alternateLocation:{x:bm(r,"leading",i),y:r.top-4}})}movingTowardSubmenu(e){if(!this.element||this.type!=="submenu")return!1;const t=this.rootMenu.lastMoveEvent;if(!t)return!1;const r=e.timeStamp-t.timeStamp;if(r>500)return!1;const i=e.clientX-t.clientX;if(Of(i,t.clientY-e.clientY,r)<=.2)return!1;let c="right";if(this.submenu.element){const d=this.submenu.element.getBoundingClientRect(),k=this.element.getBoundingClientRect();d.left<k.left+k.width/2&&(c="left")}return c==="right"?i>0:i<0}};function Of(e,t,r){return Math.hypot(e,t)/r}function Pf(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var fh=class km{constructor(t,r){this._element=null,this._activeMenuItem=null,this._dirty=!0;var i,s;this.parentMenu=(i=r==null?void 0:r.parentMenu)!=null?i:null,this._submenuClass=r==null?void 0:r.submenuClass,this.columnCount=(s=r==null?void 0:r.columnCount)!=null?s:1,this.isSubmenuOpen=!1,this.menuItems=t}get children(){return this._menuItems}set menuItems(t){const r=this.parentMenu;this.dispose(),this.parentMenu=r,t=[...t],this._menuItems=t.map(i=>i.onCreate?i.onCreate(i,this):new tf(i,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var t;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(t=this._menuItems)==null||t.forEach(r=>r.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(t){if(t.type==="wheel"&&this._element){const r=t;this._element.scrollBy(0,r.deltaY),t.stopPropagation()}}dispatchEvent(t){return this.rootMenu.dispatchEvent(t)}get rootMenu(){return this.parentMenu.rootMenu}updateState(t){var r,i,s;this._menuItems.forEach(X=>X.updateState(t));const c=this.hasCheck;this.hasCheck=this._menuItems.some(X=>X.visible&&X.hasCheck),this.hasCheck!==c&&this._menuItems.forEach(X=>X.updateState(t));let d,k=0;for(const X of this._menuItems)X.type==="heading"?(d&&k===0&&(d.visible=!1),d=X,k=0):X.type==="divider"&&d?(d.visible=k>0,d=void 0,k=0):d&&X.visible&&(k+=1);d&&(d.visible=k>0);let j=!0;for(const X of this._menuItems)X.type==="divider"?(X.visible=!j,j=!0):X.visible&&(j=!1);(r=this.activeMenuItem)!=null&&r.visible||(this.activeMenuItem=null),!((i=this.activeMenuItem)!=null&&i.enabled)&&((s=this.activeMenuItem)==null?void 0:s.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible&&t.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible)}set dirty(t){console.assert(t===!0),this._dirty!==t&&t&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var t;if(this._element){this._element.textContent="";for(const{element:r,visible:i}of this._menuItems)r&&i&&this._element.append(r);(t=this._element.querySelector("li:first-of-type"))==null||t.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const t=document.createElement("menu");t.setAttribute("role","menu"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-orientation","vertical"),t.setAttribute("part","ui-menu-container"),this._submenuClass&&t.classList.add(this._submenuClass),t.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const r=this._abortController.signal;return t.addEventListener("focus",this,{signal:r}),t.addEventListener("wheel",this,{passive:!0,signal:r}),this._element=t,this.updateElement(),t}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(t){var r,i,s,c;if(this.rootMenu.cancelDelayedOperation(),t!==this._activeMenuItem){if(this.activeMenuItem){const d=this.activeMenuItem;d.active=!1,(r=d.submenu)==null||r.hide()}if(!((i=t==null?void 0:t.visible)==null||i)){this._activeMenuItem=null;return}this._activeMenuItem=t,t&&(t.active=!0)}t?(s=t.element)==null||s.focus({preventScroll:!0}):(c=this._element)==null||c.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let t=0,r=!1;const i=this._menuItems;for(;!r&&t<=i.length-1;){const s=i[t];r=s.type!=="divider"&&s.visible&&s.enabled,t+=1}return r?i[t-1]:null}get lastMenuItem(){this.updateIfDirty();const t=this._menuItems;let r=t.length-1,i=!1;for(;!i&&r>=0;){const s=t[r];i=s.type!=="divider"&&s.visible&&s.enabled,r-=1}return i?t[r+1]:null}nextMenuItem(t){if(t===0)return this._activeMenuItem;if(!this._activeMenuItem)return t>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const r=this._menuItems.indexOf(this.firstMenuItem),i=this._menuItems.indexOf(this.lastMenuItem);let s=this._menuItems.indexOf(this._activeMenuItem),c=1;for(;s>=r&&s<=i;){s+=t>0?1:-1;const d=this._menuItems[s];if(!d)break;if(d.visible&&d.enabled){if(c===Math.abs(t))return this._menuItems[s];c+=1}}return t>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(t){this.updateIfDirty();const i=this._menuItems.filter(s=>s.visible&&s.enabled).indexOf(t);return i<0?-1:i%this.columnCount}static get collator(){return km._collator||(km._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),km._collator}findMenuItem(t){var r;this.updateIfDirty();const i=this._menuItems.filter(k=>k.type!=="divider"&&k.visible&&k.enabled);if(i.length===0)return null;const s=Math.max(...i.map(k=>k.label.length))-t.length;if(s<0)return null;let c=null,d=0;for(;d<s&&!c;)c=(r=i.find(k=>km.collator.compare(t,k.label.substring(d,t.length))===0))!=null?r:null,d++;return c}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),se()&&(this.element.popover="manual",this.element.showPopover()),t.location&&ym(this.element,{location:t.location,alternateLocation:t.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var t,r,i,s,c;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),se()&&((t=this._element)!=null&&t.popover)&&this.element.hidePopover(),(i=(r=this.parentMenu)==null?void 0:r.element)==null||i.focus(),(c=(s=this._element)==null?void 0:s.parentNode)==null||c.removeChild(this._element)}set openSubmenu(t){var r,i,s,c;const d=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((i=this.activeMenuItem.element)==null||i.setAttribute("aria-expanded",d.toString())),(c=(s=this.activeMenuItem)==null?void 0:s.element)==null||c.classList.toggle("is-submenu-open",d),this.isSubmenuOpen=d}},Pp=class fv extends fh{constructor(t,r){var i;super(t),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(i=r==null?void 0:r.host)!=null?i:null,this.isDynamic=t.some(He),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(t){Uu(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 d=this.activeSubmenu,k=d.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":k==null||k.select(MA(t));break;case"ArrowRight":if((k==null?void 0:k.type)==="submenu")k.select(MA(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!k)d.activeMenuItem=d.firstMenuItem;else{const j=(r=d.getMenuItemColumn(k))!=null?r:-1;if(j>=0&&j<((i=d.columnCount)!=null?i:1)-1){const X=d.nextMenuItem(1);X&&(d.activeMenuItem=X)}}break;case"ArrowLeft":if(d===this.rootMenu)k||(d.activeMenuItem=d.firstMenuItem);else if((k&&(s=d.getMenuItemColumn(k))!=null?s:-1)<=0||!k){d.hide();const X=d.parentMenu.activeMenuItem;if(X){const{element:ce}=X;ce==null||ce.focus(),ce==null||ce.classList.remove("is-submenu-open")}}else{const X=d.nextMenuItem(-1);X&&(d.activeMenuItem=X)}break;case"ArrowDown":d.activeMenuItem=d.nextMenuItem(d.columnCount);break;case"ArrowUp":d.activeMenuItem=d.nextMenuItem(-d.columnCount);break;case"Home":case"PageUp":d.activeMenuItem=d.firstMenuItem;break;case"End":case"PageDown":d.activeMenuItem=d.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const j=d.findMenuItem(this.typingBuffer);j&&(d.activeMenuItem=j),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(qA(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const j=d.findMenuItem(this.typingBuffer);j&&(d.activeMenuItem=j),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else c=!1}c&&(t.preventDefault(),t.stopPropagation())}handleEvent(t){if(t.type==="keydown")this.handleKeydownEvent(t);else if(t.type==="keyup")this.handleKeyupEvent(t);else if(t.type==="pointermove")this.lastMoveEvent=t;else if(t.type==="pointerup"&&t.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(t.type==="contextmenu"){t.preventDefault(),t.stopPropagation();return}super.handleEvent(t)}dispatchEvent(t){return this._host?this._host.dispatchEvent(t):!0}get scrim(){return Kc.element}connectScrim(t){const r=this.scrim;r.addEventListener("pointerup",this),r.addEventListener("contextmenu",this),r.addEventListener("keydown",this),r.addEventListener("keyup",this),r.addEventListener("pointermove",this),Kc.open({root:t,onDismiss:()=>this.hide()})}disconnectScrim(){const t=this.scrim;t.removeEventListener("pointerup",this),t.removeEventListener("contextmenu",this),t.removeEventListener("keydown",this),t.removeEventListener("keyup",this),t.removeEventListener("pointermove",this),Kc.state==="open"&&Kc.scrim.close()}get rootMenu(){return this}show(t){return this._onDismiss=t==null?void 0:t.onDismiss,t!=null&&t.modifiers&&(this.modifiers=t.modifiers),this.updateState(),this.connectScrim(t==null?void 0:t.target),super.show(F(g({},t),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,Kc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const r=fv.SUBMENU_DELAY;if(r<=0){t();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,t()},r)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};Pp.SUBMENU_DELAY=120;var z=Pp;function He(e){return n0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(KA(e)||ef(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||KA(e)&&typeof e.checked=="function"?!0:ef(e)?e.submenu.some(He):!1}var St=class{};St.DELAY=300,St.MAX_DISTANCE=10;function Zt(e){return new Promise((t,r)=>{const i=Tu(e);i||t(!1);let s=i;const c=setTimeout(()=>{d.abort(),t(Df(s,i)<St.MAX_DISTANCE)},St.DELAY),d=new AbortController,k=d.signal;for(const j of["pointermove","pointerup","pointercancel"])window.addEventListener(j,X=>{if(X.type==="pointerup"||X.type==="pointercancel")clearTimeout(c),d.abort(),t(!1);else if(X.type==="pointermove"){const ce=Tu(X);ce&&(s=ce)}},{passive:!0,signal:k})})}function vr(e,t,r){return dp(this,null,function*(){if(e.type==="contextmenu"){const i=e;if(r.show({target:t,location:Tu(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=Tu(e);if(yield Zt(e))return r.state!=="closed"?!1:(r.show({target:t,location:s}),!0)}return!1})}var fn={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};de(Object.keys(fn),"{body:auto}",{createAtom:e=>new sh(F(g({},e),{body:qe(e.args[0]),accentChar:fn[e.command.slice(1)]}))}),de(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=ye(qe(e.args[0]));return new sh(F(g({},e),{body:qe(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),de(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new sh(F(g({},e),{body:qe(e.args[0]),svgAccent:"overarc"}))}),de(["underarc","underparen"],"{body:auto}",{createAtom:e=>new hc(F(g({},e),{body:qe(e.args[0]),svgBelow:"underarc"}))}),de("utilde","{body:auto}",{createAtom:e=>{const t=qe(e.args[0]),r=ye(t),i="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new hc(F(g({},e),{body:t,svgBelow:i,boxType:Nd(t)}))}}),de("^","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[e.args[0]])!=null?t:"^"}))}}),de("`","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[e.args[0]])!=null?t:"`"}))}}),de("'","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[e.args[0]])!=null?t:"'"}))}}),de('"',"{:string}",{createAtom:e=>{var t,r;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[e.args[0]])!=null?r:'"'+e.args[0]:'"'}))}}),de(".","{:string}",{createAtom:e=>{var t,r;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[e.args[0]])!=null?r:"."+e.args[0]:"."}))}}),de("=","{:string}",{createAtom:e=>{var t,r;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[e.args[0]])!=null?r:"="+e.args[0]:"="}))}}),de("~","{:string}",{createAtom:e=>{var t;return new Ur(F(g({type:"mord"},e),{isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[e.args[0]])!=null?t:"\xB4"}))}}),de("c","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),de("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const i=e.args,s={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(i[1]){const d=i[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const k of d){const j=k.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(j)s.strokeWidth=j[1],s.strokeStyle=j[2],s.strokeColor=j[3];else{const X=k.match(/\s*([a-z]*)\s*=\s*"(.*)"/);X&&(X[1]==="mathbackground"?s.backgroundcolor=X[2]:X[1]==="mathcolor"?s.strokeColor=X[2]:X[1]==="padding"?s.padding=X[2]:X[1]==="shadow"&&(s.shadow=X[2]))}}s.strokeStyle==="dashed"?s.svgStrokeStyle="5,5":s.strokeStyle==="dotted"&&(s.svgStrokeStyle="1,5")}s.borderStyle=`${s.strokeWidth} ${s.strokeStyle} ${s.strokeColor}`;const c={};return((r=i[0])!=null?r:"").split(/[, ]/).filter(d=>d.length>0).forEach(d=>{c[d.toLowerCase()]=!0}),new ic(e.command,qe(i[2]),c,s)}}),de("cancel","{body:auto}",{createAtom:e=>{var t;return new ic(e.command,qe(e.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),de("bcancel","{body:auto}",{createAtom:e=>{var t;return new ic(e.command,qe(e.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),de("xcancel","{body:auto}",{createAtom:e=>{var t;return new ic(e.command,qe(e.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),de(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new hc(F(g({},e),{body:qe((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),de("overbrace","{:auto}",{createAtom:e=>new hc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),de(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new hc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),de(["underbrace"],"{:auto}",{createAtom:e=>new hc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),de(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:e=>{var t,r,i,s,c;return new hc(F(g({},e),{svgBody:e.command.slice(1),above:((r=qe((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:qe((i=e.args)==null?void 0:i[1]),below:(c=qe((s=e.args)==null?void 0:s[0]))!=null?c:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),de(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:e=>new JA(e.command.slice(1),F(g({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),de(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new JA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],F(g({},e),{limits:"over-under",variant:"main"}))}),de(["lim","mod"],"",{ifMode:"math",createAtom:e=>new JA(e.command.slice(1),F(g({},e),{limits:"over-under",variant:"main"}))}),de(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new JA(e.command.slice(1),F(g({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),de(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const r=e.createBox(t),i=r.caret;r.caret=void 0;const s=new zr("\xB0",{style:F(g({},e.style),{variant:"normal",variantStyle:"up"})});return new zr([r,s],{type:"inner",isSelected:e.isSelected,caret:i})}}),de("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new Cp(F(g({},e),{body:qe(e.args[1]),index:e.args[0]?qe(e.args[0]):void 0}))}),de(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=g({},e),r=e.command,i=e.args;switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":t.hasBarLine=!0;break;case"\\atopfrac":t.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":t.hasBarLine=!1,t.leftDelim="(",t.rightDelim=")";break;case"\\cfrac":t.hasBarLine=!0,t.continuousFraction=!0;break;default:}switch(r){case"\\dfrac":case"\\dbinom":t.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":t.mathstyleName="textstyle";break;default:}return new _f(i[0]?qe(i[0]):[new Nu],i[1]?qe(i[1]):[new Nu],t)},serialize:(e,t)=>{const r=e.aboveToLatex(t),i=e.belowToLatex(t);return/^[0-9]$/.test(r)&&/^[0-9]$/.test(i)?`${e.command}${r}${i}`:_s(e.command,r,i)}}),de(["brace","brack"],"",{infix:!0,createAtom:e=>new _f(qe(e.args[0]),qe(e.args[1]),F(g({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>Ao([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),de(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const i=e.args;return e.command==="\\choose"&&(t="(",r=")"),new _f(qe(i[0]),qe(i[1]),F(g({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>Ao([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),de(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,r;const i=e.args;return new _f(qe(i[0]),qe(i[1]),F(g({},e),{leftDelim:(t=i[2])!=null?t:".",rightDelim:(r=i[3])!=null?r:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),de("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new _f(qe(e.args[0]),qe(e.args[1]),F(g({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),de(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new xp({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[e.command.slice(1)],F(g({},e),{limits:"auto",variant:"main"}))}),de("smallint","",{ifMode:"math",createAtom:e=>new JA("\u222B",F(g({},e),{limits:"adjacent",variant:"main"}))});var Sn={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};de(Object.keys(Sn),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=Sn[t.slice(1)];return new xp(r,F(g({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),de(["Re","Im"],"",{ifMode:"math",createAtom:e=>new JA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],F(g({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),de("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Qc(F(g({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),de("the","{:value}",{createAtom:e=>new Ur(F(g({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const i=new So({parent:t},e.style);let s="";e.isSelected&&(s+=" ML__selected");const c=i.evaluate(e.args[0]);return new zr(((r=kl(c))!=null?r:"").split("").map(d=>new zr(d,{type:"ord",classes:s,mode:e.mode,isSelected:e.isSelected,style:g({variant:"main"},e.style)})),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:s}).wrap(i)},serialize:e=>{var t;return`\\the${(t=kl(e.args[0]))!=null?t:"\\relax"}`}}),de("mathtip","{:auto}{:math}",{createAtom:e=>new ud(F(g({},e),{body:qe(e.args[0]),tooltip:qe(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],F(g({},t),{defaultMode:"math"}))}}`}),de("texttip","{:auto}{:text}",{createAtom:e=>new ud(F(g({},e),{body:qe(e.args[0]),tooltip:qe(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],F(g({},t),{defaultMode:"text"}))}}`}),de("error","{:math}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),de("ensuremath","{:math}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(F(g({},t),{defaultMode:"math"}))}}`}),de("color","{:value}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimColor:(i=kl(t[0]))!=null?i:void 0,color:r.toColor((s=t[0])!=null?s:{string:"red"})}}}),de("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimColor:(i=kl(t[0]))!=null?i:void 0,color:r.toColor((s=t[0])!=null?s:{string:"red"})}}}),de("boxed","{content:math}",{createAtom:e=>new uc(F(g({},e),{body:qe(e.args[0]),framecolor:{string:"black"}}))}),de("colorbox","{:value}{:text*}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimBackgroundColor:(i=kl(t[0]))!=null?i:void 0,backgroundColor:r.toBackgroundColor((s=t[0])!=null?s:{string:"yellow"})}}}),de("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new uc(F(g({},e),{body:qe(e.args[2]),framecolor:(t=e.args[0])!=null?t:{string:"blue"},backgroundcolor:(r=e.args[1])!=null?r:{string:"yellow"}}))},serialize:(e,t)=>{var r,i;return t.skipStyles?e.bodyToLatex(F(g({},t),{defaultMode:"text"})):_s(e.command,(r=kl(e.framecolor))!=null?r:"",(i=kl(e.backgroundcolor))!=null?i:"",e.bodyToLatex(F(g({},t),{defaultMode:"text"})))}}),de("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],i=qe(e.args[1]);return r?new uc(F(g({},e),{body:i,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new uc(F(g({},e),{body:i}))},serialize:(e,t)=>{var r,i;if(t.skipStyles)return e.bodyToLatex(t);let s=e.command;if(Number.isFinite(e.padding)||e.border!==void 0||e.backgroundcolor!==void 0){const c=[];e.padding&&c.push((r=kl(e.padding))!=null?r:""),e.border&&c.push(`border: ${e.border}`),e.backgroundcolor&&c.push((i=kl(e.backgroundcolor))!=null?i:""),s+=`[${c.join(",")}]`}return _s(s,e.bodyToLatex(t))}}),de(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),render:(e,t)=>{const r=new So({parent:t,mathstyle:e.command.slice(1)},e.style),i=Ur.createBox(r,e.body,{type:"lift"});return e.caret&&(i.caret=e.caret),e.bind(t,i)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${Ao([e.command,e.bodyToLatex(t)])}}`}),de(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:e=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[e]})}),de("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),de("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),de("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),de("selectfont","",{ifMode:"text",applyStyle:()=>({})}),de("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),de(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),de("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),de("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),de("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),de("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),de("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),de("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),de("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),de("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),de("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),de("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),de("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),de("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),de("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),de("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),de("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),de("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),de("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),de("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),de("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),de("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),de("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),de("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),de("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),de("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),de("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),de("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),de("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),de(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),de(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),de("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),de("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),de("mbox","{:text}",{ifMode:"math",createAtom:e=>new Ur(F(g({},e),{type:"mord",body:qe(e.args[0]),mode:"math"})),serialize:(e,t)=>_s("\\mbox",e.bodyToLatex(F(g({},t),{defaultMode:"text"})))}),de("text","{:text}",{ifMode:"math",applyMode:"text"}),de(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[1])})),serialize:(e,t)=>!e.args[0]||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`,render:(e,t)=>{var r;return e.createBox(t,{classes:(r=e.args[0])!=null?r:""})}}),de(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.cssId=(r=e.args[0])!=null?r:"",i}}),de("htmlData","{data:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.htmlData=(r=e.args[0])!=null?r:"",i}}),de(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.htmlStyle=(r=e.args[0])!=null?r:"",i}}),de("em","{:rest}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{\\em ${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})}),de("emph","{:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[1])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\emph{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})});var aa={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};de(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new Bc(F(g({},e),{delim:(t=e.args[0])!=null?t:".",size:aa[e.command].size,delimType:aa[e.command].mclass}))}}),de(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new iA(F(g({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),de(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new iA(F(g({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),de("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new Ur(e),render:(e,t)=>{let r=0;const i=t.mathstyle.id;(i===yf||i===RA)&&(r=1),(i===su||i===fs)&&(r=2),(i===Rc||i===Gl)&&(r=3);const s=qe(e.args[r]);return Ur.createBox(t,s)},serialize:(e,t)=>`\\mathchoice{${Ur.serialize(e.args[0],t)}}{${Ur.serialize(e.args[1],t)}}{${Ur.serialize(e.args[2],t)}}{${Ur.serialize(e.args[3],t)}}`}),de("mathop","{:auto}",{createAtom:e=>new Ur(F(g({},e),{type:"mop",body:qe(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let i=Ur.createBox(t,e.body);if(e.superscript||e.subscript){const s=(r=e.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return new zr(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[_s(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),Ao(r)}}),de(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new Ur(F(g({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:qe(e.args[0])}))}),de(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=qe(e.args[0]).map(r=>{var i;return r.type!=="first"&&(r.type="mord",r.value=(i={"\u2217":"*","\u2212":"-"}[r.value])!=null?i:r.value,r.isFunction=!1,!r.style.variant&&!r.style.variantStyle&&(r.style.variant="main",r.style.variantStyle="up")),r});return new Ur(F(g({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let i=Ur.createBox(t,e.body);if(e.superscript||e.subscript){const s=(r=e.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return e.caret&&(i.caret=e.caret),new zr(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[_s(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),Ao(r)}}),de(["char","unicode"],"{charcode:value}",{createAtom:e=>new Ur(F(g({},e),{type:e.mode==="text"?"text":"mord"})),serialize:e=>{var t;return`${e.command}${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)}}),de("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new Ur(e),render:(e,t)=>{var r,i,s;const c=new So({parent:t,mathstyle:"textstyle"},e.style),d=c.toEm((r=e.args[0])!=null?r:{dimension:0}),k=c.toEm((i=e.args[1])!=null?i:{dimension:10}),j=c.toEm((s=e.args[2])!=null?s:{dimension:10}),X=new zr(null,{classes:"rule",type:"ord"});return X.width=k,X.height=j+d,X.depth=-d,X.setStyle("border-right-width",k,"em"),X.setStyle("border-top-width",j,"em"),X.setStyle("border-color",e.style.color),X.setStyle("vertical-align",d,"em"),e.isSelected&&X.setStyle("opacity","50%"),e.bind(c,X),e.caret&&(X.caret=e.caret),X.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${kl(e.args[0])}]`:""}{${kl(e.args[1])}}{${kl(e.args[2])}}`}),de(["overline","underline"],"{:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),i=new So({parent:t,mathstyle:"cramp"},e.style),s=Ur.createBox(i,e.body);if(!s)return null;const c=i.metrics.defaultRuleThickness/i.scalingFactor,d=new zr(null,{classes:r+"-line"});d.height=c,d.maxFontSize=c*1.125*i.scalingFactor;let k;return r==="overline"?k=new bl({shift:0,children:[{box:s},3*c,{box:d},c]}):k=new bl({top:s.height,children:[c,{box:d},3*c,{box:s}]}),e.caret&&(k.caret=e.caret),new zr(k,{classes:r,type:"ignore"})}}),de("overset","{:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[1]);return new hc(F(g({},e),{above:qe(e.args[0]),body:t,skipBoundary:!1,boxType:Nd(t)}))},serialize:(e,t)=>_s(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),de("underset","{:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[1]);return new hc(F(g({},e),{below:qe(e.args[0]),body:t,skipBoundary:!1,boxType:Nd(t)}))},serialize:(e,t)=>_s(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),de("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[2]);return new hc(F(g({},e),{above:qe(e.args[0]),below:qe(e.args[1]),body:t,skipBoundary:!1,boxType:Nd(t)}))},serialize:(e,t)=>_s(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),de(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new hc(F(g({},e),{body:qe(e.args[2]),above:qe(e.args[1]),below:qe(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>_s(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),de("smash","[:string]{:auto}",{createAtom:e=>{var t,r,i,s;return new Pu(F(g({},e),{body:qe(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(s=(i=e.args[0])==null?void 0:i.includes("b"))!=null?s:!0}))}}),de(["vphantom"],"{:auto}",{createAtom:e=>new Pu(F(g({},e),{body:qe(e.args[0]),isInvisible:!0,smashWidth:!0}))}),de(["hphantom"],"{:auto}",{createAtom:e=>new Pu(F(g({},e),{body:qe(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),de(["phantom"],"{:auto}",{createAtom:e=>new Pu(F(g({},e),{body:qe(e.args[0]),isInvisible:!0}))}),de("not","{:math}",{createAtom:e=>{const t=qe(e.args[0]);return t.length===0?new Ur(F(g({},e),{type:"mrel",value:"\uE020"})):new Ur(F(g({},e),{body:[new Jc(F(g({},e),{body:"\uE020",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const r=e.args[0],i=r&&typeof r=="object"&&"group"in r;return e.value!=="\uE020"?i?`\\not{${Ur.serialize(r.group,t)}}`:`\\not${Ur.serialize(r,t)}`:i?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const i=e.args[0]&&typeof e.args[0]=="object"&&"group"in e.args[0]?"ord":Nd(qe(e.args[0])),s=Ur.createBox(t,e.body,{type:i});return e.caret&&(s.caret=e.caret),e.bind(t,s)}}),de(["ne","neq"],"",{createAtom:e=>new Ur(F(g({},e),{type:"mrel",body:[new Jc(F(g({},e),{body:"\uE020",align:"right",boxType:"rel"})),new Ur(F(g({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),de("rlap","{:auto}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"right"}))}),de("llap","{:auto}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),de("mathrlap","{:math}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),de("mathllap","{:math}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),de("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new uc(F(g({},e),{body:qe(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return _s("\\raisebox",(r=kl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),de("raise","{:value}{:auto}",{createAtom:e=>{var t;return new uc(F(g({},e),{body:qe(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return _s("\\raise",(r=kl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),de("lower","{:value}{:auto}",{createAtom:e=>{var t;return new uc(F(g({},e),{body:qe(e.args[1]),padding:{dimension:0},offset:(t=EA(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,i;return _s("\\lower",(i=kl(EA((r=e.offset)!=null?r:{dimension:0},-1)))!=null?i:"0pt",e.bodyToLatex(t))}}),q("0123456789/@.?!"),Se(65,90),Se(97,122),q([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),q([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),q([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),q([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),q([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),q([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),q([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),q([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),q([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),q([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),q([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),q([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),q([["\\wp",8472],["\\aleph",8501]]),q([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),q([["\\ ",160],["~",160]],"space"),de(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new iA(e)}),de("space","",{createAtom:e=>new iA(e)}),q([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),q([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),q([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var pa="<mo>⁡</mo>",qa="<mo>⁢</mo>";function po(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function sa(e,t){return!e||!t.generateID?"":` extid="${e}"`}function Yl(e,t,r){var i,s,c,d,k,j,X,ce,Pe,nt,vt;let Et=!1;t=t!=null?t:e.atoms.length;let Br="",En="",wr=e.atoms[e.index];const nn=(s=(i=wr.style)==null?void 0:i.variant)!=null?s:"",Fn=(d=(c=wr.style)==null?void 0:c.variantStyle)!=null?d:"";let cn="";if(nn||Fn){const ra=Xe(wr.value,(k=wr.style)==null?void 0:k.variant,(j=wr.style)==null?void 0:j.variantStyle);if(ra!==wr.value)return e.index+=1,Br=`<mi${sa(wr.id,r)}>${ra}</mi>`,hl(Br,e,r)||(e.mathML+=Br,e.lastType="mi"),!0;cn=(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"}[Fn+nn])!=null?X:"",cn=` mathvariant="${cn}"`}const Bi={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(wr.command==="!")return e.index+=1,Br="<mo>!</mo>",hl(Br,e,r)||(e.mathML+=Br,e.lastType="mo"),!0;if(Bi[wr.command]){e.index+=1;let ra=`<mi${sa(wr.id,r)}${cn}>${Bi[wr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(ra=qa+ra),hl(ra,e,r)||(e.mathML+=ra,e.lastType="mi"),!0}if(wr.command==="\\operatorname")En=yd(wr.body),e.index+=1;else if(nn||Fn)for(;e.index<t&&(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&nn===((Pe=(ce=wr.style)==null?void 0:ce.variant)!=null?Pe:"")&&Fn===((vt=(nt=wr.style)==null?void 0:nt.variantStyle)!=null?vt:"");)En+=yd([wr]),e.index+=1,wr=e.atoms[e.index];else(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&(En+=yd([wr]),e.index+=1);if(En.length>0){Et=!0,Br=`<mi${cn}>${En}</mi>`;const ra=e.lastType;Br.endsWith(">f</mi>")||Br.endsWith(">g</mi>")?(Br+=pa,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Br)?"mo":"mi",hl(Br,e,r)||((ra==="mi"||ra==="mn"||ra==="mtext"||ra==="fence")&&(Br=qa+Br),e.mathML+=Br)}return Et}function _c(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function yl(e){let t=-1,r=e.index,i=!1,s=!1;for(;r<e.atoms.length&&!i&&!s;){const c=e.atoms[r];i=!c.isDigit(),s=!i&&c.superscript!==void 0,r++}return s&&(t=r-1),t}function hl(e,t,r){var i;let s=t.atoms[t.index-1];if(!s)return!1;if(!s.superscript&&!s.subscript)if(((i=t.atoms[t.index])==null?void 0:i.type)==="subsup")s=t.atoms[t.index],t.index+=1;else return!1;const c=t.lastType;t.lastType="";const d=vo(s.superscript,r);t.lastType="";const k=vo(s.subscript,r);if(t.lastType=c,!d&&!k)return!1;let j="";return d&&k?j=`<msubsup>${e}${k}${d}</msubsup>`:d?j=`<msup>${e}${d}</msup>`:k&&(j=`<msub>${e}${k}</msub>`),t.mathML+=j,t.lastType="",!0}function Ic(e,t,r){t=t!=null?t:e.atoms.length;const i=e.index;let s="";for(;e.index<t&&e.atoms[e.index].mode==="text";)s+=e.atoms[e.index].value?e.atoms[e.index].value:" ",e.index+=1;return s.length>0?(e.mathML+=`<mtext ${sa(e.atoms[i].id,r)}>${s}</mtext>`,e.lastType="mtext",!0):!1}function AA(e,t,r){t=t!=null?t:e.atoms.length;const i=e.index;let s="",c=yl(e);for(c>=0&&c<t&&(t=c);e.index<t&&e.atoms[e.index].isDigit();)s+=e.atoms[e.index].asDigit(),e.index+=1;return s.length<=0?!1:(s="<mn"+sa(e.atoms[i].id,r)+">"+s+"</mn>",c<0&&_c(e)&&(c=e.index,e.index+=1),hl(s,e,r)||(e.mathML+=s,e.lastType="mn"),!0)}function Tf(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";if(e.index<t&&e.atoms[e.index].type==="mopen"){let d=!1,k=0;const j=e.index;let X=-1,ce=j+1;for(;ce<t&&!d;)e.atoms[ce].type==="mopen"?k+=1:e.atoms[ce].type==="mclose"&&(k-=1),k===-1&&(d=!0,X=ce),ce+=1;d&&(s="<mrow>",s+=bd(e.atoms[j],r),s+=vo(e.atoms,r,j+1,X),s+=bd(e.atoms[X],r),s+="</mrow>",e.index=X+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=qa),hl(s,e,r)&&(i=!0,e.lastType="",s=""),c="fence")}return s.length>0&&(i=!0,e.mathML+=s,e.lastType=c),i}function vd(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";const d=e.atoms[e.index];if(!d)return!1;const k={"\\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(k[d.command]){e.index+=1;const j=`<mo${sa(d.id,r)}>${k[d.command]}</mo>`;return hl(j,e,r)||(e.mathML+=j,e.lastType="mo"),!0}if(e.index<t&&(d.type==="mbin"||d.type==="mrel"))s+=rf(e.atoms[e.index],r),e.index+=1,c="mo";else if(e.index<t&&(d.type==="mop"||d.type==="operator"||d.type==="extensible-symbol")){if(d.subsupPlacement==="over-under"&&(d.superscript||d.subscript)){const j=bd(d,r);return d.superscript&&d.subscript?(s+="<munderover>"+j,s+=vo(d.subscript,r),s+=vo(d.superscript,r),s+="</munderover>"):d.superscript?(s+="<mover>"+j,s+=vo(d.superscript,r),s+="</mover>"):d.subscript&&(s+="<munder>"+j,s+=vo(d.subscript,r),s+="</munder>"),e.mathML+=s,e.lastType="mo",e.index+=1,!0}{const j=e.atoms[e.index],X=j.value==="\\operatorname",ce=X?'<mi class="MathML-Unit"'+sa(j.id,r)+">"+yd(j.value)+"</mi>":bd(j,r);s+=ce,!X&&!/^<mo>(.*)<\/mo>$/.test(ce)?(s+=pa,c="applyfunction"):c=X?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(s)&&(s=qa+s),e.index+=1}return s.length>0&&(i=!0,hl(s,e,r)||(e.mathML+=s,e.lastType=c)),i}function vo(e,t,r,i){t!=null||(t={});const s={atoms:[],index:r!=null?r:0,mathML:"",lastType:""};if(typeof e=="number"||typeof e=="boolean")s.mathML=e.toString();else if(typeof e=="string")s.mathML=e;else if(e instanceof Ur)s.mathML=rf(e,t);else if(Array.isArray(e)){s.atoms=e;let c=0;for(i=i||(e?e.length:0);s.index<i;)if(Ic(s,i,t)||AA(s,i,t)||Yl(s,i,t)||vd(s,i,t)||Tf(s,i,t))c+=1;else if(s.index<i){let d=rf(s.atoms[s.index],t);s.lastType==="mn"&&d.length>0&&s.atoms[s.index].type==="genfrac"&&(d="<mo>⁤</mo>"+d),s.atoms[s.index].type==="genfrac"?s.lastType="mfrac":s.lastType="",s.index+=1,hl(d,s,t)?c+=1:d.length>0&&(s.mathML+=d,c+=1)}c>1&&(s.mathML="<mrow>"+s.mathML+"</mrow>")}return s.mathML}function bd(e,t){let r="";const i=yd(e.value);return i&&(r="<mo"+sa(e.id,t)+">"+i+"</mo>"),r}function yd(e){if(!e)return"";if(typeof e=="string")return po(e);if(!Array.isArray(e)&&typeof e.body=="string")return po(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return po(t)}function rf(e,t){var r,i,s,c,d,k,j,X,ce,Pe,nt,vt,Et,Br,En,wr,nn,Fn,cn,Bi,ra,Qi;if(e.mode==="text")return`<mi${sa(e.id,t)}>${e.value}</mi>`;const h={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},B={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Q="",ve="",Ke,Ze,We,at,At,ft;const{command:Kt}=e;if(e.command==="\\error")return`<merror${sa(e.id,t)}>${vo(e.body,t)}</merror>`;const br={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},xt={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(e.type){case"first":break;case"group":case"root":Q=vo(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(Q+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(Q+="<mo>"+(br[e.leftDelim]||e.leftDelim)+"</mo>")),Q+="<mtable",e.colFormat){for(Q+=' columnalign="',We=0;We<e.colFormat.length;We++)e.colFormat[We].align&&(Q+={l:"left",c:"center",r:"right"}[e.colFormat[We].align]+" ");Q+='"'}for(Q+=">",Ze=0;Ze<e.array.length;Ze++){for(Q+="<mtr>",Ke=0;Ke<e.array[Ze].length;Ke++)Q+="<mtd>"+vo(e.array[Ze][Ke],t)+"</mtd>";Q+="</mtr>"}Q+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(Q+="<mo>"+(br[e.leftDelim]||e.rightDelim)+"</mo>"),Q+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(Q+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(Q+="<mo"+sa(e.id,t)+">"+(br[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(Q+="<mfrac>",Q+=vo(e.above,t)||"<mi> </mi>",Q+=vo(e.below,t)||"<mi> </mi>",Q+="</mfrac>"):(Q+="<mtable"+sa(e.id,t)+">",Q+="<mtr>"+vo(e.above,t)+"</mtr>",Q+="<mtr>"+vo(e.below,t)+"</mtr>",Q+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(Q+="<mo"+sa(e.id,t)+">"+(br[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(Q+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(Q+="<msqrt"+sa(e.id,t)+">",Q+=vo(e.body,t),Q+="</msqrt>"):(Q+="<mroot"+sa(e.id,t)+">",Q+=vo(e.body,t),Q+=vo(e.above,t),Q+="</mroot>");break;case"leftright":const ir=e,gr=ir.leftDelim;Q="<mrow>",gr&&gr!=="."&&(Q+=`<mo${sa(e.id,t)}>${(r=br[gr])!=null?r:gr}</mo>`),e.body&&(Q+=vo(e.body,t));const Xr=ir.matchingRightDelim();Xr&&Xr!=="."&&(Q+=`<mo${sa(e.id,t)}>${(i=br[Xr])!=null?i:Xr}</mo>`),Q+="</mrow>";break;case"sizeddelim":case"delim":Q+=`<mo${sa(e.id,t)}>${br[e.value]||e.value}</mo>`;break;case"accent":Q+='<mover accent="true"'+sa(e.id,t)+">",Q+=vo(e.body,t),Q+="<mo>"+(xt[Kt]||e.accent)+"</mo>",Q+="</mover>";break;case"line":case"overlap":break;case"overunder":At=e.above,at=e.below,(e.svgAbove||At)&&(e.svgBelow||at)?ft=e.body:At&&At.length>0?(ft=e.body,(c=(s=e.body)==null?void 0:s[0])!=null&&c.below?(at=e.body[0].below,ft=e.body[0].body):((k=(d=e.body)==null?void 0:d[0])==null?void 0:k.type)==="first"&&((X=(j=e.body)==null?void 0:j[1])!=null&&X.below)&&(at=e.body[1].below,ft=e.body[1].body)):at&&at.length>0&&(ft=e.body,(Pe=(ce=e.body)==null?void 0:ce[0])!=null&&Pe.above?(At=e.body[0].above,ft=e.body[0].body):((vt=(nt=e.body)==null?void 0:nt[0])==null?void 0:vt.type)==="first"&&((Br=(Et=e.body)==null?void 0:Et[1])!=null&&Br.above)&&(At=e.body[1].overscript,ft=e.body[1].body)),(e.svgAbove||At)&&(e.svgBelow||at)?(Q+=`<munderover ${sa(e.id,t)}>`,Q+=(En=h[e.svgBody])!=null?En:vo(ft,t),Q+=(wr=h[e.svgBelow])!=null?wr:vo(at,t),Q+=(nn=h[e.svgAbove])!=null?nn:vo(At,t),Q+="</munderover>"):e.svgAbove||At?(Q+=`<mover ${sa(e.id,t)}>`+((Fn=h[e.svgBody])!=null?Fn:vo(ft,t)),Q+=(cn=h[e.svgAbove])!=null?cn:vo(At,t),Q+="</mover>"):(e.svgBelow||at)&&(Q+=`<munder ${sa(e.id,t)}>`+((Bi=h[e.svgBody])!=null?Bi:vo(ft,t)),Q+=(ra=h[e.svgBelow])!=null?ra:vo(at,t),Q+="</munder>");break;case"placeholder":Q+="?";break;case"mord":{Q=typeof e.value=="string"?e.value:Kt,Kt==="\\char"?Q="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":Q.length>0&&Q.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?Q="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?Q=e.value.charAt(0):(console.error("Did not expect this"),Q=""));const Sr=/\d/.test(Q)?"mn":"mi";Q=`<${Sr}${sa(e.id,t)}>${po(Q)}</${Sr}>`;break}case"mbin":case"mrel":case"minner":Q=bd(e,t);break;case"mpunct":Q='<mo separator="true"'+sa(e.id,t)+">"+Kt+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(Q="<mo"+sa(e.id,t)+">",Q+=Kt==="\\operatorname"?e.body:Kt||e.body,Q+="</mo>");break;case"box":Q='<menclose notation="box"',e.backgroundcolor&&(Q+=' mathbackground="'+e.backgroundcolor+'"'),Q+=sa(e.id,t)+">"+vo(e.body,t)+"</menclose>";break;case"spacing":Q+='<mspace width="'+((Qi=B[Kt])!=null?Qi:0)+'em"/>';break;case"enclose":Q='<menclose notation="';for(const Sr in e.notation)Object.prototype.hasOwnProperty.call(e.notation,Sr)&&e.notation[Sr]&&(Q+=ve+Sr,ve=" ");Q+=sa(e.id,t)+'">'+vo(e.body,t)+"</menclose>";break;case"prompt":Q='<menclose notation="roundexbox""">'+vo(e.body,t)+"</menclose>";break;case"space":Q+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Q+=bd(e,t);break;case"mclose":Q+=bd(e,t);break;case"macro":{const Sr=e.command+yd(e.macroArgs);Sr&&(Q+=`<mo ${sa(e.id,t)}>${Sr}</mo>`)}break;case"latexgroup":Q+=vo(e.body,t);break;case"latex":Q+="<mtext"+sa(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":Q+=vo(e.body,t);break;case"text":Q+=`<mtext ${sa(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${sa(e.id,t)} displaystyle="true">${vo(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${sa(e.id,t)} displaystyle="false">${vo(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return Q}var Ku={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},Uf={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function hh(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}function mc(e){let t=0;if(_(e))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function i0(e){if(_(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function ph(e){let t="";if(_(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function Tp(e){return e?e.map(t=>t.value).join(""):""}function io(e,t){var r,i,s,c,d;function k(ce){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(ce)?` <say-as interpret-as="character">${ce}</say-as>`:/[A-Z]/.test(ce)?`capital <say-as interpret-as="character">${ce.toLowerCase()}</say-as>`:ce:/[a-z]/.test(ce)?" '"+ce.toUpperCase()+"'":/[A-Z]/.test(ce)?" 'capital "+ce.toUpperCase()+"'":ce}function j(ce){return"<emphasis>"+ce+"</emphasis>"}if(!t)return"";let X="";if(_(t)){let ce=!1,Pe=!1;for(let nt=0;nt<t.length;nt++)t[nt].type!=="first"&&(t[nt].mode!=="text"&&(Pe=!1),nt<t.length-2&&t[nt].type==="mopen"&&t[nt+2].type==="mclose"&&t[nt+1].type==="mord"?(X+=" of ",X+=j(io(e,t[nt+1])),nt+=2):t[nt].mode==="text"?Pe?X+=(r=t[nt].value)!=null?r:" ":(Pe=!0,X+=io("text",t[nt])):t[nt].isDigit()?ce?X+=t[nt].asDigit():(ce=!0,X+=io(e,t[nt])):(ce=!1,X+=io(e,t[nt])))}else if(t.mode==="text")t.id&&e==="math"&&(X+='<mark name="'+t.id.toString()+'"/>'),X+=t.value;else{t.id&&e==="math"&&(X+='<mark name="'+t.id.toString()+'"/>');let ce="",Pe="",nt="",vt=!1;const{command:Et}=t;switch(Et){case"\\vec":return"vector "+io(e,t.body);case"\\acute":return io(e,t.body)+" acute";case"\\grave":return io(e,t.body)+" grave";case"\\dot":return"dot over"+io(e,t.body);case"\\ddot":return"double dot over"+io(e,t.body);case"\\mathring":return"ring over"+io(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+io(e,t.body);case"\\bar":return io(e,t.body)+" bar";case"\\breve":return io(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+io(e,t.body);case"\\hat":case"\\widehat":return"hat over"+io(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+io(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+io(e,t.body)}switch(t.type){case"prompt":const Br=t.body.length>1?'start input . <break time="500ms"/> '+io(e,t.body)+'. <break time="500ms"/> end input':"blank";X+=' <break time="300ms"/> '+Br+'. <break time="700ms"/>'+((i=t.correctness)!=null?i:"")+' . <break time="700ms"/> ';break;case"array":const En=t.array,wr=t.environmentName;if(Object.keys(Uf).includes(wr)){X+=` begin ${Uf[wr]} `;for(let cn=0;cn<En.length;cn++){cn>0&&(X+=","),X+=` row ${cn+1} `;for(let Bi=0;Bi<En[cn].length;Bi++)Bi>0&&(X+=","),X+=` column ${Bi+1}: `,X+=io("math",En[cn][Bi])}X+=` end ${Uf[wr]} `}break;case"group":Et==="\\ne"?X+=" not equal ":(Et==="\\not"&&(X+=" not "),X+=io("math",t.body));break;case"root":X+=io("math",t.body);break;case"genfrac":if(ce=io("math",t.above),Pe=io("math",t.below),mc(t.above)&&mc(t.below)){const Bi={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[ph(t.above)+"/"+ph(t.below)];Bi?X=Bi:X+=ce+" over "+Pe}else X+=' the fraction <break time="150ms"/>'+ce+' over <break time="150ms"/>'+Pe+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(nt=io("math",t.body),t.hasEmptyBranch("above"))X+=mc(t.body)?" the square root of "+nt+" , ":' the square root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End square root';else{let cn=io("math",t.above);cn=cn.trim();const Bi=cn.replace(/<mark([^/]*)\/>/g,"");Bi==="3"?X+=' the cube root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End cube root':Bi==="n"?X+=' the nth root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root':X+=' the root with index: <break time="200ms"/>'+cn+', of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root'}break;case"leftright":{const cn=t;X+=(s=cn.leftDelim?Ku[cn.leftDelim]:void 0)!=null?s:cn.leftDelim,X+=io("math",t.body),X+=(c=cn.rightDelim?Ku[cn.rightDelim]:void 0)!=null?c:cn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const nn=Et.replace(/^\\/g,""),Fn=tt()[nn];Fn&&(Fn!=null&&Fn.expand?X+=io("math",t.body):X+=`${nn} `);break;case"placeholder":X+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Et==="\\mathbin"||Et==="\\mathrel"||Et==="\\mathopen"||Et==="\\mathclose"||Et==="\\mathpunct"||Et==="\\mathord"||Et==="\\mathinner"){X=io(e,t.body);break}let cn=t.isDigit()?t.asDigit():t.value,Bi=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Bi=t.value,cn=Bi),e==="text")X+=cn;else{if(t.type==="mbin"&&(X+='<break time="150ms"/>'),cn){const ra=Ku[cn]||(Bi?Ku[Bi.trim()]:"");if(ra)X+=" "+ra;else{const Qi=Bi?hh(Bi.trim()):"";X+=Qi||k(cn)}}else X+=io("math",t.body);t.type==="mbin"&&(X+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const cn=t.command;if(cn==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=io("math",t.superscript);Bi=Bi.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the summation from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(t.hasEmptyBranch("subscript"))X+=" the summation of";else{let Bi=io("math",t.subscript);Bi=Bi.trim(),X+=' the summation from <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(cn==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=io("math",t.superscript);Bi=Bi.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the product from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(t.hasEmptyBranch("subscript"))X+=" the product of ";else{let Bi=io("math",t.subscript);Bi=Bi.trim(),X+=' the product from <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(cn==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=io("math",t.superscript);Bi=Bi.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the integral from <break time="200ms"/>'+j(ra)+'<break time="200ms"/> to <break time="200ms"/>'+j(Bi)+' <break time="200ms"/> of ',vt=!0}else X+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Bi=(d=Ku[t.value])!=null?d:t.command?Ku[t.command]:void 0;X+=Bi||" "+t.value}else t.command&&(t.command==="\\mathop"?X+=io("math",t.body):t.command==="\\operatorname"?X+=Tp(t.body):X+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":nt=io("math",t.body),X+=" crossed out "+nt+". End crossed out.";break;case"space":case"spacing":break}if(!vt&&!t.hasEmptyBranch("superscript")){let Br=io(e,t.superscript);Br=Br.trim();const En=Br.replace(/<[^>]*>/g,"");if(mc(t.superscript)){if(e==="math"){const wr=i0(t.superscript);wr&&(X+='<mark name="'+wr+'"/>')}En==="\u2032"?X+=" prime ":En==="2"?X+=" squared ":En==="3"?X+=" cubed ":Number.isNaN(Number.parseInt(En))?X+=" to the "+Br+"; ":X+=' to the <say-as interpret-as="ordinal">'+En+"</say-as> power; "}else Number.isNaN(Number.parseInt(En))?X+=" raised to the "+Br+"; ":X+=' raised to the <say-as interpret-as="ordinal">'+En+"</say-as> power; "}if(!vt&&!t.hasEmptyBranch("subscript")){let Br=io("math",t.subscript);Br=Br.trim(),X+=mc(t.subscript)?" sub "+Br:" subscript "+Br+". End subscript. "}}return X}function Fc(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const s=vo(e);if(s){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=F(g({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=F(g({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=F(g({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const c=(r=window.SRE)!=null?r:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&c.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let d="";try{d=c.toSpeech(s)}catch(k){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",k)}return d}return""}let i=io("math",e);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let s="";window.MathfieldElement.speechEngineRate&&(s='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),i='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+s+"<p><s>"+i+"</s></p>"+(s?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Y()==="macos"?i=i.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):i=i.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return i}var yu={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},nf={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function wm(e){let t="";for(const r of e){const i=t[t.length-1];i!==void 0&&/\d/.test(i)&&/^\d/.test(r)&&(t+=" "),t+=r}return t}function ms(e){var t,r,i,s,c,d,k,j,X,ce,Pe,nt,vt;if(!e)return"";if(_(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map(ms).join("");if(e[0].mode==="text"){let Fn=0,cn="";for(;((t=e[Fn])==null?void 0:t.mode)==="text";)cn+=e[Fn].body?ms(e[Fn].body):e[Fn].value,Fn++;return`"${cn}" ${ms(e.slice(Fn))}`}let wr=0;const nn=[];for(;e[wr]&&e[wr].mode==="math";){let Fn="";for(;e[wr]&&e[wr].type==="mord"&&/\d/.test(e[wr].value);)Fn+=e[wr++].value;Fn?nn.push(Fn):nn.push(ms(e[wr++]))}return nn.push(ms(e.slice(wr))),wm(nn)}if(e.mode==="text")return`"${e.value}"`;let Et="";const{command:Br}=e;let En;if(Br==="\\placeholder")return`(${ms(e.body)})`;switch(e.type){case"accent":const wr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Br];Et=`${wr!=null?wr:""} ${ms(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Qi=>Qi.value).join("");case"group":case"root":Et=(r=yu[Br])!=null?r:ms(e.body);break;case"genfrac":{const Qi=e;(Qi.leftDelim||Qi.rightDelim)&&(Et=Qi.leftDelim==="."||!Qi.leftDelim?"{:":Qi.leftDelim),Qi.hasBarLine?(Et+="(",Et+=ms(Qi.above),Et+=")/(",Et+=ms(Qi.below),Et+=")"):(Et+="("+ms(Qi.above)+"),",Et+="("+ms(Qi.below)+")"),(Qi.leftDelim||Qi.rightDelim)&&(Et+=Qi.rightDelim==="."||!Qi.rightDelim?"{:":Qi.rightDelim)}break;case"surd":Et+=e.hasEmptyBranch("above")?"sqrt("+ms(e.body)+")":"root("+ms(e.above)+")("+ms(e.body)+")";break;case"latex":Et=e.value;break;case"leftright":{const Qi=e,h=Qi.leftDelim;Et+=h==="."||!h?"{:":h,Et+=ms(Qi.body);const B=Qi.matchingRightDelim();Et+=B==="."||!B?":}":B}break;case"sizeddelim":case"delim":Et=e.value;break;case"overlap":break;case"overunder":break;case"mord":Et=(s=(i=yu[Br])!=null?i:Br)!=null?s:typeof e.value=="string"?e.value:"",Et.startsWith("\\")&&(Et+=" "),En=Br?Br.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,En?Et=String.fromCodePoint(Number.parseInt("0x"+En[1])):Et.length>0&&Et.startsWith("\\")&&(Et=typeof e.value=="string"?e.value.charAt(0):e.command),Et=a0(Et,e.style);break;case"mbin":case"mrel":case"minner":Et=(d=(c=yu[Br])!=null?c:nf[Br])!=null?d:e.value;break;case"mopen":case"mclose":Et=e.value;break;case"mpunct":Et=(k=nf[Br])!=null?k:Br;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(nf[Br]?Et=nf[Br]:Et=Br==="\\operatorname"?ms(e.body):(j=e.value)!=null?j:Br,Et+=" ");break;case"array":const nn=e.array,Fn=e.environmentName,cn=(X={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Fn])!=null?X:["(",")"],Bi=[];for(const Qi of nn){const h=[];for(const B of Qi)h.push(cn[0]+ms(B)+cn[1]);Bi.push(h.join(","))}const ra=(ce={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Fn])!=null?ce:["(",")"];Et=ra[0]+Bi.join(",")+ra[1];break;case"box":break;case"spacing":Et=(Pe=yu[Br])!=null?Pe:" ";break;case"enclose":Et="("+ms(e.body)+")";break;case"space":Et=" ";break;case"subsup":Et="";break;case"macro":Et=(vt=(nt=yu[Br])!=null?nt:nf[Br])!=null?vt:ms(e.body);break}if(!e.hasEmptyBranch("subscript")){Et+="_";const wr=ms(e.subscript);Et+=wr.length!==1?`(${wr})`:wr}if(!e.hasEmptyBranch("superscript")){Et+="^";const wr=ms(e.superscript);Et+=wr.length!==1?`(${wr})`:wr}return Et}function a0(e,t){if(!t)return e;let r=e;return t.variant==="double-struck"&&(r=`bbb "${r}"`),t.variant==="script"&&(r=`cc "${r}"`),t.variant==="fraktur"&&(r=`fr "${r}"`),t.variant==="sans-serif"&&(r=`sf "${r}"`),t.variant==="monospace"&&(r=`tt "${r}"`),t.variantStyle==="bold"&&(r=`bb "${r}"`),t.color?`color({${t.color}})(${r})`:r}function Tl(e,t){var r,i;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const s=new So({from:F(g({},S0()),{renderPlaceholder:()=>new zr(160,{maxFontSize:1}),letterShapeStyle:(i=t==null?void 0:t.letterShapeStyle)!=null?i:"tex"}),mathstyle:t.mathstyle}),d=new Ur({mode:"math",type:"root",body:dc(e,{context:s,parseMode:"math",mathstyle:t.mathstyle})}).render(s);return d?(gf(ll(d,s)),Jf(d,{classes:"ML__latex"}).toMarkup()):""}function xm(e){return Ad(e,{context:S0()})}function mh(e,t={}){return vo(dc(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function o0(e){const t=dc(e,{parseMode:"math",mathstyle:"displaystyle"});return Fc(t)}var NA;function wu(e){var t,r;if(!NA){const i=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;i?NA=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=NA==null?void 0:NA.box(e).latex)!=null?r:""}function s0(e,t="math"){return ms(new Ur({type:"root",body:dc(e,{parseMode:t})}))}function gh(e){return M0(e,{format:"ascii-math"})[1]}function af(e){if(typeof e=="string"){const t=tp(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Up(e):"a"in e?rp(e):e}function of(e){return e<0?0:e>255?255:Math.round(e)}function tp(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&typeof t.a=="undefined"&&(t.a=1),t}function ql(e){const[t,r,i]=[e.L,e.C,e.H],s=i*Math.PI/180,c={L:t,a:r*Math.cos(s),b:r*Math.sin(s)};return e.alpha!==void 0&&(c.alpha=e.alpha),c}function Cm(e){const[t,r,i]=[e.L,e.a,e.b],s=Math.sqrt(r*r+i*i),d=Math.atan2(i,r)*180/Math.PI,k={L:t,C:s,H:d};return e.alpha!==void 0&&(k.alpha=e.alpha),k}function Hu(e){const[t,r,i]=[e.L,e.a,e.b],s=Math.pow(.9999999984505198*t+.39633779217376786*r+.2158037580607588*i,3),c=Math.pow(1.00000000888176*t-.10556134232365635*r-.0638541747717059*i,3),d=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*i,3),k=4.076741661347994*s-3.307711590408193*c+.230969928729428*d,j=-1.2684380040921763*s+2.6097574006633715*c-.3413193963102197*d,X=-.004196086541837188*s-.7034186144594493*c+1.7076147009309444*d,ce=Pe=>{const nt=Math.abs(Pe);return nt<=.0031308?Pe*12.92:(Math.sign(Pe)||1)*(1.055*Math.pow(nt,1/2.4)-.055)};return[ce(k),ce(j),ce(X)]}function ju(e){const[t,r,i]=e;return t>=0&&t<=1&&r>=0&&r<=1&&i>=0&&i<=1}function l0(e,t){let[r,i,s]=e;return r=of(r*255),i=of(i*255),s=of(s*255),t!==void 0?{r,g:i,b:s,alpha:t}:{r,g:i,b:s}}function rp(e){let[t,r,i]=Hu(e);if(ju([t,r,i]))return l0([t,r,i],e.alpha);const s=Cm(e);if(s.C=0,[t,r,i]=Hu(ql(s)),!ju([t,r,i]))return l0([t,r,i],e.alpha);let c=0,d=e.L,k=(c+d)/2;s.C=k;const j=.36/Math.pow(2,12);for(;d-c>j;)k=(c+d)/2,s.C=k,[t,r,i]=Hu(ql(s)),ju([t,r,i])?c=k:d=k;return l0([t,r,i],e.alpha)}function Up(e){return rp(ql(e))}function np(e,t){const r=af(e),i=af(t),s=.56,c=.57,d=.62,k=.65,j=.022,X=1.414,ce=.1,Pe=5e-4,nt=1.14,vt=.027,Et=1.14,Br=.027;function En(Qi){return Qi>=j?Qi:Qi+Ch(j-Qi,X)}function wr(Qi){return(Qi<0?-1:1)*Math.pow(Math.abs(Qi),2.4)}const nn=En(wr(i.r/255)*.2126729+wr(i.g/255)*.7151522+wr(i.b/255)*.072175),Fn=En(wr(r.r/255)*.2126729+wr(r.g/255)*.7151522+wr(r.b/255)*.072175);let cn,Bi,ra;return Math.abs(Fn-nn)<Pe?Bi=0:Fn>nn?(cn=Ch(Fn,s)-Ch(nn,c),Bi=cn*nt):(cn=Ch(Fn,k)-Ch(nn,d),Bi=cn*Et),Math.abs(Bi)<ce?ra=0:Bi>0?ra=Bi-Br:ra=Bi+vt,ra*100}function Rf(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const i=np(e,r),s=np(e,t);return Math.abs(i)>Math.abs(s)?r:t}function vh(e){const t=af(e);let r=((1<<24)+(of(t.r)<<16)+(of(t.g)<<8)+of(t.b)).toString(16).slice(1);return t.alpha!==void 0&&t.alpha<1&&(r+=("00"+Math.round(t.alpha*255).toString(16)).slice(-2)),r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]&&(r=r[0]+r[2]+r[4]+(t.alpha!==void 0&&t.alpha<1?r[6]:"")),"#"+r}function gs(e){const t=bh(e);let r="";for(const i of t){if(typeof i.value!="string")return"";r+=i.value}return r}function bh(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function yh(e,t){const r=bh(e);if(r.length!==1)return!1;const i=H0[t];return i?!!i.test(r[0].value):!1}function c0(e,t){return gs(e).length>0}function zu(e){return[Sm(e,"double-struck","mathbb","tooltip.blackboard"),Sm(e,"fraktur","mathfrak","tooltip.fraktur"),Sm(e,"calligraphic","mathcal","tooltip.caligraphic"),Em(e,"up","mathrm","tooltip.roman-upright"),Em(e,"bold","mathbf","tooltip.bold"),Em(e,"italic","mathit","tooltip.italic")]}function sf(e){return[{label:()=>Tl(`\\vec{${gs(e)}}`),visible:()=>gs(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overrightarrow{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overleftarrow{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\dot{${gs(e)}}`),visible:()=>gs(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\ddot{${gs(e)}}`),visible:()=>gs(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\bar{${gs(e)}}`),visible:()=>gs(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overline{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overgroup{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overbrace{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\underline{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\undergroup{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\underbrace{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function qs(e){return[{label:()=>Tl(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function pl(e){const t=[];for(const r of Object.keys(le))t.push({class:(vh(Rf(le[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${le[r]} "></span>`,ariaLabel:()=>{var i;return(i=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 gc(e){const t=[];for(const r of Object.keys(me))t.push({class:(Rf(me[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${me[r]} "></span>`,ariaLabel:()=>{var i;return(i=J(r))!=null?i:r},checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({color:r}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({color:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}var zc=class extends tf{constructor(e,t,r,i){super(e,t),this.row=r,this.col=i}set active(e){const t=this.parentMenu.children;if(e)for(const r of t)r.element.classList.toggle("active",r.row<=this.row&&r.col<=this.col);else for(const r of t)r.element.classList.remove("active")}};function Qf(e){const t=[];for(let r=1;r<=5;r++)for(let i=1;i<=5;i++)t.push({onCreate:(s,c)=>new zc(s,c,r,i),label:"\u2610",tooltip:()=>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 Rp(e){return[{label:()=>J("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>$u(e)},{label:()=>J("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>$u(e)},{label:()=>J("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>$u(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:()=>$u(e)},{type:"divider"},{label:()=>J("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>$u(e)},{label:()=>J("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>$u(e)},{type:"divider"},{label:()=>J("menu.borders"),visible:()=>(Bm(e)||$u(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>ip(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>ip(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>ip(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>ip(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>ip(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>J("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:Qf(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:()=>{zh(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>J("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{zh(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:zu(e),submenuClass:"variant-submenu"},{label:()=>J("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:gc(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:pl(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:sf(e),submenuClass:"variant-submenu"},{label:()=>J("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&gs(e).length>0,submenu:qs(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>J("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const t=Mg(e);if(!t){e.model.announce("plonk");return}e.model.selectionIsCollapsed?(e.model.position=e.model.lastOffset,e.insert(`=${t}`,{insertionMode:"insertAfter",selectionMode:"item"})):e.insert(t,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>J("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var t,r;if(e.model.selectionIsCollapsed){const i=(t=e.expression)==null?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!i){e.model.announce("plonk");return}e.insert(`=${i.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const i=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection)).simplify();if(!i){e.model.announce("plonk");return}e.insert(i.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var t;if(window.MathfieldElement.computeEngine===null)return"";const r=(t=e.expression)==null?void 0:t.unknowns[0];return r?J("menu.solve-for",Tl(r)):J("menu.solve")},id:"ce-solve",visible:()=>{var t;return e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((t=e.expression)==null?void 0:t.unknowns.length)===1&&e.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var t;const r=e.expression,i=r==null?void 0:r.unknowns[0],s=(t=r.solve(i))==null?void 0:t.map(c=>{var d;return(d=c.simplify().latex)!=null?d:""});if(!s){e.model.announce("plonk");return}e.insert(`${i}=${s.length===1?s[0]:"\\left\\lbrace"+(s==null?void 0:s.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>J("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>J("menu.copy"),id:"copy",submenu:[{label:()=>J("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ds.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>J("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ds.copyToClipboard(e,"ascii-math")},{label:()=>J("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ds.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 $u(e){var t;return!!((t=e.model.parentEnvironment)!=null&&t.array)}function Bm(e){return e.model.at(e.model.position).type==="array"}function Fg(e){var t;const r=(t=e.model.parentEnvironment)==null?void 0:t.array;return r?[r.length,r.reduce((i,s)=>Math.max(i,s.length),0)]:[0,0]}function ip(e,t){lm(e),e.flushInlineShortcutBuffer(),ws(e.model,t),_l(e)}function Mg(e){var t,r;let i;if(e.model.selectionIsCollapsed?i=(t=window.MathfieldElement.computeEngine)==null?void 0:t.parse(e.getValue(),{canonical:!1}):i=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection),{canonical:!1}),!i)return"";let s=i.evaluate();return s.isSame(i)&&(s=i.N()),s.latex}function Sm(e,t,r,i){return{label:()=>Tl(`\\${r}{${gs(e)}}`),tooltip:()=>{var s;return(s=J(i))!=null?s:i},visible:()=>yh(e,t),checked:()=>{var s;return{some:"mixed",all:!0}[(s=e.queryStyle({variant:t}))!=null?s:!1]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function Em(e,t,r,i){return{label:()=>Tl(`\\${r}{${gs(e)}}`),tooltip:()=>{var s;return(s=J(i))!=null?s:i},visible:()=>c0(e,t),checked:()=>{var s;return{some:"mixed",all:!0}[(s=e.queryStyle({variantStyle:t}))!=null?s:!1]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function A0(e,t){return e+Fc(t)}o({speak:(e,t,r)=>Qp(e,t,r)},{target:"mathfield"});function Qp(e,t,r){var i,s;r=r!=null?r:{withHighlighting:!1};const{model:c}=e;function d(ce){let Pe=null;switch(ce){case"all":Pe=c.root;break;case"selection":Pe=c.getAtoms(c.selection);break;case"left":{Pe=c.getAtoms(c.offsetOf(c.at(c.position).leftSibling),c.position);break}case"right":{Pe=c.getAtoms(c.position,c.offsetOf(c.at(c.position).rightSibling));break}case"group":Pe=c.getAtoms(c.getSiblingsRange(c.position));break;case"parent":{const{parent:nt}=c.at(c.position);nt!=null&&nt.parent?Pe=nt:Pe=c.root;break}default:Pe=c.root}return Pe}function k(ce){let Pe="";switch(ce){case"all":console.log("Internal failure: speak all failed");break;case"selection":Pe="no selection";break;case"left":Pe="at start";break;case"right":Pe="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Pe="no parent";break;default:console.log('unknown speak_ param value: "'+ce+'"');break}return Pe}const j=d(t);if(j===null)return(s=(i=window.MathfieldElement).speakHook)==null||s.call(i,k(t)),!1;(r.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const X=Fc(j);return O()&&r.withHighlighting?(OA().readAloudMathfield=e,$h(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,X)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(X),!1}function Lg(e){var t,r;if(!O()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const i=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(i)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"mp3",VoiceId:(t=window.MathfieldElement.speechEngineVoice)!=null?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(s,(c,d)=>{if(c)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);else if(d!=null&&d.AudioStream){const k=new Uint8Array(d.AudioStream),j=new Blob([k.buffer],{type:"audio/mpeg"}),X=URL.createObjectURL(j);new Audio(X).play().catch(Pe=>console.log(Pe))}else console.log("polly.synthesizeSpeech():",d)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function cg(e){var t;let r;if(e.parent.type==="prompt")e.parentBranch==="body"&&(r="prompt");else if(e.parentBranch==="body")r=e.type&&(t={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[e.type])!=null?t:"parent";else if(e.parent.type==="genfrac"){if(e.parentBranch==="above")return"numerator";if(e.parentBranch==="below")return"denominator"}else e.parent.type==="surd"?e.parentBranch==="above"&&(r="index"):e.parentBranch==="superscript"?r="superscript":e.parentBranch==="subscript"&&(r="subscript");return r||console.log("unknown relationship"),r!=null?r:"parent"}function kg(e,t,r,i){let s="";if(t==="plonk")window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if(t==="delete")s=A0("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=A0("",e.model.at(e.model.position));else if(t==="line"){const c=A0("",e.model.root);e.keyboardDelegate.setAriaLabel(c)}else s=i?A0(t+" ",i):t;if(s){const c=e.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";e.ariaLiveText.textContent=s+c}}function Dg(e,t){if(Number.isNaN(t))return"";const r=e.at(t);if(!r||r.treeDepth<=e.at(e.position).treeDepth)return"";let i="",s=r.parent;const c=e.at(e.position).parent;for(;s!==e.root&&s!==c;)i+=`out of ${cg(s)};`,s=s.parent;return i}function Ng(e){if(!e.selectionIsCollapsed)return A0("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),i=cg(r);return r.isFirstSibling&&(t=(i?"start of "+i:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=i?"end of "+i:"unknown"):t+=A0("",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=ka(e.content),this.selection=e.selection,this.silenceNotifications=c,this.contentDidChange(s)}this.silenceNotifications=i}get atoms(){return this.root.children}get selection(){return this._selection}set selection(e){this.setSelection(e)}setSelection(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var r,i,s;const c=this.normalizeSelection(e,t);if(c===void 0)throw new TypeError("Invalid selection");if(c.ranges.length===1&&c.ranges[0][0]===c.ranges[0][1]){const ce=c.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(ce))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((i=this.at(ce-1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(ce-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((s=this.at(ce+1))!=null&&s.parentPrompt){this._anchor=this.normalizeOffset(ce+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=ce,this._position=ce,this._selection=c;return}const d=Xl(c);c.direction==="backward"?[this._position,this._anchor]=d:[this._anchor,this._position]=d;const k=this.at(d[0]+1),j=this.at(d[1]),X=Ur.commonAncestor(k,j);(X==null?void 0:X.type)==="array"&&k.parent===X&&j.parent===X?this._selection={ranges:[d],direction:c.direction}:this._selection={ranges:[d],direction:c.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(e){var t;const r=this.at(e);(r==null?void 0:r.type)==="placeholder"?this.setSelection(e-1,e):((t=r==null?void 0:r.rightSibling)==null?void 0:t.type)==="placeholder"?this.setSelection(e,e+1):this.position=e,r instanceof 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(Lh(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 d=Math.min(s,c)+1,k=Math.max(s,c);if(!i.includeChildren&&d===1&&k===this.lastOffset)return[this.root];let j=[];for(let X=d;X<=k;X++){const ce=this.atoms[X];Ag(this,ce,d,k)&&j.push(ce)}return i.includeChildren||(j=j.filter(X=>{let ce=!1,{parent:Pe}=X;for(;Pe&&!ce;)ce=Ag(this,Pe,d,k),Pe=Pe.parent;return!ce})),j}getAllAtoms(e=0){const t=[],r=this.lastOffset;for(let i=e;i<=r;i++)t.push(this.atoms[i]);for(let i=0;i<e;i++)t.push(this.atoms[i]);return t}findAtom(e,t=0,r="forward"){let i;const s=this.lastOffset;if(r==="forward"){for(let c=t;c<=s;c++)if(i=this.atoms[c],e(i))return i;for(let c=0;c<t;c++)if(i=this.atoms[c],e(i))return i;return}for(let c=t;c>=0;c--)if(i=this.atoms[c],e(i))return i;for(let c=s;c>t;c--)if(i=this.atoms[c],e(i))return i}extractAtoms(e){let t=this.getAtoms(e);if(t.length===1&&!t[0].parent)if(t[0].type==="root")t=[...t[0].body],t.shift();else return t=this.root.cells.flat(),this.root=new Ur({type:"root",body:[]}),t;for(const r of t)r.parent.removeChild(r);return t}deleteAtoms(e){this.extractAtoms(e),this.position=e[0]}atomToString(e,t){const r=t!=null?t:"latex";if(r.startsWith("latex"))return Ur.serialize([e],{expandMacro:r==="latex-expanded",skipStyles:r==="latex-unstyled",skipPlaceholders:r==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(r==="math-ml")return vo(e);if(r==="spoken")return Fc(e);if(r==="spoken-text"){const i=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const s=Fc(e);return window.MathfieldElement.textToSpeechMarkup=i,s}if(r==="spoken-ssml"||r==="spoken-ssml-with-highlighting"){const i=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const s=Fc(e);return window.MathfieldElement.textToSpeechMarkup=i,s}return r==="ascii-math"?ms(e):(console.error(`MathLive 0.98.5: Unexpected format "${r}`),"")}getValue(e,t,r){if(e===void 0)return this.atomToString(this.root,"latex");if(typeof e=="string"&&e!=="math-json")return this.atomToString(this.root,e);let i,s;if(ad(e)&&ad(t)?(i=[this.normalizeRange([e,t])],s=r):th(e)?(i=[this.normalizeRange(e)],s=t):Lh(e)?(i=e.ranges,s=t):(i=[this.normalizeRange([0,-1])],s=e),s!=null||(s="latex"),s==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const c=this.getValue({ranges:i},"latex-unstyled");try{const d=window.MathfieldElement.computeEngine.parse(c);return JSON.stringify(d.json)}catch(d){return JSON.stringify(["Error",`'${d.toString()}'`])}}if(s.startsWith("latex")){const c={expandMacro:s==="latex-expanded",skipStyles:s==="latex-unstyled",skipPlaceholders:s==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Ao(i.map(d=>Ur.serialize(this.getAtoms(d),c)))}return i.map(c=>this.getAtoms(c).map(d=>this.atomToString(d,s)).join("")).join("")}extendSelectionTo(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const r=this.normalizeRange([e,t]);let[i,s]=r,{parent:c}=this.at(s);if(c&&(c.type==="genfrac"||c.type==="subsup"))for(;c!==this.root&&_m(this,c,[i,s]);)s=this.offsetOf(c),c=c.parent;for(c=this.at(i).parent;c!==this.root&&_m(this,c,[i,s]);)i=this.offsetOf(c.leftSibling),c=c.parent;if(c=this.at(s).parent,(c==null?void 0:c.type)==="genfrac")for(;c!==this.root&&_m(this,c,[i,s]);)s=this.offsetOf(c),console.assert(s>=0),c=c.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[i,s]],direction:"none"}})}announce(e,t,r=[]){var i,s;((s=(i=this.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:r},cancelable:!0,bubbles:!0,composed:!0})))!=null?s:!0)&&kg(this.mathfield,e,t,r)}deferNotifications(e,t){const r=this._selection,i=this._anchor,s=this._position,c=this.silenceNotifications;this.silenceNotifications=!0;const d=this.root.changeCounter;t();const k=this.root.changeCounter!==d,j=i!==this._anchor||s!==this._position||Mh(this._selection,r)==="different";return this.silenceNotifications=c,e.content&&k&&this.contentDidChange({inputType:e.type}),e.selection&&j&&this.selectionDidChange(),k||j}normalizeOffset(e){return e>0?e=Math.min(e,this.lastOffset):e<0&&(e=this.lastOffset+e+1),e}normalizeRange(e){let[t,r]=e;return t=this.normalizeOffset(t),r=this.normalizeOffset(r),t<r?[t,r]:[r,t]}normalizeSelection(e,t){var r;let i;if(ad(e)){const s=this.normalizeOffset(e);if(ad(t)){const c=this.normalizeOffset(t);i=s<=c?{ranges:[[s,c]],direction:"none"}:{ranges:[[c,s]],direction:"backward"}}else i={ranges:[[s,s]],direction:"none"}}else if(th(e)){const s=this.normalizeOffset(e[0]),c=this.normalizeOffset(e[1]);i=s<=c?{ranges:[[s,c]],direction:"none"}:{ranges:[[c,s]],direction:"backward"}}else Lh(e)&&(i={ranges:e.ranges.map(s=>this.normalizeRange(s)),direction:(r=e.direction)!=null?r:"none"});return console.assert(i!==void 0),i}get parentEnvironment(){let e=this.at(this.position).parent;if(e){for(;e.parent&&e.type!=="array";)e=e.parent;if(e.type==="array")return e}}get cell(){var e;let t=this.at(this.position);if(t){for(;t&&((e=t.parent)==null?void 0:e.type)!=="array";)t=t.parent;if(!(!(t!=null&&t.parent)||t.parent.type!=="array"))return t.parentBranch}}contentWillChange(e={}){if(this.silenceNotifications||!this.mathfield)return!0;const t=this.silenceNotifications;this.silenceNotifications=!0;const r=this.mathfield.onContentWillChange(e);return this.silenceNotifications=t,r}contentDidChange(e){var t;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(QA(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",F(g({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",bubbles:!0,composed:!0}))),this.silenceNotifications=r}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(QA(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function Ag(e,t,r,i){const s=e.offsetOf(t);if(s<r||s>i)return!1;if(!t.hasChildren)return!0;const c=e.offsetOf(t.firstChild);if(c>=r&&c<=i){const d=e.offsetOf(t.lastChild);if(d>=r&&d<=i)return!0}return!1}function _m(e,t,r){if(!(t!=null&&t.hasChildren))return!1;const[i,s]=r,c=e.offsetOf(t.firstChild),d=e.offsetOf(t.lastChild);return c>=i&&c<=s&&d>=c&&d<=s}function u0(e,t,r,i){var s,c,d,k,j,X;const ce=r.parent;if(ce&&r instanceof Ys){const Pe=!i&&t==="forward"||i==="body"&&t==="backward";let nt=Pe?e.offsetOf(r.firstChild):e.offsetOf(r.lastChild);return Pe?r.rightDelim!=="?"&&r.rightDelim!=="."?(r.leftDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),nt--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),nt--),e.position=nt,!0}if(ce&&r.type==="surd"){if(t==="forward"&&!i||t==="backward"&&i==="body"){const Pe=r.leftSibling;r.hasChildren&&ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),e.position=e.offsetOf(Pe)}else t==="forward"&&i==="body"?e.position=e.offsetOf(r):!i&&t==="backward"?r.hasChildren?e.position=e.offsetOf(r.lastChild):(e.position=Math.max(0,e.offsetOf(r)-1),ce.removeChild(r)):i==="above"&&(r.hasEmptyBranch("above")&&r.removeBranch("above"),t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r.body[0]));return!0}if(ce&&(r.type==="box"||r.type==="enclose")){const Pe=i&&t==="backward"||!i&&t==="forward"?r.leftSibling:r.lastChild;return ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),e.position=e.offsetOf(Pe),!0}if(r.type==="genfrac"||r.type==="overunder"){if(!i)return r.type==="overunder"&&r.hasEmptyBranch("body")||r.type==="genfrac"&&r.hasEmptyBranch("below")&&r.hasEmptyBranch("above")?!1:(e.position=e.offsetOf(t==="forward"?r.firstChild:r.lastChild),!0);const Pe=d0.fractionNavigationOrder==="numerator-denominator"?"above":"below",nt=Pe==="above"?"below":"above";if(ce&&(t==="forward"&&i===Pe||t==="backward"&&i===nt)){const vt=r.removeBranch(Pe),Et=r.removeBranch(nt);return ce.addChildrenAfter([...vt,...Et],r),ce.removeChild(r),e.position=e.offsetOf(vt.length>0?vt[vt.length-1]:Et[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!i&&t==="forward")return!1;if(!i){if(r.subscript||r.superscript){const Pe=t==="forward"?(d=(s=r.superscript)==null?void 0:s[0])!=null?d:(c=r.subscript)==null?void 0:c[0]:(X=(k=r.subscript)==null?void 0:k[0].lastSibling)!=null?X:(j=r.superscript)==null?void 0:j[0].lastSibling;return Pe&&(e.position=e.offsetOf(Pe)),!0}return!1}if(!r.hasChildren&&r.type==="subsup"){const Pe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);return r.parent.removeChild(r),e.position=Pe,!0}if(i==="superscript")if(t==="backward"){const Pe=e.offsetOf(r.firstChild)-1;console.assert(Pe>=0),e.position=Pe}else r.subscript?e.position=e.offsetOf(r.subscript[0]):e.position=e.offsetOf(r);else i==="subscript"&&(t==="backward"&&r.superscript?e.position=e.offsetOf(r.superscript[0].lastSibling):t==="backward"?e.position=e.offsetOf(r.firstChild)-1:e.position=e.offsetOf(r));if(i&&r.hasEmptyBranch(i)&&(r.removeBranch(i),r.type==="subsup"&&!r.subscript&&!r.superscript)){const Pe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);r.parent.removeChild(r),e.position=Pe}return!0}if((ce==null?void 0:ce.type)==="genfrac"&&!i&&r.type!=="first"){let Pe=e.offsetOf(r.leftSibling);return ce.removeChild(r),ce.hasEmptyBranch("above")&&ce.hasEmptyBranch("below")?(Pe=e.offsetOf(ce.leftSibling),ce.parent.removeChild(ce),e.announce("delete",void 0,[ce]),e.position=Pe,!0):(e.announce("delete",void 0,[r]),e.position=Pe,!0)}if(t==="backward"&&((ce==null?void 0:ce.command)==="\\ln"||(ce==null?void 0:ce.command)==="\\log")&&r.parentBranch!=="body"){const Pe=e.offsetOf(ce.leftSibling);return ce.parent.removeChild(ce),e.announce("delete",void 0,[ce]),e.position=Pe,!0}return!1}function Im(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentBackward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let t=e.at(e.position);if(!(t&&u0(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(u0(e,"backward",t.parent,t.parentBranch))return;t=null}if(!t){e.announce("plonk");return}e.position=e.offsetOf(t.leftSibling),t.parent.removeChild(t),e.announce("delete",void 0,[t])}}):vc(e,Xl(e.selection),"deleteContentBackward")}function xu(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&&u0(e,"forward",i))return;if(i){if(e.at(e.position).isLastSibling&&u0(e,"forward",i.parent,i.parentBranch))return}else{if(i=e.at(e.position),i.isLastSibling&&u0(e,"forward",i.parent,i.parentBranch))return;i=void 0}if(e.position===e.lastOffset||!i){e.announce("plonk");return}i.parent.removeChild(i);let s=(t=e.at(e.position))==null?void 0:t.rightSibling;for(;(s==null?void 0:s.type)==="subsup";)s.parent.removeChild(s),s=(r=e.at(e.position))==null?void 0:r.rightSibling;e.announce("delete",void 0,[i])}):vc(e,Xl(e.selection),"deleteContentForward")}function vc(e,t,r){const i=e.getAtoms(t);if(i.length>0&&i[0].parent){let s=i[0].parent.firstChild;s.type==="first"&&(s=s.rightSibling);const c=i[i.length-1].parent.lastChild;let d=i[0];d.type==="first"&&(d=d.rightSibling);const k=i[i.length-1];if(d===s&&k===c){const j=i[0].parent;j.parent&&j.type!=="prompt"&&(t=[e.offsetOf(j.leftSibling),e.offsetOf(j)])}if(i.length===1&&i[0].type==="placeholder"&&i[0].parent.type==="genfrac"){const j=i[0].parent,X=i[0].parentBranch==="below"?"above":"below",ce=e.offsetOf(j.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Pe,nt;const vt=j.removeBranch(X);if(vt.length===1&&vt[0].type==="placeholder")(nt=j.parent)==null||nt.removeChild(j),e.position=Math.max(0,ce);else{const Et=j.parent.addChildrenAfter(vt,j);(Pe=j.parent)==null||Pe.removeChild(j),e.position=e.offsetOf(Et)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}o({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&vc(e,[0,-1],"deleteContent"),deleteForward:e=>xu(e),deleteBackward:e=>Im(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&vc(e,[e.anchor,fo(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&vc(e,[e.anchor,fo(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&vc(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&vc(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&vc(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&vc(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var Fm=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${J("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,Mm=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${J("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,Pg=class{constructor(e,t){this.focusBlurInProgress=!1;var r,i,s;this.options=g(F(g({},Ci()),{macros:tt(),registers:qf()}),Hn(t)),this.eventController=new AbortController;const c=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let d=(i=(r=t.value)!=null?r:this.element.textContent)!=null?i:"";d=d.trim();const k=Sa(this.options),j=new Ur({type:"root",mode:k,body:dc(d,{context:this.context})});this.model=new Og(this,k,j),this.undoManager=new Ya(this.model);const X=[];if(X.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),X.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),X.push("<span part=content class=ML__content>"),X.push(_g(this)),X.push("</span>"),window.mathVirtualKeyboard&&(X.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),X.push(Fm),X.push("</div>")),X.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),X.push(Mm),X.push("</div>"),X.push("</span>"),X.push("<span class=ML__sr-only>"),X.push("<span role=status aria-live=assertive aria-atomic=true></span>"),X.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(X.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=ne.subscribe(()=>ne.update(this.element)),ne.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Pe=>Pe.stopImmediatePropagation(),{capture:!1,signal:c}),this.field.addEventListener("wheel",this,{passive:!1,signal:c}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:c}):this.field.addEventListener("mousedown",this,{signal:c}),(s=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||s.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(QA(this)))},{signal:c}),this._menu=new z(Rp(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:c});const ce=this.element.querySelector("[part=menu-toggle]");ce==null||ce.addEventListener("pointerdown",Pe=>{if(Pe.currentTarget!==ce||this._menu.state!=="closed")return;this.element.classList.add("tracking");const nt=ce.getBoundingClientRect();this._menu.modifiers=MA(Pe),this._menu.show({target:ce,location:{x:nt.left,y:nt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Pe.preventDefault(),Pe.stopPropagation()},{signal:c}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(ce.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=vg(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:c}),document.addEventListener("scroll",this,{signal:c}),this.resizeObserver=new ResizeObserver(()=>_l(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:c}),Sc&&!ne.locale.startsWith(Sc.locale)&&sA(ne.locale),pu!=="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(QA(this)),dh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Dp())}showMenu(e){var t,r;const i=(r=(t=e==null?void 0:e.location)!=null?t:ih(this.field))!=null?r:void 0,s=e==null?void 0:e.modifiers,c=this.element.querySelector("[part=container]");return this._menu.show({target:c,location:i,modifiers:s})}get colorMap(){return e=>{var t,r,i;return(i=(r=(t=this.options).colorMap)==null?void 0:r.call(t,e))!=null?i:Ue(e)}}get backgroundColorMap(){return e=>{var t,r,i,s,c,d;return(d=(c=(r=(t=this.options).backgroundColorMap)==null?void 0:r.call(t,e))!=null?c:(s=(i=this.options).colorMap)==null?void 0:s.call(i,e))!=null?d:ee(e)}}get smartFence(){var e;return(e=this.options.smartFence)!=null?e:!1}get readOnly(){var e;return(e=this.options.readOnly)!=null?e:!1}get disabled(){var e,t;return(t=(e=this.host)==null?void 0:e.disabled)!=null?t:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const e=getComputedStyle(this.host);return e.getPropertyValue("user-select")||e.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(e=>e.type==="prompt"&&!e.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const e=this.model.at(this.model.anchor),t=this.model.at(this.model.position),r=Ur.commonAncestor(e,t);return!!((r==null?void 0:r.type)==="prompt"||r!=null&&r.parentPrompt)}get letterShapeStyle(){var e;return(e=this.options.letterShapeStyle)!=null?e:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const e=this.model.getAtoms(this.model.selection);if(e.length===0)return{};const t=g({},e[0].style);for(const r of e)for(const[i,s]of Object.entries(r.style))t[i]!==s&&delete t[i];return t}queryStyle(e){const t=$0(this,e);"verbatimColor"in t&&delete t.verbatimColor,"verbatimBackgroundColor"in t&&delete t.verbatimBackgroundColor;const r=Object.keys(t).length;if(r===0)return"all";if(r>1){for(const j of Object.keys(t)){const X=this.queryStyle({[j]:t[j]});if(X==="none")return"none";if(X==="some")return"some"}return"all"}const i=Object.keys(t)[0],s=t[i];if(this.model.selectionIsCollapsed)return this.effectiveStyle[i]===s?"all":"none";const c=this.model.getAtoms(this.model.selection,{includeChildren:!0});let d=c.length;if(d===0)return"none";let k=0;for(const j of c){if(j.type==="first"){d-=1;continue}j.style[i]===s&&(k+=1)}return k===0?"none":k===d?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,i]=Jg(this.options.keybindings,(e=uu())!=null?e:YA());return((t=uu())==null?void 0:t.score)>0&&(this._keybindings=r,i.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",i)),r}get menu(){return this._menu}setOptions(e){var t;this.options=g(g({},this.options),Hn(e)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let r=this.options.defaultMode;r==="inline-math"&&(r="math"),((t=this.model.root.firstChild)==null?void 0:t.mode)!==r&&(this.model.root.firstChild.mode=r),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const i=Ur.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==i)&&Ds.insert(this.model,i,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in e||"macros"in e||"registers"in e||"colorMap"in e||"backgroundColorMap"in e||"letterShapeStyle"in e||"minFontScale"in e||"readOnly"in e||"placeholderSymbol"in e)&&_l(this)}getOptions(e){return gi(this.options,e)}getOption(e){return gi(this.options,e)}handleEvent(e){return dp(this,null,function*(){var t;if(od(this)){if(Z(e)){if(!Nh(e.origin,(t=this.options.originValidator)!=null?t:"none"))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");const{action:r}=e.data;if(r==="execute-command"){const i=e.data.command;if(l(i)==="virtual-keyboard")return;this.executeCommand(i)}else r==="update-state"||(r==="focus"?this.focus({preventScroll:!0}):r==="blur"&&this.blur());return}switch(e.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&kp(this,e);break;case"pointerdown":this.userSelect!=="none"&&(kp(this,e),e.shiftKey===!1&&(yield vr(e,this.element.querySelector("[part=container]"),this._menu))&&V0.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield vr(e,this.element.querySelector("[part=container]"),this._menu))&&V0.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&dh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>od(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>od(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}})}dispose(){if(!od(this))return;ne.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const e=this.element;delete e.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,z0(),Yg(),Y0()}flushInlineShortcutBuffer(e){if(e!=null||(e={defer:!1}),!e.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(e){return l(e)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(QA(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=kh(this.model,this.model.position))!=null?r:"math");const i=this.undoManager.canUndo();Ds.insert(this.model,e,t)&&(_l(this),i||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const e=window.MathfieldElement.computeEngine;return e?e.box(e.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var e;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const i=window.mathVirtualKeyboard.boundingRect,s=this.host.getBoundingClientRect();s.bottom>i.top&&((e=window.document.scrollingElement)==null||e.scrollBy(0,s.bottom-i.top+8))}}this.dirty&&$h(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=ih(this.field);else{const i=Rm(this);if(i.length>0){let s=-1/0,c=-1/0;for(const d of i)d.right>s&&(s=d.right),d.top<c&&(c=d.top);r={x:s+t.left-this.field.scrollLeft,y:c+t.top-this.field.scrollTop,height:0}}}if(this.host&&r){const i=this.host.getBoundingClientRect(),s=r.y;let c=this.host.scrollTop;s<i.top?c=s-i.top+this.host.scrollTop:s>i.bottom&&(c=s-i.bottom+this.host.scrollTop+r.height),this.host.scroll({top:c,left:0})}if(r){const i=r.x-window.scrollX;let s=this.field.scrollLeft;i<t.left?s=i-t.left+this.field.scrollLeft-20:i>t.right&&(s=i-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:s})}}insert(e,t){return typeof e!="string"||e.length===0&&((t==null?void 0:t.insertionMode)==="insertBefore"||(t==null?void 0:t.insertionMode)==="insertAfter")||e.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),t=t!=null?t:{mode:"math"},t.focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&L()&&navigator.vibrate(Ig),window.MathfieldElement.playSound("keypress")),e==="\\\\"?ha(this.model):e==="&"?Ca(this.model):this.model.selectionIsCollapsed?Ds.insert(this.model,e,g({style:this.model.at(this.model.position).computedStyle},t)):Ds.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),_l(this),t.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(e,t="",r=""){var i;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const s=this.model.mode;if(this.model.mode=e,!((i=this.host)!=null&&i.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=s;return}const c=this.model.mode,{model:d}=this;d.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let k=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const j=dc(t,{context:this.context,parseMode:e});d.collapseSelection("forward");const X=d.at(d.position);d.position=d.offsetOf(X.parent.addChildrenAfter(j,X)),k=!0}if(this.model.mode=e,e==="latex"){let j=d.selectionIsCollapsed;zh(this,"accept");let X,ce=d.at(d.position);if(j)X="\\";else{const nt=Xl(d.selection);X=this.model.getValue(nt,"latex");const vt=this.model.extractAtoms(nt);vt.length===1&&vt[0].type==="placeholder"&&(X=t,j=!0),ce=d.at(nt[0])}const Pe=new If(X);ce.parent.addChildAfter(Pe,ce),j?d.position=d.offsetOf(Pe.lastChild):d.setSelection(d.offsetOf(Pe.firstChild),d.offsetOf(Pe.lastChild))}else j0(d).forEach(j=>{j.isError=!1});if(r){const j=dc(r,{context:this.context,parseMode:c});d.collapseSelection("forward");const X=d.at(d.position);d.position=d.offsetOf(X.parent.addChildrenAfter(j,X)),k=!0}return _l(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),k}),this.model.mode=e,window.mathVirtualKeyboard.update(QA(this))}hasFocus(){return!this.blurred}focus(e){var t;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(t=e==null?void 0:e.preventScroll)!=null&&t||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(e,t={}){var r,i;const s={operation:"set",silenceNotifications:!1};th(t)?s.range=t:(t.operation==="toggle"&&(s.operation="toggle"),s.range=t.range,s.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const c=$0(this,e),d=(i=s.operation)!=null?i:"set";if(s.range===void 0&&this.model.selectionIsCollapsed){if(d==="set"){this.defaultStyle=g(g({},this.defaultStyle),c);return}const k=g({},this.defaultStyle);for(const j of Object.keys(c))k[j]===c[j]?(j==="color"&&delete k.verbatimColor,j==="backgroundColor"&&delete k.verbatimBackgroundColor,delete k[j]):k[j]=c[j];this.defaultStyle=k;return}this.model.deferNotifications({content:!s.silenceNotifications,type:"insertText"},()=>{if(s.range===void 0)for(const k of this.model.selection.ranges)Li(this.model,k,c,{operation:d});else Li(this.model,s.range,c,{operation:d})}),_l(this)}toggleContextMenu(){var e;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(e=this.getCaretPoint())!=null?e:void 0,onDismiss:()=>{var t;return(t=this.element)==null?void 0:t.focus()}}),!0):!1}getCaretPoint(){const e=ih(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=DA(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,F(g({},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(QA(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(QA(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(QA(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var e;(e=this.undoManager)==null||e.reset()}onSelectionDidChange(){var e,t;const r=this.model;this.keyboardDelegate.setValue(r.getValue(this.model.selection,"latex-expanded"));{const i=r.at(r.position),s=(e=i.mode)!=null?e:Sa(this.options);this.model.mode!==s&&(this.model.mode==="latex"?(zh(this,"accept",{mode:s}),r.position=r.offsetOf(i)):this.switchMode(s))}(t=this.host)==null||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(QA(this)),dh(this)}onContentWillChange(e){var t,r,i;return(i=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",F(g({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?i:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),$h(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var e,t,r;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",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,Dp();const i=new AbortController,s=i.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{od(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:s})},{once:!0,signal:s}),setTimeout(()=>i.abort(),100)}onInput(e){_p(this,e)}onKeystroke(e){return Xh(this,e)}onCompositionStart(e){this.model.deleteAtoms(Xl(this.model.selection));const t=ih(this.field);t&&requestAnimationFrame(()=>{$h(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){Oo(this.model,e),_l(this)}onCompositionEnd(e){Ha(this.model),_p(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ds.onCopy(this,e),vc(this.model,Xl(this.model.selection),"deleteByCut"),this.snapshot("cut"),_l(this))}onCopy(e){Ds.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=Ds.onPaste(this.model.at(this.model.position).mode,this,e.clipboardData)),t||this.model.announce("plonk"),e.preventDefault(),e.stopPropagation(),t}onGeometryChange(){this._menu.hide(),Ep(this),dh(this)}onWheel(e){const t=5*e.deltaX;if(!Number.isFinite(t)||t===0)return;const r=this.field;t<0&&r.scrollLeft===0||t>0&&r.offsetWidth+r.scrollLeft>=r.scrollWidth||(r.scrollBy({top:0,left:t}),e.preventDefault(),e.stopPropagation())}getHTMLElement(e){let t=e;for(;!t.id&&t.hasChildren;)t=e.children[0];return this.field.querySelector(`[data-atom-id="${t.id}"]`)}get context(){var e,t;return{registers:(e=this.options.registers)!=null?e:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(t=this.options.placeholderSymbol)!=null?t:"\u25A2",colorMap:r=>this.colorMap(r),backgroundColorMap:r=>this.backgroundColorMap(r),getMacro:r=>Ut(r,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function Kp(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)Kp(t)}function ap(e,t){var r;e&&(!t||((r=e.dataset)==null?void 0:r.atomId)===t?(e.classList.add("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(i=>{i instanceof HTMLElement&&ap(i)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(i=>{i instanceof HTMLElement&&ap(i,t)})))}function ug(e,t){var r;if(!O())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(t);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};OA().readAloudElement=e,i.synthesizeSpeech(s,(c,d)=>{if(c){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);return}if(!(d!=null&&d.AudioStream)){console.log("polly.synthesizeSpeech():",d);return}const k=new TextDecoder("utf-8").decode(new Uint8Array(d.AudioStream));OA().readAloudMarks=k.split(`
|
|
|
`).map(j=>j?JSON.parse(j):{}),OA().readAloudTokens=[];for(const j of OA().readAloudMarks)j.value&&OA().readAloudTokens.push(j.value);OA().readAloudCurrentMark="",s.OutputFormat="mp3",s.SpeechMarkTypes=[],i.synthesizeSpeech(s,(j,X)=>{if(j){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${j}`);return}if(!(X!=null&&X.AudioStream))return;const ce=new Uint8Array(X.AudioStream),Pe=new Blob([ce.buffer],{type:"audio/mpeg"}),nt=URL.createObjectURL(Pe),vt=OA();vt.readAloudAudio?vt.readAloudAudio.pause():(vt.readAloudAudio=new Audio,vt.readAloudAudio.addEventListener("ended",()=>{const Et=vt.readAloudMathfield;vt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Et?($h(Et),vt.readAloudElement=null,vt.readAloudMathfield=null,vt.readAloudTokens=[],vt.readAloudMarks=[],vt.readAloudCurrentMark=""):Kp(vt.readAloudElement)}),vt.readAloudAudio.addEventListener("timeupdate",()=>{let Et="";const Br=vt.readAloudAudio.currentTime*1e3+100;for(const En of vt.readAloudMarks)En.time<Br&&(Et=En.value);vt.readAloudCurrentMark!==Et&&(vt.readAloudCurrentToken=Et,Et&&Et===vt.readAloudFinalToken?vt.readAloudAudio.pause():(vt.readAloudCurrentMark=Et,ap(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()})})}O()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var Ho=new WeakMap,dg=.5,lf={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},sc=class zp extends HTMLElement{static get formAssociated(){return f0()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(t){t!==this._fontsDirectory&&(this._fontsDirectory=t,t1())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(t){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(t){this._soundsDirectory=t,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(t){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(t){var r,i,s;this.audioBuffers={},t===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof t=="string"?this._keypressSound={spacebar:t,return:t,delete:t,default:t}:typeof t=="object"&&"default"in t&&(this._keypressSound={spacebar:(r=t.spacebar)!=null?r:t.default,return:(i=t.return)!=null?i:t.default,delete:(s=t.delete)!=null?s:t.default,default:t.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(t){this.audioBuffers={},this._plonkSound=t}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(t){this._speechEngine=t}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(t){this._speechEngineRate=t}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(t){this._speechEngineVoice=t}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(t){this._textToSpeechMarkup=t}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(t){this._textToSpeechRules=t}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(t){this._textToSpeechRulesOptions=t}static get locale(){return ne.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),ne.locale=t}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(t){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return ne.strings}static set strings(t){ne.merge(t)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(t){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(t){this._decimalSeparator=t,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(t){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var t,r;if(this._computeEngine===void 0){const i=(t=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;if(!i)return null;this._computeEngine=new i,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(r=this._computeEngine)!=null?r:null}static set computeEngine(t){this._computeEngine=t}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(t){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(t){this._isFunction=t}static loadSound(t){return dp(this,null,function*(){delete this.audioBuffers[t];let r="";switch(t){case"keypress":r=this._keypressSound.default;break;case"return":r=this._keypressSound.return;break;case"spacebar":r=this._keypressSound.spacebar;break;case"delete":r=this._keypressSound.delete;break;case"plonk":r=this.plonkSound;break}if(typeof r!="string")return;r=r.trim();const i=this.soundsDirectory;if(!(i==null||i==="null"||r==="none"||r==="null"))try{const c=yield(yield fetch(yield Sg(`${i}/${r}`))).arrayBuffer(),d=yield this.audioContext.decodeAudioData(c);this.audioBuffers[t]=d}catch(s){}})}static playSound(t){return dp(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[t]||(yield this.loadSound(t)),!this.audioBuffers[t])return;const r=this.audioContext.createBufferSource();r.buffer=this.audioBuffers[t];const i=this.audioContext.createGain();i.gain.value=dg,r.connect(i).connect(this.audioContext.destination),r.start()})}constructor(t){if(super(),t){const r=[];for(const i of Object.keys(t))if(lf[i])if(lf[i].startsWith("mf."))if(lf[i].startsWith(`mf.${i}`))r.push(`Option \`${i}\` cannot be used as a constructor option. Use ${lf[i]}`);else{const s=lf[i].match(/([a-zA-Z]+) =/);r.push(`Option \`${i}\` has been renamed \`${s[1]}\``)}else r.push(`Option \`${i}\` cannot be used as a constructor option. Use ${lf[i]}`);if(r.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const i of r)console.warn(i);console.groupEnd()}}if(f0()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[_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>"+cu("core")+cu("mathfield")+cu("mathfield-element")+cu("ui")+cu("menu")+'</style><span></span><slot style="display:none"></slot>';t&&this._setOptions(t),this.shadowRoot.addEventListener("slotchange",()=>{var r;const i=this.shadowRoot.querySelector("slot:not([name])");this.value=(r=i==null?void 0:i.assignedNodes().map(s=>s.nodeType===3?s.textContent:"").join("").trim())!=null?r:""})}showMenu(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.showMenu(t))!=null?i:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",t=>{var r;t.target===this&&!((r=this._mathfield)!=null&&r.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:t.altKey,button:t.button,buttons:t.buttons,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,metaKey:t.metaKey,movementX:t.movementX,movementY:t.movementY,relatedTarget:t.relatedTarget,screenX:t.screenX,screenY:t.screenY,shiftKey:t.shiftKey}))},{once:!0})}getPromptValue(t,r){var i,s;return(s=(i=this._mathfield)==null?void 0:i.getPromptValue(t,r))!=null?s:""}setPromptValue(t,r,i){var s;(s=this._mathfield)==null||s.setPromptValue(t,r,i)}getPromptRange(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPromptRange(t))!=null?i:null}getPrompts(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPrompts(t))!=null?i:[]}get form(){var t;return(t=this._internals)==null?void 0:t.form}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}get type(){return this.localName}get mode(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.mode)!=null?r:this.defaultMode==="text"?"text":"math"}set mode(t){var r;(r=this._mathfield)==null||r.switchMode(t)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(t){var r,i;if(!this._mathfield)return;const s=(i=(r=zp.computeEngine)==null?void 0:r.box(t).latex)!=null?i:null;s!==null&&this._mathfield.setValue(s),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.errors)!=null?r:[]}_getOptions(t){return this._mathfield?gi(this._mathfield.options,t):Ho.has(this)?g({},gi(g(g({},Ci()),Hn(Ho.get(this).options)),t)):null}getOptions(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?gi(this._mathfield.options,t):Ho.has(this)?gi(g(g({},Ci()),Hn(Ho.get(this).options)),t):null}reflectAttributes(){const t=Ci(),r=this._getOptions();Object.keys(zp.optionsAttributes).forEach(i=>{const s=Kf(i);zp.optionsAttributes[i]==="on/off"?t[s]!==r[s]?this.setAttribute(i,r[s]?"on":"off"):this.removeAttribute(i):t[s]!==r[s]&&(zp.optionsAttributes[i]==="boolean"?r[s]?this.setAttribute(i,""):this.removeAttribute(i):(typeof r[s]=="string"||typeof r[s]=="number")&&this.setAttribute(i,r[s].toString()))})}getOption(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([t])[t]}_getOption(t){return this._getOptions([t])[t]}_setOptions(t){if(this._mathfield)this._mathfield.setOptions(t);else if(Ho.has(this)){const r=g(g({},Ho.get(this).options),t);Ho.set(this,F(g({},Ho.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else Ho.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:t,menuItems:void 0});this.reflectAttributes()}setOptions(t){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const r of Object.keys(t))lf[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${lf[r]}`);console.groupEnd(),this._setOptions(t)}executeCommand(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.executeCommand(t))!=null?i:!1}getValue(t,r,i){var s,c;if(this._mathfield)return this._mathfield.model.getValue(t,r,i);if(Ho.has(this)){let d,k,j;if(Lh(t)?([d,k]=t.ranges[0],j=r):th(t)?([d,k]=t,j=r):ad(t)&&ad(r)?(d=t,k=r,j=i):(d=0,k=-1,j=t),(j===void 0||j==="latex")&&d===0&&k===-1)return(c=(s=Ho.get(this).value)!=null?s:this.textContent)!=null?c:""}return""}setValue(t,r){if(this._mathfield&&t!==void 0){r!=null||(r={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(t,r);return}if(Ho.has(this)){const s=Ho.get(this).options;Ho.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:s,menuItems:void 0});return}const i=Hp(this);Ho.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:i,menuItems:void 0})}hasFocus(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.hasFocus())!=null?r:!1}focus(){var t;(t=this._mathfield)==null||t.focus()}blur(){var t;(t=this._mathfield)==null||t.blur()}select(){var t;(t=this._mathfield)==null||t.select()}insert(t,r){var i,s;return(s=(i=this._mathfield)==null?void 0:i.insert(t,r))!=null?s:!1}applyStyle(t,r){var i;return(i=this._mathfield)==null?void 0:i.applyStyle(t,r)}queryStyle(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.queryStyle(t))!=null?i:"none"}get caretPoint(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.getCaretPoint())!=null?r:null}set caretPoint(t){var r;t&&((r=this._mathfield)==null||r.setCaretPoint(t.x,t.y))}setCaretPoint(t,r){var i,s;return(s=(i=this._mathfield)==null?void 0:i.setCaretPoint(t,r))!=null?s:!1}offsetFromPoint(t,r,i){return this._mathfield?DA(this._mathfield,t,r,i):-1}hitboxFromOffset(t){if(!this._mathfield)return null;const r=this._mathfield.model.at(t);if(!r)return null;const i=oh(this._mathfield,r);return i?new DOMRect(i.left,i.top,i.right-i.left,i.bottom-i.top):null}resetUndo(){var t;(t=this._mathfield)==null||t.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(t){var r,i,s,c;Kc.state==="closed"&&((i=(r=this._mathfield)==null?void 0:r.menu)==null?void 0:i.state)==="closed"&&(t.type==="pointerdown"&&this.onPointerDown(),t.type==="focus"&&((s=this._mathfield)==null||s.focus()),t.type==="blur"&&((c=this._mathfield)==null||c.blur()))}connectedCallback(){var t,r,i,s;const c=window.getComputedStyle(this),d=this.shadowRoot,k=c.userSelect!=="none";if(k)d.host.addEventListener("pointerdown",this,!0);else{const ce=d.querySelector("span");ce.style.pointerEvents="none"}d.host.addEventListener("focus",this,!0),d.host.addEventListener("blur",this,!0),f0()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),k&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const j=d.querySelector("slot:not([name])");if(j)try{this._style=j.assignedElements().filter(ce=>ce.tagName.toLowerCase()==="style").map(ce=>ce.textContent).join("")}catch(ce){console.error(ce)}if(this._style){const ce=document.createElement("style");ce.textContent=this._style,d.appendChild(ce)}let X="";if(this.hasAttribute("value")?X=this.getAttribute("value"):X=(t=j==null?void 0:j.assignedNodes().map(ce=>ce.nodeType===3?ce.textContent:"").join("").trim())!=null?t:"",this._mathfield=new Pg(d.querySelector(":host > span"),F(g({},(i=(r=Ho.get(this))==null?void 0:r.options)!=null?i:Hp(this)),{eventSink:this,value:X})),!Ho.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const ce of Object.keys(zp.optionsAttributes))this.upgradeProperty(Kf(ce))}if(!((s=this._mathfield)!=null&&s.model)){this._mathfield=null;return}if(Ho.has(this)){const ce=this._mathfield,Pe=Ho.get(this),nt=Pe.menuItems;ce.model.deferNotifications({content:!1,selection:!1},()=>{const vt=Pe.value;vt!==void 0&&ce.setValue(vt),ce.model.selection=Pe.selection,Ho.delete(this)}),nt&&(this.menuItems=nt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),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=gi(this._mathfield.options,Object.keys(zp.optionsAttributes).map(s=>Kf(s)));Ho.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(r=(t=this._mathfield.menu)==null?void 0:t.menuItems)!=null?r:void 0,options:i}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(t){if(this.hasOwnProperty(t)){const r=this[t];delete this[t],(t==="readonly"||t==="read-only")&&(t="readOnly"),this[t]=r}}attributeChangedCallback(t,r,i){if(r===i)return;const s=i!==null;switch(t){case"contenteditable":_l(this._mathfield);break;case"disabled":this.disabled=s;break;case"read-only":case"readonly":this.readOnly=s;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(t){const r=!!t;r?(this.setAttribute("readonly",""),f0()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(f0()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:r})}get disabled(){return this.hasAttribute("disabled")}set disabled(t){var r;const i=!!t;i?this.setAttribute("disabled",""):this.removeAttribute("disabled"),f0()?this._internals.ariaDisabled=i?"true":"false":this.setAttribute("aria-disabled",i?"true":"false"),i&&((r=this._mathfield)!=null&&r.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(t){this.setValue(t)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(t){this._setOptions({defaultMode:t})}get macros(){return this._getOption("macros")}set macros(t){this._setOptions({macros:t})}get registers(){const t=this;return new Proxy({},{get:(r,i)=>{if(typeof i=="string")return t._getOption("registers")[i]},set(r,i,s){return typeof i!="string"?!1:(t._setOptions({registers:F(g({},t._getOption("registers")),{[i]:s})}),!0)}})}set registers(t){this._setOptions({registers:t})}get colorMap(){return this._getOption("colorMap")}set colorMap(t){this._setOptions({colorMap:t})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(t){this._setOptions({backgroundColorMap:t})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(t){this._setOptions({letterShapeStyle:t})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(t){this._setOptions({minFontScale:t})}get smartMode(){return this._getOption("smartMode")}set smartMode(t){this._setOptions({smartMode:t})}get smartFence(){return this._getOption("smartFence")}set smartFence(t){this._setOptions({smartFence:t})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(t){this._setOptions({smartSuperscript:t})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(t){this._setOptions({scriptDepth:t})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(t){this._setOptions({removeExtraneousParentheses:t})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(t){this._setOptions({mathModeSpace:t})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(t){this._setOptions({placeholderSymbol:t})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(t){this._setOptions({popoverPolicy:t})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(t){this._setOptions({environmentPopoverPolicy:t})}get menuItems(){var t,r,i;return this._mathfield?(t=this._mathfield.menu._menuItems.map(s=>s.menuItem))!=null?t:[]:(i=(r=Ho.get(this))==null?void 0:r.menuItems)!=null?i:[]}set menuItems(t){var r;if(this._mathfield){const i=(r=this._mathfield.element)==null?void 0:r.querySelector("[part=menu-toggle]");i&&(i.style.display=t.length===0?"none":""),this._mathfield.menu.menuItems=t}Ho.has(this)?Ho.set(this,F(g({},Ho.get(this)),{menuItems:t})):Ho.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Hp(this),menuItems:t})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(t){this._setOptions({mathVirtualKeyboardPolicy:t})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(t){this._setOptions({inlineShortcuts:t})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(t){this._setOptions({inlineShortcutTimeout:t})}get keybindings(){return this._getOption("keybindings")}set keybindings(t){this._setOptions({keybindings:t})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(t){this._setOptions({onInlineShortcut:t})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(t){this._setOptions({onScrollIntoView:t})}get onExport(){return this._getOption("onExport")}set onExport(t){this._setOptions({onExport:t})}get readOnly(){return this._getOption("readOnly")}set readOnly(t){this._setOptions({readOnly:t})}get isSelectionEditable(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.isSelectionEditable)!=null?r:!1}setPromptState(t,r,i){var s;(s=this._mathfield)==null||s.setPromptState(t,r,i)}getPromptState(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPromptState(t))!=null?i:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(t){this._setOptions({virtualKeyboardTargetOrigin:t})}get selection(){return this._mathfield?this._mathfield.model.selection:Ho.has(this)?Ho.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(t){if(typeof t=="number"&&(t={ranges:[[t,t]]}),this._mathfield){this._mathfield.model.selection=t,_l(this._mathfield);return}if(Ho.has(this)){Ho.set(this,F(g({},Ho.get(this)),{selection:t}));return}Ho.set(this,{value:void 0,selection:t,options:Hp(this),menuItems:void 0})}get selectionIsCollapsed(){const t=this.selection;return t.ranges.length===1&&t.ranges[0][0]===t.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:Ho.has(this)?Ho.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,_l(this._mathfield)),Ho.has(this)){Ho.set(this,F(g({},Ho.get(this)),{selection:{ranges:[[t,t]]}}));return}Ho.set(this,{value:void 0,selection:{ranges:[[t,t]]},options:Hp(this),menuItems:void 0})}getOffsetDepth(t){var r,i;return this._mathfield?((i=(r=this._mathfield.model.at(t))==null?void 0:r.treeDepth)!=null?i:2)-2:0}get lastOffset(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.lastOffset)!=null?r:-1}};sc.version="0.98.5",sc._fontsDirectory="./fonts",sc._soundsDirectory="./sounds",sc.keypressVibration=!0,sc._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},sc._plonkSound="plonk.wav",sc.audioBuffers={},sc.createHTML=e=>e,sc._speechEngineRate="100%",sc._speechEngineVoice="Joanna",sc._textToSpeechMarkup="",sc._textToSpeechRules="mathlive",sc._textToSpeechRulesOptions={},sc.speakHook=Lg,sc.readAloudHook=ug,sc._decimalSeparator=".",sc.fractionNavigationOrder="numerator-denominator",sc._isFunction=e=>{var t,r;const i=window.MathfieldElement.computeEngine;return(r=(t=i==null?void 0:i.parse(e).domain)==null?void 0:t.isFunction)!=null?r:!1};var d0=sc;function Kf(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function Hp(e){const t={readOnly:!1},r=d0.optionsAttributes;return Object.keys(r).forEach(i=>{if(e.hasAttribute(i)){const s=e.getAttribute(i);i==="placeholder"?t.contentPlaceholder=s!=null?s:"":r[i]==="boolean"?t[Kf(i)]=!0:r[i]==="on/off"?s==="on"?t[Kf(i)]=!0:s==="off"?t[Kf(i)]=!1:t[Kf(i)]=void 0:r[i]==="number"?t[Kf(i)]=Number.parseFloat(s!=null?s:"0"):t[Kf(i)]=s}}),t}function f0(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Tg=d0,Ug,Rg,Qg,Kg;if(O()&&!((Ug=window.customElements)!=null&&Ug.get("math-field"))){(Qg=window[Rg=Symbol.for("io.cortexjs.mathlive")])!=null||(window[Rg]={});const e=window[Symbol.for("io.cortexjs.mathlive")];e.version="0.98.5",window.MathfieldElement=d0,(Kg=window.customElements)==null||Kg.define("math-field",d0)}function fg(e,t,r){let i=r,s=0;const c=e.length;for(;i<t.length;){const d=t[i];if(s<=0&&t.slice(i,i+c)===e)return i;d==="\\"?i++:d==="{"?s++:d==="}"&&s--,i++}return-1}function op(e,t,r,i,s="latex"){const c=[];for(const d of e)if(d.type==="text"){const k=d.data;let j=!0,X=0,ce;ce=k.indexOf(t),ce!==-1&&(X=ce,X>0&&c.push({type:"text",data:k.slice(0,X)}),j=!1);let Pe=!1;for(;!Pe;){if(j){if(ce=k.indexOf(t,X),ce===-1){Pe=!0;break}X!==ce&&c.push({type:"text",data:k.slice(X,ce)}),X=ce}else{if(ce=fg(r,k,X+t.length),ce===-1){Pe=!0;break}let nt=k.slice(X+t.length,ce);s==="ascii-math"&&([,nt]=M0(nt,{format:"ascii-math"})),c.push({type:"math",data:nt,rawData:k.slice(X,ce+r.length),mathstyle:i}),X=ce+r.length}j=!j}X<k.length&&c.push({type:"text",data:k.slice(X)})}else c.push(d);return c}function sp(e,t,r){let i=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([s,c])=>{i=op(i,s,c,"textstyle")}),t!=null&&t.display&&t.display.forEach(([s,c])=>{i=op(i,s,c,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([s,c])=>{i=op(i,s,c,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([s,c])=>{i=op(i,s,c,"displaystyle","ascii-math")}),i}function i1(e,t){const r=document.createElement("span");r.setAttribute("translate","no");try{const i="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+t.renderToMathML(e)+"</math>";r.innerHTML=window.MathfieldElement.createHTML(i)}catch(i){console.error(`MathLive 0.98.5: Could not convert "${e}"' to MathML with ${i}`),r.textContent=e}return r.className="ML__sr-only",r}function a1(e,t,r,i){try{const s=t.renderToMarkup(e,{mathstyle:r,format:"html"}),c=document.createElement("span");return c.dataset.latex=e,c.style.display=r==="displaystyle"?"flex":"inline-flex",c.setAttribute("aria-hidden","true"),c.setAttribute("translate","no"),c.innerHTML=window.MathfieldElement.createHTML(s),c}catch(s){if(console.error("Could not parse'"+e+"' with ",s),i)return document.createTextNode(e)}return null}function h0(e,t,r,i){var s;const c=a1(e,r,t||"textstyle",i),d=(s=r.renderAccessibleContent)!=null?s:"";if(c&&/\b(mathml|speakable-text)\b/i.test(d)){const k=document.createElement("span");if(/\bmathml\b/i.test(d)&&r.renderToMathML&&k.append(i1(e,r)),/\bspeakable-text\b/i.test(d)&&r.renderToSpeakableText){const j=document.createElement("span");j.setAttribute("translate","no");const X=r.renderToSpeakableText(e);j.innerHTML=window.MathfieldElement.createHTML(X),j.className="ML__sr-only",k.append(j)}return k.append(c),k}return c}function o1(e,t){var r,i,s;let c=null;if((r=t.TeX)!=null&&r.processEnvironments&&/^\s*\\begin/.test(e)){c=document.createDocumentFragment();const d=h0(e,"",t,!0);d&&c.appendChild(d)}else{if(!e.trim())return null;const d=sp(e,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(d.length===1&&d[0].type==="text")return null;c=document.createDocumentFragment();for(const k of d)if(k.type==="text")c.appendChild(document.createTextNode(k.data));else{const j=h0(k.data,k.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);j&&c.appendChild(j)}}return c}function Hg(e,t){var r,i,s,c,d,k,j,X,ce,Pe,nt,vt,Et,Br,En,wr;if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const nn=(r=e.childNodes[0].textContent)!=null?r:"";if((i=t.TeX)!=null&&i.processEnvironments&&/^\s*\\begin/.test(nn)){e.textContent="";const cn=h0(nn,"",t,!0);cn&&e.append(cn);return}const Fn=sp(nn,(s=t.TeX)==null?void 0:s.delimiters,(c=t.asciiMath)==null?void 0:c.delimiters);if(Fn.length===1&&Fn[0].type==="math"){e.textContent="";const cn=h0(Fn[0].data,Fn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);cn&&e.append(cn);return}if(Fn.length===1&&Fn[0].type==="text")return}for(let nn=e.childNodes.length-1;nn>=0;nn--){const Fn=e.childNodes[nn];if(Fn.nodeType===3){const cn=o1((d=Fn.textContent)!=null?d:"",t);cn&&(nn+=cn.childNodes.length-1,Fn.replaceWith(cn))}else if(Fn.nodeType===1){const cn=Fn,Bi=Fn.nodeName.toLowerCase();if(Bi==="script"){const ra=Fn;let Qi;if((k=t.processScriptTypePattern)!=null&&k.test(ra.type))Qi=(j=ra.textContent)!=null?j:"";else if((X=t.processMathJSONScriptTypePattern)!=null&&X.test(ra.type))try{Qi=(Pe=t.serializeToLatex)==null?void 0:Pe.call(t,JSON.parse((ce=ra.textContent)!=null?ce:""))}catch(h){console.error(h)}if(Qi){let h="textstyle";for(const Q of ra.type.split(";")){const[ve,Ke]=Q.toLowerCase().split("=");ve.trim()==="mode"&&(h=Ke.trim()==="display"?"displaystyle":"textstyle")}const B=h0(Qi,h,t,!0);B&&ra.parentNode.replaceChild(B,ra)}}else if(((vt=(nt=t.processClassPattern)==null?void 0:nt.test(cn.className))!=null?vt:!1)||!((Br=(Et=t.skipTags)==null?void 0:Et.includes(Bi))!=null&&Br||(wr=(En=t.ignoreClassPattern)==null?void 0:En.test(cn.className))!=null&&wr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Qi=e.textContent;e.textContent="";const h=h0(Qi!=null?Qi:"","displaystyle",t,!0);h&&e.append(h)}else Hg(cn,t)}}}var s1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function l1(e,t){var r,i,s,c;try{const d=g(g({},s1),t);d.ignoreClassPattern=new RegExp((r=d.ignoreClass)!=null?r:""),d.processClassPattern=new RegExp((i=d.processClass)!=null?i:""),d.processScriptTypePattern=new RegExp((s=d.processScriptType)!=null?s:""),d.processMathJSONScriptTypePattern=new RegExp((c=d.processMathJSONScriptType)!=null?c:""),um(),ld("core"),Hg(e,d)}catch(d){d instanceof Error?console.error("renderMathInElement(): "+d.message):console.error("renderMathInElement(): Could not render math for element",e)}}function wh(e,t){const r=$r.singleton;return r?(r.show(),ut(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function wd(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}o({switchKeyboardLayer:wh,toggleVirtualKeyboard:wd,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function OA(){var e,t;return(t=globalThis[e=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function y1(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function c1(e){Zu(document.body,e)}function xh(e){if(typeof e=="string"){const t=document.getElementById(e);if(t===null)throw new Error(`The element with ID "${e}" could not be found.`);return t}return typeof e=="string"?null:e}function Zu(e,t){var r,i,s,c;const d=xh(e);if(!d)return;const k=t!=null?t:{};(r=k.renderToMarkup)!=null||(k.renderToMarkup=Tl),(i=k.renderToMathML)!=null||(k.renderToMathML=mh),(s=k.renderToSpeakableText)!=null||(k.renderToSpeakableText=o0),(c=k.serializeToLatex)!=null||(k.serializeToLatex=wu),l1(d,k)}var w1={mathlive:"0.98.5"}}}]);
|
|
|
}()); |