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

3395 lines
2.1 MiB

This file contains invisible Unicode characters!

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

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

!(function(){var Tu=Math.pow;var gd=(xn,Jt,w)=>new Promise((pe,ue)=>{var U=Z=>{try{te(w.next(Z))}catch(B){ue(B)}},Ne=Z=>{try{te(w.throw(Z))}catch(B){ue(B)}},te=Z=>Z.done?pe(Z.value):Promise.resolve(Z.value).then(U,Ne);te((w=w.apply(xn,Jt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},59477:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},40001:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},49198:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},84105:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},18785:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},73331:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},15277:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},52671:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},8657:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},56082:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},33853:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},15075:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},62772:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},43531:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},38819:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},47472:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},87395:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(p,j){return ue.createElement(te.Z,(0,pe.Z)({},p,{ref:j,icon:Ne}))},B=ue.forwardRef(Z),h=B},21697:function(xn,Jt){"use strict";Jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},17270:function(xn,Jt,w){"use strict";var pe=w(59301),ue=Object.defineProperty,U=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Z=(E,p,j)=>p in E?ue(E,p,{enumerable:!0,configurable:!0,writable:!0,value:j}):E[p]=j,B=(E,p)=>{for(var j in p||(p={}))Ne.call(p,j)&&Z(E,j,p[j]);if(U)for(var j of U(p))te.call(p,j)&&Z(E,j,p[j]);return E};const h=E=>React.createElement("svg",B({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},E),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"}));Jt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="},1198:function(xn,Jt,w){"use strict";var pe=w(59301),ue=Object.defineProperty,U=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Z=(E,p,j)=>p in E?ue(E,p,{enumerable:!0,configurable:!0,writable:!0,value:j}):E[p]=j,B=(E,p)=>{for(var j in p||(p={}))Ne.call(p,j)&&Z(E,j,p[j]);if(U)for(var j of U(p))te.call(p,j)&&Z(E,j,p[j]);return E};const h=E=>React.createElement("svg",B({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},E),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"})));Jt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},64885:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return P}});var pe=w(3113),ue=w(59301),U=Object.defineProperty,Ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,E=(R,M,Y)=>M in R?U(R,M,{enumerable:!0,configurable:!0,writable:!0,value:Y}):R[M]=Y,p=(R,M)=>{for(var Y in M||(M={}))B.call(M,Y)&&E(R,Y,M[Y]);if(Z)for(var Y of Z(M))h.call(M,Y)&&E(R,Y,M[Y]);return R},j=(R,M)=>Ne(R,te(M)),S=(R,M)=>{var Y={};for(var Q in R)B.call(R,Q)&&M.indexOf(Q)<0&&(Y[Q]=R[Q]);if(R!=null&&Z)for(var Q of Z(R))M.indexOf(Q)<0&&h.call(R,Q)&&(Y[Q]=R[Q]);return Y},F=(R,M,Y)=>new Promise((Q,ce)=>{var W=K=>{try{V(Y.next(K))}catch(se){ce(se)}},J=K=>{try{V(Y.throw(K))}catch(se){ce(se)}},V=K=>K.done?Q(K.value):Promise.resolve(K.value).then(W,J);V((Y=Y.apply(R,M)).next())});const P=R=>{var M=R,{children:Y}=M,Q=S(M,["children"]);const[ce,W]=(0,ue.useState)(!1);return ue.createElement(pe.ZP,j(p({},Q),{loading:ce,onClick:J=>F(void 0,null,function*(){try{W(!0),yield Q.onClick(J),W(!1)}catch(V){console.error(V),W(!1)}})}),Y)}},65986:function(xn,Jt,w){"use strict";var pe=w(59301),ue=w(21697),U=w(48136),Ne=w(88615),te=w(43418),Z=w(59301);const B=(0,pe.forwardRef)(({callback:h,width:E,onChange:p,disabled:j,readOnly:S,type:F="",value:P="",style:R={}},M)=>{const Y=(0,pe.useRef)(),Q=(0,pe.useRef)(),[ce,W]=(0,pe.useState)(0),[J,V]=(0,pe.useState)(0),[K,se]=(0,pe.useState)(!1),he=()=>{var X=document.createElement("div");X.innerHTML=Y.current.getValue();var de=X.innerText;return h&&h(de),de};(0,pe.useImperativeHandle)(M,()=>({getData:he}));const Te=X=>{X.preventDefault();const de=X.clientX-ce,k=X.clientY-J;document.body.onmousemove=rt=>{let Oe=rt.clientX-de,be=rt.clientY-k;const He=document.getElementsByClassName("markdown-popup-form")[0],ge=window.innerWidth-He.offsetWidth,De=window.innerHeight-He.offsetHeight;Oe=Math.max(0,Math.min(Oe,ge)),be=Math.max(0,Math.min(be,De)),xe(rt.clientX,rt.clientY,de,k)&&(W(Oe),V(be))},document.body.onmouseup=function(){document.body.onmousemove=null}},xe=(X,de,k,rt)=>{const Oe=document.body.clientHeight,be=document.body.clientWidth;return X<20&&k>X||X>be-20&&k<X||de<20&&rt>de||de>Oe-20&&rt<de?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,pe.useEffect)(()=>{K&&setTimeout(()=>{const X=document.getElementsByClassName("markdown-popup-form")[0],de=window.innerWidth/2-X.offsetWidth/2,k=window.innerHeight/2-X.offsetHeight/2;W(de),V(k)},0)},[K]);const je=()=>{j||S||se(!0)};return Z.createElement("div",{style:R},Z.createElement("div",{style:{width:E||"100%",position:"relative"},className:`${ue.Z.mathFillWrap} ${j||S?"cursorDefault":""}`,onClick:()=>je()},Z.createElement("math-field",{disabled:j,locale:"zh_cn",class:`${ue.Z.mathField} ${F}`,readOnly:S,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Y,style:{width:"100%",fontSize:P?18:14},value:P||""})),Z.createElement(te.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:ce,top:J},title:Z.createElement("div",{style:{cursor:"move"},onMouseDown:Te},"\u8F93\u5165\u516C\u5F0F"),open:K,onOk:()=>{const X=Q.current.getData();Y.current.setValue(X),p(X),se(!1)},onCancel:()=>{se(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Z.createElement(Ne.Z,{value:P,ref:Q,onChange:p,showSaveButton:!1})))});Jt.Z=B},88615:function(xn,Jt,w){"use strict";var pe=w(59301),ue=w(95237),U=w(43604),Ne=w(99313),te=w(3113),Z=w(7664),B=w(21697),h=w(48136),E=w(59301);const p=(0,pe.forwardRef)(({callback:j,showSaveButton:S,value:F=""},P)=>{const R=(0,pe.useRef)(),M=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Y=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],Q=J=>{R.current.setValue(R.current.getValue()+" "+J.value+" ")},ce=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:E.createElement(ue.Z,{className:B.Z.lists,gutter:[10,10]},M.map((J,V)=>E.createElement(U.Z,{flex:"110px",className:B.Z.item},E.createElement("div",null,E.createElement(Z.Z,{value:`$$${J.value}$$`}),J.name),E.createElement("div",{className:B.Z.children},J.children.map((K,se)=>E.createElement("div",{key:se},E.createElement("h1",null,K.name),E.createElement(ue.Z,{gutter:[10,10]},K.data.map((he,Te)=>E.createElement(U.Z,{key:Te,onClick:()=>Q(he),className:B.Z.diamond},E.createElement(Z.Z,{value:"`$$"+he.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:E.createElement(ue.Z,{className:B.Z.lists,gutter:[10,10]},Y.map((J,V)=>E.createElement(U.Z,{flex:"110px",className:B.Z.item},E.createElement("div",null,E.createElement(Z.Z,{value:"`$$"+J.value+"$$`"}),J.name),E.createElement("div",{className:B.Z.children},J.children.map((K,se)=>E.createElement("div",{key:se},K.name&&E.createElement("h1",null,K.name),E.createElement(ue.Z,{gutter:[10,10]},K.data.map((he,Te)=>E.createElement(U.Z,{key:Te,onClick:()=>Q(he),className:B.Z.diamond},E.createElement(Z.Z,{value:"`$$"+he.value+"$$`"}))))))))))}],W=()=>{var J=document.createElement("div");J.innerHTML=R.current.getValue();var V=J.innerText;return j&&j(V),V};return(0,pe.useImperativeHandle)(P,()=>({getData:W})),E.createElement("div",{className:B.Z.mathWrap},E.createElement(Ne.default,{defaultActiveKey:"1",items:ce}),E.createElement("math-field",{locale:"zh_cn",className:B.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:R,style:{width:800,marginTop:30,fontSize:18}},F||""),S&&E.createElement("div",{className:B.Z.button},E.createElement(te.ZP,{size:"large",onClick:W,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Jt.Z=p},37552:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return B}});var pe=w(59301),ue={sendToClass:"sendToClass___le_BX"},U="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==",Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu29C5hdR3Um+tfe5/T7qW6p1Xq/ZcmSbOthG2NhZAM2ARJuAh5ICCSBZJg4yeQxyZDc3CG+38yQTGAmCZnhJiEXDJkAxgbCxWDHYJuXjW3ZSJYty9b7rW6p1er3eeyqdb9Vu2p3nd3ndJ/TD/Xp1tn+/On0OXvX3rvqr1Xr8a9VApVjTvcAEfln+rF6WRO6hBADc/plrtLDi6t0n8ptZqAHiMjrGc7u6Br2Nmxu978rhOiagdvMuyYroJ+jQ0pEVQC292ewNpWVYlG9/2MhxPE5+jpX9bEroL+q3T09NyOiBga8BFbsPw/c0An4wCCAbwoh1PTcZf62UgH9HBtblvABsEsAqyGBvd0SOzt9fgvpA1+pgH7iAa2AfuI+KpszThPVLgNuALBGAl7PkERNEqivikD/sBAiUzYPXKYPUgF9mQ5M/LHYaAXwBskS3hwvnpfYushHUmMe5AMvCSEOTPaVzl6mFUsXiFOTvX6uXFcB/RwZKSK6PgPc6AN6zCSA7n5gUT3gh6AHBTiTTIqnSn0lVpleOofVy1uwfkG9+Fap18+18yugnwMjRkRLJHALgHr7uGf7w09Lm8wMABAE6KqpEY+X8kpExC3sOHBJdq5ugmyo8p8WQpwupY25dm4F9GU+YkTEQL9NAh3uo54fCv/qrBn9lghdyWTxoCeiFjaKA4lFvSkp2mp8qvLxihBiX5l3y5QerwL6KXXfzF5MRDw+N0pgM4xao1UbKdEzBLTWRPo8JCQIuFzt+08KIUYmejID+JsFsPB8P0RWSqxo8qF8vJYE9gohaKI25urvFdCPM3JEVAugHUAyftrzXcC6ppGgr6u2e/VqkZoJABDRUgncHr//UEbiSA9wwyJf6/as4bNznqQcVtns0w0NDRfGex4iapTAbgCtEhA8gbiltnqf/f3dAJ4TQlyZiXcqhzYroM8zCkTUyupyEKBFCHQCqLanWZD99Dywvg3Z2iSdIaJhlU6ebWzERWB6JKTx1txp1JrRcZLAkJToT7ERyxZsCHhGPwHptPKfa60VJwuBi4gSWWC7B6zn1UNK4EK/xOIm3xrEKR/4iRDiTDkAdCaeoQJ6p1cffJD8974XOwEsl1IDPeqfEOyjUvXYFWBZI8Aucv4tKf104GMIPvbVQZO/Ri+ZxMgR0QYJ7IAOtka31h9e7gY2LgI8I+eVDJ+BgKwcCfa2tNQczXdLoy5tlsA2225WAq/1SGxZFN2GXZ/PCCGOTeKx58QlFdCbYSKi5mN92FklsLizPh/YjTgFMJAKQdbERqQBnDPalPD87sEsDrbV4vxkIqRElAyANwnoVcbONTPlgL1nJbYvzb23VIAkSN/z9zbXiMMFQL9KAm90J3NPKtTd9LuYV/R9PCtE/jbmBKoneMgK6FlCEgs33CklOl7rAda0wAZ8Ip3Z7cfjRttd2RiC3z3s355EKgN1pq2u6ielAoWI2iRwjwancwP+OJSVGMoA7TXhvfX/hm0jJVRG+S8sbRKvxe/JEykDvMMHmLcTHU+fkbilU+vy0eH7eAXAvvlqzFZAr/3b9HYACxhkDKpTvcC6Nh+eP1ZDyQLo14ZfKB3tGTlnstQNIUT9g3Tu8MmBF9+6c0FfseBPEb0rIdE8ej77ZsLj9R6gsx6afqC/U6zThOjPAIrEWNDzpA4A9tSsyfUCAa92S2xaZEEf3scj/0wigR9MZpUq9h1n87xrHvRE1Cml9mQwVVcf54ckWE9e1MR68+jB32UUcKQX2NgWk/BW2vLXUmNRH70pHTTqa2ry9y2tmzjoo6W8xFsBJMKmQrhbY5VtiY76cCXiX6w+zwZpAMhsJnhh7cKa192nI6J1GWCHH/NC8Xs2MXfHz/UCCfj91T6+LYQIZhOcM3Xvaxr0xkNyE4DrpLTh/RDwrOasawvBZQHHg8CgP9UPrG5x5LALeANEg32tinADNdUYTiX8F9aM41nR7Wdol+eBjVhh1wt7/6EsdHuNVeEz6enAE1ECvAIpiSBF/t4ti8QR+3REVCOhJ5GzcoTXvdrDvnleNUIvkJ5c4eQJGqp8Jq9xs3mPjxN5bwa8hYDXPITrKCtXw/NrZZAhwOtLUOLAsjZ0ffWroHvvnZpRP93gv9ZB3yol9gCos65I28GsMhzvAVa3GW6LMVgPdgPr2gHfLgEO4N3JoTUOCfRngSoPqKnyKRvITMLzX1raiNeRJ/jDlIAgwBuEkAu1FDcPw+3w32euhOBeVm90eQN2mdWqDbJZZFQ6+/wNq2qjZJI00WYf2B4Bx+hJ3OaVlAwNWKvQjxrlsr7Kfygf6I/3UkvSx6IEye0K4hYJJIngkQIT+QU8j5RSUIr48RWEf1wRvp3wcH7tAlG0ijfdQHfbu6ZBf6yLOmpq5Fs5KBM3SXnEzjO/RQGdxmBlg3F/N7B98ag+bXVtlpBWutsPGqhDQIfxjPD1JDBCVf4P1zUKDgLlHES0SkpmUkrfTiBrrPJzdI+EK0270ecZuCllJD1PAIkRn/xntq8Q57hhNl4BvFNazo5jeLDXpj8TSvpIRbJ6FEE21eaCnojquofwRinVJnjeZklK8DMp/j90l4YrhfmgQNCw178JGZA8CElPXL+46tXZNpCvadD3pWh9z6C85dIIsLE9lMieVWdY1cgCZ/qB1npo3bd7KFR3moz2nxfwDvhTEjh5JfQGaZJ7iA7KSr/rxACe+5nvII0gNBuW9EM88pvY0JaUTDvIcYVqVUYBF4eAxhp+Rp98Kak6CcX30CuBBIYV+pIN/vdvbROajkZEmwyNwSrt0cRkLn5vFlhjJ7QBbTar7RjZWh+CnifOyb7s1mrPfysIK6RAgsHMYI9eiYHOSKLwFS3g9SmjRj0/0OUgkD/uXVr96J5ZtBeuWdBzoGYgwK1JIdcyYNgNyfryulag3pAOQhchcCkVBqJY3elsGnVn6jHNI+FtFkcqCxy5FE4oq+4YyU1fPgj5uQP+9YLA0V97CN/LsZ3ji4H+2xOglU3ou2+XPLauGSPaewMgnaXuN61OPM6SlCUzgF0SWJ7r9gwjuGxgN/ECx1OOVwvHKCZAdtT7D10EqmlQ/ZJS2CYJCT7XSu9IwlNo43Q2AIJ/N+Le/h5K+tEJIUlJQd7jwTn/Wzt3FrYZ8r74NH15TYM+FeBOT0gdAGKAsvrAQpwB0VoDtNSGujvzXNiTM5QC2owOXEidcaU/qyJneoFlraOgZ8Ad6kHNn/9EbBQemta202gkjLFh1AVJ2uuDLCOQ3TKsviggYKnOIFWCVjaj+w9vpsM+QCFoqevNa5KaWkxEyyVwK8LIspHw4dPxJDnYA2xuc/z8xuPE7ZCErMr4388ksvcIz9+mBJiDFAE+iNQWICDgZC+wUk/dUKUpBHirBpGibuWpB3curp50wstU8H8tg95LS/yMgNR+mEiHVgCrDCMSOMVBKA/orAX2dwErWoHVraF0T2XZpw8vMjYdq0BPCGPEJpK+aktK0ow0MyMePSlanzrnXX/Lcilqqhy3KKsH7Hc3vvc0G6iSJbg2UvXETAdAmj02+jehfutmer61FhkGsiK6cM8XEk8ta0byBx/E1oYasHrjCHoZBrIIdLIfagtT6cwksMayNqAD1CaTYo0HtAaGTKTVGVelMfr7iT5gcT0haQx7d0KMqjvhfewqoT8L6q3yE3+1ZZEYlxw3FXAXurasQW9cihw0Ynebl05DVFfrrk+fOIGLU2E3cttpiXcQZLNFhWPnhZLR6KOpTKjbM8+mqRbe3+/3O84PoHokQPWCOjWmD+1EYHCua0Lfu9bT+YiuIIFHT4mOS4o2LG6MDUsJoGeQZwO2F+T591zvH0lLUFb5J+/7DrzWGmy+sVMtSQpPT0r7PFbHTnpKrWjE0I5O9N+2jHSBqAxHtljdUaI16WO1MsavBWo+MA9ngd4RYFFdaL3a+4QrjXZ96uPScLhyGk0qOpGIjsNL/PPOpVc3RbHsQG+Bns1inRDwhdCAZ3hYJyH1jMhsXYJ6ahJIZ4jSdcnkyyywSvEKsJ/5jwO8jZTU8m4M4M0ouurK/gtI/M+f+quO9mHxdYulaKkDmnNoaWNB3JwUXe9YRjpYZKXpqWHR8voIbbGpf9FVkwB9YzIY/PCNiZ8GBHU85T/9376P21ctkLtbbKiN1SPHw6JVD9KgpIW1NLRpIQZ+dZs4KQSy8FBdI8T1EKjXC4KZMRa8rm5uvVueR2ivC1co14Njrz8/GDoItFro5RrAem54+NGuTv/LVzMQVj6gJxKXgaYmqQlRnMLGcsdhOY7Ckmu9sK+cDU7ua80uzNJFyo689EJjY18xngE2ZFMp3A5PrnQBH312/e+szkiI//g9sXrvRW/J+26SgmkA3gS9x03UQXTdsYhet4BngF/OovbQgNiYJsqV9ZMA/ZpWeebtq/3jGYL8zPP+11/rw3s2LJS7mZtjJS4DUqstBvCWqxMCVdCuDpV+/1acWVjnLVECbABrO8IekUsykt6h7t6fBqoTph8iV6VxUimAAc9dtIhbjMR87orAYA8o/Ylbl9VdNSpzWYCeE5P7+7HiQiB3rG32cxI24kEjHogjV0L+Sa2R/Q5oSXl00k8kjhp6r7vijlHxBtJ0vYDkiGx0WJUmWq5N40+dEQ1/9IS35e4NMrnK6MKFdEYXLDUQXW9sCyV9pP8r4FxatZ4aEesCEqMJfyWAPlCgpipx5V0b6KAgqEAh+Mz3/H85IfCeDYvk7cWCng1m7sZfvF7gbWsdoLurgwPoUN0hsGpzegBY2xJKHVeN4nPODkLr+Qx417C1d3DTsoQQR3Yt9f9yov6crt/LBfQbpMQNp/pR3VQLtDguw/BFR2HNHhQ2NDmSODakFJ7pscta+ueaavH8eLz2S8O0tMaXewpJd/fO3zkmmv/L09j2vu2EhoilM/4wMBCqleje1UavJ71w9beTiu/Zlxb1Q0BNQikOETUoeIN1Nd6QjrCyMWv+7WeXivGusB4fZBWE52UXNtBQnadPFQmPTm3qTDT86RNq93BArQuKlPQMej62tgP37QLqfBHp4nF1hkzkiUGcImjgN3NfOPo7A/78AFCVDFUa15+fD/B8rVRIJ8n/xM5V4vx0AXu8dmYd9ES0UErcxQQrndBwRWJ1k69ZhGM17dCfzue53Bf7ghq8DsNxOPDPvZrFi28tEP4eGKBFqkq+heeJXfJdslg0GSTwzWOi+e/2Y9s7ryfUjkkeLNzFlwZoZGnSe33XUuqPKMBGv+ermFaQFKqt2ku2pLJqeFE9dQek02C19BxRwBC7Ug3BTAejTOCM+6G9UTSsbMLC5Y3oeOaM53/kEXibOySaQ9UvlMLjqDcW9L4A/uIuYEFNCAkrvaNRYMCzy9S86tHLwCoTYbD6O9+nezg8YVHDKODd3okkvFkdwpuxh1U+8YaV1Q/Oe9C7PHb7shwe5yBRZ73U0VF7WJfiJab1shfFqQJgwe5OE3YbssdlUOLydW3+/vY6cTbeoZeJmkVa3uERmrTOmyfQZLyPePSYaP77A9j2rk2E6hJAz/mnpy6Jng9fT4cSSSjrxbGhf36mpCfaBNCaBVRzEt2+oEEGEAt49o5w0kqLoTEz0NldKTyVWNvmt69rxcqEhyp2a/6HJ4Hn2d5pI1SL0kDP/fvJO4G2OuFEVsMeYwmf43unkI6xdZFDQYjr8HFvTgz5OR6l8Lfn0kf8B/bsmXlm56xK+hTR+gSToeRo4jVLPk5fW63Zf2FvWMDzOv5a72hQJQfEVsI7tN5j/eGqsK7FHyGJn3Y047jr4WFPUf8wdkhPbrSAjyaOkahW2n/7iGj+7Culg54F5Lkrgl44rQZ/5Xp6rb3Oy4BVHaf9Koi2wQAtDWwcw0vXJeW5AFDso2d17komDJSxlOfnrKryq3Z3qk21VWBnocer3188Axy6DKxfQGio1r72kiQ99/Ff3gksqA0h4XJn8vFrzvQBS5pNME2FUWvP45VirITPKavgqELu+ClSh4iSn9+9UvTOtLSfNdDrBOUsdnge1ue6C0Nq7wETMXQIgDo405UCooylmIfFlfT8mWvDsP+ZqQOCkJbSP7hiAQ66wL+cpi1Q2JaVMqLOW8pAFLAC8PjxyYHeDiAncv/kpK4rk63xVVRvkgHhCySCAD4bfvx3oMD83NBjaAxK2w5/2VLt1fqe8vm3y6nQD879tKadIjtnMqD/iz3Agjphgkgx6W6ED0/ijAmQ8STlYzALDKaBtlpAOIhywW6JaFaI8XtwHCOpJzr76cTFgLwH7lg+82mKswb6n/ZSy3IfdzTWaR/8GP1dswBdgBuvDbMCNa3XAbzuyDyqCUsfPo3JYnwEhBGC/9y6ttFkjsuXqZlq8JZAyVpX+to2reHJoP/cq6VL+lxpZvRrC2SDbAtuazhyIMjSERgs2s9uVzLztw4WOT547hJ9Hn8XRlVLlvSf2MPGZ8gcyyfdrUrSNwIkPKCO7QYFnBgAFteFdkc0Od0Xj3l3+DnZ2OWAlXb9ahtCDSmfPv+m5dUvzWdJv+i1Xk5ukILdj+wEsDo8dy4PHDMUGbBafzcZS0wIs4cbOIqrJTatj8P8PEmsERlIDGdTg09uW9kSLaNn+umdRLIl8gYZFcn1tHz3uGh+YIqgdxER6bRBKN018O0kCJO8w+/4s+Nfj4xSc66eINZYnRbQ504wK5nt8/Jk7GX/vBeC/FRfSDYzRWT1K45RZ8w78Hj1DId8Ip4k7jWKaEBJ9cAda2eejzNrkp7rM2akvJN1bga39YjogqQG9KzOsDHKnBem9bJfvlFTn8IjLt31JDC6MrfL6g3zZqy6oiWgvtLvUoSnb1gsdHG8bxyh5Wsa5G6l4DGrskYnfRiPiWnvu6dE8z/Nc9D/1ztCg1kD15HOIXNytN85MYalM48PHxyVZrUmDnbmCfVlwuCVpk1wEZ/GUPfXXHw7jjr7hC6QSHz+jlUzv5vKbIJ+bUbKN1jwckey12aEiVXskmwNwc9gH5LhZ/bf19eOgj0u3S3ouTNtLiu3o8+z0ltzzyWU5x3fuSTB9V3U3r2UbF+Hnx0YlrX8HDYrinXVgZFwBdp3UTR/6/jU1Jtyl/T/92723ri8eDMBYiE+JsSxa5I9RotZyjO9wLwc/3Z5OPThs1HL84L7UxvpeaKy1o8voA4Jb54bsul0ehN8f0fUn9b/bL64MgJwEjQboamRsPM2tI8FPIPZgj8yPE02EWctseqk1SXHWmaviKaBKH//zStxkM3cc/103UggdygFndCpqbxhhQG9VDx1WjR/9cg1AHoWKo5gj/jzjrRn1etFdlm2h0KKbadUwFE2ZlyO2lwMcubY65XDXO/OHwt4fYLAs13P+Q9cjXzaWZP0aaJNSsodBRmOppMYgCzt+X8OSEXGkgGxdYNEfm9j8NkoZlXVKNErYjpaHRoY8rL+07euEV1n+qltKCVvIcICblqv3DZn1ID+y/Mc9PfvZpflKHdmVKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALe9960Ujzk3nOmPs8a6FNE6ygjb41UlLj/xnVHcpBmKFR7OLRtdX7XkNXS2V4jgSP9YQK1PVi628MayizShOefTi/Dj98MyNd6sVVm5JasiCrmaT47H9eCpP/4bqCVbaaYOuO6TQcyoerCzMqIcFfA9z4R4O0KQAIZTwZ/c8famryV2aYb/LMG+uHh4aXKr+JKBNERj6zGA0Zs1Nb4oasrJ4JqpLtlMvKYHeOMJbNhQTQ5HNTbFUJyCFwFe+9cU/363r0vJETnlnsgEppjP2r4Aj+YpHrTngzQkqAxOYAaV0aPsN4bKzEjd6WTSeW6J7W30rgsmRaQw3k3bsxTgwJnhxNF0xC4uf/rdkMBNv0UjxGwWtM1GBq77HjIJ93j9b0j7k1sIkU0ZK3aUNedq5L/abrBXai9WQP94OBgB5I1XI9FHxbwbqBqjHfGUAtYGjFH22VEuoAfyYRVAur5HDuA9j5OorK9RvhI7z/rf+v3bxMjL3Sn1iGduNW9jj//8LRofrhE9aazOsCe5hTak7nht8kMbgwz4zbBQDs64OPhE9V45UqyKO6NC3o7IeP3vMKFq2AmRsz3bh9oIumeE7Cyol7RF+5cl/zxZPplMtfMGugHiBaKjHyLcczkDTZFUHFC9hy04kwmdm26BC6bHM3XHO8F2Oleb9xvUcUiuyLYCWDC+uwqP3DZf+2PbsYLrwDJwXPBmz0lFrnXPXVKNH+jRO/NL3f2oyMZl32TGabJXfPl41X42vHaSDjk49NbwpkFPa+iblpgJJQIOHQJuG7hqHcn/lRuOmAh/d29JuSwUR9R4r+8de3Vq4kza6DnDYCH0sEbJQld2CjSPOKRVSfjyBqrZ5i66gGcHWRVkMhHz/55k+nPxpZeRVzpHmM4ajVGanVoeF27/9zPrBdnfnSKlniQNxOhQdsKAJ6eBOh/rbMfC2YR9N84VYUvH63VXijdT3mSSFzQ/+lto356V3IzOFmtYRdkUhcbzFX7o2kd8727AI9TEsJJoVKAeOgta5I/nNy0ntxVswl6ry+Lm4SUm3L080i0mKCSQzizAGZ9nKsMtJud9aKsJCZosb9fAq06xJvLX8/HcLTXcmGnhU10/KXziWf/7M2Qz57B1kCOGrU/Oiuav1mipL+uNo23t6eYW3PVjzNDAp89XItXLhev3rigd0HKhmtfCljIxqvjk3fBbidCZKuYN86nzoyqTSolyNvnef6X9szQbi75On4WhmP0MXrS6esF/BsUZ2dalcORxON5ZziQxYYtG6tMNbZeFtY7+Tcu2eFw66OCSJHnxvrizb8cXaythurtHXr0I7c1X37ySUrQWvkOFaCRV5hnzonmb50s3U9f4ykdsh9dynI/6pQ9yy235T/Mi0eUA2vQGiPV8tqJ1TOl2cqhTRzuRqIlem/GQyrwQjpDEXx6vv5PbgulOR+uocl0bk6cqTJS3l0F4qqQNVzHGLSm0THuTIISRJeHgit//nPXLdRJ6jN9zCro+/poQUbI25Wnc2KjwwI47nt3jVX+zBW6sky7NQPFHc55mZzAwIcNLEUqkFWdnI0UNO9+CFhk6ApK0fkP3JD8Hl//4GFamEnJ2+s91L9wSTQ/NgnQ5x1AJ4GCiWHlwr1h0Gud3hys1tiKBxwkzAG7Pceg2A00jQG8mzAS5+aYia4gjnjwHrh73dhyh9M9CWYV9Pwyl0boLillZ16GY8z3HgcvT46zBrAc6ubkCi7YxKCPdHwjAV27ga+LJL6pUGzr2SgPadT53//gOtH93gfJ/4WN2FRdJbc+eVIseKa7dEk/l0D/sdscl6UB6vG+sLqbpWZM5J2JrxK29o3bD5GL1k4Y7bVk04u+8jPrk9+fbpDH25t10HenaP3AgNyV8OFplqUDSG2AxvzlehVwjF2WMJxYwqQ01suZdsBHjsvRGKv2e0tL4PbZyOPoLXN6+CLyfFKZ7JGGHcm99/K+UUTim69ndz573t/1r6dwQ6mZU3MN9K1RPTTg8kjIq6lzvtPvY6XzeL53g357So70N1RpzrNleyeiigsavJBI/J+/OsP6/ayDnsle1CnfU5eAb92RTCXmTCE3QBRxbFzVxCCK+R/MqNT1Vaya4pyn54nNqLLuT6Pncjqfrl1puOB6FSB/kGrwk/u2hNW3Pv5x8k7fgrsPXFLvns+g/9BWYDPzm5iGEYQJKqzuaI+NI5U17h3Aj2+shoNkpftwOiybyDYCq0/MyU84KBys9X/33uUT74M7ldVg1kHP9WfODGGryshtzGpkHZslPqfIccHUQU6P40RjrhzMtSVjdIX+kbCAKCdQr2sE6s2GBVaqa+KY7aEY4HncOAeVo7zcsJ5YfI7vE0ns+62bBe+9pI8lf0Ubly5Qvz+fQf/b20OKMOvvA2mu1gAsNQ4BI+BDQV8A8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgxfC6DnjjrWSyuFkrcGhKTLh2epy5FVVj/YI8N0YS2QDUXVBqS4fDUT0Xp5AzLju9egd1UjW/jUgJgnAqcSMp9Hg97WdDR2BAm/98owHrvfJCov/VvasKRJ/cF8Bv0f7Ar7mFfZgSzQmgzT+SZSZ1ywsxeMGZecKFLnhymB3FZjMpTq7GmzKtKYFULQ2eF04s/v3SKidMqpSPRC1866pOcHu0BUP3AJO6WQvH9rBEAXuK6kySmlYUQ6X3bFcO91tNYBvP5spJPLnmS6wpChK1jhxYPObZGADHz/2x/bGUYKrwXQ/8dbQ1WmezDUs7lQE6s5DOCoqKyTyhiJaRECmoHNgmjYVFhuqh4VKNHiYD6MAXxYCOShd25MfG+6NqAua9Dzwx26QKsDyFsCgURkqMb09zg/J9LVHcOW82q54zUFwaEv6JQ7c56pnaQniVuL3hrO2uftcS0WOv6x25JPX0ugb64FTvQCS7nevMmGsiqLJcK5YOK+4u9ZenLerI24xINU4/nv+VwhxDlC8NDPrq/S+Q0zIeFtm2Uh6e3DHOjKvlVK0eHWfYwkvMObyXFHOmoMg5wBz4aSzo01DUdZU8Ye4L85assVxBj0ehJYQ81sXBYu2f7lQOEH9+8Rg9eCpP9DlvRemBHV7Pjr7fjEpbPLsuRzcn53qzgUlu4RU9Ncm/VBX3nnxpmlJZQV6F/uHlycDWo4b1bHMO2SGGdTWrUnX3SVf2MqAhuo7Mmx7kmjBUX5stprY8hV1v/PP+oJYFYIIj+bVZn9n9hTfWiyoOf6TgykMR1tqvzqd3QisjYJnEGgk75NnEFHbi1/hp/RRFpJKb0xAktbSzPmv/vSHqQqLSL7B7eE7bBqwzsYusdEHpq4790VVmMmhGnYnTRR+0TDMkh//ue3NOyfKWlfVqBnT84L53CTUnKz7jSHKBbx3w0zkn+339nNg6PvzMYK2v/u7A9lvTNsWGw6QYsAACAASURBVOlZFY8LWHXIiRUI+CcSF/HcZ7uxqlRDdkV1Fu9sHw6X/SKPmOs7vCrvl6MN5vv53LDAFw7X4tUSqMW/sytc8Tp03eJYore5HU+o+OFSFqKEb6d0t3t+VAzZXJRzrU5IFySgupUK/vEXNteeLLLbSjqtrEDPT/706b4Fvqh/Q8B7MbkqjQN2G3iK6ApWOjuTxAadGNdJkzJoNz9mN2ctTwYDeivZ3fb4s1Z5BDKU8p/48kksKBX0H+nsR8sssiwfPlmFrx4rnmX5kRsBDk6xlM8n2ePzLw72iaS7XdUsQseoS7mu0Bd6hvzP/dsZ2Jeq7EDPHfKT07Q+yMhdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ/9bVjqCsZ9Ev70eLPqE02roT7KoP+aPF8+p9bB+zQO3CNBX0h/d0arDmrTUzKa8eA02g+MlpOknhIwpNejf+/fn6d4A03pvUoS9DzGz5xMnuXkkIPgVvsdCLfe+SxcVyfzBK0pUNY129ibo7RjSyrwapI+m+H7RiWH/GHHzuOgwub1e+V4qdn9eYtrSNo8CmqCjCto5fHQLTS9vywwMMnavHsxeKpxb+zw5QAMQ/pAtWCegydwNW+Ys9jr7ETJi/Y3eUjtpsJCTosKPE30+23L1vQP7af6gd9eVdd9SgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1X4/7L3U0qd8pBfR8b86R7UjK0R3GzSDnqAZuFNPdnY8NVMd4tZ91E041NAtO69JNK+CVKz66R0rLkf3dXaMsSzeyGpf8+v4x70w+QNvnzLdy2DYiIeAC3k46okEi+tL7t1btnU5hUbag55d8cH9q45BM3NQ3ggQHnDgZOfLVmwQRq4JYiW2NVf7ebljM33EdHT6HXZn2cNUg7cGJJZjbstgJD3Ry0Ee/VG8qFfR5B6tMqcUW9IUAP8b3HpvAMaGdoyPFDdbIb28mT76UAz2xgUfevyXxzWsG9Pyi3zqY3hIIf1sQwOOdvXXCN4ezjc+dw96R1HZUIf5O++kNi5IlvJX03MFuZFZ/Nu3YycMqFW+raT0nZ0f8pv5AzWuWJYO+McaoLOh7Hw/wMc+MOxmsd4dPYYqC3i5UxXj8BuGcXON54uhQavhzv7a98eJ0Ab+sJb1eFonE117P7qTA22j99SxxmEKgJbGhB9sOsVFaOxGsYOe/2fhldyXXqrTg5kFg0LsBMe3lMT57nji6jN2QaO5X85tPzy5LvVuiBZ39ECV6WL0j/HeM9yX2ZSHvDPctF3LllZsByBQGd9M6I+GtxMmkSf3Vr2ytOXrNgJ5f9NuHqXpwBNszkKuhjEfHqC+uOqOBbSJWNnAVFXky3hmW3hyJ5Yq5FuxmQdBC3fL1dTum27nd7gHRPIT5Dfrf3mEo3bF0Qdf3PmZCcBAt9mU+sLOA4u85s62+Gnp7oLAu/SiUcw1epcdDCHbdJz/1S5unr2592Ut62yVfeOxCfaKj46YMyZVKgP+rEQIfALydQUBfGsrQ993I6ni+d71CMGWZc2ut8HLcl3rLeV15dHQFuDgsmkeuAdAz9yZSR5yJb9W8YqU7X8rceaaLc/FWpimzRLcbOcQDavw3qzNWn3R/DwL1qQ/dWKN3aJyOY86Anl/2cz+lFqjgVj/p3ez7+E1S6AhdjGJf74j6VGTUOpFVvi5SXxyPA6tHfD5z97VL1BZrNepSpP4Y1efSiGhOe/Nf0jPox/je87hGc3zvDqWCvV28vyyLcaYWs3BhGyzplPJ2AR2X7qOwN5NPKXYwXLugf/BB8sU2/BlIfUwSEtrLoGmvYn/XgPokd5NVT6zU1+BlY8mICFfn56JR9nD981Ylcolql0dEczDPQX/fDkendwREXLoz78dSjtnmYRcpJ52wusKThgGuBUoel0wE+FiyCV8xRvqH7M1sQiT/x/u2imtLp2dgPnJsZKVS1V/MStrNy6AkgmKWBhcPVWL/6V71yXy+d9bN7QqgJ4VBuQ1GccaVPXLcn249e86wyohmdQ2APvLeOH7zkMAWJt6zF6wuESaKpAmo5kpytva8k1XlaCqj6pJVJflfE4NwiUVRMCtnZRFnRSbzD7+8s37a9pidE+rNY6fofUGgPqMkWvSyahiGen+l8PNIQDgnlRjIKlxMBXR6KIXXe9J0Nu571+qOkygeeX/cdEHHgLW2Qf+IaFbJyak3YzrZcelpf7WdmEb6ad662YKHnzcIRrfj0WxKp1YOb2dv+8Ruba+TPiax59RHbwwpxVz248JQGJnmpHDefVwn0VNodzLQXSmeF6wxsR2dk+PODL/NUXdcwPN7Cnr82OWnv3H/nj2RvTxVvb6sQf+ji9SYGVF/G0j6YKjKiBDkGugEhVDS689G6vPv4UqgwXE5FYhnu4foyZ5BOp8jya2v3kRgXbJZRDG2kkkBfSOiWVSXBvoqT2FrXRZNPu/wHRuquJ4c32reoCECi4MOHZmNuLxO5QdtDYYAPTbo4cBlHxdTiaKLPb1nQ7hNZk5xKr4vqyvj+N7H8GZciR777BqrLuBzkkysAS0wrFTw1V+7qU4n8kzXUbag/9EZulWS+t9SYY2WZKYOo3LUGq3iKBFKOvd3ngy2bmM4CWgkEPvO9tOD3YN0Rkst04OaTWn0Ij0pnApr7J/nQ0d0M35zslqVtHnyntZh7GiM0tKna8yKaoeDdp87WoMnzlUXDfp/tz220cJERLE82326qmLO55g6U1C6O5NdEZ0YSfZ9+r4tiwaLeukiTypL0P/kAv17qdQnlQqNVQY3WSkfgdtIfCv5zb82CcMaubF/1ZW0eOzgJfXVkQBZLdEtMU2je7T2pZ0AlsDGoK8pEfS/vrQfzbPIsvzOmSS+eLhORz4tzUL3p5WkjgrFX310O9BsonkT+d41NmOqSF7Ax9SZfMYqX+faAPocASlk8MUPba97pkgsF31a2YF+30XakJHqkCSIUFqPqi72Mw8ad1II8Dy/GxUnHGD393CipCXOvNyN/35hkHRo243GugzL0G3Jyr6O5DbX1JYm6e9sHcb2WZL0rN49cLgG3zlTvKRn0DOXXoMujzpj1ZHJqjNx6R6nOLioFcCBY6+//vf337tl2isjlB3oD/TQ8rRUR6WiJEt3x1gN9ffo/1w93hZCjXT+nMkwygq0K0Gg0H+oB395rIdOxCkJoXT3cybDYBbNdSWCnnX67Y1pLK2OsSxdkRjX7eOGXRyAVkrH9WanHTbUn7uUxIFeH+eGitfpf8OAPh/g48aqvn0eZqSdGK53pmjpbt6JQL1S0mc/sqPmSNHiu4QTyw70/Ow/vRD8nPK8z0tFLaEkN0asIhCveznS25Hk1gtiVKC4azOaMIZNGSgM7uvCfz5xmc7mqjMhnS1MVAnTyxn0DSWC3o5DVKsntv5benBUV8ahEtsVx6oj1psTpVA6teYjlc6AkL07rNNru7aEqsUfYfXG1PR35prFd646E6Hb8b4Y0W3saT0r4oC32XBRo84k53M9eFkl6Gu/ui3xpBAzUxWhLEHPHfJiL62kLP2TVHR7CNaYmmK8N6M6fP7fRw1axy5wvD9ZiZ4nTuBPrwzRoC0NImUIdB9SG7wZ6TOnZ9KgHyOEypRazOmCXKsmNjdzKpoVK92dORHiO4/+n+OZMhoVkfrmR26qeaQEwV3yqWULen6TB4n8Nd3qTwj4T2zUjqouedScmIE75tw8BrA9ZyCD/d845IXBLbdIFOfXMvAzPgYVmpsbStPpC47GHAB9PnUm3/Y6blVi7j/PyPaC+nsB9Yy7xPO8x35lq/9N3tC6ZCSXcEFZg96+xwsX6FYF9b8VsGbUJx9K9jA4xT77UAXK69rM8enn8/oQjvT6f/fUCfwoR80xE6CqSmIk5Tc3zHPQf5iDU9Um2JWD2txNGlx8hTQQDvgpnajT4dSxH1PzMubitKtB6FtQj5z9evXj998/s4Dne84J0PODHrpIjYNK/a1U9MGxQSn6sQz83+QdeDkyHhCalJILSPirSal1ksQtiuh6vRt43NvDfv5w4PoeOuj94eUMRqJCrmZ0efyDa0DSM+i5NJ+L97zS3fQLk8sG06wGKm37MmXYRmptnR5XV4rNI/0TQVwGgn/98I21T5YgrKd06pwBvX3L5y/S+0iqz0hCi6UjkBCPvmmp9/bxeuLhE9QpMrgnUPRrKrITQqlvjcZTfeLh/++Q+LrkyeEYWJqnH6C5val09SbvOu0afMYhrlcq5pw7lAT9ExvdjtHqGrTcjKUk6H/teXwZ0xD43Yw+HeXaOn56266VuB/aBjQ5hqxBZaiTOwKAqRvdA0BDDdOFw2hzDresCP2dSZecyltVlXzolzfhAmbIaM2HiVkD/aPH5b+/Z7X/15OZsi+eG1kZ+NVfVIp2h4Er79HbJwC9e5+vvkq3KaK/kMRG8qgBnFXiygP7xXv7UmglQnXoTQiPVIDm1kmAvncYOHNl7FvGdWYrUfVEdjZE1pPBgshSFdwiqm6SuAvwUIzqa6P8VDOhQirAaLv2Wd64FLA7MprLRx/c2YiB69ZzEg6rQutbFRaY4lC2zcj/XkCdEeHi+mpGqe989Kars0u4OwKzBvrHjst9Qnj3v22V+PpkgM8041VvUn9EJN4rhfjkbYvFP5fUDpF48BB+XSr1PyShzrozA6Jf/9sX/e8ii5aUxNoEyVpG/lDgT0rSv3weOHVFoLMxXi+g8NPGQWNBacEaZTK5IHdWjxwPSwGgR1FZOzmMOLcrgivdo0liH9lJ5t66SOGu1aN6ciHAOyveEEDPQmWemM6811LGftZA//hJ+RmlcC8lvFvuWS5mJAhRTEd8+SBtIVKPKMIKvacqiUc/uI1VJRLL/jtqGqpQlxXYliGsXtykbimlGgIHif71kMDadsJ1HcU8Te7GxG79Sr7a1q90fd22jqUtyRH55a2XxKo4hnWp39FRmeyqErl2nRUgmhi23IhVc+zqQUBHPfC29WE0Ix/gHbDznrEXk1WJf1y2CRf3CDFtrMkiezY6bdZA/8TJ4IOS8ADBe1X54vZ7lrNBMzvHlw7REij1pFLYoAhZj7yOX9omet2nmUwBV66u9uRhgbddR+AthYo6XHemU7S1XEF/yxKF6xaZN8unzijF5SlfIKH2nr6hbv/9M+yOLKaPZw30jx2hRckqdU4SuP7XC0kl3rJntcij/RbzGlM/50sHaDk8xS7LFT68D3RsxlcaX4AYqEF1VTvq/p/nsOnQFfWLxUp6VpcePSTQVAXctoZysv3Hfdo5BHrmpr1xhcKK5vCNIjXM4w0WICHEaU/h2WDwyt4P33519ogtBgmzBnp+uKfOqCeUoj16aRXiFV+Kd9y1Rky6Ui2XCykmdL33HNXVpNEka1FLAZKo1q6EhX0Z3NY1qP5zbUK8srJZ6K0deWMCRfD2XYD/P/epZFGgJ+C1buD5UwL/5kYKt7Ap9phDoGd9/saOaDckTbcRoD4S4lwC6tFqv/r4dJfkK7YbxztvVkH/gzPyo4roMzYBRBF6yPM+cvcK8Y1SX+4f9tHHFNGfKaKHU8K77/duClcN3hnw3fdhra+wUhKqvQQ8IrSDsMwTWKAInP8f9UPPMG3sy2DzmpZcA/uli8CnX1QoBvS8pfyjBwW2dhI2m4KoRb/PHAE916y5e43SuwTyQaAuIfz92SB1uPlo/Sv33qu9vmV5zCro91+g+v5AnVaE1iiySoLF69elEn/89jXitWJ6jSX8516i70hFd2sSF+HCyhbv850NuMStQaBVEVrMhnYTvvOFYdq5uE7k1E8sFvScavfIKwLtDcDu1YSE3Q6lmBcJ0TPqEy9TnZ532Ny9XKmlTcgIj4YzWXzJE1WXTvWh225MV+zrzsZ5EwJgph/q6XP0XyWpP7b0ApswovMbSPyLVOJzqhZPvGuJGLbPQkTeS11oFwrLpY+ahIeWAxfVp0Yy2BgxKYVQbTVi38YFeCFK2pnCyxy4CPzNBJKeffLfPyJ0fZfd60hX8Cr5KHPQ876yd64CljZSf2td4jvJKhy8eRG6ZnqfqJL7cZwLZh30e89Re5rU6yzt82U7mUmQlkRPC4i9PuFKbZU3XO2hNeFhuRBIegJ09ArdOZShpTaYY9uq9kX3xgX0RGO11z+Vjtt/EfjrvQrvvD4/mHnXkx8dFjqpes8GQpsTsCnpvmUMeo68fnCrwKZ2TwfthEC/Ao6TxIVEEr0J4LXrFopzJb3vLJw866Dnd372vPwtSfg0S3up81tHOfQ5tOIYX75ASmAUtre/cw748ibvx6uaMOkqWbwj+V89B2xfJXX43R48ybgI6df3CV05YPdaQmt9bli+pHEtQ9CzysWVyT60TWBFU54NtNhBLxAIYET4GCHCWSJ8oz+NvjcsQ1bMok8+X9+XBeiJyH+um56UknZHtIBQv9G5sVH2VJxXH6uCMJZ3bxLHTXWEphpxdMtC8cMqLyp/UzQemSbw+EmFQ/2ENe3hZRwYOtcLPHtCoLMZ2LGcwm19pnKUGeh507XblwG3Lxdo5sq3JRxCIFASvOv6fvJxuaUNJ5YLMVJCEzNyalmA/lA/bcymcM+wUp+QCrV51RzOmnJLgMQSwkcpxSZyWeB3z8PgdW3eEwvrcKGUHs1klS7d/WI3cEnyTtqEp48KHO0BVrcBt0/GaM33AGUE+uWNwC1LBbZ3elOm4woB9qadEEDXgMLTs2kHzAroDx+m6lQTWnwPO4XA7Z6HBiIkJaFjMFDvsPmxY2jAmi/v5saOTQp3wW8nT5gsYs4NPSK0tFE8t6ldTLhtI7eXlkpzxjWnhcnfCjibJpzSBZEEkj7llrArZTbFzzVMSf5aUwTMB83zt79ZPo0tfcLnmYpsllZgdwGkwFQVNtY8szE1DcFwBizD1P2OyWR3rwY2twskE6H+Pl0HDwNvXgdCSgAPpRM4cugMhq6mP/+qgv7YIHVQgK2ksFZ5uIF0qYHcIyB0DgXqbqmoKvTfO8kirvSOwJ+bJphTDMqoRvGVw3JYdi3xHmyp0RIo/8HJEWafVj7BZSvy38wn11FIB4RRQwUYhvb3iKfiEsXsj8619rwcokqMr6z5NoVfoeDruVx5e9KCGqC9DqguZR/QKcwIIZBWhH2+h6OBj5c3NYmeKTRX1KUzDnrW109cwfJA4S0esJQEFjuM3bwPGQCtA1li7nuj5czH9fWcdMACtXDGO4d3r7tlqfflxioMFeoplvAuY9FKXw0w1w/qgDQCn8Mpj74bkzg9euccqrGDYMMPy/uI3CfuZCxqxMc5iQuvLmnyiqdMTPWGzvVcqJUELgjg3GAaX/naZzAyU1lUMwb6wz3UlEhiSZDG+30f7RwYMqUQi+oqRagalHRbShKTwJwKCGPr2ISGrjVa8//OK4Y06YSeJ1LrWsSTSxtwutDDBBRmA7mS3IrTnHotBnUR78RpMOdaM2PGXGtL9JnrotUkj9SPAB4T6+6f8QlW7KTwBbCsyUNixhBR1LCHVAaBwPPwjA886zfh3BIxGqMprpXxz5r2VzxNVJvtxU7h4Xoo3DCRVJ/oJVKKOgcD3JyV1KHVUZvplKf+TY4O75b5c9Sc2qQ4e12reKohWVjCS2fdzwGzpevGAJkDZOeP8a7NqQ5g2rOS264oOYCN3ztO8411ZM68GEf94ctYZ+dEkKaqqRusE41nSb8LcFHpl+DhwJom7C2GV1VM+9MG+pdfpqqG1djiS9ylCMtAqJlOCygj0TGQpU2pLK0KiKpC/jjXwMlTHsTNgzWuTwhPLqoVe9cuwPjGq7b0HMZgXHJbgPK/ZksZ9/yca2PiP1Jh8uzXZFcRa4i6gzdGkjsTy6YXxgd7zMqTZ9LYa9gH397g5W77WQx6rtI5AhgkhdcpwA9WtuGIEGJKBUKnDPqXiapaBrADhFsArCdCYjrBnqdfvaEMOkYULc5ILMgoNEqJmiyhTkpK5PP4+J64srZJPNFSi0uFxonLwFovhes1sSDOKWUXU0X0OY40zZH8LtgcPd9ZLMKPMWlsVat4Cb0c6W8mp6vS5MvPsmpW/J58btIDltR7SDChpowPnVNLUL6HV7NpfPfSCRzZuXNy4J8S6I8P0uIqiTd7HnbzziCz2WfH+9XbR7JYrlUgx7BtrBKvrm0Wz3je6H5g8efkWi16d7s8npRIYsb0aFeijznH9bW7EySfihJr17oSx6w241ybz8ZwAR6fCO4tF9XxpgrT6ZSceRR4Apeg8IpswtcnE+yaFOgvENWLIbwRwFtA4OzPWe81Bv1wgOW65J8mViLVWe/9YFEtTow3DMJTerbmqB55AJ6jbuSR6jnSNOaujHtgXN3dtuv643NUnBhi9aR2JlLOo+axOcbc27lhaxXQWjfrQzepWaIlv0I3bzXc04R9W4QoutBryaDvukJrvSq8WxE2TOppZ+iik/10z1CWVjCgqn1xdnmjeKomUdhY5cdI8PQwYz5GLcgDoDHS13mXgkaorSIwRp8Zuw+rXWlyiOixCZRT3cDty0LqlfPQdmJqtSYBdNTxdjpzE/T21T329nh42qvBUwuEOFUMvIoGPfvbe7LYISTuBsBsxqKvLeZBpnpO1xBtuZLGTU3V2N9ZL16aqD0uUDTecBcS9hEgnXo18XvFg0VxGyGO/7jx6uroFrN2JRijVsUeNN+qEk1oe64HcBCqbsyWIxP1Wnn+zsAnwolA4ZGOerw8kZenKOASUc2VFP4NCDtJYKqUqlnvOV1vUUysk+V4TfJZiLEKAGPA7DQQd2u6KkoEZFd3KeBB4nP1fHM9OE6P6qJPeVYVd7Kwt6aldm5L+DEgEpyqiGxK4YuLa/HieMzOCUHfT9ROabyfCNfPpTKA+WdWaLBO+NKOzjymnTx++DjG4uH9fN6TqJkCPvScujROWQ57r3zXu5M0Xzk+Vo2qEwAngvg5+13OuhyavgfgwJbA40jjh00FKA3jjj8R1Q5k8NsgrJ2+p5qtlvJsdjbZR8mj+2i1osBqED/dNVrdwk0uoPOtMoXqSrqTqpDRzN/zYDPgq+e4Hj/RsFG4c+qhTDW+sFCIgfj5BUE/MEALkcT7PQ+by01/n+il479rl2SpF5Vwvuv5iTO/4iDM5xbN0VbiPB7TeD63ZI5kN/pL9Cx5VKuaBNBYIie+hG4ot1PJFzicGcL/29KSW8MoL+i7u6mhrhW/4Qts4Eq/5fY2pT1POPozCfr480R4i3uAYpHYeEDK1bsLVgvOw+i0K0wh9YbbZVf8NQT4SOP0gL01SXxdiNFiYnkBPThId/k1uLc0cJXr2bMza11jcow2lId27Ep7fX4BXT8q9Gq6e0xJbPt9LNDGyeq1cywINR2IIoUAAv9clxQ/tu2NAX2KaAMCfBQC9dNx09lro5DTcfaeKJ9XJZ86kqPuFABxdE6eeELcM1SVAGp9b+wGzrPXFVf3zoRhSuDTtUIc4xvngJ6IVmcUPkDAsqv7VNN8t3zZEdN8i6k2V8itGKk4eaK6+p55qBL2mjF6v0F/Q7WnK7Vdwwd5wGtJD59mV2bUFVxLRkq8GwJvm8uuSb2fXQEvSrkOeqE1qdDKECe/2fPyqUWs0nByyDV/MDvFx7d84NtRd4yM0MqqKvwHwlwOPpWfSlM02Aro8GM8NLZBdyVwTuKPdhJwLqZO+6uA3i6Sp9Mj+AdX0n9UKdw4d6V8mOk03474NHZjAXlXAnMBx544wVtcVb9V+fe+5+GzGvREtBTA7wJw9oYr/xdwn1Cp+Qn6MaMQm9k5MQLn5KTwpq9Cw9yCwkRPm7GgvwfAz+r9gufYwWC/1o58K5q7AjDVYt7SDKZhsAWzJwG8F8CeaWhvXjaRM60mnGMTnjBtfZRXnePs+4qUH7ePGfQtAH4FwKZpG41KQzPWA/Fob3ij3InmzVcy2TT1KoN+OYD7mIs0TW1Wmqn0QFn3AIN+PYDfv8r0lLLulMrDze8eYNCvA/B7OnuuclR64BroAQY9Uw5+E0DbNfC+lVes9AAY9A0APgDgpkp/VHrgWugBBj1TzX9Bl/OoHJUeuAZ6wAan7gLw8xW9/hoY8corhlQkIuI9n/8EAPvsK0elB+ZzD3S7hLNfBXBzxXU5n8e78m4A/s4FPUv5jwOY7GaQlR6t9EC598DLAL7ggp4/W+LZ1cyjLveOqjzf/OiBNIAvCiGej6cL8tY4vwhg4/x4z8pbVHpA9wBz87jU49/npAvaziEiDlIxt35RpcMqPTBPeuAigE8JEda/yZtIRkScQfVBYK5XRJgnQ1Z5jan0AO8r9k9CiKhkeyHQJwG8E8CbATibwk/l3pVrKz1w1XugH8A/CCFed+9cMGXYJJcw6DmjqgL8qz5elRtOsQd4q6V/FKbWTVGg19o/70sPvB3AHZXA1RSHoHL51ewBVmm+IoQ4nO+mExaHICKuR89lupmmUDFur+bQVe5Vag+wl4ZVmr8WQpwtdPGEoHe8Ohy8+g0Aq+ZiAnmpvVc5f871APvhOfj0L0KIrvGevmjQG3WHOTpMTmNdv3rOdUvlgedrDzDgHwbwnBBiZKKXLAn0BvhcPYF5OrwbOHt5Sm5jooeq/F7pgSJ7gNUZ3oCBAf+Difaasm1OGrBEtA3AWwGsqVCSixyiymnT2QMM+L0AnsjnoZk29SbeEBG1A7oU4P9RAf50jmelrQl64AKAH/H/xagz8bYmLekdA5fb4JTDdwHYaViaU263MuyVHoj1ABf3GQKwH8CDrNYUq85MO+jdBomIN2S71Uj/OVsXswK3suuBHgDPANgnhGAf/JSOaZfIvCOhYWnuMOCvGLtTGqJr9mKW7MMAngdwAMDByUr2GZX0ManPdXRY2r8b4c4mHRW9/5oFcCkvzntD83b3PzXSfVgIEW3UXkpDhc6ddkmf70ZEyZkHzQAAAcRJREFUxIBnbw9XU9taSUmcjqGbd21kjb5+3BioqZl6w6sCesfoZcnPiSrbTT4uUxx4RbiqzzFTnVlpt6QesD52Bjfv/MfR1C4hxGBJrUzi5FkBm6m1wxFd5vRcB2C1mQyV0oKTGMQ5dgkHk1iac2LHT8xnJYS4ajXOZwX0Md2fn4FBz9WTWQ3ajTm979Ucg+DVe1z2wHDK3hkAzG+/OF2GaamvMOugz2P8NhrQc9U1NoBZBeI9bSvJ6qWO7uycz2oLS21mO/K/+wB8HwBzYtgoZUN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",te=w(3113),B=({createState:h,refreshLoading:E,onRefresh:p=()=>{},onCreate:j=()=>{}})=>pe.createElement("div",{className:ue.sendToClass},h?pe.createElement(pe.Fragment,null,pe.createElement("img",{src:U,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(te.ZP,{onClick:j,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):pe.createElement(pe.Fragment,null,pe.createElement("img",{src:Ne,alt:"\u7A7A"}),pe.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),pe.createElement(te.ZP,{loading:E,onClick:p,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0")))},6681:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(59301),ue={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},U=w(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",Z=(E,p,j)=>new Promise((S,F)=>{var P=Y=>{try{M(j.next(Y))}catch(Q){F(Q)}},R=Y=>{try{M(j.throw(Y))}catch(Q){F(Q)}},M=Y=>Y.done?S(Y.value):Promise.resolve(Y.value).then(P,R);M((j=j.apply(E,p)).next())}),h=({type:E,resdata:p,onok:j,oktext:S,okloading:F})=>{const[P,R]=(0,pe.useState)(!1),{can_copy_list:M,can_copy_num:Y,challenge_type:Q,course_data_list:ce,no_copy_list:W,no_copy_num:J,no_use_list:V,no_use_num:K,repeat_shixun_num:se,student_count:he,total_num:Te,use_num:xe}=p;let je=Y>0||E==="exercise";(0,pe.useEffect)(()=>{(p==null?void 0:p.student_count)>0&&R(!0)},[p]),console.log("---11",F),(0,pe.useEffect)(()=>{F||R(!1)},[F]);const X=()=>{if(E==="exercise"&&Q===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(E==="exercise"&&Q===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},xe),"\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:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixun"&&Q===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixun"&&Q===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="subject"&&Q===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="subject"&&Q===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",pe.createElement("span",{className:ue.orangeColor},he)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",pe.createElement("span",{className:ue.orangeColor},xe)," \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:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="exercisepush")return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(E==="shixunpush"&&Q===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixunpush"&&Q===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",pe.createElement("span",{className:ue.orangeColor},xe),"\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:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},de=()=>{if(E==="exercise"||E==="subject"||E==="exercisepush"||E==="shixunpush")return pe.createElement("div",{style:{marginTop:20}},J>0&&pe.createElement("div",null,pe.createElement("span",{className:ue.flex},pe.createElement("img",{src:te,style:{width:14}}),pe.createElement("span",{className:ue.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:ue.statusbody},E==="exercise"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(E==="subject"||E==="exercisepush")&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",je&&pe.createElement("span",{className:ue.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E==="shixunpush"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",je&&pe.createElement("span",{className:ue.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),pe.createElement("div",null,W==null?void 0:W.map((k,rt)=>pe.createElement("a",{href:`/shixuns/${k.identifier}/challenges`,target:"_blank"},"\u300A",k==null?void 0:k.name,"\u300B",rt+1!==J&&"\u3001"))))),Y>0&&pe.createElement("div",{style:{marginTop:20}},pe.createElement("span",{className:ue.flex},pe.createElement("img",{src:Ne,style:{width:14}}),pe.createElement("span",{className:ue.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:ue.statusbody},E==="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"),(E==="subject"||E==="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"),E==="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,M==null?void 0:M.map((k,rt)=>pe.createElement("a",{href:`/shixuns/${k.identifier}/challenges`,target:"_blank"},"\u300A",k==null?void 0:k.name,"\u300B",rt+1!==Y&&"\u3001"))))));if(E==="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(U.default,{open:P,onCancel:()=>{R(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!je&&"none"}},zIndex:1003,confirmLoading:F,okText:je?S:"\u6211\u77E5\u9053\u4E86",onOk:()=>Z(void 0,null,function*(){je?yield j([...M,...V]):R(!1)})},pe.createElement("div",{style:{maxHeight:600,overflow:"auto"}},X(),de()))}},28086:function(xn,Jt,w){"use strict";var pe=w(59301),ue=w(43418),U=w(1710);const Ne=({dataSource:te,visible:Z,onClose:B=()=>{},onSuccess:h=()=>{},text:E,okText:p})=>{var j;return pe.createElement(ue.default,{centered:!0,destroyOnClose:!0,open:!!Z,title:"\u63D0\u793A",width:"600px",okText:p,cancelText:"\u53D6\u6D88",onCancel:B,onOk:h},Z==="single"&&pe.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",pe.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(j=te==null?void 0:te[0])==null?void 0:j.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",E),Z==="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",E),pe.createElement(U.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})))};Jt.Z=Ne},94243:function(xn,Jt,w){"use strict";w.d(Jt,{B:function(){return E},F:function(){return h}});var pe=w(44164),ue=w.n(pe),U=w(86129),Ne=w.n(U),te=(p,j,S)=>new Promise((F,P)=>{var R=Q=>{try{Y(S.next(Q))}catch(ce){P(ce)}},M=Q=>{try{Y(S.throw(Q))}catch(ce){P(ce)}},Y=Q=>Q.done?F(Q.value):Promise.resolve(Q.value).then(R,M);Y((S=S.apply(p,j)).next())});const Z=()=>{document.body.scrollIntoView()},B=()=>{document.querySelectorAll("canvas").forEach(p=>{(!p.clientWidth||!p.clientHeight)&&p.remove()})},h=(p,j)=>te(void 0,null,function*(){Z(),B();const S={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let F=ue()();for(let R=0;R<p.length;R++)yield F.set(S).from(p[R]).toContainer().toCanvas().toPdf().get("pdf").then(M=>te(void 0,null,function*(){R<p.length-1&&(yield M.addPage())}));const P=new(Ne());P.file(`${j}.pdf`,F.output("blob"),{base64:!1}),P.generateAsync({type:"blob"}).then(function(R){const M=document.createElement("a");M.href=window.URL.createObjectURL(R),M.download=`${j}.zip`,document.body.appendChild(M);const Y=new MouseEvent("click");M.dispatchEvent(Y),document.body.removeChild(M)})}),E=(p,j)=>te(void 0,null,function*(){Z(),B();const S={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let F=ue()();for(let P=0;P<p.length;P++)yield F.set(S).from(p[P]).toContainer().toCanvas().toPdf().get("pdf").then(R=>te(void 0,null,function*(){P<p.length-1&&(yield R.addPage())}));F.save(`${j}.pdf`)})},80291:function(xn,Jt,w){"use strict";w.r(Jt),w.d(Jt,{default:function(){return at}});var pe=w(59301),ue=w(76560),U=w(92832),Ne=w(8591),te=w(1710),Z=w(6848),B=w(95237),h=w(43604),E=w(5112),p=w(28103),j=w(71418),S=w(66104),F=w(3113),P=w(38854),R=w(43418),M={flex_box_center:"flex_box_center___maKAy",flex_space_between:"flex_space_between___vD_VZ",flex_box_vertical_center:"flex_box_vertical_center___kwkiV",flex_box_center_end:"flex_box_center_end___BdkbU",flex_box_column:"flex_box_column___meEQB",bg:"bg___vBzoO",wrap:"wrap___rrSkg",programTitle:"programTitle___kPWjL",btnWrapper:"btnWrapper___F_tyj",btn:"btn___ToWSe",titleForExport:"titleForExport___lhBnq",flexRow:"flexRow___cvXQo",flexColumn:"flexColumn___cTDFf",flexJustifyBetween:"flexJustifyBetween___vy_7r",relative:"relative____B_F8",questionNumber:"questionNumber___V4g28",score:"score___dNKpj",selectTopicButton:"selectTopicButton___NO9DO",line:"line___j553x",dragTip:"dragTip___AaESI",typeActive:"typeActive___dLHVW",mouseTypeActive:"mouseTypeActive___N_Yv8",typeName:"typeName___bdcw3",typeNumber:"typeNumber___B6Fic",typeAction:"typeAction___O3dpz",setScore:"setScore___GA5cK",delete:"delete___O2OvN",modal:"modal___0ENtb",table:"table___ZRr4b",glassSeal:"glassSeal___C7Vpa",export_type_modal:"export_type_modal___ldAtg",export_type_modal_con:"export_type_modal_con___Y9iST",type_item:"type_item___cWirW",img_warp:"img_warp___G7xtB",img_warp_active:"img_warp_active___rw33a",divname:"divname___RLHHc"},Y=w(59014),Q=w(94243),ce=w(47580),W=w(22688),J=w(30975),V=w(49661),K=w(72664),se=w(7664),he=w(24334),Te=w(16837),xe=w(65986),je=w(64885),X=w(82093),de=w(59301),k=Object.defineProperty,rt=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,He=(st,It,Ut)=>It in st?k(st,It,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):st[It]=Ut,ge=(st,It)=>{for(var Ut in It||(It={}))Oe.call(It,Ut)&&He(st,Ut,It[Ut]);if(rt)for(var Ut of rt(It))be.call(It,Ut)&&He(st,Ut,It[Ut]);return st},De=(st,It,Ut)=>new Promise((Kt,hr)=>{var or=G=>{try{ur(Ut.next(G))}catch(wt){hr(wt)}},Sr=G=>{try{ur(Ut.throw(G))}catch(wt){hr(wt)}},ur=G=>G.done?Kt(G.value):Promise.resolve(G.value).then(or,Sr);ur((Ut=Ut.apply(st,It)).next())});const{TextArea:fe}=U.default,Se={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},ct=["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"],dt=({newExercisePaper:st,isExportBlank:It=!1,paperlibrary:Ut,user:Kt,globalSetting:hr,loading:or,dispatch:Sr})=>{var ur,G,wt,_,f,u,x,ee,Ce,H,ne,$e,we,ve;const qe=(0,ue.useLocation)(),St=(0,ue.useParams)(),[me]=(0,ue.useSearchParams)(),[ft,lt]=(0,pe.useState)(),Pe=(0,pe.useRef)(),[Le,pt]=(0,pe.useState)(),[zt,Ht]=(0,pe.useState)(),[er,Pr]=(0,pe.useState)([]),[pr,kr]=(0,pe.useState)(!1),[Dr,vr]=(0,pe.useState)(""),[dr,$r]=(0,pe.useState)(!1),[un,_n]=(0,pe.useState)(!1),qr=me.get("isIntelligentAssistant");(0,pe.useEffect)(()=>(Sr({type:"globalSetting/footerToggle",payload:!1}),()=>{Sr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,pe.useEffect)(()=>{Pe.current=St==null?void 0:St.id,lt(me.get("defaultActiveKey")||"0"),qn(),ti(),Bn()},[St==null?void 0:St.id]),(0,pe.useEffect)(()=>{var Ie;if((Ie=st.exerciseExportHeadData)!=null&&Ie.title){const ke=st.exerciseExportHeadData;pt(ge({},ke||{}));const{table:Ee}=ke||{};let $t,Nt;(Ee!=null&&Ee.total_singles_scores||Ee!=null&&Ee.total_doubles_scores||Ee!=null&&Ee.total_nulls_scores||Ee!=null&&Ee.total_judges_scores||Ee!=null&&Ee.total_pros_scores||Ee!=null&&Ee.total_shixuns_scores||Ee!=null&&Ee.total_mains_scores||Ee!=null&&Ee.total_combination_scores||Ee!=null&&Ee.total_bpros_scores||Ee!=null&&Ee.total_pro_corr_scores)&&($t=Number(Ee==null?void 0:Ee.total_singles_scores)+Number(Ee==null?void 0:Ee.total_doubles_scores)+Number(Ee==null?void 0:Ee.total_nulls_scores)+Number(Ee==null?void 0:Ee.total_judges_scores)+Number(Ee==null?void 0:Ee.total_pros_scores)+Number(Ee==null?void 0:Ee.total_shixuns_scores)+Number(Ee==null?void 0:Ee.total_mains_scores)+Number(Ee==null?void 0:Ee.total_combination_scores)+Number(Ee==null?void 0:Ee.total_bpros_scores)+Number(Ee==null?void 0:Ee.total_pro_corr_scores)),(Ee!=null&&Ee.singles_scores||Ee!=null&&Ee.doubles_scores||Ee!=null&&Ee.nulls_scores||Ee!=null&&Ee.judges_scores||Ee!=null&&Ee.pros_scores||Ee!=null&&Ee.bpros_scores||Ee!=null&&Ee.pro_corr_scores||Ee!=null&&Ee.shixuns_scores||Ee!=null&&Ee.mains_scores||Ee!=null&&Ee.combination_scores)&&(Nt=Number(Ee==null?void 0:Ee.singles_scores)+Number(Ee==null?void 0:Ee.doubles_scores)+Number(Ee==null?void 0:Ee.nulls_scores)+Number(Ee==null?void 0:Ee.judges_scores)+Number(Ee==null?void 0:Ee.pros_scores)+Number(Ee==null?void 0:Ee.bpros_scores)+Number(Ee==null?void 0:Ee.pro_corr_scores)+Number(Ee==null?void 0:Ee.shixuns_scores)+Number(Ee==null?void 0:Ee.mains_scores)+Number(Ee==null?void 0:Ee.combination_scores));const Er=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Ee==null?void 0:Ee.total_singles_scores,doubles_score:Ee==null?void 0:Ee.total_doubles_scores,nulls_score:Ee==null?void 0:Ee.total_nulls_scores,judges_score:Ee==null?void 0:Ee.total_judges_scores,pros_score:Ee==null?void 0:Ee.total_pros_scores,bpros_score:Ee==null?void 0:Ee.total_bpros_scores,pro_corr_score:Ee==null?void 0:Ee.total_pro_corr_scores,shixuns_score:Ee==null?void 0:Ee.total_shixuns_scores,mains_score:Ee==null?void 0:Ee.total_mains_scores,combinations_score:Ee==null?void 0:Ee.total_combination_scores,total_score:$t},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Ee==null?void 0:Ee.singles_scores,doubles_score:Ee==null?void 0:Ee.doubles_scores,nulls_score:Ee==null?void 0:Ee.nulls_scores,judges_score:Ee==null?void 0:Ee.judges_scores,pros_score:Ee==null?void 0:Ee.pros_scores,bpros_score:Ee==null?void 0:Ee.bpros_scores,pro_corr_score:Ee==null?void 0:Ee.pro_corr_scores,shixuns_score:Ee==null?void 0:Ee.shixuns_scores,mains_score:Ee==null?void 0:Ee.mains_scores,combinations_score:Ee==null?void 0:Ee.combination_scores,total_score:Nt},{key:"3",name:"\u8BC4\u5377\u4EBA"}],sr=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Ee==null?void 0:Ee.total_singles_scores,doubles_score:Ee==null?void 0:Ee.total_doubles_scores,nulls_score:Ee==null?void 0:Ee.total_nulls_scores,judges_score:Ee==null?void 0:Ee.total_judges_scores,pros_score:Ee==null?void 0:Ee.total_pros_scores,bpros_score:Ee==null?void 0:Ee.total_bpros_scores,pro_corr_score:Ee==null?void 0:Ee.total_pro_corr_scores,shixuns_score:Ee==null?void 0:Ee.total_shixuns_scores,mains_score:Ee==null?void 0:Ee.total_mains_scores,combinations_score:Ee==null?void 0:Ee.combination_scores,total_score:$t},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Ht([...It?sr:Er])}},[st.exerciseExportHeadData]);const Bn=()=>De(void 0,null,function*(){var Ie;const ke=yield(0,ce.cV)({id:St.id});ke.status==0&&Pr(ke.data),yield ti(),me.get("exportPDF")&&((Ie=Ut.paperData)!=null&&Ie.questionList)&&(Ne.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,Q.F)(Ui.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),ti=()=>De(void 0,null,function*(){const Ie=yield(0,ce.Dq)(St.id);pt(Ie||{});const{table:ke}=Ie||{};let Ee,$t;(ke!=null&&ke.total_singles_scores||ke!=null&&ke.total_doubles_scores||ke!=null&&ke.total_nulls_scores||ke!=null&&ke.total_judges_scores||ke!=null&&ke.total_pros_scores||ke!=null&&ke.total_shixuns_scores||ke!=null&&ke.total_mains_scores||ke!=null&&ke.total_combination_scores||ke!=null&&ke.total_pro_corr_scores||ke!=null&&ke.total_bpros_scores)&&(Ee=Number(ke==null?void 0:ke.total_singles_scores)+Number(ke==null?void 0:ke.total_doubles_scores)+Number(ke==null?void 0:ke.total_nulls_scores)+Number(ke==null?void 0:ke.total_judges_scores)+Number(ke==null?void 0:ke.total_pros_scores)+Number(ke==null?void 0:ke.total_pro_corr_scores)+Number(ke==null?void 0:ke.total_shixuns_scores)+Number(ke==null?void 0:ke.total_mains_scores)+Number(ke==null?void 0:ke.total_combination_scores)+Number(ke==null?void 0:ke.total_bpros_scores)),(ke!=null&&ke.singles_scores||ke!=null&&ke.doubles_scores||ke!=null&&ke.nulls_scores||ke!=null&&ke.judges_scores||ke!=null&&ke.pros_scores||ke!=null&&ke.bpros_scores||ke!=null&&ke.pro_corr_scores||ke!=null&&ke.shixuns_scores||ke!=null&&ke.mains_scores||ke!=null&&ke.combinations_score)&&($t=Number(ke==null?void 0:ke.singles_scores)+Number(ke==null?void 0:ke.doubles_scores)+Number(ke==null?void 0:ke.nulls_scores)+Number(ke==null?void 0:ke.judges_scores)+Number(ke==null?void 0:ke.pros_scores)+Number(ke==null?void 0:ke.bpros_scores)+Number(ke==null?void 0:ke.pro_corr_scores)+Number(ke==null?void 0:ke.shixuns_scores)+Number(ke==null?void 0:ke.mains_scores)+Number(ke==null?void 0:ke.combinations_score));const Nt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:ke==null?void 0:ke.total_singles_scores,doubles_score:ke==null?void 0:ke.total_doubles_scores,nulls_score:ke==null?void 0:ke.total_nulls_scores,judges_score:ke==null?void 0:ke.total_judges_scores,pros_score:ke==null?void 0:ke.total_pros_scores,bpros_score:ke==null?void 0:ke.total_bpros_scores,pro_corr_score:ke==null?void 0:ke.total_pro_corr_scores,shixuns_score:ke==null?void 0:ke.total_shixuns_scores,combinations_score:ke==null?void 0:ke.total_combination_scores,mains_score:ke==null?void 0:ke.total_mains_scores,total_score:Ee},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:ke==null?void 0:ke.singles_scores,doubles_score:ke==null?void 0:ke.doubles_scores,nulls_score:ke==null?void 0:ke.nulls_scores,judges_score:ke==null?void 0:ke.judges_scores,pros_score:ke==null?void 0:ke.pros_scores,bpros_score:ke==null?void 0:ke.bpros_scores,pro_corr_score:ke==null?void 0:ke.pro_corr_scores,shixuns_score:ke==null?void 0:ke.shixuns_scores,mains_score:ke==null?void 0:ke.mains_scores,combinations_score:ke==null?void 0:ke.combination_scores,total_score:$t},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return Ht(It?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Nt),Ie}),Ir=[{width:"8%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:Ie=>de.createElement("a",null,Ie)},{width:"8%",title:((ur=er.find(Ie=>Ie.value==W.fw[0].nameType))==null?void 0:ur.name)||W.fw[0].name,align:"center",dataIndex:"singles_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"8%",title:((G=er.find(Ie=>Ie.value==W.fw[1].nameType))==null?void 0:G.name)||W.fw[1].name,align:"center",dataIndex:"doubles_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"8%",title:((wt=er.find(Ie=>Ie.value==W.fw[3].nameType))==null?void 0:wt.name)||W.fw[3].name,align:"center",dataIndex:"nulls_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"8%",title:((_=er.find(Ie=>Ie.value==W.fw[2].nameType))==null?void 0:_.name)||W.fw[2].name,align:"center",dataIndex:"judges_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"9%",title:((f=er.find(Ie=>Ie.value==W.fw[6].nameType))==null?void 0:f.name)||W.fw[6].name,align:"center",dataIndex:"pros_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"9%",title:((u=er.find(Ie=>Ie.value==W.fw[9].nameType))==null?void 0:u.name)||W.fw[9].name,align:"center",dataIndex:"pro_corr_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"9%",title:((x=er.find(Ie=>Ie.value==W.fw[8].nameType))==null?void 0:x.name)||W.fw[8].name,align:"center",dataIndex:"bpros_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"8%",title:((ee=er.find(Ie=>Ie.value==W.fw[5].nameType))==null?void 0:ee.name)||W.fw[5].name,align:"center",dataIndex:"shixuns_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"8%",title:((Ce=er.find(Ie=>Ie.value==W.fw[4].nameType))==null?void 0:Ce.name)||W.fw[4].name,align:"center",dataIndex:"mains_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"8%",title:((H=er.find(Ie=>Ie.value==W.fw[7].nameType))==null?void 0:H.name)||W.fw[7].name,align:"center",dataIndex:"combinations_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie)},{width:"8%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:Ie=>de.createElement("a",null,Ie==="0.0"?0:Ie?parseFloat(Ie).toFixed(1):"")}],qn=Ie=>{Sr({type:"paperlibrary/getPaperData",payload:ge({id:Pe.current},Ie)})},Ti=(Ie,ke)=>De(void 0,null,function*(){if(!Ie.destination||!Ie.source)return;const Ee=ke.questions[Ie.source.index].id,$t=Ie.destination.index+1;(yield Sr({type:"paperlibrary/adjustPosition",payload:{id:Pe.current,itemId:Ee,position:$t}})).status!==-1&&qn()}),ci=()=>{var Ie,ke,Ee,$t;Sr({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:Pe.current,data:{is_random:!1},dataSource:[{name:(ke=(Ie=Ut.paperData)==null?void 0:Ie.exam)==null?void 0:ke.name,total_score:($t=(Ee=Ut.paperData)==null?void 0:Ee.exam)==null?void 0:$t.all_score}],type:"single"}}})},Ui=(0,pe.useRef)(),[Ei,$i]=(0,pe.useState)(!0),Ha=()=>De(void 0,null,function*(){$i(!1),vr(""),kr(!0)}),Ji=()=>De(void 0,null,function*(){$i(!0),vr(""),kr(!0)}),gi=()=>De(void 0,null,function*(){var Ie;$r(!0);const ke=yield(0,K.Mb)({categoryId:Pe.current});$r(!1),ke!=null&&ke.exercise_id&&(0,V.xg)(`/classrooms/coursesId/exercise/${ke.exercise_id}/${(Ie=Kt.userInfo)==null?void 0:Ie.login}/initate_answer`)}),ki=(Ie,ke,Ee)=>{var $t,Nt,Er,sr,Kr,Wr,tn,Vr,jr,Yr,mn,rn,Dn,Qn,ui,Tn,sn,Qt,Zt,qt,mr;return de.createElement(de.Fragment,null,!Ee&&de.createElement("div",{style:{display:"flex"},className:M.programTitle},de.createElement("span",{style:{flexShrink:0},className:"font18"},ke+1,"."),de.createElement(se.Z,{style:{maxWidth:1100},value:Ie.name||(Ie==null?void 0:Ie.shixun_name)}),de.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(Ie==null?void 0:Ie.question_type)===7?`\u5171${Ie==null?void 0:Ie.sub_count}\u5C0F\u9898`:""," ",Ie.score,"\u5206\uFF09")),(Ie==null?void 0:Ie.question_type)===8&&de.createElement(se.Z,{showProgramFill:!0,disabledFill:!0,value:he.Base64.decode((($t=Ie==null?void 0:Ie.program_attr)==null?void 0:$t.code)||"")}),(Ie==null?void 0:Ie.question_type)===5&&de.createElement("div",null,(Nt=Ie==null?void 0:Ie.examination_bank_shixun_challenges)==null?void 0:Nt.map((Wt,Cr)=>de.createElement("div",null,de.createElement("div",{key:Cr,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},de.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",Cr+1,"\u5173 ",de.createElement("span",{className:"ml10"},Wt.challenge_name))))),[6.9].includes(Ie==null?void 0:Ie.question_type)&&de.createElement("div",null,de.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(sr=(Er=Ie==null?void 0:Ie.program_attr)==null?void 0:Er.languages)==null?void 0:sr.join("/")),((Wr=(Kr=Ut==null?void 0:Ut.paperData)==null?void 0:Kr.exam)==null?void 0:Wr.show_hack_sets)&&de.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},de.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},de.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),de.createElement(te.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Wt,Cr,Mr)=>Mr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Wt,Cr,Mr)=>de.createElement(Z.Z,{title:de.createElement("pre",null,Wt)},de.createElement("div",{className:M.divname},Wt))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Wt,Cr,Mr)=>de.createElement(Z.Z,{title:de.createElement("pre",null,Wt)}," ",de.createElement("div",{className:M.divname},Wt))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(tn=Ie==null?void 0:Ie.program_attr)==null?void 0:tn.hack_sets})),((jr=(Vr=Ut==null?void 0:Ut.paperData)==null?void 0:Vr.exam)==null?void 0:jr.show_hack_description)&&de.createElement("div",null,de.createElement(se.Z,{className:M.content,value:((Yr=Ie==null?void 0:Ie.program_attr)==null?void 0:Yr.description)||"- -"}))),Ie.question_type===Te.c.Single&&de.createElement(de.Fragment,null,(mn=Ie.choices)==null?void 0:mn.map(function(Wt,Cr){return de.createElement(B.Z,{key:Cr},de.createElement(h.Z,{flex:"1"},de.createElement("div",{style:{display:"flex"}},de.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},ct[Cr]),de.createElement(se.Z,{value:Wt.choice_text||""}))))})),Ie.question_type===Te.c.Multiple&&de.createElement(de.Fragment,null,(rn=Ie.choices)==null?void 0:rn.map(function(Wt,Cr){return de.createElement(B.Z,{key:Cr},de.createElement(h.Z,{flex:"1"},de.createElement("div",{style:{display:"flex"}},de.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},ct[Cr]),de.createElement(se.Z,{value:Wt.choice_text||""}))))})),Ie.question_type===Te.c.Judge&&de.createElement("div",{className:M.flexRow},(Dn=Ie.choices)==null?void 0:Dn.map(function(Wt,Cr){return de.createElement(B.Z,{key:Cr},de.createElement(h.Z,{flex:"25px"},de.createElement("div",{style:{width:25,overflow:"hidden"}},de.createElement(E.ZP,{disabled:!0,style:{width:25,marginLeft:Cr===1&&10}}))),de.createElement(h.Z,{flex:"1",style:{marginLeft:Cr===1&&10}},Wt.choice_text))})),Ie.question_type===Te.c.Combine&&de.createElement(de.Fragment,null,(Qn=Ie.sub_questions)==null?void 0:Qn.map(function(Wt,Cr){return de.createElement("div",{style:{marginLeft:10}},de.createElement("div",{style:{display:"flex"},className:M.programTitle},de.createElement("span",{style:{flexShrink:0},className:"font18"},ke+1,".",Cr+1),de.createElement(se.Z,{value:Wt.name||(Wt==null?void 0:Wt.shixun_name)}),de.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Wt.score,"\u5206\uFF09")),ki(Wt,Cr,!0))})),Ei&&de.createElement("div",{style:{marginTop:10}},(Ie==null?void 0:Ie.question_type)<3&&(Ie==null?void 0:Ie.standard_answer_show)&&de.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",Ie==null?void 0:Ie.standard_answer_show),!!((ui=Ie==null?void 0:Ie.standard_answer)!=null&&ui.length)&&Ei&&(Ie==null?void 0:Ie.question_type)===3&&de.createElement("div",null,(Tn=Ie==null?void 0:Ie.standard_answer)==null?void 0:Tn.map((Wt,Cr)=>de.createElement("div",null,de.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Cr+1,"\uFF09:"),de.createElement("div",null,Wt.answer_text.map(function(Mr,Gr){return de.createElement(h.Z,{span:24,key:Gr},(Wt==null?void 0:Wt.model)===1?de.createElement(fe,{autoSize:!0,disabled:!0,value:Mr}):de.createElement(xe.Z,{value:Mr,disabled:!0}))}))))),!!((sn=Ie==null?void 0:Ie.standard_answer)!=null&&sn.length)&&Ei&&(Ie==null?void 0:Ie.question_type)===8&&de.createElement("div",null,(Qt=Ie==null?void 0:Ie.standard_answer)==null?void 0:Qt.map((Wt,Cr)=>de.createElement("div",null,de.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Cr+1,"\uFF09:"),de.createElement("div",null,de.createElement(fe,{autoSize:!0,disabled:!0,value:(Wt==null?void 0:Wt.answer_text)||""}))))),!!((Zt=Ie==null?void 0:Ie.answer_texts)!=null&&Zt.length)&&(Ie==null?void 0:Ie.question_type)===4&&de.createElement("div",null,de.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),de.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},de.createElement(se.Z,{value:(qt=Ie==null?void 0:Ie.answer_texts)==null?void 0:qt[0]}))),(Ie==null?void 0:Ie.question_type)===6&&de.createElement("div",null,de.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(Ie!=null&&Ie.answer_text)&&"\u6682\u65E0"),(Ie==null?void 0:Ie.answer_text)&&de.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},de.createElement(se.Z,{value:Ie==null?void 0:Ie.answer_text}))),(Ie==null?void 0:Ie.question_type)<=4&&((Ie==null?void 0:Ie.standard_answer_show)||((mr=Ie==null?void 0:Ie.standard_answer)==null?void 0:mr.length)>0)&&de.createElement(B.Z,{style:{marginTop:14}},de.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),de.createElement(se.Z,{className:M.renderHtml,value:(Ie==null?void 0:Ie.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Ee&&de.createElement(p.Z,null))},Pi=(0,pe.useCallback)(()=>{var Ie,ke;return de.createElement("div",null,de.createElement("div",{className:M.titleForExport},(ke=(Ie=Ut.paperData)==null?void 0:Ie.exam)==null?void 0:ke.name),de.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Le==null?void 0:Le.large_counts,"\u5927\u9898\u3011\u3010",Le==null?void 0:Le.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Le==null?void 0:Le.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Le==null?void 0:Le.time)>-1?`${Le==null?void 0:Le.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(Le!=null&&Le.exercise_description)&&de.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},de.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),Le==null?void 0:Le.exercise_description),de.createElement(te.default,{style:{margin:"20px auto"},className:M.table,columns:Ir,dataSource:[...zt||[]],bordered:!0,pagination:!1}))},[Ut.paperData]),nt=()=>De(void 0,null,function*(){const Ie=yield(0,X.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:St==null?void 0:St.id}});(Ie==null?void 0:Ie.status)===0&&ue.history.replace("/paperlibrary")});return de.createElement("section",{className:M.bg},de.createElement(j.Z,{spinning:or["paperlibrary/getPaperData"]},de.createElement(B.Z,{className:"pt20",justify:"space-between"},de.createElement(S.Z,{separator:">"},de.createElement(S.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),de.createElement(S.Z.Item,{href:`/paperlibrary?defaultActiveKey=${ft}`},ft==="1"?"\u516C\u5F00":ft==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),de.createElement(S.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),de.createElement("div",{className:M.btnWrapper},!qr&&de.createElement(F.ZP,{onClick:ci,className:M.btn,icon:de.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),de.createElement(F.ZP,{onClick:()=>ue.history.push(`/paperlibrary/add/${Pe.current}?type=2${qr?"&isIntelligentAssistant=true":""}`),className:M.btn,icon:de.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),de.createElement(F.ZP,{loading:dr,onClick:gi,className:M.btn,icon:de.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!qr&&de.createElement(P.Z,{menu:{items:[{key:"1",label:de.createElement("div",{onClick:Ji},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:de.createElement("div",{onClick:Ha},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},de.createElement(F.ZP,{type:"primary",icon:de.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),qr&&de.createElement(je.Z,{onClick:nt,type:"primary",icon:de.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),de.createElement("div",{className:`${M.wrap} pt20 pb20`,ref:Ui,id:"paperDomRef"},!(($e=(ne=Ut.paperData)==null?void 0:ne.questionList)!=null&&$e.length)&&Pi(),(ve=(we=Ut.paperData)==null?void 0:we.questionList)==null?void 0:ve.map((Ie,ke)=>{var Ee;return de.createElement(de.Fragment,null,(Ee=Ie.questions)==null?void 0:Ee.map(($t,Nt)=>{const Er=Math.floor(Nt/10);return Nt%10===0?de.createElement("div",{className:"abc",key:`group-${Er}`},ke===0&&Nt===0&&Pi(),Nt===0&&de.createElement("div",null,de.createElement("span",{className:"font16 c-light-primary"},Ie.number,"\u3001",Ie.name),de.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",Ie.questions_count,"\u9898\uFF0C",(Ie==null?void 0:Ie.question_type)===7?`\u5305\u542B${Ie==null?void 0:Ie.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",Ie.questions_score,"\u5206\uFF09")),Ie.questions.slice(Nt,Nt+10).map((sr,Kr)=>de.createElement("div",{key:sr.id},ki(sr,Nt+Kr)))):null}))}))),de.createElement(Y.Z,null),de.createElement(R.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:pr,onCancel:()=>{if(un){Ne.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}kr(!1)},okButtonProps:{loading:un},onOk:()=>De(void 0,null,function*(){var Ie,ke;if(_n(!0),Dr==""){_n(!1),Ne.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Dr=="pdf"?yield(0,Q.F)(Ui.current.children,(ke=(Ie=Ut.paperData)==null?void 0:Ie.exam)==null?void 0:ke.name):Dr=="word"&&(0,J.ON)({id:Pe.current,middle_export:1,export_type:Ei?1:0});_n(!1),kr(!1)})},de.createElement("div",{className:M.export_type_modal},de.createElement("div",{className:M.export_type_modal_con},de.createElement("div",{className:M.type_item},de.createElement("div",{className:`${M.img_warp} ${Dr=="pdf"?M.img_warp_active:""}`,onClick:()=>vr("pdf")},de.createElement("img",{src:w(45614),width:70,height:70})),"pdf\u683C\u5F0F")))))};var at=(0,ue.connect)(({paperlibrary:st,user:It,loading:Ut,globalSetting:Kt,newExercisePaper:hr})=>({paperlibrary:st,user:It,globalSetting:Kt,loading:Ut.effects,newExercisePaper:hr}))(dt)},59014:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return je}});var pe=w(59301),ue=w(76560),U=w(92832),Ne=w(8591),te=w(43418),Z=w(5871),B=w(61621),h=w(1710),E=w(3113),p=w(1198),j=w(17270),S={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},F=w(49661),P=w(37552),R=w(67135),M=w(64885),Y=w(89392),Q=w(6681),ce=w(28086),W=w(59301),J=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,se=(X,de)=>{var k={};for(var rt in X)V.call(X,rt)&&de.indexOf(rt)<0&&(k[rt]=X[rt]);if(X!=null&&J)for(var rt of J(X))de.indexOf(rt)<0&&K.call(X,rt)&&(k[rt]=X[rt]);return k},he=(X,de,k)=>new Promise((rt,Oe)=>{var be=De=>{try{ge(k.next(De))}catch(fe){Oe(fe)}},He=De=>{try{ge(k.throw(De))}catch(fe){Oe(fe)}},ge=De=>De.done?rt(De.value):Promise.resolve(De.value).then(be,He);ge((k=k.apply(X,de)).next())});const Te=U.default.Search,xe=X=>{var de=X,{paperlibrary:k,globalSetting:rt,loading:Oe,dispatch:be}=de,He=se(de,["paperlibrary","globalSetting","loading","dispatch"]),ge,De,fe,Se;const[ct,dt]=(0,pe.useState)(""),[at,st]=(0,pe.useState)([]),[It,Ut]=(0,pe.useState)([]),[Kt,hr]=(0,pe.useState)(!1),[or,Sr]=(0,pe.useState)(!0),[ur,G]=(0,pe.useState)(!0),[wt,_]=(0,pe.useState)(!0),[f,u]=(0,pe.useState)(!1),[x,ee]=(0,pe.useState)(!1),Ce=(fe=(De=(ge=k.actionTabs)==null?void 0:ge.params)==null?void 0:De.data)==null?void 0:fe.is_random,[H,ne]=(0,pe.useState)(!1),[$e,we]=(0,pe.useState)({}),[ve,qe]=(0,pe.useState)(!1),[St,me]=(0,pe.useState)(!1),[ft,lt]=(0,pe.useState)([]);(0,pe.useEffect)(()=>{var pr;if(k.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:kr=[],type:Dr}=((pr=k.actionTabs)==null?void 0:pr.params)||{},vr=kr.filter(dr=>![100,120,150].includes(dr.total_score));vr.length?(me(Dr),lt(vr)):qe(!0)}},[(Se=k==null?void 0:k.actionTabs)==null?void 0:Se.key]),(0,pe.useEffect)(()=>{Le()},[]);const Pe=()=>{Ut([]),dt(""),Le(!0),qe(!1),me(!1),be({type:"paperlibrary/setActionTabs",payload:{}})},Le=pr=>he(void 0,null,function*(){G(!0);const kr=yield be({type:"paperlibrary/getCourseList",payload:{search:pr?"":ct}});kr&&(st((kr==null?void 0:kr.courses)||[]),Sr(!0),u(!1)),G(!1),_(!1)}),pt=pr=>{const kr=parseInt(pr);return(0,Y.isNaN)(kr)?"":kr},zt=()=>he(void 0,null,function*(){var pr,kr,Dr,vr,dr,$r,un;if(!It.length){Ne.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),hr(!0);return}const _n=yield be({type:"paperlibrary/postExistCourse",payload:{course_id:Ce?It==null?void 0:It[0]:It,examination_bank_ids:((kr=(pr=k.actionTabs)==null?void 0:pr.params)==null?void 0:kr.examination_bank_ids)||((vr=(Dr=k.actionTabs)==null?void 0:Dr.params)==null?void 0:vr.id)}}),qr=()=>he(void 0,null,function*(){var Bn,ti,Ir,qn,Ti,ci;ee(!0);let Ui=yield(0,R.Tr)({id:(ti=(Bn=k.actionTabs)==null?void 0:Bn.params)==null?void 0:ti.id,course_id:Ce?It==null?void 0:It[0]:It,type:(qn=(Ir=k.actionTabs)==null?void 0:Ir.params)!=null&&qn.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(ci=(Ti=k.actionTabs)==null?void 0:Ti.params)==null?void 0:ci.examination_bank_ids});ee(!1),(Ui==null?void 0:Ui.student_count)===0?yield Ht([]):we(Ui),yield new Promise(Ei=>setTimeout(()=>Ei(),1e3))});if(_n.status==0&&((dr=_n.data)==null?void 0:dr.count)>0){te.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:W.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(un=($r=_n.data)==null?void 0:$r.list)==null?void 0:un.map((Bn,ti)=>{var Ir;return W.createElement(W.Fragment,null,W.createElement("span",{style:{color:"#FA6400"}},"\u300A",Bn==null?void 0:Bn.name,"\u300B"),ti!==((Ir=_n.data)==null?void 0:Ir.count)-1&&W.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>he(void 0,null,function*(){yield qr()})}),yield new Promise(Bn=>setTimeout(()=>Bn(),1e3));return}yield qr()}),Ht=pr=>he(void 0,null,function*(){var kr,Dr,vr,dr,$r,un;if(!Ce){ne(!0);const ti=yield be({type:(Dr=(kr=k.actionTabs)==null?void 0:kr.params)!=null&&Dr.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:Ce?It==null?void 0:It[0]:It,id:(dr=(vr=k.actionTabs)==null?void 0:vr.params)==null?void 0:dr.id,examination_bank_ids:(un=($r=k.actionTabs)==null?void 0:$r.params)==null?void 0:un.examination_bank_ids,shixuns_info:pr.map(Ir=>({shixun_id:Ir.id,is_copy:Ir.is_copy,is_use:Ir.is_use,course_id:Ir.course_id}))}});ne(!1),ti&&ti.status===0&&(qe(!1),be({type:"paperlibrary/setActionTabs",payload:{}}),Ut([]),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=`${ti.data[0].first_category_url}`},content:W.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}ne(!0),setTimeout(()=>{ne(!1)},500);const _n=at.find(ti=>ti.course_id===(It==null?void 0:It[0]));let qr=1,Bn=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:W.createElement("div",{className:S.modalColumn},W.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},W.createElement("img",{style:{marginRight:5},src:p.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"),W.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",_n==null?void 0:_n.course_name),W.createElement("div",{style:{paddingLeft:9},className:S.modalRow},W.createElement("sup",{className:S.sup},"*"),W.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),W.createElement(Z.Z,{parser:pt,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:qr,onChange:ti=>{qr=ti;const Ir=document.getElementById("model_error");qr<1||qr>200?Ir.style.display="block":Ir.style.display="none"}})),W.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-200\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Pe,onOk:()=>he(void 0,null,function*(){var ti,Ir;if(qr<1||qr>200){const Ti=document.getElementById("model_error");return Ti.style.display="block",Promise.reject()}Bn.update({cancelButtonProps:{disabled:!0}});const qn=yield be({type:"paperlibrary/sendToClass",payload:{course_id:It==null?void 0:It[0],id:(Ir=(ti=k.actionTabs)==null?void 0:ti.params)==null?void 0:Ir.id,num:qr,shixuns_info:pr.map(Ti=>({shixun_id:Ti.id,is_copy:Ti.is_copy,is_use:Ti.is_use}))}});Bn.update({cancelButtonProps:{disabled:!1}}),qn&&qn.status===0&&(window.open("/randompaper/sendrecord","_blank").focus(),te.default.destroyAll(),te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:W.createElement("div",{className:S.modalColumn},W.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},W.createElement("img",{style:{marginRight:5},src:j.Z}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{Pe()},onOk:()=>{Pe(),setTimeout(()=>{var ci,Ui;const Ei=(Ui=(ci=qn==null?void 0:qn.first_category_url)==null?void 0:ci.split("/"))==null?void 0:Ui[2];(0,F.xg)(`/classrooms/${Ei}/exercise`)},1e3)}}))})})}),er=()=>he(void 0,null,function*(){u(!0),yield Le()}),Pr=[{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 W.createElement("div",null,W.createElement(te.default,{centered:!0,keyboard:!1,closable:!1,open:ve,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Oe["paperlibrary/sendToClass"]||x||!!Oe["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:zt,destroyOnClose:!0,onCancel:Pe},W.createElement("div",{className:S.wrap},W.createElement("div",{className:"mb10"},W.createElement(Te,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:ct,className:S.search,onChange:pr=>{dt(pr.target.value),pr.target.value||Le(!0)},onSearch:pr=>{dt(pr),Le(),Ut([])}})),W.createElement(B.Z,{loading:wt},at.length?W.createElement("div",{className:S.radioWrap},W.createElement(h.default,{bordered:!1,scroll:(at==null?void 0:at.length)<=7?{}:{y:350},loading:ur,rowKey:"course_id",pagination:!1,dataSource:at,columns:Pr,onRow:pr=>({onClick:kr=>{if(Ce)Ut([pr==null?void 0:pr.course_id]);else{if(!Ce&&!It.includes(pr.course_id)&&It.length>0)return;It!=null&&It.includes(pr==null?void 0:pr.course_id)?Ut(It==null?void 0:It.filter(Dr=>Dr!==(pr==null?void 0:pr.course_id))):Ut([...It,pr==null?void 0:pr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:It,onChange:pr=>{Ut(pr),hr(!1)}}})):!ct&&!ur&&W.createElement(P.Z,{createState:or,refreshLoading:f,onRefresh:er,onCreate:()=>{Sr(!1),(0,F.xg)("/classrooms/new")}})),Kt&&W.createElement("div",{className:S.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),W.createElement("div",{className:S.bottom,style:{display:"flex",alignItems:"center"}},W.createElement("div",{style:{flex:1}},W.createElement("div",{className:S.title},W.createElement("img",{src:p.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")),W.createElement("div",null,W.createElement(E.ZP,{onClick:Pe,className:S.no,style:{marginRight:20}},"\u53D6\u6D88"),W.createElement(M.Z,{onClick:zt,className:S.yes},"\u786E\u8BA4"))))),W.createElement(Q.Z,{resdata:$e,type:"exercise",okloading:H,oktext:($e==null?void 0:$e.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:pr=>{Ht(pr)}}),W.createElement(ce.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:St,dataSource:ft,onSuccess:()=>{me(!1),qe(!0)},onClose:Pe}))};var je=(0,ue.connect)(({paperlibrary:X,loading:de,globalSetting:k})=>({paperlibrary:X,globalSetting:k,loading:de.effects}))(xe)},16837:function(xn,Jt,w){"use strict";w.d(Jt,{c:function(){return ue}});var pe=(U=>(U.FirstPage="firstPage",U.PrevPage="prevPage",U.NextPage="nextPage",U))(pe||{}),ue=(U=>(U[U.Single=0]="Single",U[U.Multiple=1]="Multiple",U[U.Judge=2]="Judge",U[U.Fill=3]="Fill",U[U.Subjective=4]="Subjective",U[U.Shixun=5]="Shixun",U[U.Program=6]="Program",U[U.Combine=7]="Combine",U))(ue||{})},30975:function(xn,Jt,w){"use strict";w.d(Jt,{BA:function(){return wt},D9:function(){return fe},Hp:function(){return K},IM:function(){return ct},Iy:function(){return se},KM:function(){return G},KU:function(){return It},MJ:function(){return he},Ne:function(){return Se},ON:function(){return Kt},Uj:function(){return Sr},VY:function(){return st},YO:function(){return or},YX:function(){return hr},Zn:function(){return R},_g:function(){return W},_k:function(){return ge},c6:function(){return de},cr:function(){return M},eV:function(){return k},fi:function(){return Y},gh:function(){return je},hS:function(){return dt},iA:function(){return Q},j6:function(){return J},je:function(){return He},jj:function(){return V},kS:function(){return Ut},o6:function(){return X},pO:function(){return ur},rQ:function(){return Oe},sA:function(){return xe},xm:function(){return De},xo:function(){return at},y8:function(){return be},yd:function(){return ce}});var pe=w(64948),ue=w(76560),U=w(49661),Ne=w(8591),te=w(90524),Z=Object.defineProperty,B=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,p=(_,f,u)=>f in _?Z(_,f,{enumerable:!0,configurable:!0,writable:!0,value:u}):_[f]=u,j=(_,f)=>{for(var u in f||(f={}))h.call(f,u)&&p(_,u,f[u]);if(B)for(var u of B(f))E.call(f,u)&&p(_,u,f[u]);return _},S=(_,f,u)=>new Promise((x,ee)=>{var Ce=$e=>{try{ne(u.next($e))}catch(we){ee(we)}},H=$e=>{try{ne(u.throw($e))}catch(we){ee(we)}},ne=$e=>$e.done?x($e.value):Promise.resolve($e.value).then(Ce,H);ne((u=u.apply(_,f)).next())});const F=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},P=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},R=_=>S(void 0,null,function*(){F(),(yield(0,pe.YR)(j({},_))).status===0&&(yield(0,U.QH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/courses/${_.coursesId}/export_couser_info.json`,query:_}))),P()}),M=_=>S(void 0,null,function*(){const f=yield(0,pe.yS)(j({},_));if(f.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_member_act_score`);else{if(f.status===-2)return f;f.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_member_act_score`))}}),Y=_=>S(void 0,null,function*(){const f=yield(0,pe.W0)(j({},_));if(f.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_score`);else{if(f.status===-4)return f;f.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_score`))}}),Q=_=>S(void 0,null,function*(){const f=yield(0,pe.Nl)(j({},_));if(f.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_exercise_and_other`);else{if(f.status===-4)return f;f.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_exercise_and_other`))}}),ce=_=>S(void 0,null,function*(){const f=yield(0,pe.IU)(j({},_));if(f.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/export_star_user`);else{if(f.status===-4)return f;f.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/export_star_user`))}}),W=_=>S(void 0,null,function*(){const f=yield(0,pe.td)(j({},_));if(f.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_exercise_and_other`);else{if(f.status===-2)return f;if(f.status===-3)(0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_exercise_and_other`);else if(f.status===-4)return f}}),J=_=>S(void 0,null,function*(){const f=yield(0,pe.QX)(j({},_));if(f.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_homework`);else{if(f.status===-4)return f;f.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_homework`))}}),V=(_,f)=>S(void 0,null,function*(){const u=yield(0,pe.o_)(j({},_));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"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/${f}`)):u.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/${f}`))}),K=(_,f)=>S(void 0,null,function*(){const u=yield(0,pe.ZL)(j({},_));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"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/${f}`)):u.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/${f}`))}),se=(_,f)=>S(void 0,null,function*(){const u=yield(0,pe.aP)(j({},_));u.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/${f}`)):u.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/${f}`))}),he=(_,f)=>S(void 0,null,function*(){const u=yield(0,pe.vV)(j({},_));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"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/${f}`)):u.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/${f}`))}),Te=_=>S(void 0,null,function*(){F(),(yield exportCourseWorkListAppendix(j({},_))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${_.categoryId}/works_list.zip`,query:_}))),P()}),xe=_=>S(void 0,null,function*(){F(),yield(0,U.QH)("",te.Z.API_SERVER+`/api/polls/${_.categoryId}/commit_result.xlsx`),P()}),je=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/courses/${_.coursesId}/attendances/export_xlsx_data.xlsx`,query:_}))}),X=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/courses/${_.coursesId}/video_study_statics.xlsx`,query:_}))}),de=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/courses/${_.coursesId}/export_video_study.xlsx`,query:_}))}),k=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/courses/${_.coursesId}/export_course_students_info.xlsx`,query:_}))}),rt=_=>S(void 0,null,function*(){yield downLoadFile("",setUrlQuery({url:ENV.API_SERVER+"/api/school_manages/students.xlsx",query:_}))}),Oe=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+"/api/item_banks/export.xlsx",query:_}))}),be=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:_}))}),He=_=>S(void 0,null,function*(){const f=yield(0,pe.Uy)(j({},_));f.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${_.coursesId}/exportlist/exercise_score,export_exercise_users`)):f.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${_.coursesId}/exportlist/exercise_score,export_exercise_users`))}),ge=_=>S(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/export_records/${_.id}.xlsx`,query:_}))}),De=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:_}))}),fe=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/courses/${_==null?void 0:_.coursesId}/${_.menuKey}_statistic.xlsx?${_.checkedList.map(f=>`course_group_id[]=${f}`).join("&")}`,query:_}))}),Se=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/ec_years/${_==null?void 0:_.ec_year_id}/ec_training_objectives.xlsx`,query:_}))}),ct=_=>S(void 0,null,function*(){yield(0,U.FH)(_==null?void 0:_.name,(0,U.NY)({url:te.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:_}))}),dt=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/ec_years/${_==null?void 0:_.ec_year_id}/ec_courses.xlsx`,query:_}))}),at=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/ec_years/${_==null?void 0:_.ec_year_id}/ec_graduation_requirements.xlsx`,query:_}))}),st=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:_}))}),It=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/exercises/${_.categoryId}/rank_list.xlsx`,query:_}))}),Ut=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:_}))}),Kt=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/examination_banks/${_.id}.json`,query:_}))}),hr=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/exercises/${_.categoryId}.json`,query:_}))}),or=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/polls/${_==null?void 0:_.id}/commit_result.json`,query:_}))}),Sr=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+"/api/paths/get_task_pass.json",query:_}))}),ur=(_,f)=>S(void 0,null,function*(){yield(0,U.FH)(f||"",(0,U.NY)({url:te.Z.API_SERVER+`/api/exercises/${_==null?void 0:_.exercise_id}/consult_exercise.json`,query:_}))}),G=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/competitions/${_==null?void 0:_.identifier}/competition_commit_records/member_works.xlsx`,query:_}))}),wt=_=>S(void 0,null,function*(){yield(0,U.FH)("",(0,U.NY)({url:te.Z.API_SERVER+`/api/courses/${_==null?void 0:_.coursesId}/group_homeworks/import_group_template.xlsx`,query:_}))})},50371:function(xn,Jt){"use strict";function w(){const pe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ue=1;ue<arguments.length;ue++){const U=ue<0||arguments.length<=ue?void 0:arguments[ue];U&&Object.keys(U).forEach(Ne=>{const te=U[Ne];te!==void 0&&(pe[Ne]=te)})}return pe}Jt.Z=w},13845:function(xn,Jt,w){"use strict";w.d(Jt,{F:function(){return pe},Z:function(){return ue}});function pe(U){return U!=null&&U===U.window}function ue(U,Ne){var te,Z;if(typeof window=="undefined")return 0;const B=Ne?"scrollTop":"scrollLeft";let h=0;return pe(U)?h=U[Ne?"pageYOffset":"pageXOffset"]:U instanceof Document?h=U.documentElement[B]:(U instanceof HTMLElement||U)&&(h=U[B]),U&&!pe(U)&&typeof h!="number"&&(h=(Z=((te=U.ownerDocument)!==null&&te!==void 0?te:U).documentElement)===null||Z===void 0?void 0:Z[B]),h}},56762:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return ue}});var pe=w(59301);function ue(){const[,U]=pe.useReducer(Ne=>Ne+1,0);return U}},68031:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return Ne}});var pe=w(16089);function ue(te,Z,B,h){const E=B-Z;return te/=h/2,te<1?E/2*te*te*te+Z:E/2*((te-=2)*te*te+2)+Z}var U=w(13845);function Ne(te){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:B=()=>window,callback:h,duration:E=450}=Z,p=B(),j=(0,U.Z)(p,!0),S=Date.now(),F=()=>{const R=Date.now()-S,M=ue(R>E?E:R,j,te,E);(0,U.F)(p)?p.scrollTo(window.pageXOffset,M):p instanceof Document||p.constructor.name==="HTMLDocument"?p.documentElement.scrollTop=M:p.scrollTop=M,R<E?(0,pe.Z)(F):typeof h=="function"&&h()};(0,pe.Z)(F)}},19080:function(xn,Jt,w){"use strict";w.d(Jt,{F:function(){return te},Z:function(){return Ne}});var pe=w(92310),ue=w.n(pe);const U=null;function Ne(Z,B,h){return ue()({[`${Z}-status-success`]:B==="success",[`${Z}-status-warning`]:B==="warning",[`${Z}-status-error`]:B==="error",[`${Z}-status-validating`]:B==="validating",[`${Z}-has-feedback`]:h})}const te=(Z,B)=>B||Z},66104:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return rt}});var pe=w(92310),ue=w.n(pe),U=w(11592),Ne=w(26112),te=w(59301),Z=w(92343),B=w(36355),h=w(84105),E=w(91857);const p=Oe=>{let{children:be}=Oe;const{getPrefixCls:He}=te.useContext(B.E_),ge=He("breadcrumb");return te.createElement("li",{className:`${ge}-separator`,"aria-hidden":"true"},be===""?be:be||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var j=p,S=function(Oe,be){var He={};for(var ge in Oe)Object.prototype.hasOwnProperty.call(Oe,ge)&&be.indexOf(ge)<0&&(He[ge]=Oe[ge]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ge=Object.getOwnPropertySymbols(Oe);De<ge.length;De++)be.indexOf(ge[De])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ge[De])&&(He[ge[De]]=Oe[ge[De]]);return He};function F(Oe,be){if(Oe.title===void 0||Oe.title===null)return null;const He=Object.keys(be).join("|");return typeof Oe.title=="object"?Oe.title:String(Oe.title).replace(new RegExp(`:(${He})`,"g"),(ge,De)=>be[De]||ge)}function P(Oe,be,He,ge){if(He==null)return null;const{className:De,onClick:fe}=be,Se=S(be,["className","onClick"]),ct=Object.assign(Object.assign({},(0,Ne.Z)(Se,{data:!0,aria:!0})),{onClick:fe});return ge!==void 0?te.createElement("a",Object.assign({},ct,{className:ue()(`${Oe}-link`,De),href:ge}),He):te.createElement("span",Object.assign({},ct,{className:ue()(`${Oe}-link`,De)}),He)}function R(Oe,be){return(ge,De,fe,Se,ct)=>{if(be)return be(ge,De,fe,Se);const dt=F(ge,De);return P(Oe,ge,dt,ct)}}var M=function(Oe,be){var He={};for(var ge in Oe)Object.prototype.hasOwnProperty.call(Oe,ge)&&be.indexOf(ge)<0&&(He[ge]=Oe[ge]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ge=Object.getOwnPropertySymbols(Oe);De<ge.length;De++)be.indexOf(ge[De])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ge[De])&&(He[ge[De]]=Oe[ge[De]]);return He};const Y=Oe=>{const{prefixCls:be,separator:He="/",children:ge,menu:De,overlay:fe,dropdownProps:Se,href:ct}=Oe,at=(st=>{if(De||fe){const It=Object.assign({},Se);if(De){const Ut=De||{},{items:Kt}=Ut,hr=M(Ut,["items"]);It.menu=Object.assign(Object.assign({},hr),{items:Kt==null?void 0:Kt.map((or,Sr)=>{var{key:ur,title:G,label:wt,path:_}=or,f=M(or,["key","title","label","path"]);let u=wt!=null?wt:G;return _&&(u=te.createElement("a",{href:`${ct}${_}`},u)),Object.assign(Object.assign({},f),{key:ur!=null?ur:Sr,label:u})})})}else fe&&(It.overlay=fe);return te.createElement(E.Z,Object.assign({placement:"bottom"},It),te.createElement("span",{className:`${be}-overlay-link`},st,te.createElement(h.Z,null)))}return st})(ge);return at!=null?te.createElement(te.Fragment,null,te.createElement("li",null,at),He&&te.createElement(j,null,He)):null},Q=Oe=>{const{prefixCls:be,children:He,href:ge}=Oe,De=M(Oe,["prefixCls","children","href"]),{getPrefixCls:fe}=te.useContext(B.E_),Se=fe("breadcrumb",be);return te.createElement(Y,Object.assign({},De,{prefixCls:Se}),P(Se,De,He,ge))};Q.__ANT_BREADCRUMB_ITEM=!0;var ce=Q,W=w(17313),J=w(83116),V=w(37613);const K=Oe=>{const{componentCls:be,iconCls:He}=Oe;return{[be]:Object.assign(Object.assign({},(0,W.Wf)(Oe)),{color:Oe.itemColor,fontSize:Oe.fontSize,[He]:{fontSize:Oe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Oe.linkColor,transition:`color ${Oe.motionDurationMid}`,padding:`0 ${Oe.paddingXXS}px`,borderRadius:Oe.borderRadiusSM,height:Oe.lineHeight*Oe.fontSize,display:"inline-block",marginInline:-Oe.marginXXS,"&:hover":{color:Oe.linkHoverColor,backgroundColor:Oe.colorBgTextHover}},(0,W.Qy)(Oe)),"li:last-child":{color:Oe.lastItemColor},[`${be}-separator`]:{marginInline:Oe.separatorMargin,color:Oe.separatorColor},[`${be}-link`]:{[`
> ${He} + span,
> ${He} + a
`]:{marginInlineStart:Oe.marginXXS}},[`${be}-overlay-link`]:{borderRadius:Oe.borderRadiusSM,height:Oe.lineHeight*Oe.fontSize,display:"inline-block",padding:`0 ${Oe.paddingXXS}px`,marginInline:-Oe.marginXXS,[`> ${He}`]:{marginInlineStart:Oe.marginXXS,fontSize:Oe.fontSizeIcon},"&:hover":{color:Oe.linkHoverColor,backgroundColor:Oe.colorBgTextHover,a:{color:Oe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Oe.componentCls}-rtl`]:{direction:"rtl"}})}};var se=(0,J.Z)("Breadcrumb",Oe=>{const be=(0,V.TS)(Oe,{});return[K(be)]},Oe=>({itemColor:Oe.colorTextDescription,lastItemColor:Oe.colorText,iconFontSize:Oe.fontSize,linkColor:Oe.colorTextDescription,linkHoverColor:Oe.colorText,separatorColor:Oe.colorTextDescription,separatorMargin:Oe.marginXS})),he=function(Oe,be){var He={};for(var ge in Oe)Object.prototype.hasOwnProperty.call(Oe,ge)&&be.indexOf(ge)<0&&(He[ge]=Oe[ge]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ge=Object.getOwnPropertySymbols(Oe);De<ge.length;De++)be.indexOf(ge[De])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ge[De])&&(He[ge[De]]=Oe[ge[De]]);return He};function Te(Oe){const{breadcrumbName:be,children:He}=Oe,ge=he(Oe,["breadcrumbName","children"]),De=Object.assign({title:be},ge);return He&&(De.menu={items:He.map(fe=>{var{breadcrumbName:Se}=fe,ct=he(fe,["breadcrumbName"]);return Object.assign(Object.assign({},ct),{title:Se})})}),De}function xe(Oe,be){return(0,te.useMemo)(()=>Oe||(be?be.map(Te):null),[Oe,be])}var je=function(Oe,be){var He={};for(var ge in Oe)Object.prototype.hasOwnProperty.call(Oe,ge)&&be.indexOf(ge)<0&&(He[ge]=Oe[ge]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ge=Object.getOwnPropertySymbols(Oe);De<ge.length;De++)be.indexOf(ge[De])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ge[De])&&(He[ge[De]]=Oe[ge[De]]);return He};const X=(Oe,be)=>{if(be===void 0)return be;let He=(be||"").replace(/^\//,"");return Object.keys(Oe).forEach(ge=>{He=He.replace(`:${ge}`,Oe[ge])}),He},de=Oe=>{const{prefixCls:be,separator:He="/",style:ge,className:De,rootClassName:fe,routes:Se,items:ct,children:dt,itemRender:at,params:st={}}=Oe,It=je(Oe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ut,direction:Kt,breadcrumb:hr}=te.useContext(B.E_);let or;const Sr=Ut("breadcrumb",be),[ur,G]=se(Sr),wt=xe(ct,Se),_=R(Sr,at);if(wt&&wt.length>0){const x=[],ee=ct||Se;or=wt.map((Ce,H)=>{const{path:ne,key:$e,type:we,menu:ve,overlay:qe,onClick:St,className:me,separator:ft,dropdownProps:lt}=Ce,Pe=X(st,ne);Pe!==void 0&&x.push(Pe);const Le=$e!=null?$e:H;if(we==="separator")return te.createElement(j,{key:Le},ft);const pt={},zt=H===wt.length-1;ve?pt.menu=ve:qe&&(pt.overlay=qe);let{href:Ht}=Ce;return x.length&&Pe!==void 0&&(Ht=`#/${x.join("/")}`),te.createElement(Y,Object.assign({key:Le},pt,(0,Ne.Z)(Ce,{data:!0,aria:!0}),{className:me,dropdownProps:lt,href:Ht,separator:zt?"":He,onClick:St,prefixCls:Sr}),_(Ce,st,ee,x,Ht))})}else if(dt){const x=(0,U.Z)(dt).length;or=(0,U.Z)(dt).map((ee,Ce)=>{if(!ee)return ee;const H=Ce===x-1;return(0,Z.Tm)(ee,{separator:H?"":He,key:Ce})})}const f=ue()(Sr,hr==null?void 0:hr.className,{[`${Sr}-rtl`]:Kt==="rtl"},De,fe,G),u=Object.assign(Object.assign({},hr==null?void 0:hr.style),ge);return ur(te.createElement("nav",Object.assign({className:f,style:u},It),te.createElement("ol",null,or)))};de.Item=ce,de.Separator=j;var k=de,rt=k},24905:function(xn,Jt,w){"use strict";w.d(Jt,{default:function(){return se}});var pe=w(92310),ue=w.n(pe),U=w(5630),Ne=w(59301),te=w(36355),Z=w(1684),B=w(32441),E=Ne.createContext(null),p=w(98447),j=w(14088),S=w(4572),F=function(he,Te){var xe={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Te.indexOf(je)<0&&(xe[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,je=Object.getOwnPropertySymbols(he);X<je.length;X++)Te.indexOf(je[X])<0&&Object.prototype.propertyIsEnumerable.call(he,je[X])&&(xe[je[X]]=he[je[X]]);return xe};const P=(he,Te)=>{var xe;const{prefixCls:je,className:X,rootClassName:de,children:k,indeterminate:rt=!1,style:Oe,onMouseEnter:be,onMouseLeave:He,skipGroup:ge=!1,disabled:De}=he,fe=F(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Se,direction:ct,checkbox:dt}=Ne.useContext(te.E_),at=Ne.useContext(E),{isFormItemInput:st}=Ne.useContext(B.aM),It=Ne.useContext(Z.Z),Ut=(xe=(at==null?void 0:at.disabled)||De)!==null&&xe!==void 0?xe:It,Kt=Ne.useRef(fe.value);Ne.useEffect(()=>{at==null||at.registerValue(fe.value)},[]),Ne.useEffect(()=>{if(!ge)return fe.value!==Kt.current&&(at==null||at.cancelValue(Kt.current),at==null||at.registerValue(fe.value),Kt.current=fe.value),()=>at==null?void 0:at.cancelValue(fe.value)},[fe.value]);const hr=Se("checkbox",je),[or,Sr]=(0,p.ZP)(hr),ur=Object.assign({},fe);at&&!ge&&(ur.onChange=function(){fe.onChange&&fe.onChange.apply(fe,arguments),at.toggleOption&&at.toggleOption({label:k,value:fe.value})},ur.name=at.name,ur.checked=at.value.includes(fe.value));const G=ue()(`${hr}-wrapper`,{[`${hr}-rtl`]:ct==="rtl",[`${hr}-wrapper-checked`]:ur.checked,[`${hr}-wrapper-disabled`]:Ut,[`${hr}-wrapper-in-form-item`]:st},dt==null?void 0:dt.className,X,de,Sr),wt=ue()({[`${hr}-indeterminate`]:rt},S.A,Sr),_=rt?"mixed":void 0;return or(Ne.createElement(j.Z,{component:"Checkbox",disabled:Ut},Ne.createElement("label",{className:G,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Oe),onMouseEnter:be,onMouseLeave:He},Ne.createElement(U.Z,Object.assign({"aria-checked":_},ur,{prefixCls:hr,className:wt,disabled:Ut,ref:Te})),k!==void 0&&Ne.createElement("span",null,k))))};var M=Ne.forwardRef(P),Y=w(3300),Q=w(2738),ce=function(he,Te){var xe={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Te.indexOf(je)<0&&(xe[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,je=Object.getOwnPropertySymbols(he);X<je.length;X++)Te.indexOf(je[X])<0&&Object.prototype.propertyIsEnumerable.call(he,je[X])&&(xe[je[X]]=he[je[X]]);return xe};const W=(he,Te)=>{const{defaultValue:xe,children:je,options:X=[],prefixCls:de,className:k,rootClassName:rt,style:Oe,onChange:be}=he,He=ce(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ge,direction:De}=Ne.useContext(te.E_),[fe,Se]=Ne.useState(He.value||xe||[]),[ct,dt]=Ne.useState([]);Ne.useEffect(()=>{"value"in He&&Se(He.value||[])},[He.value]);const at=Ne.useMemo(()=>X.map(f=>typeof f=="string"||typeof f=="number"?{label:f,value:f}:f),[X]),st=f=>{dt(u=>u.filter(x=>x!==f))},It=f=>{dt(u=>[].concat((0,Y.Z)(u),[f]))},Ut=f=>{const u=fe.indexOf(f.value),x=(0,Y.Z)(fe);u===-1?x.push(f.value):x.splice(u,1),"value"in He||Se(x),be==null||be(x.filter(ee=>ct.includes(ee)).sort((ee,Ce)=>{const H=at.findIndex($e=>$e.value===ee),ne=at.findIndex($e=>$e.value===Ce);return H-ne}))},Kt=ge("checkbox",de),hr=`${Kt}-group`,[or,Sr]=(0,p.ZP)(Kt),ur=(0,Q.Z)(He,["value","disabled"]),G=X.length?at.map(f=>Ne.createElement(M,{prefixCls:Kt,key:f.value.toString(),disabled:"disabled"in f?f.disabled:He.disabled,value:f.value,checked:fe.includes(f.value),onChange:f.onChange,className:`${hr}-item`,style:f.style,title:f.title},f.label)):je,wt={toggleOption:Ut,value:fe,disabled:He.disabled,name:He.name,registerValue:It,cancelValue:st},_=ue()(hr,{[`${hr}-rtl`]:De==="rtl"},k,rt,Sr);return or(Ne.createElement("div",Object.assign({className:_,style:Oe},ur,{ref:Te}),Ne.createElement(E.Provider,{value:wt},G)))},J=Ne.forwardRef(W);var V=Ne.memo(J);const K=M;K.Group=V,K.__ANT_CHECKBOX=!0;var se=K},98447:function(xn,Jt,w){"use strict";w.d(Jt,{C2:function(){return te}});var pe=w(17313),ue=w(37613),U=w(83116);const Ne=Z=>{const{checkboxCls:B}=Z,h=`${B}-wrapper`;return[{[`${B}-group`]:Object.assign(Object.assign({},(0,pe.Wf)(Z)),{display:"inline-flex",flexWrap:"wrap",columnGap:Z.marginXS,[`> ${Z.antCls}-row`]:{flex:1}}),[h]:Object.assign(Object.assign({},(0,pe.Wf)(Z)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${h}`]:{marginInlineStart:0},[`&${h}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[B]:Object.assign(Object.assign({},(0,pe.Wf)(Z)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Z.borderRadiusSM,alignSelf:"center",[`${B}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${B}-inner`]:Object.assign({},(0,pe.oN)(Z))},[`${B}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Z.checkboxSize,height:Z.checkboxSize,direction:"ltr",backgroundColor:Z.colorBgContainer,border:`${Z.lineWidth}px ${Z.lineType} ${Z.colorBorder}`,borderRadius:Z.borderRadiusSM,borderCollapse:"separate",transition:`all ${Z.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Z.checkboxSize/14*5,height:Z.checkboxSize/14*8,border:`${Z.lineWidthBold}px solid ${Z.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Z.motionDurationFast} ${Z.motionEaseInBack}, opacity ${Z.motionDurationFast}`}},"& + span":{paddingInlineStart:Z.paddingXS,paddingInlineEnd:Z.paddingXS}})},{[`
${h}:not(${h}-disabled),
${B}:not(${B}-disabled)
`]:{[`&:hover ${B}-inner`]:{borderColor:Z.colorPrimary}},[`${h}:not(${h}-disabled)`]:{[`&:hover ${B}-checked:not(${B}-disabled) ${B}-inner`]:{backgroundColor:Z.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${B}-checked:not(${B}-disabled):after`]:{borderColor:Z.colorPrimaryHover}}},{[`${B}-checked`]:{[`${B}-inner`]:{backgroundColor:Z.colorPrimary,borderColor:Z.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Z.motionDurationMid} ${Z.motionEaseOutBack} ${Z.motionDurationFast}`}}},[`
${h}-checked:not(${h}-disabled),
${B}-checked:not(${B}-disabled)
`]:{[`&:hover ${B}-inner`]:{backgroundColor:Z.colorPrimaryHover,borderColor:"transparent"}}},{[B]:{"&-indeterminate":{[`${B}-inner`]:{backgroundColor:Z.colorBgContainer,borderColor:Z.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Z.fontSizeLG/2,height:Z.fontSizeLG/2,backgroundColor:Z.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${h}-disabled`]:{cursor:"not-allowed"},[`${B}-disabled`]:{[`&, ${B}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${B}-inner`]:{background:Z.colorBgContainerDisabled,borderColor:Z.colorBorder,"&:after":{borderColor:Z.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Z.colorTextDisabled},[`&${B}-indeterminate ${B}-inner::after`]:{background:Z.colorTextDisabled}}}]};function te(Z,B){const h=(0,ue.TS)(B,{checkboxCls:`.${Z}`,checkboxSize:B.controlInteractiveSize});return[Ne(h)]}Jt.ZP=(0,U.Z)("Checkbox",(Z,B)=>{let{prefixCls:h}=B;return[te(h,Z)]})},93891:function(xn,Jt,w){"use strict";var pe=w(59301),ue=w(36355),U=w(64165);const Ne=te=>{const{componentName:Z}=te,{getPrefixCls:B}=(0,pe.useContext)(ue.E_),h=B("empty");switch(Z){case"Table":case"List":return pe.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE,className:`${h}-small`});default:return pe.createElement(U.Z,null)}};Jt.Z=Ne},28103:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return S}});var pe=w(92310),ue=w.n(pe),U=w(59301),Ne=w(36355),te=w(17313),Z=w(83116),B=w(37613);const h=F=>{const{componentCls:P,sizePaddingEdgeHorizontal:R,colorSplit:M,lineWidth:Y,textPaddingInline:Q,orientationMargin:ce,verticalMarginInline:W}=F;return{[P]:Object.assign(Object.assign({},(0,te.Wf)(F)),{borderBlockStart:`${Y}px solid ${M}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:W,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Y}px solid ${M}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${F.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${P}-with-text`]:{display:"flex",alignItems:"center",margin:`${F.dividerHorizontalWithTextGutterMargin}px 0`,color:F.colorTextHeading,fontWeight:500,fontSize:F.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${M}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Y}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${P}-with-text-left`]:{"&::before":{width:`${ce*100}%`},"&::after":{width:`${100-ce*100}%`}},[`&-horizontal${P}-with-text-right`]:{"&::before":{width:`${100-ce*100}%`},"&::after":{width:`${ce*100}%`}},[`${P}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Q},"&-dashed":{background:"none",borderColor:M,borderStyle:"dashed",borderWidth:`${Y}px 0 0`},[`&-horizontal${P}-with-text${P}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${P}-dashed`]:{borderInlineStartWidth:Y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${P}-with-text`]:{color:F.colorText,fontWeight:"normal",fontSize:F.fontSize},[`&-horizontal${P}-with-text-left${P}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${P}-inner-text`]:{paddingInlineStart:R}},[`&-horizontal${P}-with-text-right${P}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${P}-inner-text`]:{paddingInlineEnd:R}}})}};var E=(0,Z.Z)("Divider",F=>{const P=(0,B.TS)(F,{dividerHorizontalWithTextGutterMargin:F.margin,dividerHorizontalGutterMargin:F.marginLG,sizePaddingEdgeHorizontal:0});return[h(P)]},F=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:F.marginXS})),p=function(F,P){var R={};for(var M in F)Object.prototype.hasOwnProperty.call(F,M)&&P.indexOf(M)<0&&(R[M]=F[M]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,M=Object.getOwnPropertySymbols(F);Y<M.length;Y++)P.indexOf(M[Y])<0&&Object.prototype.propertyIsEnumerable.call(F,M[Y])&&(R[M[Y]]=F[M[Y]]);return R},S=F=>{const{getPrefixCls:P,direction:R,divider:M}=U.useContext(Ne.E_),{prefixCls:Y,type:Q="horizontal",orientation:ce="center",orientationMargin:W,className:J,rootClassName:V,children:K,dashed:se,plain:he,style:Te}=F,xe=p(F,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),je=P("divider",Y),[X,de]=E(je),k=ce.length>0?`-${ce}`:ce,rt=!!K,Oe=ce==="left"&&W!=null,be=ce==="right"&&W!=null,He=ue()(je,M==null?void 0:M.className,de,`${je}-${Q}`,{[`${je}-with-text`]:rt,[`${je}-with-text${k}`]:rt,[`${je}-dashed`]:!!se,[`${je}-plain`]:!!he,[`${je}-rtl`]:R==="rtl",[`${je}-no-default-orientation-margin-left`]:Oe,[`${je}-no-default-orientation-margin-right`]:be},J,V),ge=U.useMemo(()=>typeof W=="number"?W:/^\d+$/.test(W)?Number(W):W,[W]),De=Object.assign(Object.assign({},Oe&&{marginLeft:ge}),be&&{marginRight:ge});return X(U.createElement("div",Object.assign({className:He,style:Object.assign(Object.assign({},M==null?void 0:M.style),Te)},xe,{role:"separator"}),K&&Q!=="vertical"&&U.createElement("span",{className:`${je}-inner-text`,style:De},K)))}},91857:function(xn,Jt,w){"use strict";var pe=w(59301),ue=w(38819),U=w(92310),Ne=w.n(U),te=w(31561),Z=w(70425),B=w(18929),h=w(2738),E=w(79676),p=w(53487),j=w(92343),S=w(36355),F=w(20834),P=w(40875),R=w(88088),M=w(47211);const Y=null,Q=V=>{const{menu:K,arrow:se,prefixCls:he,children:Te,trigger:xe,disabled:je,dropdownRender:X,getPopupContainer:de,overlayClassName:k,rootClassName:rt,open:Oe,onOpenChange:be,visible:He,onVisibleChange:ge,mouseEnterDelay:De=.15,mouseLeaveDelay:fe=.1,autoAdjustOverflow:Se=!0,placement:ct="",overlay:dt,transitionName:at}=V,{getPopupContainer:st,getPrefixCls:It,direction:Ut}=pe.useContext(S.E_),Kt=pe.useMemo(()=>{const ve=It();return at!==void 0?at:ct.includes("top")?`${ve}-slide-down`:`${ve}-slide-up`},[It,ct,at]),hr=pe.useMemo(()=>ct?ct.includes("Center")?ct.slice(0,ct.indexOf("Center")):ct:Ut==="rtl"?"bottomRight":"bottomLeft",[ct,Ut]),or=It("dropdown",he),[Sr,ur]=(0,M.Z)(or),[,G]=(0,R.Z)(),wt=pe.Children.only(Te),_=(0,j.Tm)(wt,{className:Ne()(`${or}-trigger`,{[`${or}-rtl`]:Ut==="rtl"},wt.props.className),disabled:je}),f=je?[]:xe;let u;f&&f.includes("contextMenu")&&(u=!0);const[x,ee]=(0,B.Z)(!1,{value:Oe!=null?Oe:He}),Ce=(0,Z.useEvent)(ve=>{be==null||be(ve),ge==null||ge(ve),ee(ve)}),H=Ne()(k,rt,ur,{[`${or}-rtl`]:Ut==="rtl"}),ne=(0,E.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Se,offset:G.marginXXS,arrowWidth:se?G.sizePopupArrow:0,borderRadius:G.borderRadius}),$e=pe.useCallback(()=>{ee(!1)},[]),we=()=>{let ve;return K!=null&&K.items?ve=pe.createElement(F.default,Object.assign({},K)):typeof dt=="function"?ve=dt():ve=dt,X&&(ve=X(ve)),ve=pe.Children.only(typeof ve=="string"?pe.createElement("span",null,ve):ve),pe.createElement(P.J,{prefixCls:`${or}-menu`,expandIcon:pe.createElement("span",{className:`${or}-menu-submenu-arrow`},pe.createElement(ue.Z,{className:`${or}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:$e,validator:qe=>{let{mode:St}=qe}},ve)};return Sr(pe.createElement(te.Z,Object.assign({alignPoint:u},(0,h.Z)(V,["rootClassName"]),{mouseEnterDelay:De,mouseLeaveDelay:fe,visible:x,builtinPlacements:ne,arrow:!!se,overlayClassName:H,prefixCls:or,getPopupContainer:de||st,transitionName:Kt,trigger:f,overlay:we,placement:hr,onVisibleChange:Ce}),_))};function ce(V){return Object.assign(Object.assign({},V),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const W=(0,p.Z)(Q,"dropdown",V=>V,ce),J=V=>pe.createElement(W,Object.assign({},V),pe.createElement("span",null));Q._InternalPanelDoNotUseOrYouWillBeFired=J,Jt.Z=Q},38854:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return R}});var pe=w(91857),ue=w(92310),U=w.n(ue),Ne=w(59301),te=w(18785),Z=w(3113),B=w(36355),h=w(81327),E=w(33234),p=w(47211),j=function(M,Y){var Q={};for(var ce in M)Object.prototype.hasOwnProperty.call(M,ce)&&Y.indexOf(ce)<0&&(Q[ce]=M[ce]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,ce=Object.getOwnPropertySymbols(M);W<ce.length;W++)Y.indexOf(ce[W])<0&&Object.prototype.propertyIsEnumerable.call(M,ce[W])&&(Q[ce[W]]=M[ce[W]]);return Q};const S=M=>{const{getPopupContainer:Y,getPrefixCls:Q,direction:ce}=Ne.useContext(B.E_),{prefixCls:W,type:J="default",danger:V,disabled:K,loading:se,onClick:he,htmlType:Te,children:xe,className:je,menu:X,arrow:de,autoFocus:k,overlay:rt,trigger:Oe,align:be,open:He,onOpenChange:ge,placement:De,getPopupContainer:fe,href:Se,icon:ct=Ne.createElement(te.Z,null),title:dt,buttonsRender:at=we=>we,mouseEnterDelay:st,mouseLeaveDelay:It,overlayClassName:Ut,overlayStyle:Kt,destroyPopupOnHide:hr,dropdownRender:or}=M,Sr=j(M,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ur=Q("dropdown",W),G=`${ur}-button`,[wt,_]=(0,p.Z)(ur),f={menu:X,arrow:de,autoFocus:k,align:be,disabled:K,trigger:K?[]:Oe,onOpenChange:ge,getPopupContainer:fe||Y,mouseEnterDelay:st,mouseLeaveDelay:It,overlayClassName:Ut,overlayStyle:Kt,destroyPopupOnHide:hr,dropdownRender:or},{compactSize:u,compactItemClassnames:x}=(0,E.ri)(ur,ce),ee=U()(G,x,je,_);"overlay"in M&&(f.overlay=rt),"open"in M&&(f.open=He),"placement"in M?f.placement=De:f.placement=ce==="rtl"?"bottomLeft":"bottomRight";const Ce=Ne.createElement(Z.ZP,{type:J,danger:V,disabled:K,loading:se,onClick:he,htmlType:Te,href:Se,title:dt},xe),H=Ne.createElement(Z.ZP,{type:J,danger:V,icon:ct}),[ne,$e]=at([Ce,H]);return wt(Ne.createElement(h.Z.Compact,Object.assign({className:ee,size:u,block:!0},Sr),ne,Ne.createElement(pe.Z,Object.assign({},f),$e)))};S.__ANT_BUTTON=!0;var F=S;const P=pe.Z;P.Button=F;var R=P},47211:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return j}});var pe=w(17313),ue=w(13826),U=w(92899),Ne=w(29878),te=w(19447),Z=w(83116),B=w(37613),E=S=>{const{componentCls:F,menuCls:P,colorError:R,colorTextLightSolid:M}=S,Y=`${P}-item`;return{[`${F}, ${F}-menu-submenu`]:{[`${P} ${Y}`]:{[`&${Y}-danger:not(${Y}-disabled)`]:{color:R,"&:hover":{color:M,backgroundColor:R}}}}}};const p=S=>{const{componentCls:F,menuCls:P,zIndexPopup:R,dropdownArrowDistance:M,sizePopupArrow:Y,antCls:Q,iconCls:ce,motionDurationMid:W,dropdownPaddingVertical:J,fontSize:V,dropdownEdgeChildPadding:K,colorTextDisabled:se,fontSizeIcon:he,controlPaddingHorizontal:Te,colorBgElevated:xe}=S;return[{[F]:Object.assign(Object.assign({},(0,pe.Wf)(S)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:R,display:"block","&::before":{position:"absolute",insetBlock:-M+Y/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Q}-btn`]:{[`& > ${ce}-down, & > ${Q}-btn-icon > ${ce}-down`]:{fontSize:he}},[`${F}-wrap`]:{position:"relative",[`${Q}-btn > ${ce}-down`]:{fontSize:he},[`${ce}-down::before`]:{transition:`transform ${W}`}},[`${F}-wrap-open`]:{[`${ce}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Q}-slide-down-enter${Q}-slide-down-enter-active${F}-placement-bottomLeft,
&${Q}-slide-down-appear${Q}-slide-down-appear-active${F}-placement-bottomLeft,
&${Q}-slide-down-enter${Q}-slide-down-enter-active${F}-placement-bottom,
&${Q}-slide-down-appear${Q}-slide-down-appear-active${F}-placement-bottom,
&${Q}-slide-down-enter${Q}-slide-down-enter-active${F}-placement-bottomRight,
&${Q}-slide-down-appear${Q}-slide-down-appear-active${F}-placement-bottomRight`]:{animationName:ue.fJ},[`&${Q}-slide-up-enter${Q}-slide-up-enter-active${F}-placement-topLeft,
&${Q}-slide-up-appear${Q}-slide-up-appear-active${F}-placement-topLeft,
&${Q}-slide-up-enter${Q}-slide-up-enter-active${F}-placement-top,
&${Q}-slide-up-appear${Q}-slide-up-appear-active${F}-placement-top,
&${Q}-slide-up-enter${Q}-slide-up-enter-active${F}-placement-topRight,
&${Q}-slide-up-appear${Q}-slide-up-appear-active${F}-placement-topRight`]:{animationName:ue.Qt},[`&${Q}-slide-down-leave${Q}-slide-down-leave-active${F}-placement-bottomLeft,
&${Q}-slide-down-leave${Q}-slide-down-leave-active${F}-placement-bottom,
&${Q}-slide-down-leave${Q}-slide-down-leave-active${F}-placement-bottomRight`]:{animationName:ue.Uw},[`&${Q}-slide-up-leave${Q}-slide-up-leave-active${F}-placement-topLeft,
&${Q}-slide-up-leave${Q}-slide-up-leave-active${F}-placement-top,
&${Q}-slide-up-leave${Q}-slide-up-leave-active${F}-placement-topRight`]:{animationName:ue.ly}})},(0,te.ZP)(S,{colorBg:xe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${F} ${P}`]:{position:"relative",margin:0},[`${P}-submenu-popup`]:{position:"absolute",zIndex:R,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${F}, ${F}-menu-submenu`]:{[P]:Object.assign(Object.assign({padding:K,listStyleType:"none",backgroundColor:xe,backgroundClip:"padding-box",borderRadius:S.borderRadiusLG,outline:"none",boxShadow:S.boxShadowSecondary},(0,pe.Qy)(S)),{[`${P}-item-group-title`]:{padding:`${J}px ${Te}px`,color:S.colorTextDescription,transition:`all ${W}`},[`${P}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${P}-item-icon`]:{minWidth:V,marginInlineEnd:S.marginXS,fontSize:S.fontSizeSM},[`${P}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${W}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${P}-item, ${P}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${J}px ${Te}px`,color:S.colorText,fontWeight:"normal",fontSize:V,lineHeight:S.lineHeight,cursor:"pointer",transition:`all ${W}`,borderRadius:S.borderRadiusSM,"&:hover, &-active":{backgroundColor:S.controlItemBgHover}},(0,pe.Qy)(S)),{"&-selected":{color:S.colorPrimary,backgroundColor:S.controlItemBgActive,"&:hover, &-active":{backgroundColor:S.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:xe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${S.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:S.colorSplit},[`${F}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:S.paddingXS,[`${F}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:S.colorTextDescription,fontSize:he,fontStyle:"normal"}}}),[`${P}-item-group-list`]:{margin:`0 ${S.marginXS}px`,padding:0,listStyle:"none"},[`${P}-submenu-title`]:{paddingInlineEnd:Te+S.fontSizeSM},[`${P}-submenu-vertical`]:{position:"relative"},[`${P}-submenu${P}-submenu-disabled ${F}-menu-submenu-title`]:{[`&, ${F}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:xe,cursor:"not-allowed"}},[`${P}-submenu-selected ${F}-menu-submenu-title`]:{color:S.colorPrimary}})}},[(0,ue.oN)(S,"slide-up"),(0,ue.oN)(S,"slide-down"),(0,U.Fm)(S,"move-up"),(0,U.Fm)(S,"move-down"),(0,Ne._y)(S,"zoom-big")]]};var j=(0,Z.Z)("Dropdown",(S,F)=>{let{rootPrefixCls:P}=F;const{marginXXS:R,sizePopupArrow:M,controlHeight:Y,fontSize:Q,lineHeight:ce,paddingXXS:W,componentCls:J,borderRadiusLG:V}=S,K=(Y-Q*ce)/2,{dropdownArrowOffset:se}=(0,te.fS)({contentRadius:V}),he=(0,B.TS)(S,{menuCls:`${J}-menu`,rootPrefixCls:P,dropdownArrowDistance:M/2+R,dropdownArrowOffset:se,dropdownPaddingVertical:K,dropdownEdgeChildPadding:W});return[p(he),E(he)]},S=>({zIndexPopup:S.zIndexPopupBase+50}))},64165:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return W}});var pe=w(92310),ue=w.n(pe),U=w(59301),Ne=w(36355),te=w(9763),Z=w(64993),B=w(88088),E=()=>{const[,J]=(0,B.Z)(),K=new Z.C(J.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return U.createElement("svg",{style:K,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},U.createElement("g",{fill:"none",fillRule:"evenodd"},U.createElement("g",{transform:"translate(24 31.67)"},U.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),U.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"}),U.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)"}),U.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"}),U.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"})),U.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"}),U.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},U.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),U.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},j=()=>{const[,J]=(0,B.Z)(),{colorFill:V,colorFillTertiary:K,colorFillQuaternary:se,colorBgContainer:he}=J,{borderColor:Te,shadowColor:xe,contentColor:je}=(0,U.useMemo)(()=>({borderColor:new Z.C(V).onBackground(he).toHexShortString(),shadowColor:new Z.C(K).onBackground(he).toHexShortString(),contentColor:new Z.C(se).onBackground(he).toHexShortString()}),[V,K,se,he]);return U.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},U.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},U.createElement("ellipse",{fill:xe,cx:"32",cy:"33",rx:"32",ry:"7"}),U.createElement("g",{fillRule:"nonzero",stroke:Te},U.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"}),U.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:je}))))},S=w(83116),F=w(37613);const P=J=>{const{componentCls:V,margin:K,marginXS:se,marginXL:he,fontSize:Te,lineHeight:xe}=J;return{[V]:{marginInline:se,fontSize:Te,lineHeight:xe,textAlign:"center",[`${V}-image`]:{height:J.emptyImgHeight,marginBottom:se,opacity:J.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${V}-description`]:{color:J.colorText},[`${V}-footer`]:{marginTop:K},"&-normal":{marginBlock:he,color:J.colorTextDisabled,[`${V}-description`]:{color:J.colorTextDisabled},[`${V}-image`]:{height:J.emptyImgHeightMD}},"&-small":{marginBlock:se,color:J.colorTextDisabled,[`${V}-image`]:{height:J.emptyImgHeightSM}}}}};var R=(0,S.Z)("Empty",J=>{const{componentCls:V,controlHeightLG:K}=J,se=(0,F.TS)(J,{emptyImgCls:`${V}-img`,emptyImgHeight:K*2.5,emptyImgHeightMD:K,emptyImgHeightSM:K*.875});return[P(se)]}),M=function(J,V){var K={};for(var se in J)Object.prototype.hasOwnProperty.call(J,se)&&V.indexOf(se)<0&&(K[se]=J[se]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,se=Object.getOwnPropertySymbols(J);he<se.length;he++)V.indexOf(se[he])<0&&Object.prototype.propertyIsEnumerable.call(J,se[he])&&(K[se[he]]=J[se[he]]);return K};const Y=U.createElement(E,null),Q=U.createElement(j,null),ce=J=>{var{className:V,rootClassName:K,prefixCls:se,image:he=Y,description:Te,children:xe,imageStyle:je,style:X}=J,de=M(J,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:k,direction:rt,empty:Oe}=U.useContext(Ne.E_),be=k("empty",se),[He,ge]=R(be),[De]=(0,te.Z)("Empty"),fe=typeof Te!="undefined"?Te:De==null?void 0:De.description,Se=typeof fe=="string"?fe:"empty";let ct=null;return typeof he=="string"?ct=U.createElement("img",{alt:Se,src:he}):ct=he,He(U.createElement("div",Object.assign({className:ue()(ge,be,Oe==null?void 0:Oe.className,{[`${be}-normal`]:he===Q,[`${be}-rtl`]:rt==="rtl"},V,K),style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),X)},de),U.createElement("div",{className:`${be}-image`,style:je},ct),fe&&U.createElement("div",{className:`${be}-description`},fe),xe&&U.createElement("div",{className:`${be}-footer`},xe)))};ce.PRESENTED_IMAGE_DEFAULT=Y,ce.PRESENTED_IMAGE_SIMPLE=Q;var W=ce},8628:function(xn,Jt,w){"use strict";var pe=w(59301),ue=w(34280),U=w(56762),Ne=w(69507);function te(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const B=(0,pe.useRef)({}),h=(0,U.Z)(),E=(0,Ne.ZP)();return(0,ue.Z)(()=>{const p=E.subscribe(j=>{B.current=j,Z&&h()});return()=>E.unsubscribe(p)},[]),B.current}Jt.Z=te},5871:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return lt}});var pe=w(84105),ue=w(87395),U=w(92310),Ne=w.n(U),te=w(32855),Z=w(74430),B=w(34666),h=w(11913),E=w(43079),p=w(33377),j=w(93912);function S(){return typeof BigInt=="function"}function F(Pe){return!Pe&&Pe!==0&&!Number.isNaN(Pe)||!String(Pe).trim()}function P(Pe){var Le=Pe.trim(),pt=Le.startsWith("-");pt&&(Le=Le.slice(1)),Le=Le.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Le.startsWith(".")&&(Le="0".concat(Le));var zt=Le||"0",Ht=zt.split("."),er=Ht[0]||"0",Pr=Ht[1]||"0";er==="0"&&Pr==="0"&&(pt=!1);var pr=pt?"-":"";return{negative:pt,negativeStr:pr,trimStr:zt,integerStr:er,decimalStr:Pr,fullStr:"".concat(pr).concat(zt)}}function R(Pe){var Le=String(Pe);return!Number.isNaN(Number(Le))&&Le.includes("e")}function M(Pe){var Le=String(Pe);if(R(Pe)){var pt=Number(Le.slice(Le.indexOf("e-")+2)),zt=Le.match(/\.(\d+)/);return zt!=null&&zt[1]&&(pt+=zt[1].length),pt}return Le.includes(".")&&Q(Le)?Le.length-Le.indexOf(".")-1:0}function Y(Pe){var Le=String(Pe);if(R(Pe)){if(Pe>Number.MAX_SAFE_INTEGER)return String(S()?BigInt(Pe).toString():Number.MAX_SAFE_INTEGER);if(Pe<Number.MIN_SAFE_INTEGER)return String(S()?BigInt(Pe).toString():Number.MIN_SAFE_INTEGER);Le=Pe.toFixed(M(Le))}return P(Le).fullStr}function Q(Pe){return typeof Pe=="number"?!Number.isNaN(Pe):Pe?/^\s*-?\d+(\.\d+)?\s*$/.test(Pe)||/^\s*-?\d+\.\s*$/.test(Pe)||/^\s*-?\.\d+\s*$/.test(Pe):!1}var ce=function(){function Pe(Le){if((0,p.Z)(this,Pe),(0,Z.Z)(this,"origin",""),(0,Z.Z)(this,"negative",void 0),(0,Z.Z)(this,"integer",void 0),(0,Z.Z)(this,"decimal",void 0),(0,Z.Z)(this,"decimalLen",void 0),(0,Z.Z)(this,"empty",void 0),(0,Z.Z)(this,"nan",void 0),F(Le)){this.empty=!0;return}if(this.origin=String(Le),Le==="-"||Number.isNaN(Le)){this.nan=!0;return}var pt=Le;if(R(pt)&&(pt=Number(pt)),pt=typeof pt=="string"?pt:Y(pt),Q(pt)){var zt=P(pt);this.negative=zt.negative;var Ht=zt.trimStr.split(".");this.integer=BigInt(Ht[0]);var er=Ht[1]||"0";this.decimal=BigInt(er),this.decimalLen=er.length}else this.nan=!0}return(0,j.Z)(Pe,[{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(pt){var zt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(pt,"0"));return BigInt(zt)}},{key:"negate",value:function(){var pt=new Pe(this.toString());return pt.negative=!pt.negative,pt}},{key:"cal",value:function(pt,zt,Ht){var er=Math.max(this.getDecimalStr().length,pt.getDecimalStr().length),Pr=this.alignDecimal(er),pr=pt.alignDecimal(er),kr=zt(Pr,pr).toString(),Dr=Ht(er),vr=P(kr),dr=vr.negativeStr,$r=vr.trimStr,un="".concat(dr).concat($r.padStart(Dr+1,"0"));return new Pe("".concat(un.slice(0,-Dr),".").concat(un.slice(-Dr)))}},{key:"add",value:function(pt){if(this.isInvalidate())return new Pe(pt);var zt=new Pe(pt);return zt.isInvalidate()?this:this.cal(zt,function(Ht,er){return Ht+er},function(Ht){return Ht})}},{key:"multi",value:function(pt){var zt=new Pe(pt);return this.isInvalidate()||zt.isInvalidate()?new Pe(NaN):this.cal(zt,function(Ht,er){return Ht*er},function(Ht){return Ht*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(pt){return this.toString()===(pt==null?void 0:pt.toString())}},{key:"lessEquals",value:function(pt){return this.add(pt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return pt?this.isInvalidate()?"":P("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Pe}(),W=function(){function Pe(Le){if((0,p.Z)(this,Pe),(0,Z.Z)(this,"origin",""),(0,Z.Z)(this,"number",void 0),(0,Z.Z)(this,"empty",void 0),F(Le)){this.empty=!0;return}this.origin=String(Le),this.number=Number(Le)}return(0,j.Z)(Pe,[{key:"negate",value:function(){return new Pe(-this.toNumber())}},{key:"add",value:function(pt){if(this.isInvalidate())return new Pe(pt);var zt=Number(pt);if(Number.isNaN(zt))return this;var Ht=this.number+zt;if(Ht>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(Ht<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var er=Math.max(M(this.number),M(zt));return new Pe(Ht.toFixed(er))}},{key:"multi",value:function(pt){var zt=Number(pt);if(this.isInvalidate()||Number.isNaN(zt))return new Pe(NaN);var Ht=this.number*zt;if(Ht>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(Ht<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var er=Math.max(M(this.number),M(zt));return new Pe(Ht.toFixed(er))}},{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(pt){return this.toNumber()===(pt==null?void 0:pt.toNumber())}},{key:"lessEquals",value:function(pt){return this.add(pt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return pt?this.isInvalidate()?"":Y(this.number):this.origin}}]),Pe}();function J(Pe){return S()?new ce(Pe):new W(Pe)}function V(Pe,Le,pt){var zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Pe==="")return"";var Ht=P(Pe),er=Ht.negativeStr,Pr=Ht.integerStr,pr=Ht.decimalStr,kr="".concat(Le).concat(pr),Dr="".concat(er).concat(Pr);if(pt>=0){var vr=Number(pr[pt]);if(vr>=5&&!zt){var dr=J(Pe).add("".concat(er,"0.").concat("0".repeat(pt)).concat(10-vr));return V(dr.toString(),Le,pt,zt)}return pt===0?Dr:"".concat(Dr).concat(Le).concat(pr.padEnd(pt,"0").slice(0,pt))}return kr===".0"?Dr:"".concat(Dr).concat(kr)}var K=J,se=w(93681),he=w(34280),Te=w(8654),xe=w(59301),je=w(48736);function X(Pe,Le){var pt=(0,xe.useRef)(null);function zt(){try{var er=Pe.selectionStart,Pr=Pe.selectionEnd,pr=Pe.value,kr=pr.substring(0,er),Dr=pr.substring(Pr);pt.current={start:er,end:Pr,value:pr,beforeTxt:kr,afterTxt:Dr}}catch(vr){}}function Ht(){if(Pe&&pt.current&&Le)try{var er=Pe.value,Pr=pt.current,pr=Pr.beforeTxt,kr=Pr.afterTxt,Dr=Pr.start,vr=er.length;if(er.endsWith(kr))vr=er.length-pt.current.afterTxt.length;else if(er.startsWith(pr))vr=pr.length;else{var dr=pr[Dr-1],$r=er.indexOf(dr,Dr-1);$r!==-1&&(vr=$r+1)}Pe.setSelectionRange(vr,vr)}catch(un){(0,je.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(un.message))}}return[zt,Ht]}var de=w(49658),k=function(){var Le=(0,xe.useState)(!1),pt=(0,h.Z)(Le,2),zt=pt[0],Ht=pt[1];return(0,he.Z)(function(){Ht((0,de.Z)())},[]),zt},rt=k,Oe=w(16089),be=200,He=600;function ge(Pe){var Le=Pe.prefixCls,pt=Pe.upNode,zt=Pe.downNode,Ht=Pe.upDisabled,er=Pe.downDisabled,Pr=Pe.onStep,pr=xe.useRef(),kr=xe.useRef([]),Dr=xe.useRef();Dr.current=Pr;var vr=function(){clearTimeout(pr.current)},dr=function(qn,Ti){qn.preventDefault(),vr(),Dr.current(Ti);function ci(){Dr.current(Ti),pr.current=setTimeout(ci,be)}pr.current=setTimeout(ci,He)};xe.useEffect(function(){return function(){vr(),kr.current.forEach(function(Ir){return Oe.Z.cancel(Ir)})}},[]);var $r=rt();if($r)return null;var un="".concat(Le,"-handler"),_n=Ne()(un,"".concat(un,"-up"),(0,Z.Z)({},"".concat(un,"-up-disabled"),Ht)),qr=Ne()(un,"".concat(un,"-down"),(0,Z.Z)({},"".concat(un,"-down-disabled"),er)),Bn=function(){return kr.current.push((0,Oe.Z)(vr))},ti={unselectable:"on",role:"button",onMouseUp:Bn,onMouseLeave:Bn};return xe.createElement("div",{className:"".concat(un,"-wrap")},xe.createElement("span",(0,te.Z)({},ti,{onMouseDown:function(qn){dr(qn,!0)},"aria-label":"Increase Value","aria-disabled":Ht,className:_n}),pt||xe.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-up-inner")})),xe.createElement("span",(0,te.Z)({},ti,{onMouseDown:function(qn){dr(qn,!1)},"aria-label":"Decrease Value","aria-disabled":er,className:qr}),zt||xe.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-down-inner")})))}function De(Pe){var Le=typeof Pe=="number"?Y(Pe):P(Pe).fullStr,pt=Le.includes(".");return pt?P(Le.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Pe+"0"}var fe=w(5643),Se=function(){var Pe=(0,xe.useRef)(0),Le=function(){Oe.Z.cancel(Pe.current)};return(0,xe.useEffect)(function(){return Le},[]),function(pt){Le(),Pe.current=(0,Oe.Z)(function(){pt()})}},ct=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],dt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],at=function(Le,pt){return Le||pt.isEmpty()?pt.toString():pt.toNumber()},st=function(Le){var pt=K(Le);return pt.isInvalidate()?null:pt},It=xe.forwardRef(function(Pe,Le){var pt,zt=Pe.prefixCls,Ht=zt===void 0?"rc-input-number":zt,er=Pe.className,Pr=Pe.style,pr=Pe.min,kr=Pe.max,Dr=Pe.step,vr=Dr===void 0?1:Dr,dr=Pe.defaultValue,$r=Pe.value,un=Pe.disabled,_n=Pe.readOnly,qr=Pe.upHandler,Bn=Pe.downHandler,ti=Pe.keyboard,Ir=Pe.controls,qn=Ir===void 0?!0:Ir,Ti=Pe.classNames,ci=Pe.stringMode,Ui=Pe.parser,Ei=Pe.formatter,$i=Pe.precision,Ha=Pe.decimalSeparator,Ji=Pe.onChange,gi=Pe.onInput,ki=Pe.onPressEnter,Pi=Pe.onStep,nt=(0,E.Z)(Pe,ct),Ie="".concat(Ht,"-input"),ke=xe.useRef(null),Ee=xe.useState(!1),$t=(0,h.Z)(Ee,2),Nt=$t[0],Er=$t[1],sr=xe.useRef(!1),Kr=xe.useRef(!1),Wr=xe.useRef(!1),tn=xe.useState(function(){return K($r!=null?$r:dr)}),Vr=(0,h.Z)(tn,2),jr=Vr[0],Yr=Vr[1];function mn(cn){$r===void 0&&Yr(cn)}var rn=xe.useCallback(function(cn,nn){if(!nn)return $i>=0?$i:Math.max(M(cn),M(vr))},[$i,vr]),Dn=xe.useCallback(function(cn){var nn=String(cn);if(Ui)return Ui(nn);var Un=nn;return Ha&&(Un=Un.replace(Ha,".")),Un.replace(/[^\w.-]+/g,"")},[Ui,Ha]),Qn=xe.useRef(""),ui=xe.useCallback(function(cn,nn){if(Ei)return Ei(cn,{userTyping:nn,input:String(Qn.current)});var Un=typeof cn=="number"?Y(cn):cn;if(!nn){var wn=rn(Un,nn);if(Q(Un)&&(Ha||wn>=0)){var jn=Ha||".";Un=V(Un,jn,wn)}}return Un},[Ei,rn,Ha]),Tn=xe.useState(function(){var cn=dr!=null?dr:$r;return jr.isInvalidate()&&["string","number"].includes((0,B.Z)(cn))?Number.isNaN(cn)?"":cn:ui(jr.toString(),!1)}),sn=(0,h.Z)(Tn,2),Qt=sn[0],Zt=sn[1];Qn.current=Qt;function qt(cn,nn){Zt(ui(cn.isInvalidate()?cn.toString(!1):cn.toString(!nn),nn))}var mr=xe.useMemo(function(){return st(kr)},[kr,$i]),Wt=xe.useMemo(function(){return st(pr)},[pr,$i]),Cr=xe.useMemo(function(){return!mr||!jr||jr.isInvalidate()?!1:mr.lessEquals(jr)},[mr,jr]),Mr=xe.useMemo(function(){return!Wt||!jr||jr.isInvalidate()?!1:jr.lessEquals(Wt)},[Wt,jr]),Gr=X(ke.current,Nt),Mn=(0,h.Z)(Gr,2),Pn=Mn[0],oi=Mn[1],ei=function(nn){return mr&&!nn.lessEquals(mr)?mr:Wt&&!Wt.lessEquals(nn)?Wt:null},bi=function(nn){return!ei(nn)},Jn=function(nn,Un){var wn=nn,jn=bi(wn)||wn.isEmpty();if(!wn.isEmpty()&&!Un&&(wn=ei(wn)||wn,jn=!0),!_n&&!un&&jn){var li=wn.toString(),wi=rn(li,Un);return wi>=0&&(wn=K(V(li,".",wi)),bi(wn)||(wn=K(V(li,".",wi,!0)))),wn.equals(jr)||(mn(wn),Ji==null||Ji(wn.isEmpty()?null:at(ci,wn)),$r===void 0&&qt(wn,Un)),wn}return jr},Hn=Se(),on=function cn(nn){if(Pn(),Qn.current=nn,Zt(nn),!Kr.current){var Un=Dn(nn),wn=K(Un);wn.isNaN()||Jn(wn,!0)}gi==null||gi(nn),Hn(function(){var jn=nn;Ui||(jn=nn.replace(/。/g,".")),jn!==nn&&cn(jn)})},pi=function(){Kr.current=!0},Ln=function(){Kr.current=!1,on(ke.current.value)},ri=function(nn){on(nn.target.value)},vi=function(nn){var Un;if(!(nn&&Cr||!nn&&Mr)){sr.current=!1;var wn=K(Wr.current?De(vr):vr);nn||(wn=wn.negate());var jn=(jr||K(0)).add(wn.toString()),li=Jn(jn,!1);Pi==null||Pi(at(ci,li),{offset:Wr.current?De(vr):vr,type:nn?"up":"down"}),(Un=ke.current)===null||Un===void 0||Un.focus()}},_i=function(nn){var Un=K(Dn(Qt)),wn=Un;Un.isNaN()?wn=Jn(jr,nn):wn=Jn(Un,nn),$r!==void 0?qt(jr,!1):wn.isNaN()||qt(wn,!1)},Xn=function(){sr.current=!0},Bi=function(nn){var Un=nn.key,wn=nn.shiftKey;sr.current=!0,Wr.current=wn,Un==="Enter"&&(Kr.current||(sr.current=!1),_i(!1),ki==null||ki(nn)),ti!==!1&&!Kr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Un)&&(vi(Un==="Up"||Un==="ArrowUp"),nn.preventDefault())},ra=function(){sr.current=!1,Wr.current=!1},ii=function(){_i(!1),Er(!1),sr.current=!1};return(0,he.o)(function(){jr.isInvalidate()||qt(jr,!1)},[$i]),(0,he.o)(function(){var cn=K($r);Yr(cn);var nn=K(Dn(Qt));(!cn.equals(nn)||!sr.current||Ei)&&qt(cn,sr.current)},[$r]),(0,he.o)(function(){Ei&&oi()},[Qt]),xe.createElement("div",{className:Ne()(Ht,Ti==null?void 0:Ti.input,er,(pt={},(0,Z.Z)(pt,"".concat(Ht,"-focused"),Nt),(0,Z.Z)(pt,"".concat(Ht,"-disabled"),un),(0,Z.Z)(pt,"".concat(Ht,"-readonly"),_n),(0,Z.Z)(pt,"".concat(Ht,"-not-a-number"),jr.isNaN()),(0,Z.Z)(pt,"".concat(Ht,"-out-of-range"),!jr.isInvalidate()&&!bi(jr)),pt)),style:Pr,onFocus:function(){Er(!0)},onBlur:ii,onKeyDown:Bi,onKeyUp:ra,onCompositionStart:pi,onCompositionEnd:Ln,onBeforeInput:Xn},qn&&xe.createElement(ge,{prefixCls:Ht,upNode:qr,downNode:Bn,upDisabled:Cr,downDisabled:Mr,onStep:vi}),xe.createElement("div",{className:"".concat(Ie,"-wrap")},xe.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":pr,"aria-valuemax":kr,"aria-valuenow":jr.isInvalidate()?null:jr.toString(),step:vr},nt,{ref:(0,Te.sQ)(ke,Le),className:Ie,value:Qt,onChange:ri,disabled:un,readOnly:_n}))))}),Ut=xe.forwardRef(function(Pe,Le){var pt=Pe.disabled,zt=Pe.style,Ht=Pe.prefixCls,er=Pe.value,Pr=Pe.prefix,pr=Pe.suffix,kr=Pe.addonBefore,Dr=Pe.addonAfter,vr=Pe.classes,dr=Pe.className,$r=Pe.classNames,un=(0,E.Z)(Pe,dt),_n=xe.useRef(null),qr=function(ti){_n.current&&(0,fe.nH)(_n.current,ti)};return xe.createElement(se.BaseInput,{inputElement:xe.createElement(It,(0,te.Z)({prefixCls:Ht,disabled:pt,classNames:$r,ref:(0,Te.sQ)(_n,Le)},un)),className:dr,triggerFocus:qr,prefixCls:Ht,value:er,disabled:pt,style:zt,prefix:Pr,suffix:pr,addonAfter:Dr,addonBefore:kr,classes:vr,classNames:$r,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Ut.displayName="InputNumber";var Kt=Ut,hr=Kt,or=w(19080),Sr=w(36355),ur=w(92736),G=w(1684),wt=w(19716),_=w(32441),f=w(33234),u=w(9937),x=w(17313),ee=w(74207),Ce=w(83116),H=w(37613);const ne=(Pe,Le)=>{let{componentCls:pt,borderRadiusSM:zt,borderRadiusLG:Ht}=Pe;const er=Le==="lg"?Ht:zt;return{[`&-${Le}`]:{[`${pt}-handler-wrap`]:{borderStartEndRadius:er,borderEndEndRadius:er},[`${pt}-handler-up`]:{borderStartEndRadius:er},[`${pt}-handler-down`]:{borderEndEndRadius:er}}}},$e=Pe=>{const{componentCls:Le,lineWidth:pt,lineType:zt,colorBorder:Ht,borderRadius:er,fontSizeLG:Pr,controlHeightLG:pr,controlHeightSM:kr,colorError:Dr,paddingInlineSM:vr,colorTextDescription:dr,motionDurationMid:$r,handleHoverColor:un,paddingInline:_n,paddingBlock:qr,handleBg:Bn,handleActiveBg:ti,colorTextDisabled:Ir,borderRadiusSM:qn,borderRadiusLG:Ti,controlWidth:ci,handleVisible:Ui,handleBorderColor:Ei}=Pe;return[{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Pe)),(0,u.ik)(Pe)),(0,u.bi)(Pe,Le)),{display:"inline-block",width:ci,margin:0,padding:0,border:`${pt}px ${zt} ${Ht}`,borderRadius:er,"&-rtl":{direction:"rtl",[`${Le}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Pr,borderRadius:Ti,[`input${Le}-input`]:{height:pr-2*pt}},"&-sm":{padding:0,borderRadius:qn,[`input${Le}-input`]:{height:kr-2*pt,padding:`0 ${vr}px`}},"&:hover":Object.assign({},(0,u.pU)(Pe)),"&-focused":Object.assign({},(0,u.M1)(Pe)),"&-out-of-range":{[`${Le}-input-wrap`]:{input:{color:Dr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Pe)),(0,u.s7)(Pe)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Le}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Le}-group-addon`]:{borderRadius:Ti,fontSize:Pe.fontSizeLG}},"&-sm":{[`${Le}-group-addon`]:{borderRadius:qn}},[`${Le}-wrapper-disabled > ${Le}-group-addon`]:Object.assign({},(0,u.Xy)(Pe))}}),[`&-disabled ${Le}-input`]:{cursor:"not-allowed"},[Le]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Pe)),{width:"100%",padding:`${qr}px ${_n}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:er,outline:0,transition:`all ${$r} linear`,appearance:"textfield",fontSize:"inherit"}),(0,u.nz)(Pe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Le]:Object.assign(Object.assign(Object.assign({[`&:hover ${Le}-handler-wrap, &-focused ${Le}-handler-wrap`]:{opacity:1},[`${Le}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Pe.handleWidth,height:"100%",background:Bn,borderStartStartRadius:0,borderStartEndRadius:er,borderEndEndRadius:er,borderEndStartRadius:0,opacity:Ui===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${$r} linear ${$r}`,[`${Le}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Le}-handler-up-inner,
${Le}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Pe.handleFontSize}}},[`${Le}-handler`]:{height:"50%",overflow:"hidden",color:dr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${pt}px ${zt} ${Ei}`,transition:`all ${$r} linear`,"&:active":{background:ti},"&:hover":{height:"60%",[`
${Le}-handler-up-inner,
${Le}-handler-down-inner
`]:{color:un}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,x.Ro)()),{color:dr,transition:`all ${$r} linear`,userSelect:"none"})},[`${Le}-handler-up`]:{borderStartEndRadius:er},[`${Le}-handler-down`]:{borderBlockStart:`${pt}px ${zt} ${Ei}`,borderEndEndRadius:er}},ne(Pe,"lg")),ne(Pe,"sm")),{"&-disabled, &-readonly":{[`${Le}-handler-wrap`]:{display:"none"},[`${Le}-input`]:{color:"inherit"}},[`
${Le}-handler-up-disabled,
${Le}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Le}-handler-up-disabled:hover &-handler-up-inner,
${Le}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Ir}})},{[`${Le}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Le}-handler-down`]:{borderBlockStartWidth:0}}}]},we=Pe=>{const{componentCls:Le,paddingBlock:pt,paddingInline:zt,inputAffixPadding:Ht,controlWidth:er,borderRadiusLG:Pr,borderRadiusSM:pr}=Pe;return{[`${Le}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,u.ik)(Pe)),(0,u.bi)(Pe,`${Le}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:er,padding:0,paddingInlineStart:zt,"&-lg":{borderRadius:Pr},"&-sm":{borderRadius:pr},[`&:not(${Le}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,u.pU)(Pe)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Le}-disabled`]:{background:"transparent"},[`> div${Le}`]:{width:"100%",border:"none",outline:"none",[`&${Le}-focused`]:{boxShadow:"none !important"}},[`input${Le}-input`]:{padding:`${pt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Le}-handler-wrap`]:{zIndex:2},[Le]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ht},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:zt,marginInlineStart:Ht}}})}};var ve=(0,Ce.Z)("InputNumber",Pe=>{const Le=(0,H.TS)(Pe,(0,u.e5)(Pe));return[$e(Le),we(Le),(0,ee.c)(Le)]},Pe=>Object.assign(Object.assign({},(0,u.TM)(Pe)),{controlWidth:90,handleWidth:Pe.controlHeightSM-Pe.lineWidth*2,handleFontSize:Pe.fontSize/2,handleVisible:"auto",handleActiveBg:Pe.colorFillAlter,handleBg:Pe.colorBgContainer,handleHoverColor:Pe.colorPrimary,handleBorderColor:Pe.colorBorder})),qe=function(Pe,Le){var pt={};for(var zt in Pe)Object.prototype.hasOwnProperty.call(Pe,zt)&&Le.indexOf(zt)<0&&(pt[zt]=Pe[zt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,zt=Object.getOwnPropertySymbols(Pe);Ht<zt.length;Ht++)Le.indexOf(zt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(Pe,zt[Ht])&&(pt[zt[Ht]]=Pe[zt[Ht]]);return pt};const St=xe.forwardRef((Pe,Le)=>{const{getPrefixCls:pt,direction:zt}=xe.useContext(Sr.E_),Ht=xe.useRef(null);xe.useImperativeHandle(Le,()=>Ht.current);const{className:er,rootClassName:Pr,size:pr,disabled:kr,prefixCls:Dr,addonBefore:vr,addonAfter:dr,prefix:$r,bordered:un=!0,readOnly:_n,status:qr,controls:Bn}=Pe,ti=qe(Pe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Ir=pt("input-number",Dr),[qn,Ti]=ve(Ir),{compactSize:ci,compactItemClassnames:Ui}=(0,f.ri)(Ir,zt);let Ei=xe.createElement(ue.Z,{className:`${Ir}-handler-up-inner`}),$i=xe.createElement(pe.Z,{className:`${Ir}-handler-down-inner`});const Ha=typeof Bn=="boolean"?Bn:void 0;typeof Bn=="object"&&(Ei=typeof Bn.upIcon=="undefined"?Ei:xe.createElement("span",{className:`${Ir}-handler-up-inner`},Bn.upIcon),$i=typeof Bn.downIcon=="undefined"?$i:xe.createElement("span",{className:`${Ir}-handler-down-inner`},Bn.downIcon));const{hasFeedback:Ji,status:gi,isFormItemInput:ki,feedbackIcon:Pi}=xe.useContext(_.aM),nt=(0,or.F)(gi,qr),Ie=(0,wt.Z)(sr=>{var Kr;return(Kr=pr!=null?pr:ci)!==null&&Kr!==void 0?Kr:sr}),ke=xe.useContext(G.Z),Ee=kr!=null?kr:ke,$t=Ne()({[`${Ir}-lg`]:Ie==="large",[`${Ir}-sm`]:Ie==="small",[`${Ir}-rtl`]:zt==="rtl",[`${Ir}-borderless`]:!un,[`${Ir}-in-form-item`]:ki},(0,or.Z)(Ir,nt),Ui,Ti),Nt=`${Ir}-group`,Er=xe.createElement(hr,Object.assign({ref:Ht,disabled:Ee,className:Ne()(er,Pr),upHandler:Ei,downHandler:$i,prefixCls:Ir,readOnly:_n,controls:Ha,prefix:$r,suffix:Ji&&Pi,addonAfter:dr&&xe.createElement(f.BR,null,xe.createElement(_.Ux,{override:!0,status:!0},dr)),addonBefore:vr&&xe.createElement(f.BR,null,xe.createElement(_.Ux,{override:!0,status:!0},vr)),classNames:{input:$t},classes:{affixWrapper:Ne()((0,or.Z)(`${Ir}-affix-wrapper`,nt,Ji),{[`${Ir}-affix-wrapper-sm`]:Ie==="small",[`${Ir}-affix-wrapper-lg`]:Ie==="large",[`${Ir}-affix-wrapper-rtl`]:zt==="rtl",[`${Ir}-affix-wrapper-borderless`]:!un},Ti),wrapper:Ne()({[`${Nt}-rtl`]:zt==="rtl",[`${Ir}-wrapper-disabled`]:Ee},Ti),group:Ne()({[`${Ir}-group-wrapper-sm`]:Ie==="small",[`${Ir}-group-wrapper-lg`]:Ie==="large",[`${Ir}-group-wrapper-rtl`]:zt==="rtl"},(0,or.Z)(`${Ir}-group-wrapper`,nt,Ji),Ti)}},ti));return qn(Er)}),me=St,ft=Pe=>xe.createElement(ur.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},xe.createElement(St,Object.assign({},Pe)));me._InternalPanelDoNotUseOrYouWillBeFired=ft;var lt=me},9432:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return ce},n:function(){return Y}});var pe=w(19248),ue=w(92310),U=w.n(ue),Ne=w(93681),te=w(8654),Z=w(59301),B=w(19080),h=w(36355),E=w(1684),p=w(19716),j=w(32441),S=w(33234),F=w(59412),P=w(9937);function R(W){return!!(W.prefix||W.suffix||W.allowClear)}var M=function(W,J){var V={};for(var K in W)Object.prototype.hasOwnProperty.call(W,K)&&J.indexOf(K)<0&&(V[K]=W[K]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,K=Object.getOwnPropertySymbols(W);se<K.length;se++)J.indexOf(K[se])<0&&Object.prototype.propertyIsEnumerable.call(W,K[se])&&(V[K[se]]=W[K[se]]);return V};function Y(W,J){if(!W)return;W.focus(J);const{cursor:V}=J||{};if(V){const K=W.value.length;switch(V){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(K,K);break;default:W.setSelectionRange(0,K);break}}}var ce=(0,Z.forwardRef)((W,J)=>{var V;const{prefixCls:K,bordered:se=!0,status:he,size:Te,disabled:xe,onBlur:je,onFocus:X,suffix:de,allowClear:k,addonAfter:rt,addonBefore:Oe,className:be,style:He,styles:ge,rootClassName:De,onChange:fe,classNames:Se}=W,ct=M(W,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:dt,direction:at,input:st}=Z.useContext(h.E_),It=dt("input",K),Ut=(0,Z.useRef)(null),[Kt,hr]=(0,P.ZP)(It),{compactSize:or,compactItemClassnames:Sr}=(0,S.ri)(It,at),ur=(0,p.Z)(St=>{var me;return(me=Te!=null?Te:or)!==null&&me!==void 0?me:St}),G=Z.useContext(E.Z),wt=xe!=null?xe:G,{status:_,hasFeedback:f,feedbackIcon:u}=(0,Z.useContext)(j.aM),x=(0,B.F)(_,he),ee=R(W)||!!f,Ce=(0,Z.useRef)(ee);(0,Z.useEffect)(()=>{var St;ee&&Ce.current,Ce.current=ee},[ee]);const H=(0,F.Z)(Ut,!0),ne=St=>{H(),je==null||je(St)},$e=St=>{H(),X==null||X(St)},we=St=>{H(),fe==null||fe(St)},ve=(f||de)&&Z.createElement(Z.Fragment,null,de,f&&u);let qe;return typeof k=="object"&&(k!=null&&k.clearIcon)?qe=k:k&&(qe={clearIcon:Z.createElement(pe.Z,null)}),Kt(Z.createElement(Ne.default,Object.assign({ref:(0,te.sQ)(J,Ut),prefixCls:It,autoComplete:st==null?void 0:st.autoComplete},ct,{disabled:wt,onBlur:ne,onFocus:$e,style:Object.assign(Object.assign({},st==null?void 0:st.style),He),styles:Object.assign(Object.assign({},st==null?void 0:st.styles),ge),suffix:ve,allowClear:qe,className:U()(be,De,Sr,st==null?void 0:st.className),onChange:we,addonAfter:rt&&Z.createElement(S.BR,null,Z.createElement(j.Ux,{override:!0,status:!0},rt)),addonBefore:Oe&&Z.createElement(S.BR,null,Z.createElement(j.Ux,{override:!0,status:!0},Oe)),classNames:Object.assign(Object.assign(Object.assign({},Se),st==null?void 0:st.classNames),{input:U()({[`${It}-sm`]:ur==="small",[`${It}-lg`]:ur==="large",[`${It}-rtl`]:at==="rtl",[`${It}-borderless`]:!se},!ee&&(0,B.Z)(It,x),Se==null?void 0:Se.input,(V=st==null?void 0:st.classNames)===null||V===void 0?void 0:V.input,hr)}),classes:{affixWrapper:U()({[`${It}-affix-wrapper-sm`]:ur==="small",[`${It}-affix-wrapper-lg`]:ur==="large",[`${It}-affix-wrapper-rtl`]:at==="rtl",[`${It}-affix-wrapper-borderless`]:!se},(0,B.Z)(`${It}-affix-wrapper`,x,f),hr),wrapper:U()({[`${It}-group-rtl`]:at==="rtl"},hr),group:U()({[`${It}-group-wrapper-sm`]:ur==="small",[`${It}-group-wrapper-lg`]:ur==="large",[`${It}-group-wrapper-rtl`]:at==="rtl",[`${It}-group-wrapper-disabled`]:wt},(0,B.Z)(`${It}-group-wrapper`,x,f),hr)}})))})},1643:function(xn,Jt,w){"use strict";var pe=w(19248),ue=w(92310),U=w.n(ue),Ne=w(9296),te=w(59301),Z=w(19080),B=w(36355),h=w(1684),E=w(19716),p=w(32441),j=w(9432),S=w(9937),F=function(R,M){var Y={};for(var Q in R)Object.prototype.hasOwnProperty.call(R,Q)&&M.indexOf(Q)<0&&(Y[Q]=R[Q]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Q=Object.getOwnPropertySymbols(R);ce<Q.length;ce++)M.indexOf(Q[ce])<0&&Object.prototype.propertyIsEnumerable.call(R,Q[ce])&&(Y[Q[ce]]=R[Q[ce]]);return Y};const P=(0,te.forwardRef)((R,M)=>{const{prefixCls:Y,bordered:Q=!0,size:ce,disabled:W,status:J,allowClear:V,showCount:K,classNames:se,rootClassName:he,className:Te}=R,xe=F(R,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:je,direction:X}=te.useContext(B.E_),de=(0,E.Z)(ce),k=te.useContext(h.Z),rt=W!=null?W:k,{status:Oe,hasFeedback:be,feedbackIcon:He}=te.useContext(p.aM),ge=(0,Z.F)(Oe,J),De=te.useRef(null);te.useImperativeHandle(M,()=>{var at;return{resizableTextArea:(at=De.current)===null||at===void 0?void 0:at.resizableTextArea,focus:st=>{var It,Ut;(0,j.n)((Ut=(It=De.current)===null||It===void 0?void 0:It.resizableTextArea)===null||Ut===void 0?void 0:Ut.textArea,st)},blur:()=>{var st;return(st=De.current)===null||st===void 0?void 0:st.blur()}}});const fe=je("input",Y);let Se;typeof V=="object"&&(V!=null&&V.clearIcon)?Se=V:V&&(Se={clearIcon:te.createElement(pe.Z,null)});const[ct,dt]=(0,S.ZP)(fe);return ct(te.createElement(Ne.default,Object.assign({},xe,{disabled:rt,allowClear:Se,className:U()(Te,he),classes:{affixWrapper:U()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:X==="rtl",[`${fe}-affix-wrapper-borderless`]:!Q,[`${fe}-affix-wrapper-sm`]:de==="small",[`${fe}-affix-wrapper-lg`]:de==="large",[`${fe}-textarea-show-count`]:K},(0,Z.Z)(`${fe}-affix-wrapper`,ge),dt)},classNames:Object.assign(Object.assign({},se),{textarea:U()({[`${fe}-borderless`]:!Q,[`${fe}-sm`]:de==="small",[`${fe}-lg`]:de==="large"},(0,Z.Z)(fe,ge),dt,se==null?void 0:se.textarea)}),prefixCls:fe,suffix:be&&te.createElement("span",{className:`${fe}-textarea-suffix`},He),showCount:K,ref:De})))});Jt.Z=P},59412:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return ue}});var pe=w(59301);function ue(U,Ne){const te=(0,pe.useRef)([]),Z=()=>{te.current.push(setTimeout(()=>{var B,h,E,p;!((B=U.current)===null||B===void 0)&&B.input&&((h=U.current)===null||h===void 0?void 0:h.input.getAttribute("type"))==="password"&&(!((E=U.current)===null||E===void 0)&&E.input.hasAttribute("value"))&&((p=U.current)===null||p===void 0||p.input.removeAttribute("value"))}))};return(0,pe.useEffect)(()=>(Ne&&Z(),()=>te.current.forEach(B=>{B&&clearTimeout(B)})),[]),Z}},92832:function(xn,Jt,w){"use strict";w.d(Jt,{default:function(){return de}});var pe=w(92310),ue=w.n(pe),U=w(59301),Ne=w(36355),te=w(32441),Z=w(9937),h=k=>{const{getPrefixCls:rt,direction:Oe}=(0,U.useContext)(Ne.E_),{prefixCls:be,className:He}=k,ge=rt("input-group",be),De=rt("input"),[fe,Se]=(0,Z.ZP)(De),ct=ue()(ge,{[`${ge}-lg`]:k.size==="large",[`${ge}-sm`]:k.size==="small",[`${ge}-compact`]:k.compact,[`${ge}-rtl`]:Oe==="rtl"},Se,He),dt=(0,U.useContext)(te.aM),at=(0,U.useMemo)(()=>Object.assign(Object.assign({},dt),{isFormItemInput:!1}),[dt]);return fe(U.createElement("span",{className:ct,style:k.style,onMouseEnter:k.onMouseEnter,onMouseLeave:k.onMouseLeave,onFocus:k.onFocus,onBlur:k.onBlur},U.createElement(te.aM.Provider,{value:at},k.children)))},E=w(9432),p=w(73331),j=w(15277),S=w(2738),F=w(8654),P=w(59412),R=function(k,rt){var Oe={};for(var be in k)Object.prototype.hasOwnProperty.call(k,be)&&rt.indexOf(be)<0&&(Oe[be]=k[be]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,be=Object.getOwnPropertySymbols(k);He<be.length;He++)rt.indexOf(be[He])<0&&Object.prototype.propertyIsEnumerable.call(k,be[He])&&(Oe[be[He]]=k[be[He]]);return Oe};const M=k=>k?U.createElement(j.Z,null):U.createElement(p.Z,null),Y={click:"onClick",hover:"onMouseOver"};var ce=U.forwardRef((k,rt)=>{const{visibilityToggle:Oe=!0}=k,be=typeof Oe=="object"&&Oe.visible!==void 0,[He,ge]=(0,U.useState)(()=>be?Oe.visible:!1),De=(0,U.useRef)(null);U.useEffect(()=>{be&&ge(Oe.visible)},[be,Oe]);const fe=(0,P.Z)(De),Se=()=>{const{disabled:wt}=k;wt||(He&&fe(),ge(_=>{var f;const u=!_;return typeof Oe=="object"&&((f=Oe.onVisibleChange)===null||f===void 0||f.call(Oe,u)),u}))},ct=wt=>{const{action:_="click",iconRender:f=M}=k,u=Y[_]||"",x=f(He),ee={[u]:Se,className:`${wt}-icon`,key:"passwordIcon",onMouseDown:Ce=>{Ce.preventDefault()},onMouseUp:Ce=>{Ce.preventDefault()}};return U.cloneElement(U.isValidElement(x)?x:U.createElement("span",null,x),ee)},{className:dt,prefixCls:at,inputPrefixCls:st,size:It}=k,Ut=R(k,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Kt}=U.useContext(Ne.E_),hr=Kt("input",st),or=Kt("input-password",at),Sr=Oe&&ct(or),ur=ue()(or,dt,{[`${or}-${It}`]:!!It}),G=Object.assign(Object.assign({},(0,S.Z)(Ut,["suffix","iconRender","visibilityToggle"])),{type:He?"text":"password",className:ur,prefixCls:hr,suffix:Sr});return It&&(G.size=It),U.createElement(E.Z,Object.assign({ref:(0,F.sQ)(rt,De)},G))}),W=w(47472),J=w(92343),V=w(3113),K=w(19716),se=w(33234),he=function(k,rt){var Oe={};for(var be in k)Object.prototype.hasOwnProperty.call(k,be)&&rt.indexOf(be)<0&&(Oe[be]=k[be]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,be=Object.getOwnPropertySymbols(k);He<be.length;He++)rt.indexOf(be[He])<0&&Object.prototype.propertyIsEnumerable.call(k,be[He])&&(Oe[be[He]]=k[be[He]]);return Oe},xe=U.forwardRef((k,rt)=>{const{prefixCls:Oe,inputPrefixCls:be,className:He,size:ge,suffix:De,enterButton:fe=!1,addonAfter:Se,loading:ct,disabled:dt,onSearch:at,onChange:st,onCompositionStart:It,onCompositionEnd:Ut}=k,Kt=he(k,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:hr,direction:or}=U.useContext(Ne.E_),Sr=U.useRef(!1),ur=hr("input-search",Oe),G=hr("input",be),{compactSize:wt}=(0,se.ri)(ur,or),_=(0,K.Z)(ft=>{var lt;return(lt=ge!=null?ge:wt)!==null&&lt!==void 0?lt:ft}),f=U.useRef(null),u=ft=>{ft&&ft.target&&ft.type==="click"&&at&&at(ft.target.value,ft,{source:"clear"}),st&&st(ft)},x=ft=>{var lt;document.activeElement===((lt=f.current)===null||lt===void 0?void 0:lt.input)&&ft.preventDefault()},ee=ft=>{var lt,Pe;at&&at((Pe=(lt=f.current)===null||lt===void 0?void 0:lt.input)===null||Pe===void 0?void 0:Pe.value,ft,{source:"input"})},Ce=ft=>{Sr.current||ct||ee(ft)},H=typeof fe=="boolean"?U.createElement(W.Z,null):null,ne=`${ur}-button`;let $e;const we=fe||{},ve=we.type&&we.type.__ANT_BUTTON===!0;ve||we.type==="button"?$e=(0,J.Tm)(we,Object.assign({onMouseDown:x,onClick:ft=>{var lt,Pe;(Pe=(lt=we==null?void 0:we.props)===null||lt===void 0?void 0:lt.onClick)===null||Pe===void 0||Pe.call(lt,ft),ee(ft)},key:"enterButton"},ve?{className:ne,size:_}:{})):$e=U.createElement(V.ZP,{className:ne,type:fe?"primary":void 0,size:_,disabled:dt,key:"enterButton",onMouseDown:x,onClick:ee,loading:ct,icon:H},fe),Se&&($e=[$e,(0,J.Tm)(Se,{key:"addonAfter"})]);const qe=ue()(ur,{[`${ur}-rtl`]:or==="rtl",[`${ur}-${_}`]:!!_,[`${ur}-with-button`]:!!fe},He),St=ft=>{Sr.current=!0,It==null||It(ft)},me=ft=>{Sr.current=!1,Ut==null||Ut(ft)};return U.createElement(E.Z,Object.assign({ref:(0,F.sQ)(f,rt),onPressEnter:Ce},Kt,{size:_,onCompositionStart:St,onCompositionEnd:me,prefixCls:G,addonAfter:$e,suffix:De,onChange:u,className:qe,disabled:dt}))}),je=w(1643);const X=E.Z;X.Group=h,X.Search=xe,X.TextArea=je.Z,X.Password=ce;var de=X},9937:function(xn,Jt,w){"use strict";w.d(Jt,{M1:function(){return B},TM:function(){return J},Xy:function(){return h},bi:function(){return j},e5:function(){return W},ik:function(){return S},nz:function(){return te},pU:function(){return Z},s7:function(){return F},x0:function(){return p}});var pe=w(17313),ue=w(74207),U=w(37613),Ne=w(83116);const te=V=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:V,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Z=V=>({borderColor:V.hoverBorderColor}),B=V=>({borderColor:V.activeBorderColor,boxShadow:V.activeShadow,outline:0}),h=V=>({color:V.colorTextDisabled,backgroundColor:V.colorBgContainerDisabled,borderColor:V.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Z((0,U.TS)(V,{hoverBorderColor:V.colorBorder})))}),E=V=>{const{paddingBlockLG:K,fontSizeLG:se,lineHeightLG:he,borderRadiusLG:Te,paddingInlineLG:xe}=V;return{padding:`${K}px ${xe}px`,fontSize:se,lineHeight:he,borderRadius:Te}},p=V=>({padding:`${V.paddingBlockSM}px ${V.paddingInlineSM}px`,borderRadius:V.borderRadiusSM}),j=(V,K)=>{const{componentCls:se,colorError:he,colorWarning:Te,errorActiveShadow:xe,warningActiveShadow:je,colorErrorBorderHover:X,colorWarningBorderHover:de}=V;return{[`&-status-error:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:he,"&:hover":{borderColor:X},"&:focus, &-focused":Object.assign({},B((0,U.TS)(V,{activeBorderColor:he,activeShadow:xe}))),[`${se}-prefix, ${se}-suffix`]:{color:he}},[`&-status-warning:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:Te,"&:hover":{borderColor:de},"&:focus, &-focused":Object.assign({},B((0,U.TS)(V,{activeBorderColor:Te,activeShadow:je}))),[`${se}-prefix, ${se}-suffix`]:{color:Te}}}},S=V=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${V.paddingBlock}px ${V.paddingInline}px`,color:V.colorText,fontSize:V.fontSize,lineHeight:V.lineHeight,backgroundColor:V.colorBgContainer,backgroundImage:"none",borderWidth:V.lineWidth,borderStyle:V.lineType,borderColor:V.colorBorder,borderRadius:V.borderRadius,transition:`all ${V.motionDurationMid}`},te(V.colorTextPlaceholder)),{"&:hover":Object.assign({},Z(V)),"&:focus, &-focused":Object.assign({},B(V)),"&-disabled, &[disabled]":Object.assign({},h(V)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:V.controlHeight,lineHeight:V.lineHeight,verticalAlign:"bottom",transition:`all ${V.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},E(V)),"&-sm":Object.assign({},p(V)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),F=V=>{const{componentCls:K,antCls:se}=V;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:V.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${K}, &-lg > ${K}-group-addon`]:Object.assign({},E(V)),[`&-sm ${K}, &-sm > ${K}-group-addon`]:Object.assign({},p(V)),[`&-lg ${se}-select-single ${se}-select-selector`]:{height:V.controlHeightLG},[`&-sm ${se}-select-single ${se}-select-selector`]:{height:V.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 ${V.paddingInline}px`,color:V.colorText,fontWeight:"normal",fontSize:V.fontSize,textAlign:"center",backgroundColor:V.colorFillAlter,border:`${V.lineWidth}px ${V.lineType} ${V.colorBorder}`,borderRadius:V.borderRadius,transition:`all ${V.motionDurationSlow}`,lineHeight:1,[`${se}-select`]:{margin:`-${V.paddingBlock+1}px -${V.paddingInline}px`,[`&${se}-select-single:not(${se}-select-customize-input)`]:{[`${se}-select-selector`]:{backgroundColor:"inherit",border:`${V.lineWidth}px ${V.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${se}-select-selector`]:{color:V.colorPrimary}}},[`${se}-cascader-picker`]:{margin:`-9px -${V.paddingInline}px`,backgroundColor:"transparent",[`${se}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${K}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${K}-search-with-button &`]:{zIndex:0}}},[`> ${K}:first-child, ${K}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}-affix-wrapper`]:{[`&:not(:first-child) ${K}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${K}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}:last-child, ${K}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${K}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${K}-search &`]:{borderStartStartRadius:V.borderRadius,borderEndStartRadius:V.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:V.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${K}-affix-wrapper,
& > ${K}-number-affix-wrapper,
& > ${se}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-V.lineWidth,borderInlineEndWidth:V.lineWidth},[`${K}`]:{float:"none"},[`& > ${se}-select > ${se}-select-selector,
& > ${se}-select-auto-complete ${K},
& > ${se}-cascader-picker ${K},
& > ${K}-group-wrapper ${K}`]:{borderInlineEndWidth:V.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${se}-select-focused`]:{zIndex:1},[`& > ${se}-select > ${se}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${se}-select:first-child > ${se}-select-selector,
& > ${se}-select-auto-complete:first-child ${K},
& > ${se}-cascader-picker:first-child ${K}`]:{borderStartStartRadius:V.borderRadius,borderEndStartRadius:V.borderRadius},[`& > *:last-child,
& > ${se}-select:last-child > ${se}-select-selector,
& > ${se}-cascader-picker:last-child ${K},
& > ${se}-cascader-picker-focused:last-child ${K}`]:{borderInlineEndWidth:V.lineWidth,borderStartEndRadius:V.borderRadius,borderEndEndRadius:V.borderRadius},[`& > ${se}-select-auto-complete ${K}`]:{verticalAlign:"top"},[`${K}-group-wrapper + ${K}-group-wrapper`]:{marginInlineStart:-V.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:V.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:V.borderRadius}}}})}},P=V=>{const{componentCls:K,controlHeightSM:se,lineWidth:he}=V,xe=(se-he*2-16)/2;return{[K]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(V)),S(V)),j(V,K)),{'&[type="color"]':{height:V.controlHeight,[`&${K}-lg`]:{height:V.controlHeightLG},[`&${K}-sm`]:{height:se,paddingTop:xe,paddingBottom:xe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},R=V=>{const{componentCls:K}=V;return{[`${K}-clear-icon`]:{margin:0,color:V.colorTextQuaternary,fontSize:V.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${V.motionDurationSlow}`,"&:hover":{color:V.colorTextTertiary},"&:active":{color:V.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${V.inputAffixPadding}px`}}}},M=V=>{const{componentCls:K,inputAffixPadding:se,colorTextDescription:he,motionDurationSlow:Te,colorIcon:xe,colorIconHover:je,iconCls:X}=V;return{[`${K}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S(V)),{display:"inline-flex",[`&:not(${K}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Z(V)),{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:V.paddingXS}},"&-show-count-suffix":{color:he},"&-show-count-has-suffix":{marginInlineEnd:V.paddingXXS},"&-prefix":{marginInlineEnd:se},"&-suffix":{marginInlineStart:se}}}),R(V)),{[`${X}${K}-password-icon`]:{color:xe,cursor:"pointer",transition:`all ${Te}`,"&:hover":{color:je}}}),j(V,`${K}-affix-wrapper`))}},Y=V=>{const{componentCls:K,colorError:se,colorWarning:he,borderRadiusLG:Te,borderRadiusSM:xe}=V;return{[`${K}-group`]:Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(V)),F(V)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${K}-group-addon`]:{borderRadius:Te,fontSize:V.fontSizeLG}},"&-sm":{[`${K}-group-addon`]:{borderRadius:xe}},"&-status-error":{[`${K}-group-addon`]:{color:se,borderColor:se}},"&-status-warning":{[`${K}-group-addon`]:{color:he,borderColor:he}},"&-disabled":{[`${K}-group-addon`]:Object.assign({},h(V))},[`&:not(${K}-compact-first-item):not(${K}-compact-last-item)${K}-compact-item`]:{[`${K}, ${K}-group-addon`]:{borderRadius:0}},[`&:not(${K}-compact-last-item)${K}-compact-first-item`]:{[`${K}, ${K}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${K}-compact-first-item)${K}-compact-last-item`]:{[`${K}, ${K}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Q=V=>{const{componentCls:K,antCls:se}=V,he=`${K}-search`;return{[he]:{[`${K}`]:{"&:hover, &:focus":{borderColor:V.colorPrimaryHover,[`+ ${K}-group-addon ${he}-button:not(${se}-btn-primary)`]:{borderInlineStartColor:V.colorPrimaryHover}}},[`${K}-affix-wrapper`]:{borderRadius:0},[`${K}-lg`]:{lineHeight:V.lineHeightLG-2e-4},[`> ${K}-group`]:{[`> ${K}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${he}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:V.borderRadius,borderEndEndRadius:V.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${he}-button:not(${se}-btn-primary)`]:{color:V.colorTextDescription,"&:hover":{color:V.colorPrimaryHover},"&:active":{color:V.colorPrimaryActive},[`&${se}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${he}-button`]:{height:V.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${he}-button`]:{height:V.controlHeightLG},[`&-small ${he}-button`]:{height:V.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${K}-compact-item`]:{[`&:not(${K}-compact-last-item)`]:{[`${K}-group-addon`]:{[`${K}-search-button`]:{marginInlineEnd:-V.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}}}}},ce=V=>{const{componentCls:K,paddingLG:se}=V,he=`${K}-textarea`;return{[he]:{position:"relative","&-show-count":{[`> ${K}`]:{height:"100%"},[`${K}-data-count`]:{position:"absolute",bottom:-V.fontSize*V.lineHeight,insetInlineEnd:0,color:V.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${K}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${he}-has-feedback`]:{[`${K}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${K}-affix-wrapper`]:{padding:0,[`> textarea${K}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${K}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${K}-clear-icon`]:{position:"absolute",insetInlineEnd:V.paddingXS,insetBlockStart:V.paddingXS},[`${he}-suffix`]:{position:"absolute",top:0,insetInlineEnd:V.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function W(V){return(0,U.TS)(V,{inputAffixPadding:V.paddingXXS})}const J=V=>{const{controlHeight:K,fontSize:se,lineHeight:he,lineWidth:Te,controlHeightSM:xe,controlHeightLG:je,fontSizeLG:X,lineHeightLG:de,paddingSM:k,controlPaddingHorizontalSM:rt,controlPaddingHorizontal:Oe,colorFillAlter:be,colorPrimaryHover:He,controlOutlineWidth:ge,controlOutline:De,colorErrorOutline:fe,colorWarningOutline:Se}=V;return{paddingBlock:Math.max(Math.round((K-se*he)/2*10)/10-Te,3),paddingBlockSM:Math.max(Math.round((xe-se*he)/2*10)/10-Te,0),paddingBlockLG:Math.ceil((je-X*de)/2*10)/10-Te,paddingInline:k-Te,paddingInlineSM:rt-Te,paddingInlineLG:Oe-Te,addonBg:be,activeBorderColor:He,hoverBorderColor:He,activeShadow:`0 0 0 ${ge}px ${De}`,errorActiveShadow:`0 0 0 ${ge}px ${fe}`,warningActiveShadow:`0 0 0 ${ge}px ${Se}`}};Jt.ZP=(0,Ne.Z)("Input",V=>{const K=(0,U.TS)(V,W(V));return[P(K),ce(K),M(K),Y(K),Q(K),(0,ue.c)(K)]},J)},45818:function(xn,Jt,w){"use strict";w.d(Jt,{D:function(){return W},Z:function(){return K}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(he,Te){return ue.createElement(te.Z,(0,pe.Z)({},he,{ref:Te,icon:Ne}))},B=ue.forwardRef(Z),h=B,E=w(33853),p=w(38819),j=w(92310),S=w.n(j),F=w(2738),R=se=>!isNaN(parseFloat(se))&&isFinite(se),M=w(36355),Y=w(84966),Q=function(se,he){var Te={};for(var xe in se)Object.prototype.hasOwnProperty.call(se,xe)&&he.indexOf(xe)<0&&(Te[xe]=se[xe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,xe=Object.getOwnPropertySymbols(se);je<xe.length;je++)he.indexOf(xe[je])<0&&Object.prototype.propertyIsEnumerable.call(se,xe[je])&&(Te[xe[je]]=se[xe[je]]);return Te};const ce={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},W=ue.createContext({}),J=(()=>{let se=0;return function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return se+=1,`${he}${se}`}})();var K=ue.forwardRef((se,he)=>{const{prefixCls:Te,className:xe,trigger:je,children:X,defaultCollapsed:de=!1,theme:k="dark",style:rt={},collapsible:Oe=!1,reverseArrow:be=!1,width:He=200,collapsedWidth:ge=80,zeroWidthTriggerStyle:De,breakpoint:fe,onCollapse:Se,onBreakpoint:ct}=se,dt=Q(se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:at}=(0,ue.useContext)(Y.Gs),[st,It]=(0,ue.useState)("collapsed"in se?se.collapsed:de),[Ut,Kt]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in se&&It(se.collapsed)},[se.collapsed]);const hr=(_,f)=>{"collapsed"in se||It(_),Se==null||Se(_,f)},or=(0,ue.useRef)();or.current=_=>{Kt(_.matches),ct==null||ct(_.matches),st!==_.matches&&hr(_.matches,"responsive")},(0,ue.useEffect)(()=>{function _(u){return or.current(u)}let f;if(typeof window!="undefined"){const{matchMedia:u}=window;if(u&&fe&&fe in ce){f=u(`(max-width: ${ce[fe]})`);try{f.addEventListener("change",_)}catch(x){f.addListener(_)}_(f)}}return()=>{try{f==null||f.removeEventListener("change",_)}catch(u){f==null||f.removeListener(_)}}},[fe]),(0,ue.useEffect)(()=>{const _=J("ant-sider-");return at.addSider(_),()=>at.removeSider(_)},[]);const Sr=()=>{hr(!st,"clickTrigger")},{getPrefixCls:ur}=(0,ue.useContext)(M.E_),G=()=>{const _=ur("layout-sider",Te),f=(0,F.Z)(dt,["collapsed"]),u=st?ge:He,x=R(u)?`${u}px`:String(u),ee=parseFloat(String(ge||0))===0?ue.createElement("span",{onClick:Sr,className:S()(`${_}-zero-width-trigger`,`${_}-zero-width-trigger-${be?"right":"left"}`),style:De},je||ue.createElement(h,null)):null,ne={expanded:be?ue.createElement(p.Z,null):ue.createElement(E.Z,null),collapsed:be?ue.createElement(E.Z,null):ue.createElement(p.Z,null)}[st?"collapsed":"expanded"],$e=je!==null?ee||ue.createElement("div",{className:`${_}-trigger`,onClick:Sr,style:{width:x}},je||ne):null,we=Object.assign(Object.assign({},rt),{flex:`0 0 ${x}`,maxWidth:x,minWidth:x,width:x}),ve=S()(_,`${_}-${k}`,{[`${_}-collapsed`]:!!st,[`${_}-has-trigger`]:Oe&&je!==null&&!ee,[`${_}-below`]:!!Ut,[`${_}-zero-width`]:parseFloat(x)===0},xe);return ue.createElement("aside",Object.assign({className:ve},f,{style:we,ref:he}),ue.createElement("div",{className:`${_}-children`},X),Oe||Ut&&ee?$e:null)},wt=ue.useMemo(()=>({siderCollapsed:st}),[st]);return ue.createElement(W.Provider,{value:wt},G())})},84966:function(xn,Jt,w){"use strict";w.d(Jt,{VY:function(){return W},$_:function(){return ce},h4:function(){return Q},Gs:function(){return F},ZP:function(){return J}});var pe=w(3300),ue=w(92310),U=w.n(ue),Ne=w(2738),te=w(59301),Z=w(36355),B=w(83116),E=V=>{const{componentCls:K,bodyBg:se,lightSiderBg:he,lightTriggerBg:Te,lightTriggerColor:xe}=V;return{[`${K}-sider-light`]:{background:he,[`${K}-sider-trigger`]:{color:xe,background:Te},[`${K}-sider-zero-width-trigger`]:{color:xe,background:Te,border:`1px solid ${se}`,borderInlineStart:0}}}};const p=V=>{const{antCls:K,componentCls:se,colorText:he,triggerColor:Te,footerBg:xe,triggerBg:je,headerHeight:X,headerPadding:de,headerColor:k,footerPadding:rt,triggerHeight:Oe,zeroTriggerHeight:be,zeroTriggerWidth:He,motionDurationMid:ge,motionDurationSlow:De,fontSize:fe,borderRadius:Se,bodyBg:ct,headerBg:dt,siderBg:at}=V;return{[se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ct,"&, *":{boxSizing:"border-box"},[`&${se}-has-sider`]:{flexDirection:"row",[`> ${se}, > ${se}-content`]:{width:0}},[`${se}-header, &${se}-footer`]:{flex:"0 0 auto"},[`${se}-sider`]:{position:"relative",minWidth:0,background:at,transition:`all ${ge}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${K}-menu${K}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Oe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Oe,color:Te,lineHeight:`${Oe}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${ge}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:X,insetInlineEnd:-He,zIndex:1,width:He,height:be,color:Te,fontSize:V.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:at,borderStartStartRadius:0,borderStartEndRadius:Se,borderEndEndRadius:Se,borderEndStartRadius:0,cursor:"pointer",transition:`background ${De} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${De}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:Se,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se}}}}},E(V)),{"&-rtl":{direction:"rtl"}}),[`${se}-header`]:{height:X,padding:de,color:k,lineHeight:`${X}px`,background:dt,[`${K}-menu`]:{lineHeight:"inherit"}},[`${se}-footer`]:{padding:rt,color:he,fontSize:fe,background:xe},[`${se}-content`]:{flex:"auto",minHeight:0}}};var j=(0,B.Z)("Layout",V=>[p(V)],V=>{const{colorBgLayout:K,controlHeight:se,controlHeightLG:he,colorText:Te,controlHeightSM:xe,marginXXS:je,colorTextLightSolid:X,colorBgContainer:de}=V,k=he*1.25;return{colorBgHeader:"#001529",colorBgBody:K,colorBgTrigger:"#002140",bodyBg:K,headerBg:"#001529",headerHeight:se*2,headerPadding:`0 ${k}px`,headerColor:Te,footerPadding:`${xe}px ${k}px`,footerBg:K,siderBg:"#001529",triggerHeight:he+je*2,triggerBg:"#002140",triggerColor:X,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:de,lightTriggerBg:de,lightTriggerColor:Te}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),S=function(V,K){var se={};for(var he in V)Object.prototype.hasOwnProperty.call(V,he)&&K.indexOf(he)<0&&(se[he]=V[he]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,he=Object.getOwnPropertySymbols(V);Te<he.length;Te++)K.indexOf(he[Te])<0&&Object.prototype.propertyIsEnumerable.call(V,he[Te])&&(se[he[Te]]=V[he[Te]]);return se};const F=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function P(V){let{suffixCls:K,tagName:se,displayName:he}=V;return Te=>te.forwardRef((je,X)=>te.createElement(Te,Object.assign({ref:X,suffixCls:K,tagName:se},je)))}const R=te.forwardRef((V,K)=>{const{prefixCls:se,suffixCls:he,className:Te,tagName:xe}=V,je=S(V,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:X}=te.useContext(Z.E_),de=X("layout",se),[k,rt]=j(de),Oe=he?`${de}-${he}`:de;return k(te.createElement(xe,Object.assign({className:U()(se||Oe,Te,rt),ref:K},je)))}),M=te.forwardRef((V,K)=>{const{direction:se}=te.useContext(Z.E_),[he,Te]=te.useState([]),{prefixCls:xe,className:je,rootClassName:X,children:de,hasSider:k,tagName:rt,style:Oe}=V,be=S(V,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,Ne.Z)(be,["suffixCls"]),{getPrefixCls:ge,layout:De}=te.useContext(Z.E_),fe=ge("layout",xe),[Se,ct]=j(fe),dt=U()(fe,{[`${fe}-has-sider`]:typeof k=="boolean"?k:he.length>0,[`${fe}-rtl`]:se==="rtl"},De==null?void 0:De.className,je,X,ct),at=te.useMemo(()=>({siderHook:{addSider:st=>{Te(It=>[].concat((0,pe.Z)(It),[st]))},removeSider:st=>{Te(It=>It.filter(Ut=>Ut!==st))}}}),[]);return Se(te.createElement(F.Provider,{value:at},te.createElement(rt,Object.assign({ref:K,className:dt,style:Object.assign(Object.assign({},De==null?void 0:De.style),Oe)},He),de)))}),Y=P({tagName:"div",displayName:"Layout"})(M),Q=P({suffixCls:"header",tagName:"header",displayName:"Header"})(R),ce=P({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(R),W=P({suffixCls:"content",tagName:"main",displayName:"Content"})(R);var J=Y},40875:function(xn,Jt,w){"use strict";w.d(Jt,{J:function(){return Z}});var pe=w(59301),ue=w(33234),U=w(70425),Ne=function(B,h){var E={};for(var p in B)Object.prototype.hasOwnProperty.call(B,p)&&h.indexOf(p)<0&&(E[p]=B[p]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,p=Object.getOwnPropertySymbols(B);j<p.length;j++)h.indexOf(p[j])<0&&Object.prototype.propertyIsEnumerable.call(B,p[j])&&(E[p[j]]=B[p[j]]);return E};const te=pe.createContext(null),Z=pe.forwardRef((B,h)=>{const{children:E}=B,p=Ne(B,["children"]),j=pe.useContext(te),S=pe.useMemo(()=>Object.assign(Object.assign({},j),p),[j,p.prefixCls,p.mode,p.selectable]);return pe.createElement(te.Provider,{value:S},pe.createElement(ue.BR,null,(0,U.supportNodeRef)(E)?pe.cloneElement(E,{ref:h}):E))});Jt.Z=te},20834:function(xn,Jt,w){"use strict";w.d(Jt,{default:function(){return wt}});var pe=w(15285),ue=w(59301),U=w(45818),Ne=w(92310),te=w.n(Ne),Z=w(36355),B=function(_,f){var u={};for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&f.indexOf(x)<0&&(u[x]=_[x]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,x=Object.getOwnPropertySymbols(_);ee<x.length;ee++)f.indexOf(x[ee])<0&&Object.prototype.propertyIsEnumerable.call(_,x[ee])&&(u[x[ee]]=_[x[ee]]);return u},E=_=>{const{prefixCls:f,className:u,dashed:x}=_,ee=B(_,["prefixCls","className","dashed"]),{getPrefixCls:Ce}=ue.useContext(Z.E_),H=Ce("menu",f),ne=te()({[`${H}-item-divider-dashed`]:!!x},u);return ue.createElement(pe.iz,Object.assign({className:ne},ee))},p=w(11592),j=w(2738),S=w(6848),F=w(92343),R=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Y=_=>{var f;const{className:u,children:x,icon:ee,title:Ce,danger:H}=_,{prefixCls:ne,firstLevel:$e,direction:we,disableMenuItemTitleTooltip:ve,inlineCollapsed:qe}=ue.useContext(R),St=pt=>{const zt=ue.createElement("span",{className:`${ne}-title-content`},x);return(!ee||(0,F.l$)(x)&&x.type==="span")&&x&&pt&&$e&&typeof x=="string"?ue.createElement("div",{className:`${ne}-inline-collapsed-noicon`},x.charAt(0)):zt},{siderCollapsed:me}=ue.useContext(U.D);let ft=Ce;typeof Ce=="undefined"?ft=$e?x:"":Ce===!1&&(ft="");const lt={title:ft};!me&&!qe&&(lt.title=null,lt.open=!1);const Pe=(0,p.Z)(x).length;let Le=ue.createElement(pe.ck,Object.assign({},(0,j.Z)(_,["title","icon","danger"]),{className:te()({[`${ne}-item-danger`]:H,[`${ne}-item-only-child`]:(ee?Pe+1:Pe)===1},u),title:typeof Ce=="string"?Ce:void 0}),(0,F.Tm)(ee,{className:te()((0,F.l$)(ee)?(f=ee.props)===null||f===void 0?void 0:f.className:"",`${ne}-item-icon`)}),St(qe));return ve||(Le=ue.createElement(S.Z,Object.assign({},lt,{placement:we==="rtl"?"left":"right",overlayClassName:`${ne}-inline-collapsed-tooltip`}),Le)),Le},ce=_=>{var f;const{popupClassName:u,icon:x,title:ee,theme:Ce}=_,H=ue.useContext(R),{prefixCls:ne,inlineCollapsed:$e,theme:we}=H,ve=(0,pe.Xl)();let qe;if(!x)qe=$e&&!ve.length&&ee&&typeof ee=="string"?ue.createElement("div",{className:`${ne}-inline-collapsed-noicon`},ee.charAt(0)):ue.createElement("span",{className:`${ne}-title-content`},ee);else{const me=(0,F.l$)(ee)&&ee.type==="span";qe=ue.createElement(ue.Fragment,null,(0,F.Tm)(x,{className:te()((0,F.l$)(x)?(f=x.props)===null||f===void 0?void 0:f.className:"",`${ne}-item-icon`)}),me?ee:ue.createElement("span",{className:`${ne}-title-content`},ee))}const St=ue.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return ue.createElement(R.Provider,{value:St},ue.createElement(pe.Wd,Object.assign({},(0,j.Z)(_,["icon"]),{title:qe,popupClassName:te()(ne,u,`${ne}-${Ce||we}`)})))},W=w(18785),J=w(70425),V=w(62892),K=w(40875),se=function(_,f){var u={};for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&f.indexOf(x)<0&&(u[x]=_[x]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,x=Object.getOwnPropertySymbols(_);ee<x.length;ee++)f.indexOf(x[ee])<0&&Object.prototype.propertyIsEnumerable.call(_,x[ee])&&(u[x[ee]]=_[x[ee]]);return u};function he(_){return(_||[]).map((f,u)=>{if(f&&typeof f=="object"){const x=f,{label:ee,children:Ce,key:H,type:ne}=x,$e=se(x,["label","children","key","type"]),we=H!=null?H:`tmp-${u}`;return Ce||ne==="group"?ne==="group"?ue.createElement(pe.BW,Object.assign({key:we},$e,{title:ee}),he(Ce)):ue.createElement(ce,Object.assign({key:we},$e,{title:ee}),he(Ce)):ne==="divider"?ue.createElement(E,Object.assign({key:we},$e)):ue.createElement(Y,Object.assign({key:we},$e),ee)}return null}).filter(f=>f)}function Te(_){return ue.useMemo(()=>_&&he(_),[_])}var xe=w(64993),je=w(17313),X=w(8378),de=w(13826),k=w(29878),rt=w(83116),Oe=w(37613),He=_=>{const{componentCls:f,motionDurationSlow:u,horizontalLineHeight:x,colorSplit:ee,lineWidth:Ce,lineType:H,itemPaddingInline:ne}=_;return{[`${f}-horizontal`]:{lineHeight:x,border:0,borderBottom:`${Ce}px ${H} ${ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${f}-item, ${f}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ne},[`> ${f}-item:hover,
> ${f}-item-active,
> ${f}-submenu ${f}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${f}-item, ${f}-submenu-title`]:{transition:[`border-color ${u}`,`background ${u}`].join(",")},[`${f}-submenu-arrow`]:{display:"none"}}}},De=_=>{let{componentCls:f,menuArrowOffset:u}=_;return{[`${f}-rtl`]:{direction:"rtl"},[`${f}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${f}-rtl${f}-vertical,
${f}-submenu-rtl ${f}-vertical`]:{[`${f}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${u})`},"&::after":{transform:`rotate(45deg) translateY(${u})`}}}}};const fe=_=>Object.assign({},(0,je.oN)(_));var ct=(_,f)=>{const{componentCls:u,itemColor:x,itemSelectedColor:ee,groupTitleColor:Ce,itemBg:H,subMenuItemBg:ne,itemSelectedBg:$e,activeBarHeight:we,activeBarWidth:ve,activeBarBorderWidth:qe,motionDurationSlow:St,motionEaseInOut:me,motionEaseOut:ft,itemPaddingInline:lt,motionDurationMid:Pe,itemHoverColor:Le,lineType:pt,colorSplit:zt,itemDisabledColor:Ht,dangerItemColor:er,dangerItemHoverColor:Pr,dangerItemSelectedColor:pr,dangerItemActiveBg:kr,dangerItemSelectedBg:Dr,itemHoverBg:vr,itemActiveBg:dr,menuSubMenuBg:$r,horizontalItemSelectedColor:un,horizontalItemSelectedBg:_n,horizontalItemBorderRadius:qr,horizontalItemHoverBg:Bn,popupBg:ti}=_;return{[`${u}-${f}, ${u}-${f} > ${u}`]:{color:x,background:H,[`&${u}-root:focus-visible`]:Object.assign({},fe(_)),[`${u}-item-group-title`]:{color:Ce},[`${u}-submenu-selected`]:{[`> ${u}-submenu-title`]:{color:ee}},[`${u}-item-disabled, ${u}-submenu-disabled`]:{color:`${Ht} !important`},[`${u}-item:not(${u}-item-selected):not(${u}-submenu-selected)`]:{[`&:hover, > ${u}-submenu-title:hover`]:{color:Le}},[`&:not(${u}-horizontal)`]:{[`${u}-item:not(${u}-item-selected)`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:dr}},[`${u}-submenu-title`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:dr}}},[`${u}-item-danger`]:{color:er,[`&${u}-item:hover`]:{[`&:not(${u}-item-selected):not(${u}-submenu-selected)`]:{color:Pr}},[`&${u}-item:active`]:{background:kr}},[`${u}-item a`]:{"&, &:hover":{color:"inherit"}},[`${u}-item-selected`]:{color:ee,[`&${u}-item-danger`]:{color:pr},"a, a:hover":{color:"inherit"}},[`& ${u}-item-selected`]:{backgroundColor:$e,[`&${u}-item-danger`]:{backgroundColor:Dr}},[`${u}-item, ${u}-submenu-title`]:{[`&:not(${u}-item-disabled):focus-visible`]:Object.assign({},fe(_))},[`&${u}-submenu > ${u}`]:{backgroundColor:$r},[`&${u}-popup > ${u}`]:{backgroundColor:ti},[`&${u}-horizontal`]:Object.assign(Object.assign({},f==="dark"?{borderBottom:0}:{}),{[`> ${u}-item, > ${u}-submenu`]:{top:qe,marginTop:-qe,marginBottom:0,borderRadius:qr,"&::after":{position:"absolute",insetInline:lt,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${St} ${me}`,content:'""'},"&:hover, &-active, &-open":{background:Bn,"&::after":{borderBottomWidth:we,borderBottomColor:un}},"&-selected":{color:un,backgroundColor:_n,"&:hover":{backgroundColor:_n},"&::after":{borderBottomWidth:we,borderBottomColor:un}}}}),[`&${u}-root`]:{[`&${u}-inline, &${u}-vertical`]:{borderInlineEnd:`${qe}px ${pt} ${zt}`}},[`&${u}-inline`]:{[`${u}-sub${u}-inline`]:{background:ne},[`${u}-item, ${u}-submenu-title`]:qe&&ve?{width:`calc(100% + ${qe}px)`}:{},[`${u}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ve}px solid ${ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Pe} ${ft}`,`opacity ${Pe} ${ft}`].join(","),content:'""'},[`&${u}-item-danger`]:{"&::after":{borderInlineEndColor:pr}}},[`${u}-selected, ${u}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Pe} ${me}`,`opacity ${Pe} ${me}`].join(",")}}}}}};const dt=_=>{const{componentCls:f,itemHeight:u,itemMarginInline:x,padding:ee,menuArrowSize:Ce,marginXS:H,itemMarginBlock:ne}=_,$e=ee+Ce+H;return{[`${f}-item`]:{position:"relative",overflow:"hidden"},[`${f}-item, ${f}-submenu-title`]:{height:u,lineHeight:`${u}px`,paddingInline:ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:x,marginBlock:ne,width:`calc(100% - ${x*2}px)`},[`> ${f}-item,
> ${f}-submenu > ${f}-submenu-title`]:{height:u,lineHeight:`${u}px`},[`${f}-item-group-list ${f}-submenu-title,
${f}-submenu-title`]:{paddingInlineEnd:$e}}};var st=_=>{const{componentCls:f,iconCls:u,itemHeight:x,colorTextLightSolid:ee,dropdownWidth:Ce,controlHeightLG:H,motionDurationMid:ne,motionEaseOut:$e,paddingXL:we,itemMarginInline:ve,fontSizeLG:qe,motionDurationSlow:St,paddingXS:me,boxShadowSecondary:ft,collapsedWidth:lt,collapsedIconSize:Pe}=_,Le={height:x,lineHeight:`${x}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[f]:{"&-inline, &-vertical":Object.assign({[`&${f}-root`]:{boxShadow:"none"}},dt(_))},[`${f}-submenu-popup`]:{[`${f}-vertical`]:Object.assign(Object.assign({},dt(_)),{boxShadow:ft})}},{[`${f}-submenu-popup ${f}-vertical${f}-sub`]:{minWidth:Ce,maxHeight:`calc(100vh - ${H*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${f}-inline`]:{width:"100%",[`&${f}-root`]:{[`${f}-item, ${f}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${St}`,`background ${St}`,`padding ${ne} ${$e}`].join(","),[`> ${f}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${f}-sub${f}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${f}-submenu > ${f}-submenu-title`]:Le,[`& ${f}-item-group-title`]:{paddingInlineStart:we}},[`${f}-item`]:Le}},{[`${f}-inline-collapsed`]:{width:lt,[`&${f}-root`]:{[`${f}-item, ${f}-submenu ${f}-submenu-title`]:{[`> ${f}-inline-collapsed-noicon`]:{fontSize:qe,textAlign:"center"}}},[`> ${f}-item,
> ${f}-item-group > ${f}-item-group-list > ${f}-item,
> ${f}-item-group > ${f}-item-group-list > ${f}-submenu > ${f}-submenu-title,
> ${f}-submenu > ${f}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${qe/2}px - ${ve}px)`,textOverflow:"clip",[`
${f}-submenu-arrow,
${f}-submenu-expand-icon
`]:{opacity:0},[`${f}-item-icon, ${u}`]:{margin:0,fontSize:Pe,lineHeight:`${x}px`,"+ span":{display:"inline-block",opacity:0}}},[`${f}-item-icon, ${u}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${f}-item-icon, ${u}`]:{display:"none"},"a, a:hover":{color:ee}},[`${f}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:me})}}]};const It=_=>{const{componentCls:f,motionDurationSlow:u,motionDurationMid:x,motionEaseInOut:ee,motionEaseOut:Ce,iconCls:H,iconSize:ne,iconMarginInlineEnd:$e}=_;return{[`${f}-item, ${f}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${u}`,`background ${u}`,`padding ${u} ${ee}`].join(","),[`${f}-item-icon, ${H}`]:{minWidth:ne,fontSize:ne,transition:[`font-size ${x} ${Ce}`,`margin ${u} ${ee}`,`color ${u}`].join(","),"+ span":{marginInlineStart:$e,opacity:1,transition:[`opacity ${u} ${ee}`,`margin ${u}`,`color ${u}`].join(",")}},[`${f}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${f}-item-only-child`]:{[`> ${H}, > ${f}-item-icon`]:{marginInlineEnd:0}}},[`${f}-item-disabled, ${f}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${f}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ut=_=>{const{componentCls:f,motionDurationSlow:u,motionEaseInOut:x,borderRadius:ee,menuArrowSize:Ce,menuArrowOffset:H}=_;return{[`${f}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:_.margin,width:Ce,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${u} ${x}, opacity ${u}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ce*.6,height:Ce*.15,backgroundColor:"currentcolor",borderRadius:ee,transition:[`background ${u} ${x}`,`transform ${u} ${x}`,`top ${u} ${x}`,`color ${u} ${x}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Kt=_=>{const{antCls:f,componentCls:u,fontSize:x,motionDurationSlow:ee,motionDurationMid:Ce,motionEaseInOut:H,paddingXS:ne,padding:$e,colorSplit:we,lineWidth:ve,zIndexPopup:qe,borderRadiusLG:St,subMenuItemBorderRadius:me,menuArrowSize:ft,menuArrowOffset:lt,lineType:Pe,menuPanelMaskInset:Le,groupTitleLineHeight:pt,groupTitleFontSize:zt}=_;return[{"":{[`${u}`]:Object.assign(Object.assign({},(0,je.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,je.Wf)(_)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:x,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${u}-item`]:{flex:"none"}},[`${u}-item, ${u}-submenu, ${u}-submenu-title`]:{borderRadius:_.itemBorderRadius},[`${u}-item-group-title`]:{padding:`${ne}px ${$e}px`,fontSize:zt,lineHeight:pt,transition:`all ${ee}`},[`&-horizontal ${u}-submenu`]:{transition:[`border-color ${ee} ${H}`,`background ${ee} ${H}`].join(",")},[`${u}-submenu, ${u}-submenu-inline`]:{transition:[`border-color ${ee} ${H}`,`background ${ee} ${H}`,`padding ${Ce} ${H}`].join(",")},[`${u}-submenu ${u}-sub`]:{cursor:"initial",transition:[`background ${ee} ${H}`,`padding ${ee} ${H}`].join(",")},[`${u}-title-content`]:{transition:`color ${ee}`},[`${u}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${u}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:Pe,borderWidth:0,borderTopWidth:ve,marginBlock:ve,padding:0,"&-dashed":{borderStyle:"dashed"}}}),It(_)),{[`${u}-item-group`]:{[`${u}-item-group-list`]:{margin:0,padding:0,[`${u}-item, ${u}-submenu-title`]:{paddingInline:`${x*2}px ${$e}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:qe,borderRadius:St,boxShadow:"none",transformOrigin:"0 0",[`&${u}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:_.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:_.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:_.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:_.paddingXS},[`> ${u}`]:Object.assign(Object.assign(Object.assign({borderRadius:St},It(_)),Ut(_)),{[`${u}-item, ${u}-submenu > ${u}-submenu-title`]:{borderRadius:me},[`${u}-submenu-title::after`]:{transition:`transform ${ee} ${H}`}})}}),Ut(_)),{[`&-inline-collapsed ${u}-submenu-arrow,
&-inline ${u}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${lt})`},"&::after":{transform:`rotate(45deg) translateX(-${lt})`}},[`${u}-submenu-open${u}-submenu-inline > ${u}-submenu-title > ${u}-submenu-arrow`]:{transform:`translateY(-${ft*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${lt})`},"&::before":{transform:`rotate(45deg) translateX(${lt})`}}})},{[`${f}-layout-header`]:{[u]:{lineHeight:"inherit"}}}]};var hr=(_,f)=>(0,rt.Z)("Menu",x=>{if(f===!1)return[];const{colorBgElevated:ee,colorPrimary:Ce,colorTextLightSolid:H,controlHeightLG:ne,fontSize:$e,darkItemColor:we,darkDangerItemColor:ve,darkItemBg:qe,darkSubMenuItemBg:St,darkItemSelectedColor:me,darkItemSelectedBg:ft,darkDangerItemSelectedBg:lt,darkItemHoverBg:Pe,darkGroupTitleColor:Le,darkItemHoverColor:pt,darkItemDisabledColor:zt,darkDangerItemHoverColor:Ht,darkDangerItemSelectedColor:er,darkDangerItemActiveBg:Pr}=x,pr=$e/7*5,kr=(0,Oe.TS)(x,{menuArrowSize:pr,menuHorizontalHeight:ne*1.15,menuArrowOffset:`${pr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ee}),Dr=(0,Oe.TS)(kr,{itemColor:we,itemHoverColor:pt,groupTitleColor:Le,itemSelectedColor:me,itemBg:qe,popupBg:qe,subMenuItemBg:St,itemActiveBg:"transparent",itemSelectedBg:ft,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Pe,itemDisabledColor:zt,dangerItemColor:ve,dangerItemHoverColor:Ht,dangerItemSelectedColor:er,dangerItemActiveBg:Pr,dangerItemSelectedBg:lt,menuSubMenuBg:St,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Ce});return[Kt(kr),He(kr),st(kr),ct(kr,"light"),ct(Dr,"dark"),De(kr),(0,X.Z)(kr),(0,de.oN)(kr,"slide-up"),(0,de.oN)(kr,"slide-down"),(0,k._y)(kr,"zoom-big")]},x=>{const{colorPrimary:ee,colorError:Ce,colorTextDisabled:H,colorErrorBg:ne,colorText:$e,colorTextDescription:we,colorBgContainer:ve,colorFillAlter:qe,colorFillContent:St,lineWidth:me,lineWidthBold:ft,controlItemBgActive:lt,colorBgTextHover:Pe,controlHeightLG:Le,lineHeight:pt,colorBgElevated:zt,marginXXS:Ht,padding:er,fontSize:Pr,controlHeightSM:pr,fontSizeLG:kr,colorTextLightSolid:Dr,colorErrorHover:vr}=x,dr=new xe.C(Dr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:x.zIndexPopupBase+50,radiusItem:x.borderRadiusLG,itemBorderRadius:x.borderRadiusLG,radiusSubMenuItem:x.borderRadiusSM,subMenuItemBorderRadius:x.borderRadiusSM,colorItemText:$e,itemColor:$e,colorItemTextHover:$e,itemHoverColor:$e,colorItemTextHoverHorizontal:ee,horizontalItemHoverColor:ee,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:ee,itemSelectedColor:ee,colorItemTextSelectedHorizontal:ee,horizontalItemSelectedColor:ee,colorItemBg:ve,itemBg:ve,colorItemBgHover:Pe,itemHoverBg:Pe,colorItemBgActive:St,itemActiveBg:lt,colorSubItemBg:qe,subMenuItemBg:qe,colorItemBgSelected:lt,itemSelectedBg:lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ft,activeBarHeight:ft,colorActiveBarBorderSize:me,activeBarBorderWidth:me,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Ce,dangerItemColor:Ce,colorDangerItemTextHover:Ce,dangerItemHoverColor:Ce,colorDangerItemTextSelected:Ce,dangerItemSelectedColor:Ce,colorDangerItemBgActive:ne,dangerItemActiveBg:ne,colorDangerItemBgSelected:ne,dangerItemSelectedBg:ne,itemMarginInline:x.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:pt,collapsedWidth:Le*2,popupBg:zt,itemMarginBlock:Ht,itemPaddingInline:er,horizontalLineHeight:`${Le*1.15}px`,iconSize:Pr,iconMarginInlineEnd:pr-Pr,collapsedIconSize:kr,groupTitleFontSize:Pr,darkItemDisabledColor:new xe.C(Dr).setAlpha(.25).toRgbString(),darkItemColor:dr,darkDangerItemColor:Ce,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Dr,darkItemSelectedBg:ee,darkDangerItemSelectedBg:Ce,darkItemHoverBg:"transparent",darkGroupTitleColor:dr,darkItemHoverColor:Dr,darkDangerItemHoverColor:vr,darkDangerItemSelectedColor:Dr,darkDangerItemActiveBg:Ce}},{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"]]})(_),or=function(_,f){var u={};for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&f.indexOf(x)<0&&(u[x]=_[x]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,x=Object.getOwnPropertySymbols(_);ee<x.length;ee++)f.indexOf(x[ee])<0&&Object.prototype.propertyIsEnumerable.call(_,x[ee])&&(u[x[ee]]=_[x[ee]]);return u},ur=(0,ue.forwardRef)((_,f)=>{var u,x;const ee=ue.useContext(K.Z),Ce=ee||{},{getPrefixCls:H,getPopupContainer:ne,direction:$e,menu:we}=ue.useContext(Z.E_),ve=H(),{prefixCls:qe,className:St,style:me,theme:ft="light",expandIcon:lt,_internalDisableMenuItemTitleTooltip:Pe,inlineCollapsed:Le,siderCollapsed:pt,items:zt,children:Ht,rootClassName:er,mode:Pr,selectable:pr,onClick:kr,overflowedIndicatorPopupClassName:Dr}=_,vr=or(_,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),dr=(0,j.Z)(vr,["collapsedWidth"]),$r=Te(zt)||Ht;(u=Ce.validator)===null||u===void 0||u.call(Ce,{mode:Pr});const un=(0,J.useEvent)(function(){var $i;kr==null||kr.apply(void 0,arguments),($i=Ce.onClick)===null||$i===void 0||$i.call(Ce)}),_n=Ce.mode||Pr,qr=pr!=null?pr:Ce.selectable,Bn=ue.useMemo(()=>pt!==void 0?pt:Le,[Le,pt]),ti={horizontal:{motionName:`${ve}-slide-up`},inline:(0,V.Z)(ve),other:{motionName:`${ve}-zoom-big`}},Ir=H("menu",qe||Ce.prefixCls),[qn,Ti]=hr(Ir,!ee),ci=te()(`${Ir}-${ft}`,we==null?void 0:we.className,St);let Ui;if(typeof lt=="function")Ui=lt;else if(lt===null||lt===!1)Ui=null;else if(Ce.expandIcon===null||Ce.expandIcon===!1)Ui=null;else{const $i=lt!=null?lt:Ce.expandIcon;Ui=(0,F.Tm)($i,{className:te()(`${Ir}-submenu-expand-icon`,(0,F.l$)($i)?(x=$i.props)===null||x===void 0?void 0:x.className:"")})}const Ei=ue.useMemo(()=>({prefixCls:Ir,inlineCollapsed:Bn||!1,direction:$e,firstLevel:!0,theme:ft,mode:_n,disableMenuItemTitleTooltip:Pe}),[Ir,Bn,$e,Pe,ft]);return qn(ue.createElement(K.Z.Provider,{value:null},ue.createElement(R.Provider,{value:Ei},ue.createElement(pe.ZP,Object.assign({getPopupContainer:ne,overflowedIndicator:ue.createElement(W.Z,null),overflowedIndicatorPopupClassName:te()(Ir,`${Ir}-${ft}`,Dr),mode:_n,selectable:qr,onClick:un},dr,{inlineCollapsed:Bn,style:Object.assign(Object.assign({},we==null?void 0:we.style),me),className:ci,prefixCls:Ir,direction:$e,defaultMotions:ti,expandIcon:Ui,ref:f,rootClassName:te()(er,Ti)}),$r))))});const G=(0,ue.forwardRef)((_,f)=>{const u=(0,ue.useRef)(null),x=ue.useContext(U.D);return(0,ue.useImperativeHandle)(f,()=>({menu:u.current,focus:ee=>{var Ce;(Ce=u.current)===null||Ce===void 0||Ce.focus(ee)}})),ue.createElement(ur,Object.assign({ref:u},_,x))});G.Item=Y,G.SubMenu=ce,G.Divider=E,G.ItemGroup=pe.BW;var wt=G},58421:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return Ce}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(ne,$e){return ue.createElement(te.Z,(0,pe.Z)({},ne,{ref:$e,icon:Ne}))},B=ue.forwardRef(Z),h=B,E=w(49198),p=w(33853),j=w(38819),S=w(92310),F=w.n(S),P=w(74430),R=w(27247),M=w(33377),Y=w(93912),Q=w(18881),ce=w(85461),W=w(26112),J={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},V=J,K=w(91735),se=function(H){(0,Q.Z)($e,H);var ne=(0,ce.Z)($e);function $e(){var we;(0,M.Z)(this,$e);for(var ve=arguments.length,qe=new Array(ve),St=0;St<ve;St++)qe[St]=arguments[St];return we=ne.call.apply(ne,[this].concat(qe)),we.state={goInputText:""},we.getValidValue=function(){var me=we.state.goInputText;return!me||Number.isNaN(me)?void 0:Number(me)},we.buildOptionText=function(me){return"".concat(me," ").concat(we.props.locale.items_per_page)},we.changeSize=function(me){we.props.changeSize(Number(me))},we.handleChange=function(me){we.setState({goInputText:me.target.value})},we.handleBlur=function(me){var ft=we.props,lt=ft.goButton,Pe=ft.quickGo,Le=ft.rootPrefixCls,pt=we.state.goInputText;lt||pt===""||(we.setState({goInputText:""}),!(me.relatedTarget&&(me.relatedTarget.className.indexOf("".concat(Le,"-item-link"))>=0||me.relatedTarget.className.indexOf("".concat(Le,"-item"))>=0))&&Pe(we.getValidValue()))},we.go=function(me){var ft=we.state.goInputText;ft!==""&&(me.keyCode===V.ENTER||me.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,Y.Z)($e,[{key:"getPageSizeOptions",value:function(){var ve=this.props,qe=ve.pageSize,St=ve.pageSizeOptions;return St.some(function(me){return me.toString()===qe.toString()})?St:St.concat([qe.toString()]).sort(function(me,ft){var lt=Number.isNaN(Number(me))?0:Number(me),Pe=Number.isNaN(Number(ft))?0:Number(ft);return lt-Pe})}},{key:"render",value:function(){var ve=this,qe=this.props,St=qe.pageSize,me=qe.locale,ft=qe.rootPrefixCls,lt=qe.changeSize,Pe=qe.quickGo,Le=qe.goButton,pt=qe.selectComponentClass,zt=qe.buildOptionText,Ht=qe.selectPrefixCls,er=qe.disabled,Pr=this.state.goInputText,pr="".concat(ft,"-options"),kr=pt,Dr=null,vr=null,dr=null;if(!lt&&!Pe)return null;var $r=this.getPageSizeOptions();if(lt&&kr){var un=$r.map(function(_n,qr){return ue.createElement(kr.Option,{key:qr,value:_n.toString()},(zt||ve.buildOptionText)(_n))});Dr=ue.createElement(kr,{disabled:er,prefixCls:Ht,showSearch:!1,className:"".concat(pr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(St||$r[0]).toString(),onChange:this.changeSize,getPopupContainer:function(qr){return qr.parentNode},"aria-label":me.page_size,defaultOpen:!1},un)}return Pe&&(Le&&(dr=typeof Le=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:er,className:"".concat(pr,"-quick-jumper-button")},me.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},Le)),vr=ue.createElement("div",{className:"".concat(pr,"-quick-jumper")},me.jump_to,ue.createElement("input",{disabled:er,type:"text",value:Pr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":me.page}),me.page,dr)),ue.createElement("li",{className:"".concat(pr)},Dr,vr)}}]),$e}(ue.Component);se.defaultProps={pageSizeOptions:["10","20","50","100"]};var he=se,Te=function(ne){var $e,we=ne.rootPrefixCls,ve=ne.page,qe=ne.active,St=ne.className,me=ne.showTitle,ft=ne.onClick,lt=ne.onKeyPress,Pe=ne.itemRender,Le="".concat(we,"-item"),pt=F()(Le,"".concat(Le,"-").concat(ve),($e={},(0,P.Z)($e,"".concat(Le,"-active"),qe),(0,P.Z)($e,"".concat(Le,"-disabled"),!ve),(0,P.Z)($e,ne.className,St),$e)),zt=function(){ft(ve)},Ht=function(pr){lt(pr,ft,ve)},er=Pe(ve,"page",ue.createElement("a",{rel:"nofollow"},ve));return er?ue.createElement("li",{title:me?ve.toString():null,className:pt,onClick:zt,onKeyPress:Ht,tabIndex:0},er):null},xe=Te;function je(){}function X(H){var ne=Number(H);return typeof ne=="number"&&!Number.isNaN(ne)&&isFinite(ne)&&Math.floor(ne)===ne}var de=function(ne,$e,we){return we};function k(H,ne,$e){var we=typeof H=="undefined"?ne.pageSize:H;return Math.floor(($e.total-1)/we)+1}var rt=function(H){(0,Q.Z)($e,H);var ne=(0,ce.Z)($e);function $e(we){var ve;(0,M.Z)(this,$e),ve=ne.call(this,we),ve.paginationNode=ue.createRef(),ve.getJumpPrevPage=function(){return Math.max(1,ve.state.current-(ve.props.showLessItems?3:5))},ve.getJumpNextPage=function(){return Math.min(k(void 0,ve.state,ve.props),ve.state.current+(ve.props.showLessItems?3:5))},ve.getItemIcon=function(lt,Pe){var Le=ve.props.prefixCls,pt=lt||ue.createElement("button",{type:"button","aria-label":Pe,className:"".concat(Le,"-item-link")});return typeof lt=="function"&&(pt=ue.createElement(lt,(0,R.Z)({},ve.props))),pt},ve.isValid=function(lt){var Pe=ve.props.total;return X(lt)&&lt!==ve.state.current&&X(Pe)&&Pe>0},ve.shouldDisplayQuickJumper=function(){var lt=ve.props,Pe=lt.showQuickJumper,Le=lt.total,pt=ve.state.pageSize;return Le<=pt?!1:Pe},ve.handleKeyDown=function(lt){(lt.keyCode===V.ARROW_UP||lt.keyCode===V.ARROW_DOWN)&&lt.preventDefault()},ve.handleKeyUp=function(lt){var Pe=ve.getValidValue(lt),Le=ve.state.currentInputValue;Pe!==Le&&ve.setState({currentInputValue:Pe}),lt.keyCode===V.ENTER?ve.handleChange(Pe):lt.keyCode===V.ARROW_UP?ve.handleChange(Pe-1):lt.keyCode===V.ARROW_DOWN&&ve.handleChange(Pe+1)},ve.handleBlur=function(lt){var Pe=ve.getValidValue(lt);ve.handleChange(Pe)},ve.changePageSize=function(lt){var Pe=ve.state.current,Le=k(lt,ve.state,ve.props);Pe=Pe>Le?Le:Pe,Le===0&&(Pe=ve.state.current),typeof lt=="number"&&("pageSize"in ve.props||ve.setState({pageSize:lt}),"current"in ve.props||ve.setState({current:Pe,currentInputValue:Pe})),ve.props.onShowSizeChange(Pe,lt),"onChange"in ve.props&&ve.props.onChange&&ve.props.onChange(Pe,lt)},ve.handleChange=function(lt){var Pe=ve.props,Le=Pe.disabled,pt=Pe.onChange,zt=ve.state,Ht=zt.pageSize,er=zt.current,Pr=zt.currentInputValue;if(ve.isValid(lt)&&!Le){var pr=k(void 0,ve.state,ve.props),kr=lt;return lt>pr?kr=pr:lt<1&&(kr=1),"current"in ve.props||ve.setState({current:kr}),kr!==Pr&&ve.setState({currentInputValue:kr}),pt(kr,Ht),kr}return er},ve.prev=function(){ve.hasPrev()&&ve.handleChange(ve.state.current-1)},ve.next=function(){ve.hasNext()&&ve.handleChange(ve.state.current+1)},ve.jumpPrev=function(){ve.handleChange(ve.getJumpPrevPage())},ve.jumpNext=function(){ve.handleChange(ve.getJumpNextPage())},ve.hasPrev=function(){return ve.state.current>1},ve.hasNext=function(){return ve.state.current<k(void 0,ve.state,ve.props)},ve.runIfEnter=function(lt,Pe){if(lt.key==="Enter"||lt.charCode===13){for(var Le=arguments.length,pt=new Array(Le>2?Le-2:0),zt=2;zt<Le;zt++)pt[zt-2]=arguments[zt];Pe.apply(void 0,pt)}},ve.runIfEnterPrev=function(lt){ve.runIfEnter(lt,ve.prev)},ve.runIfEnterNext=function(lt){ve.runIfEnter(lt,ve.next)},ve.runIfEnterJumpPrev=function(lt){ve.runIfEnter(lt,ve.jumpPrev)},ve.runIfEnterJumpNext=function(lt){ve.runIfEnter(lt,ve.jumpNext)},ve.handleGoTO=function(lt){(lt.keyCode===V.ENTER||lt.type==="click")&&ve.handleChange(ve.state.currentInputValue)},ve.renderPrev=function(lt){var Pe=ve.props,Le=Pe.prevIcon,pt=Pe.itemRender,zt=pt(lt,"prev",ve.getItemIcon(Le,"prev page")),Ht=!ve.hasPrev();return(0,ue.isValidElement)(zt)?(0,ue.cloneElement)(zt,{disabled:Ht}):zt},ve.renderNext=function(lt){var Pe=ve.props,Le=Pe.nextIcon,pt=Pe.itemRender,zt=pt(lt,"next",ve.getItemIcon(Le,"next page")),Ht=!ve.hasNext();return(0,ue.isValidElement)(zt)?(0,ue.cloneElement)(zt,{disabled:Ht}):zt};var qe=we.onChange!==je,St="current"in we;St&&!qe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var me=we.defaultCurrent;"current"in we&&(me=we.current);var ft=we.defaultPageSize;return"pageSize"in we&&(ft=we.pageSize),me=Math.min(me,k(ft,void 0,we)),ve.state={current:me,currentInputValue:me,pageSize:ft},ve}return(0,Y.Z)($e,[{key:"componentDidUpdate",value:function(ve,qe){var St=this.props.prefixCls;if(qe.current!==this.state.current&&this.paginationNode.current){var me=this.paginationNode.current.querySelector(".".concat(St,"-item-").concat(qe.current));if(me&&document.activeElement===me){var ft;me==null||(ft=me.blur)===null||ft===void 0||ft.call(me)}}}},{key:"getValidValue",value:function(ve){var qe=ve.target.value,St=k(void 0,this.state,this.props),me=this.state.currentInputValue,ft;return qe===""?ft=qe:Number.isNaN(Number(qe))?ft=me:qe>=St?ft=St:ft=Number(qe),ft}},{key:"getShowSizeChanger",value:function(){var ve=this.props,qe=ve.showSizeChanger,St=ve.total,me=ve.totalBoundaryShowSizeChanger;return typeof qe!="undefined"?qe:St>me}},{key:"render",value:function(){var ve=this.props,qe=ve.prefixCls,St=ve.className,me=ve.style,ft=ve.disabled,lt=ve.hideOnSinglePage,Pe=ve.total,Le=ve.locale,pt=ve.showQuickJumper,zt=ve.showLessItems,Ht=ve.showTitle,er=ve.showTotal,Pr=ve.simple,pr=ve.itemRender,kr=ve.showPrevNextJumpers,Dr=ve.jumpPrevIcon,vr=ve.jumpNextIcon,dr=ve.selectComponentClass,$r=ve.selectPrefixCls,un=ve.pageSizeOptions,_n=this.state,qr=_n.current,Bn=_n.pageSize,ti=_n.currentInputValue;if(lt===!0&&Pe<=Bn)return null;var Ir=k(void 0,this.state,this.props),qn=[],Ti=null,ci=null,Ui=null,Ei=null,$i=null,Ha=pt&&pt.goButton,Ji=zt?1:2,gi=qr-1>0?qr-1:0,ki=qr+1<Ir?qr+1:Ir,Pi=(0,W.Z)(this.props,{aria:!0,data:!0}),nt=er&&ue.createElement("li",{className:"".concat(qe,"-total-text")},er(Pe,[Pe===0?0:(qr-1)*Bn+1,qr*Bn>Pe?Pe:qr*Bn]));if(Pr){Ha&&(typeof Ha=="boolean"?$i=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le.jump_to_confirm):$i=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ha),$i=ue.createElement("li",{title:Ht?"".concat(Le.jump_to).concat(qr,"/").concat(Ir):null,className:"".concat(qe,"-simple-pager")},$i));var Ie=this.renderPrev(gi);return ue.createElement("ul",(0,pe.Z)({className:F()(qe,"".concat(qe,"-simple"),(0,P.Z)({},"".concat(qe,"-disabled"),ft),St),style:me,ref:this.paginationNode},Pi),nt,Ie?ue.createElement("li",{title:Ht?Le.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:F()("".concat(qe,"-prev"),(0,P.Z)({},"".concat(qe,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ie):null,ue.createElement("li",{title:Ht?"".concat(qr,"/").concat(Ir):null,className:"".concat(qe,"-simple-pager")},ue.createElement("input",{type:"text",value:ti,disabled:ft,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat(qe,"-slash")},"/"),Ir),ue.createElement("li",{title:Ht?Le.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:F()("".concat(qe,"-next"),(0,P.Z)({},"".concat(qe,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ki)),$i)}if(Ir<=3+Ji*2){var ke={locale:Le,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ht,itemRender:pr};Ir||qn.push(ue.createElement(xe,(0,pe.Z)({},ke,{key:"noPager",page:1,className:"".concat(qe,"-item-disabled")})));for(var Ee=1;Ee<=Ir;Ee+=1){var $t=qr===Ee;qn.push(ue.createElement(xe,(0,pe.Z)({},ke,{key:Ee,page:Ee,active:$t})))}}else{var Nt=zt?Le.prev_3:Le.prev_5,Er=zt?Le.next_3:Le.next_5,sr=pr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Dr,"prev page")),Kr=pr(this.getJumpNextPage(),"jump-next",this.getItemIcon(vr,"next page"));kr&&(Ti=sr?ue.createElement("li",{title:Ht?Nt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:F()("".concat(qe,"-jump-prev"),(0,P.Z)({},"".concat(qe,"-jump-prev-custom-icon"),!!Dr))},sr):null,ci=Kr?ue.createElement("li",{title:Ht?Er:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:F()("".concat(qe,"-jump-next"),(0,P.Z)({},"".concat(qe,"-jump-next-custom-icon"),!!vr))},Kr):null),Ei=ue.createElement(xe,{locale:Le,last:!0,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ir,page:Ir,active:!1,showTitle:Ht,itemRender:pr}),Ui=ue.createElement(xe,{locale:Le,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ht,itemRender:pr});var Wr=Math.max(1,qr-Ji),tn=Math.min(qr+Ji,Ir);qr-1<=Ji&&(tn=1+Ji*2),Ir-qr<=Ji&&(Wr=Ir-Ji*2);for(var Vr=Wr;Vr<=tn;Vr+=1){var jr=qr===Vr;qn.push(ue.createElement(xe,{locale:Le,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Vr,page:Vr,active:jr,showTitle:Ht,itemRender:pr}))}qr-1>=Ji*2&&qr!==3&&(qn[0]=(0,ue.cloneElement)(qn[0],{className:"".concat(qe,"-item-after-jump-prev")}),qn.unshift(Ti)),Ir-qr>=Ji*2&&qr!==Ir-2&&(qn[qn.length-1]=(0,ue.cloneElement)(qn[qn.length-1],{className:"".concat(qe,"-item-before-jump-next")}),qn.push(ci)),Wr!==1&&qn.unshift(Ui),tn!==Ir&&qn.push(Ei)}var Yr=!this.hasPrev()||!Ir,mn=!this.hasNext()||!Ir,rn=this.renderPrev(gi),Dn=this.renderNext(ki);return ue.createElement("ul",(0,pe.Z)({className:F()(qe,St,(0,P.Z)({},"".concat(qe,"-disabled"),ft)),style:me,ref:this.paginationNode},Pi),nt,rn?ue.createElement("li",{title:Ht?Le.prev_page:null,onClick:this.prev,tabIndex:Yr?null:0,onKeyPress:this.runIfEnterPrev,className:F()("".concat(qe,"-prev"),(0,P.Z)({},"".concat(qe,"-disabled"),Yr)),"aria-disabled":Yr},rn):null,qn,Dn?ue.createElement("li",{title:Ht?Le.next_page:null,onClick:this.next,tabIndex:mn?null:0,onKeyPress:this.runIfEnterNext,className:F()("".concat(qe,"-next"),(0,P.Z)({},"".concat(qe,"-disabled"),mn)),"aria-disabled":mn},Dn):null,ue.createElement(he,{disabled:ft,locale:Le,rootPrefixCls:qe,selectComponentClass:dr,selectPrefixCls:$r,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:qr,pageSize:Bn,pageSizeOptions:un,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ha}))}}],[{key:"getDerivedStateFromProps",value:function(ve,qe){var St={};if("current"in ve&&(St.current=ve.current,ve.current!==qe.current&&(St.currentInputValue=St.current)),"pageSize"in ve&&ve.pageSize!==qe.pageSize){var me=qe.current,ft=k(ve.pageSize,qe,ve);me=me>ft?ft:me,"current"in ve||(St.current=me,St.currentInputValue=me),St.pageSize=ve.pageSize}return St}}]),$e}(ue.Component);rt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:je,locale:K.Z,style:{},itemRender:de,totalBoundaryShowSizeChanger:50};var Oe=rt,be=w(22075),He=w(36355),ge=w(19716),De=w(8628),fe=w(9763),Se=w(57809);const ct=H=>ue.createElement(Se.default,Object.assign({},H,{showSearch:!0,size:"small"})),dt=H=>ue.createElement(Se.default,Object.assign({},H,{showSearch:!0,size:"middle"}));ct.Option=Se.default.Option,dt.Option=Se.default.Option;var at=w(9937),st=w(17313),It=w(83116),Ut=w(37613);const Kt=H=>{const{componentCls:ne}=H;return{[`${ne}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}}},[`&${ne}-disabled`]:{cursor:"not-allowed",[`${ne}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:H.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:H.colorBorder,backgroundColor:H.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:H.itemActiveBgDisabled},a:{color:H.itemActiveColorDisabled}}},[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ne}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ne}-simple-pager`]:{color:H.colorTextDisabled},[`${ne}-jump-prev, ${ne}-jump-next`]:{[`${ne}-item-link-icon`]:{opacity:0},[`${ne}-item-ellipsis`]:{opacity:1}}},[`&${ne}-simple`]:{[`${ne}-prev, ${ne}-next`]:{[`&${ne}-disabled ${ne}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},hr=H=>{const{componentCls:ne}=H;return{[`&${ne}-mini ${ne}-total-text, &${ne}-mini ${ne}-simple-pager`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-item`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM-2}px`},[`&${ne}-mini:not(${ne}-disabled) ${ne}-item:not(${ne}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},[`&${ne}-mini ${ne}-prev, &${ne}-mini ${ne}-next`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini:not(${ne}-disabled)`]:{[`${ne}-prev, ${ne}-next`]:{[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover ${ne}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ne}-mini ${ne}-prev ${ne}-item-link,
&${ne}-mini ${ne}-next ${ne}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}},[`&${ne}-mini ${ne}-jump-prev, &${ne}-mini ${ne}-jump-next`]:{height:H.itemSizeSM,marginInlineEnd:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-options`]:{marginInlineStart:H.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:H.miniOptionsSizeChangerTop},"&-quick-jumper":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,at.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},or=H=>{const{componentCls:ne}=H;return{[`
&${ne}-simple ${ne}-prev,
&${ne}-simple ${ne}-next
`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,verticalAlign:"top",[`${ne}-item-link`]:{height:H.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive},"&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}}},[`&${ne}-simple ${ne}-simple-pager`]:{display:"inline-block",height:H.itemSizeSM,marginInlineEnd:H.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:H.marginXS,padding:`0 ${H.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:H.itemInputBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadius,outline:"none",transition:`border-color ${H.motionDurationMid}`,color:"inherit","&:hover":{borderColor:H.colorPrimary},"&:focus":{borderColor:H.colorPrimaryHover,boxShadow:`${H.inputOutlineOffset}px 0 ${H.controlOutlineWidth}px ${H.controlOutline}`},"&[disabled]":{color:H.colorTextDisabled,backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,cursor:"not-allowed"}}}}},Sr=H=>{const{componentCls:ne}=H;return{[`${ne}-jump-prev, ${ne}-jump-next`]:{outline:0,[`${ne}-item-container`]:{position:"relative",[`${ne}-item-link-icon`]:{color:H.colorPrimary,fontSize:H.fontSizeSM,opacity:0,transition:`all ${H.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ne}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:H.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:H.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:H.paginationEllipsisTextIndent,opacity:1,transition:`all ${H.motionDurationMid}`}},"&:hover":{[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}}},[`
${ne}-prev,
${ne}-jump-prev,
${ne}-jump-next
`]:{marginInlineEnd:H.marginXS},[`
${ne}-prev,
${ne}-next,
${ne}-jump-prev,
${ne}-jump-next
`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,color:H.colorText,fontFamily:H.fontFamily,lineHeight:`${H.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:H.borderRadius,cursor:"pointer",transition:`all ${H.motionDurationMid}`},[`${ne}-prev, ${ne}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ne}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:H.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:"none",transition:`all ${H.motionDurationMid}`},[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover`]:{[`${ne}-item-link`]:{backgroundColor:"transparent"}}},[`${ne}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ne}-options`]:{display:"inline-block",marginInlineStart:H.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:H.controlHeight,marginInlineStart:H.marginXS,lineHeight:`${H.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,at.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},ur=H=>{const{componentCls:ne}=H;return{[`${ne}-item`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,marginInlineEnd:H.marginXS,fontFamily:H.fontFamily,lineHeight:`${H.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H.paginationItemPaddingInline}px`,color:H.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ne}-item-active)`]:{"&:hover":{transition:`all ${H.motionDurationMid}`,backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},"&-active":{fontWeight:H.fontWeightStrong,backgroundColor:H.itemActiveBg,borderColor:H.colorPrimary,a:{color:H.colorPrimary},"&:hover":{borderColor:H.colorPrimaryHover},"&:hover a":{color:H.colorPrimaryHover}}}}},G=H=>{const{componentCls:ne}=H;return{[ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,st.Wf)(H)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ne}-total-text`]:{display:"inline-block",height:H.itemSize,marginInlineEnd:H.marginXS,lineHeight:`${H.itemSize-2}px`,verticalAlign:"middle"}}),ur(H)),Sr(H)),or(H)),hr(H)),Kt(H)),{[`@media only screen and (max-width: ${H.screenLG}px)`]:{[`${ne}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${H.screenSM}px)`]:{[`${ne}-options`]:{display:"none"}}}),[`&${H.componentCls}-rtl`]:{direction:"rtl"}}},wt=H=>{const{componentCls:ne}=H;return{[`${ne}${ne}-disabled:not(${ne}-mini)`]:{"&, &:hover":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},"&:focus-visible":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},[`${ne}-item, ${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,[`&:hover:not(${ne}-item-active)`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,a:{color:H.colorTextDisabled}},[`&${ne}-item-active`]:{backgroundColor:H.itemActiveBgDisabled}},[`${ne}-prev, ${ne}-next`]:{"&:hover button":{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,color:H.colorTextDisabled},[`${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder}}},[`${ne}:not(${ne}-mini)`]:{[`${ne}-prev, ${ne}-next`]:{"&:hover button":{borderColor:H.colorPrimaryHover,backgroundColor:H.itemBg},[`${ne}-item-link`]:{backgroundColor:H.itemLinkBg,borderColor:H.colorBorder},[`&:hover ${ne}-item-link`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,color:H.colorPrimary},[`&${ne}-disabled`]:{[`${ne}-item-link`]:{borderColor:H.colorBorder,color:H.colorTextDisabled}}},[`${ne}-item`]:{backgroundColor:H.itemBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,[`&:hover:not(${ne}-item-active)`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,a:{color:H.colorPrimary}},"&-active":{borderColor:H.colorPrimary}}}}},_=H=>{const{componentCls:ne}=H;return{[`${ne}:not(${ne}-disabled)`]:{[`${ne}-item`]:Object.assign({},(0,st.Qy)(H)),[`${ne}-jump-prev, ${ne}-jump-next`]:{"&:focus-visible":Object.assign({[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}},(0,st.oN)(H))},[`${ne}-prev, ${ne}-next`]:{[`&:focus-visible ${ne}-item-link`]:Object.assign({},(0,st.oN)(H))}}}};var f=(0,It.Z)("Pagination",H=>{const ne=(0,Ut.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,at.e5)(H),(0,at.TM)(H));return[G(ne),_(ne),H.wireframe&&wt(ne)]},H=>({itemBg:H.colorBgContainer,itemSize:H.controlHeight,itemSizeSM:H.controlHeightSM,itemActiveBg:H.colorBgContainer,itemLinkBg:H.colorBgContainer,itemActiveColorDisabled:H.colorTextDisabled,itemActiveBgDisabled:H.controlItemBgActiveDisabled,itemInputBg:H.colorBgContainer,miniOptionsSizeChangerTop:0})),u=function(H,ne){var $e={};for(var we in H)Object.prototype.hasOwnProperty.call(H,we)&&ne.indexOf(we)<0&&($e[we]=H[we]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,we=Object.getOwnPropertySymbols(H);ve<we.length;ve++)ne.indexOf(we[ve])<0&&Object.prototype.propertyIsEnumerable.call(H,we[ve])&&($e[we[ve]]=H[we[ve]]);return $e},ee=H=>{const{prefixCls:ne,selectPrefixCls:$e,className:we,rootClassName:ve,style:qe,size:St,locale:me,selectComponentClass:ft,responsive:lt,showSizeChanger:Pe}=H,Le=u(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:pt}=(0,De.Z)(lt),{getPrefixCls:zt,direction:Ht,pagination:er={}}=ue.useContext(He.E_),Pr=zt("pagination",ne),[pr,kr]=f(Pr),Dr=Pe!=null?Pe:er.showSizeChanger,vr=ue.useMemo(()=>{const Ir=ue.createElement("span",{className:`${Pr}-item-ellipsis`},"\u2022\u2022\u2022"),qn=ue.createElement("button",{className:`${Pr}-item-link`,type:"button",tabIndex:-1},Ht==="rtl"?ue.createElement(j.Z,null):ue.createElement(p.Z,null)),Ti=ue.createElement("button",{className:`${Pr}-item-link`,type:"button",tabIndex:-1},Ht==="rtl"?ue.createElement(p.Z,null):ue.createElement(j.Z,null)),ci=ue.createElement("a",{className:`${Pr}-item-link`},ue.createElement("div",{className:`${Pr}-item-container`},Ht==="rtl"?ue.createElement(E.Z,{className:`${Pr}-item-link-icon`}):ue.createElement(h,{className:`${Pr}-item-link-icon`}),Ir)),Ui=ue.createElement("a",{className:`${Pr}-item-link`},ue.createElement("div",{className:`${Pr}-item-container`},Ht==="rtl"?ue.createElement(h,{className:`${Pr}-item-link-icon`}):ue.createElement(E.Z,{className:`${Pr}-item-link-icon`}),Ir));return{prevIcon:qn,nextIcon:Ti,jumpPrevIcon:ci,jumpNextIcon:Ui}},[Ht,Pr]),[dr]=(0,fe.Z)("Pagination",be.Z),$r=Object.assign(Object.assign({},dr),me),un=(0,ge.Z)(St),_n=un==="small"||!!(pt&&!un&&lt),qr=zt("select",$e),Bn=F()({[`${Pr}-mini`]:_n,[`${Pr}-rtl`]:Ht==="rtl"},er==null?void 0:er.className,we,ve,kr),ti=Object.assign(Object.assign({},er==null?void 0:er.style),qe);return pr(ue.createElement(Oe,Object.assign({},vr,Le,{style:ti,prefixCls:Pr,selectPrefixCls:qr,className:Bn,selectComponentClass:ft||(_n?ct:dt),locale:$r,showSizeChanger:Dr})))},Ce=ee},5112:function(xn,Jt,w){"use strict";w.d(Jt,{ZP:function(){return De}});var pe=w(92310),ue=w.n(pe),U=w(18929),Ne=w(26112),te=w(59301),Z=w(36355),B=w(19716);const h=te.createContext(null),E=h.Provider;var p=h;const j=te.createContext(null),S=j.Provider;var F=w(5630),P=w(8654),R=w(1684),M=w(32441),Y=w(17313),Q=w(83116),ce=w(37613);const W=fe=>{const{componentCls:Se,antCls:ct}=fe,dt=`${Se}-group`;return{[dt]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-block",fontSize:0,[`&${dt}-rtl`]:{direction:"rtl"},[`${ct}-badge ${ct}-badge-count`]:{zIndex:1},[`> ${ct}-badge:not(:first-child) > ${ct}-button-wrapper`]:{borderInlineStart:"none"}})}},J=fe=>{const{componentCls:Se,wrapperMarginInlineEnd:ct,colorPrimary:dt,radioSize:at,motionDurationSlow:st,motionDurationMid:It,motionEaseInOutCirc:Ut,colorBgContainer:Kt,colorBorder:hr,lineWidth:or,dotSize:Sr,colorBgContainerDisabled:ur,colorTextDisabled:G,paddingXS:wt,dotColorDisabled:_,lineType:f,radioDotDisabledSize:u,wireframe:x,colorWhite:ee}=fe,Ce=`${Se}-inner`;return{[`${Se}-wrapper`]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:ct,cursor:"pointer",[`&${Se}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:fe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Se}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${or}px ${f} ${dt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Se]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Se}-wrapper:hover &,
&:hover ${Ce}`]:{borderColor:dt},[`${Se}-input:focus-visible + ${Ce}`]:Object.assign({},(0,Y.oN)(fe)),[`${Se}:hover::after, ${Se}-wrapper:hover &::after`]:{visibility:"visible"},[`${Se}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:at,height:at,marginBlockStart:at/-2,marginInlineStart:at/-2,backgroundColor:x?dt:ee,borderBlockStart:0,borderInlineStart:0,borderRadius:at,transform:"scale(0)",opacity:0,transition:`all ${st} ${Ut}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:at,height:at,backgroundColor:Kt,borderColor:hr,borderStyle:"solid",borderWidth:or,borderRadius:"50%",transition:`all ${It}`},[`${Se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Se}-checked`]:{[Ce]:{borderColor:dt,backgroundColor:x?Kt:dt,"&::after":{transform:`scale(${Sr/at})`,opacity:1,transition:`all ${st} ${Ut}`}}},[`${Se}-disabled`]:{cursor:"not-allowed",[Ce]:{backgroundColor:ur,borderColor:hr,cursor:"not-allowed","&::after":{backgroundColor:_}},[`${Se}-input`]:{cursor:"not-allowed"},[`${Se}-disabled + span`]:{color:G,cursor:"not-allowed"},[`&${Se}-checked`]:{[Ce]:{"&::after":{transform:`scale(${u/at})`}}}},[`span${Se} + *`]:{paddingInlineStart:wt,paddingInlineEnd:wt}})}},V=fe=>{const{buttonColor:Se,controlHeight:ct,componentCls:dt,lineWidth:at,lineType:st,colorBorder:It,motionDurationSlow:Ut,motionDurationMid:Kt,buttonPaddingInline:hr,fontSize:or,buttonBg:Sr,fontSizeLG:ur,controlHeightLG:G,controlHeightSM:wt,paddingXS:_,borderRadius:f,borderRadiusSM:u,borderRadiusLG:x,buttonCheckedBg:ee,buttonSolidCheckedColor:Ce,colorTextDisabled:H,colorBgContainerDisabled:ne,buttonCheckedBgDisabled:$e,buttonCheckedColorDisabled:we,colorPrimary:ve,colorPrimaryHover:qe,colorPrimaryActive:St,buttonSolidCheckedBg:me,buttonSolidCheckedHoverBg:ft,buttonSolidCheckedActiveBg:lt}=fe;return{[`${dt}-button-wrapper`]:{position:"relative",display:"inline-block",height:ct,margin:0,paddingInline:hr,paddingBlock:0,color:Se,fontSize:or,lineHeight:`${ct-at*2}px`,background:Sr,border:`${at}px ${st} ${It}`,borderBlockStartWidth:at+.02,borderInlineStartWidth:0,borderInlineEndWidth:at,cursor:"pointer",transition:[`color ${Kt}`,`background ${Kt}`,`box-shadow ${Kt}`].join(","),a:{color:Se},[`> ${dt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-at,insetInlineStart:-at,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:at,paddingInline:0,backgroundColor:It,transition:`background-color ${Ut}`,content:'""'}},"&:first-child":{borderInlineStart:`${at}px ${st} ${It}`,borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f},"&:first-child:last-child":{borderRadius:f},[`${dt}-group-large &`]:{height:G,fontSize:ur,lineHeight:`${G-at*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${dt}-group-small &`]:{height:wt,paddingInline:_-at,paddingBlock:0,lineHeight:`${wt-at*2}px`,"&:first-child":{borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u}},"&:hover":{position:"relative",color:ve},"&:has(:focus-visible)":Object.assign({},(0,Y.oN)(fe)),[`${dt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${dt}-button-wrapper-disabled)`]:{zIndex:1,color:ve,background:ee,borderColor:ve,"&::before":{backgroundColor:ve},"&:first-child":{borderColor:ve},"&:hover":{color:qe,borderColor:qe,"&::before":{backgroundColor:qe}},"&:active":{color:St,borderColor:St,"&::before":{backgroundColor:St}}},[`${dt}-group-solid &-checked:not(${dt}-button-wrapper-disabled)`]:{color:Ce,background:me,borderColor:me,"&:hover":{color:Ce,background:ft,borderColor:ft},"&:active":{color:Ce,background:lt,borderColor:lt}},"&-disabled":{color:H,backgroundColor:ne,borderColor:It,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ne,borderColor:It}},[`&-disabled${dt}-button-wrapper-checked`]:{color:we,backgroundColor:$e,borderColor:It,boxShadow:"none"}}}},K=fe=>fe-4*2;var se=(0,Q.Z)("Radio",fe=>{const{controlOutline:Se,controlOutlineWidth:ct,radioSize:dt}=fe,at=`0 0 0 ${ct}px ${Se}`,st=at,It=K(dt),Ut=(0,ce.TS)(fe,{radioDotDisabledSize:It,radioFocusShadow:at,radioButtonFocusShadow:st});return[W(Ut),J(Ut),V(Ut)]},fe=>{const{wireframe:Se,padding:ct,marginXS:dt,lineWidth:at,fontSizeLG:st,colorText:It,colorBgContainer:Ut,colorTextDisabled:Kt,controlItemBgActiveDisabled:hr,colorTextLightSolid:or,colorPrimary:Sr,colorPrimaryHover:ur,colorPrimaryActive:G}=fe,wt=4,_=st,f=Se?K(_):_-(wt+at)*2;return{radioSize:_,dotSize:f,dotColorDisabled:Kt,buttonSolidCheckedColor:or,buttonSolidCheckedBg:Sr,buttonSolidCheckedHoverBg:ur,buttonSolidCheckedActiveBg:G,buttonBg:Ut,buttonCheckedBg:Ut,buttonColor:It,buttonCheckedBgDisabled:hr,buttonCheckedColorDisabled:Kt,buttonPaddingInline:ct-at,wrapperMarginInlineEnd:dt}}),he=w(14088),Te=w(4572),xe=function(fe,Se){var ct={};for(var dt in fe)Object.prototype.hasOwnProperty.call(fe,dt)&&Se.indexOf(dt)<0&&(ct[dt]=fe[dt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,dt=Object.getOwnPropertySymbols(fe);at<dt.length;at++)Se.indexOf(dt[at])<0&&Object.prototype.propertyIsEnumerable.call(fe,dt[at])&&(ct[dt[at]]=fe[dt[at]]);return ct};const je=(fe,Se)=>{var ct,dt;const at=te.useContext(p),st=te.useContext(j),{getPrefixCls:It,direction:Ut,radio:Kt}=te.useContext(Z.E_),hr=te.useRef(null),or=(0,P.sQ)(Se,hr),{isFormItemInput:Sr}=te.useContext(M.aM),ur=St=>{var me,ft;(me=fe.onChange)===null||me===void 0||me.call(fe,St),(ft=at==null?void 0:at.onChange)===null||ft===void 0||ft.call(at,St)},{prefixCls:G,className:wt,rootClassName:_,children:f,style:u}=fe,x=xe(fe,["prefixCls","className","rootClassName","children","style"]),ee=It("radio",G),Ce=((at==null?void 0:at.optionType)||st)==="button",H=Ce?`${ee}-button`:ee,[ne,$e]=se(ee),we=Object.assign({},x),ve=te.useContext(R.Z);at&&(we.name=at.name,we.onChange=ur,we.checked=fe.value===at.value,we.disabled=(ct=we.disabled)!==null&&ct!==void 0?ct:at.disabled),we.disabled=(dt=we.disabled)!==null&&dt!==void 0?dt:ve;const qe=ue()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:we.checked,[`${H}-wrapper-disabled`]:we.disabled,[`${H}-wrapper-rtl`]:Ut==="rtl",[`${H}-wrapper-in-form-item`]:Sr},Kt==null?void 0:Kt.className,wt,_,$e);return ne(te.createElement(he.Z,{component:"Radio",disabled:we.disabled},te.createElement("label",{className:qe,style:Object.assign(Object.assign({},Kt==null?void 0:Kt.style),u),onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave},te.createElement(F.Z,Object.assign({},we,{className:ue()(we.className,!Ce&&Te.A),type:"radio",prefixCls:H,ref:or})),f!==void 0?te.createElement("span",null,f):null)))};var de=te.forwardRef(je);const k=te.forwardRef((fe,Se)=>{const{getPrefixCls:ct,direction:dt}=te.useContext(Z.E_),[at,st]=(0,U.Z)(fe.defaultValue,{value:fe.value}),It=me=>{const ft=at,lt=me.target.value;"value"in fe||st(lt);const{onChange:Pe}=fe;Pe&&lt!==ft&&Pe(me)},{prefixCls:Ut,className:Kt,rootClassName:hr,options:or,buttonStyle:Sr="outline",disabled:ur,children:G,size:wt,style:_,id:f,onMouseEnter:u,onMouseLeave:x,onFocus:ee,onBlur:Ce}=fe,H=ct("radio",Ut),ne=`${H}-group`,[$e,we]=se(H);let ve=G;or&&or.length>0&&(ve=or.map(me=>typeof me=="string"||typeof me=="number"?te.createElement(de,{key:me.toString(),prefixCls:H,disabled:ur,value:me,checked:at===me},me):te.createElement(de,{key:`radio-group-value-options-${me.value}`,prefixCls:H,disabled:me.disabled||ur,value:me.value,checked:at===me.value,title:me.title,style:me.style},me.label)));const qe=(0,B.Z)(wt),St=ue()(ne,`${ne}-${Sr}`,{[`${ne}-${qe}`]:qe,[`${ne}-rtl`]:dt==="rtl"},Kt,hr,we);return $e(te.createElement("div",Object.assign({},(0,Ne.Z)(fe,{aria:!0,data:!0}),{className:St,style:_,onMouseEnter:u,onMouseLeave:x,onFocus:ee,onBlur:Ce,id:f,ref:Se}),te.createElement(E,{value:{onChange:It,value:at,disabled:fe.disabled,name:fe.name,optionType:fe.optionType}},ve)))});var rt=te.memo(k),Oe=function(fe,Se){var ct={};for(var dt in fe)Object.prototype.hasOwnProperty.call(fe,dt)&&Se.indexOf(dt)<0&&(ct[dt]=fe[dt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,dt=Object.getOwnPropertySymbols(fe);at<dt.length;at++)Se.indexOf(dt[at])<0&&Object.prototype.propertyIsEnumerable.call(fe,dt[at])&&(ct[dt[at]]=fe[dt[at]]);return ct};const be=(fe,Se)=>{const{getPrefixCls:ct}=te.useContext(Z.E_),{prefixCls:dt}=fe,at=Oe(fe,["prefixCls"]),st=ct("radio",dt);return te.createElement(S,{value:"button"},te.createElement(de,Object.assign({prefixCls:st},at,{type:"radio",ref:Se})))};var He=te.forwardRef(be);const ge=de;ge.Button=He,ge.Group=rt,ge.__ANT_RADIO=!0;var De=ge},57809:function(xn,Jt,w){"use strict";var pe=w(92310),ue=w.n(pe),U=w(77861),Ne=w(2738),te=w(59301),Z=w(53487),B=w(62892),h=w(19080),E=w(36355),p=w(1684),j=w(93891),S=w(19716),F=w(32441),P=w(33234),R=w(14154),M=w(58582),Y=w(84443),Q=w(66339),ce=function(se,he){var Te={};for(var xe in se)Object.prototype.hasOwnProperty.call(se,xe)&&he.indexOf(xe)<0&&(Te[xe]=se[xe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,xe=Object.getOwnPropertySymbols(se);je<xe.length;je++)he.indexOf(xe[je])<0&&Object.prototype.propertyIsEnumerable.call(se,xe[je])&&(Te[xe[je]]=se[xe[je]]);return Te};const W="SECRET_COMBOBOX_MODE_DO_NOT_USE",J=(se,he)=>{var Te,{prefixCls:xe,bordered:je=!0,className:X,rootClassName:de,getPopupContainer:k,popupClassName:rt,dropdownClassName:Oe,listHeight:be=256,placement:He,listItemHeight:ge=24,size:De,disabled:fe,notFoundContent:Se,status:ct,builtinPlacements:dt,dropdownMatchSelectWidth:at,popupMatchSelectWidth:st,direction:It,style:Ut,allowClear:Kt}=se,hr=ce(se,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:or,getPrefixCls:Sr,renderEmpty:ur,direction:G,virtual:wt,popupMatchSelectWidth:_,popupOverflow:f,select:u}=te.useContext(E.E_),x=Sr("select",xe),ee=Sr(),Ce=It!=null?It:G,{compactSize:H,compactItemClassnames:ne}=(0,P.ri)(x,Ce),[$e,we]=(0,R.Z)(x),ve=te.useMemo(()=>{const{mode:ti}=hr;if(ti!=="combobox")return ti===W?"combobox":ti},[hr.mode]),qe=ve==="multiple"||ve==="tags",St=(0,Y.Z)(hr.suffixIcon,hr.showArrow),me=(Te=st!=null?st:at)!==null&&Te!==void 0?Te:_,{status:ft,hasFeedback:lt,isFormItemInput:Pe,feedbackIcon:Le}=te.useContext(F.aM),pt=(0,h.F)(ft,ct);let zt;Se!==void 0?zt=Se:ve==="combobox"?zt=null:zt=(ur==null?void 0:ur("Select"))||te.createElement(j.Z,{componentName:"Select"});const{suffixIcon:Ht,itemIcon:er,removeIcon:Pr,clearIcon:pr}=(0,Q.Z)(Object.assign(Object.assign({},hr),{multiple:qe,hasFeedback:lt,feedbackIcon:Le,showSuffixIcon:St,prefixCls:x,showArrow:hr.showArrow,componentName:"Select"})),kr=Kt===!0?{clearIcon:pr}:Kt,Dr=(0,Ne.Z)(hr,["suffixIcon","itemIcon"]),vr=ue()(rt||Oe,{[`${x}-dropdown-${Ce}`]:Ce==="rtl"},de,we),dr=(0,S.Z)(ti=>{var Ir;return(Ir=De!=null?De:H)!==null&&Ir!==void 0?Ir:ti}),$r=te.useContext(p.Z),un=fe!=null?fe:$r,_n=ue()({[`${x}-lg`]:dr==="large",[`${x}-sm`]:dr==="small",[`${x}-rtl`]:Ce==="rtl",[`${x}-borderless`]:!je,[`${x}-in-form-item`]:Pe},(0,h.Z)(x,pt,lt),ne,u==null?void 0:u.className,X,de,we),qr=te.useMemo(()=>He!==void 0?He:Ce==="rtl"?"bottomRight":"bottomLeft",[He,Ce]),Bn=(0,M.Z)(dt,f);return $e(te.createElement(U.ZP,Object.assign({ref:he,virtual:wt,showSearch:u==null?void 0:u.showSearch},Dr,{style:Object.assign(Object.assign({},u==null?void 0:u.style),Ut),dropdownMatchSelectWidth:me,builtinPlacements:Bn,transitionName:(0,B.m)(ee,"slide-up",hr.transitionName),listHeight:be,listItemHeight:ge,mode:ve,prefixCls:x,placement:qr,direction:Ce,suffixIcon:Ht,menuItemSelectedIcon:er,removeIcon:Pr,allowClear:kr,notFoundContent:zt,className:_n,getPopupContainer:k||or,dropdownClassName:vr,disabled:un})))},V=te.forwardRef(J),K=(0,Z.Z)(V);V.SECRET_COMBOBOX_MODE_DO_NOT_USE=W,V.Option=U.Wx,V.OptGroup=U.Xo,V._InternalPanelDoNotUseOrYouWillBeFired=K,Jt.default=V},14154:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return V}});var pe=w(17313),ue=w(74207),U=w(37613),Ne=w(83116),te=w(13826),Z=w(92899);const B=K=>{const{optionHeight:se,optionFontSize:he,optionLineHeight:Te,optionPadding:xe}=K;return{position:"relative",display:"block",minHeight:se,padding:xe,color:K.colorText,fontWeight:"normal",fontSize:he,lineHeight:Te,boxSizing:"border-box"}};var E=K=>{const{antCls:se,componentCls:he}=K,Te=`${he}-item`,xe=`&${se}-slide-up-enter${se}-slide-up-enter-active`,je=`&${se}-slide-up-appear${se}-slide-up-appear-active`,X=`&${se}-slide-up-leave${se}-slide-up-leave-active`,de=`${he}-dropdown-placement-`;return[{[`${he}-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,[`
${xe}${de}bottomLeft,
${je}${de}bottomLeft
`]:{animationName:te.fJ},[`
${xe}${de}topLeft,
${je}${de}topLeft,
${xe}${de}topRight,
${je}${de}topRight
`]:{animationName:te.Qt},[`${X}${de}bottomLeft`]:{animationName:te.Uw},[`
${X}${de}topLeft,
${X}${de}topRight
`]:{animationName:te.ly},"&-hidden":{display:"none"},[`${Te}`]:Object.assign(Object.assign({},B(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(${Te}-option-disabled)`]:{backgroundColor:K.optionActiveBg},[`&-selected:not(${Te}-option-disabled)`]:{color:K.optionSelectedColor,fontWeight:K.optionSelectedFontWeight,backgroundColor:K.optionSelectedBg,[`${Te}-option-state`]:{color:K.colorPrimary}},"&-disabled":{[`&${Te}-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,Z.Fm)(K,"move-up"),(0,Z.Fm)(K,"move-down")]};const p=2,j=K=>{let{controlHeightSM:se,controlHeight:he,lineWidth:Te}=K;const xe=(he-se)/2-Te,je=Math.ceil(xe/2);return[xe,je]};function S(K,se){const{componentCls:he,iconCls:Te}=K,xe=`${he}-selection-overflow`,je=K.multipleSelectItemHeight,[X]=j(K),de=se?`${he}-${se}`:"";return{[`${he}-multiple${de}`]:{fontSize:K.fontSize,[xe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${he}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${X-p}px ${p*2}px`,borderRadius:K.borderRadius,[`${he}-show-search&`]:{cursor:"text"},[`${he}-disabled&`]:{background:K.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${p}px 0`,lineHeight:`${je}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${he}-show-arrow ${he}-selector,
&${he}-allow-clear ${he}-selector
`]:{paddingInlineEnd:K.fontSizeIcon+K.controlPaddingHorizontal},[`${he}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:je,marginTop:p,marginBottom:p,lineHeight:`${je-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:p*2,paddingInlineStart:K.paddingXS,paddingInlineEnd:K.paddingXS/2,[`${he}-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",[`> ${Te}`]:{verticalAlign:"-0.2em"},"&:hover":{color:K.colorIconHover}})},[`${xe}-item + ${xe}-item`]:{[`${he}-selection-search`]:{marginInlineStart:0}},[`${he}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:K.inputPaddingHorizontalBase-X,"\n &-input,\n &-mirror\n ":{height:je,fontFamily:K.fontFamily,lineHeight:`${je}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"}},[`${he}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:K.inputPaddingHorizontalBase,insetInlineEnd:K.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${K.motionDurationSlow}`}}}}var P=K=>{const{componentCls:se}=K,he=(0,U.TS)(K,{controlHeight:K.controlHeightSM,multipleSelectItemHeight:K.controlHeightXS,borderRadius:K.borderRadiusSM,borderRadiusSM:K.borderRadiusXS}),Te=(0,U.TS)(K,{fontSize:K.fontSizeLG,controlHeight:K.controlHeightLG,multipleSelectItemHeight:K.multipleItemHeightLG,borderRadius:K.borderRadiusLG,borderRadiusSM:K.borderRadius}),[,xe]=j(K);return[S(K),S(he,"sm"),{[`${se}-multiple${se}-sm`]:{[`${se}-selection-placeholder`]:{insetInline:K.controlPaddingHorizontalSM-K.lineWidth},[`${se}-selection-search`]:{marginInlineStart:xe}}},S(Te,"lg")]};function R(K,se){const{componentCls:he,inputPaddingHorizontalBase:Te,borderRadius:xe}=K,je=K.controlHeight-K.lineWidth*2,X=Math.ceil(K.fontSize*1.25),de=se?`${he}-${se}`:"";return{[`${he}-single${de}`]:{fontSize:K.fontSize,[`${he}-selector`]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{display:"flex",borderRadius:xe,[`${he}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Te,insetInlineEnd:Te,bottom:0,"&-input":{width:"100%"}},[`
${he}-selection-item,
${he}-selection-placeholder
`]:{padding:0,lineHeight:`${je}px`,transition:`all ${K.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${je}px`}},[`${he}-selection-item`]:{position:"relative",userSelect:"none"},[`${he}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${he}-selection-item:after`,`${he}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${he}-show-arrow ${he}-selection-item,
&${he}-show-arrow ${he}-selection-placeholder
`]:{paddingInlineEnd:X},[`&${he}-open ${he}-selection-item`]:{color:K.colorTextPlaceholder},[`&:not(${he}-customize-input)`]:{[`${he}-selector`]:{width:"100%",height:K.controlHeight,padding:`0 ${Te}px`,[`${he}-selection-search-input`]:{height:je},"&:after":{lineHeight:`${je}px`}}},[`&${he}-customize-input`]:{[`${he}-selector`]:{"&:after":{display:"none"},[`${he}-selection-search`]:{position:"static",width:"100%"},[`${he}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Te}px`,"&:after":{display:"none"}}}}}}}function M(K){const{componentCls:se}=K,he=K.controlPaddingHorizontalSM-K.lineWidth;return[R(K),R((0,U.TS)(K,{controlHeight:K.controlHeightSM,borderRadius:K.borderRadiusSM}),"sm"),{[`${se}-single${se}-sm`]:{[`&:not(${se}-customize-input)`]:{[`${se}-selection-search`]:{insetInlineStart:he,insetInlineEnd:he},[`${se}-selector`]:{padding:`0 ${he}px`},[`&${se}-show-arrow ${se}-selection-search`]:{insetInlineEnd:he+K.fontSize*1.5},[`
&${se}-show-arrow ${se}-selection-item,
&${se}-show-arrow ${se}-selection-placeholder
`]:{paddingInlineEnd:K.fontSize*1.5}}}},R((0,U.TS)(K,{controlHeight:K.singleItemHeightLG,fontSize:K.fontSizeLG,borderRadius:K.borderRadiusLG}),"lg")]}const Y=K=>{const{componentCls:se,selectorBg:he}=K;return{position:"relative",backgroundColor:he,border:`${K.lineWidth}px ${K.lineType} ${K.colorBorder}`,transition:`all ${K.motionDurationMid} ${K.motionEaseInOut}`,input:{cursor:"pointer"},[`${se}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${se}-disabled&`]:{color:K.colorTextDisabled,background:K.colorBgContainerDisabled,cursor:"not-allowed",[`${se}-multiple&`]:{background:K.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Q=function(K,se){let he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Te,borderHoverColor:xe,outlineColor:je,antCls:X}=se,de=he?{[`${Te}-selector`]:{borderColor:xe}}:{};return{[K]:{[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${X}-pagination-size-changer)`]:Object.assign(Object.assign({},de),{[`${Te}-focused& ${Te}-selector`]:{borderColor:xe,boxShadow:`0 0 0 ${se.controlOutlineWidth}px ${je}`,outline:0},[`&:hover ${Te}-selector`]:{borderColor:xe}})}}},ce=K=>{const{componentCls:se}=K;return{[`${se}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},W=K=>{const{componentCls:se,inputPaddingHorizontalBase:he,iconCls:Te}=K;return{[se]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${se}-customize-input) ${se}-selector`]:Object.assign(Object.assign({},Y(K)),ce(K)),[`${se}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},pe.vS),[`${se}-selection-placeholder`]:Object.assign(Object.assign({},pe.vS),{flex:1,color:K.colorTextPlaceholder,pointerEvents:"none"}),[`${se}-arrow`]:Object.assign(Object.assign({},(0,pe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Te]:{verticalAlign:"top",transition:`transform ${K.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${se}-suffix)`]:{pointerEvents:"auto"}},[`${se}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${se}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,zIndex:1,display:"inline-block",width:K.fontSizeIcon,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:K.clearBg,cursor:"pointer",opacity:0,transition:`color ${K.motionDurationMid} ease, opacity ${K.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:K.colorTextTertiary}},"&:hover":{[`${se}-clear`]:{opacity:1}}}),[`${se}-has-feedback`]:{[`${se}-clear`]:{insetInlineEnd:he+K.fontSize+K.paddingXS}}}},J=K=>{const{componentCls:se}=K;return[{[se]:{[`&-borderless ${se}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${se}-in-form-item`]:{width:"100%"}}},W(K),M(K),P(K),E(K),{[`${se}-rtl`]:{direction:"rtl"}},Q(se,(0,U.TS)(K,{borderHoverColor:K.colorPrimaryHover,outlineColor:K.controlOutline})),Q(`${se}-status-error`,(0,U.TS)(K,{borderHoverColor:K.colorErrorHover,outlineColor:K.colorErrorOutline}),!0),Q(`${se}-status-warning`,(0,U.TS)(K,{borderHoverColor:K.colorWarningHover,outlineColor:K.colorWarningOutline}),!0),(0,ue.c)(K,{borderElCls:`${se}-selector`,focusElCls:`${se}-focused`})]};var V=(0,Ne.Z)("Select",(K,se)=>{let{rootPrefixCls:he}=se;const Te=(0,U.TS)(K,{rootPrefixCls:he,inputPaddingHorizontalBase:K.paddingSM-1,multipleSelectItemHeight:K.multipleItemHeight});return[J(Te)]},K=>{const{fontSize:se,lineHeight:he,controlHeight:Te,controlPaddingHorizontal:xe,zIndexPopupBase:je,colorText:X,fontWeightStrong:de,controlItemBgActive:k,controlItemBgHover:rt,colorBgContainer:Oe,colorFillSecondary:be,controlHeightLG:He,controlHeightSM:ge,colorBgContainerDisabled:De,colorTextDisabled:fe}=K;return{zIndexPopup:je+50,optionSelectedColor:X,optionSelectedFontWeight:de,optionSelectedBg:k,optionActiveBg:rt,optionPadding:`${(Te-se*he)/2}px ${xe}px`,optionFontSize:se,optionLineHeight:he,optionHeight:Te,selectorBg:Oe,clearBg:Oe,singleItemHeightLG:He,multipleItemBg:be,multipleItemBorderColor:"transparent",multipleItemHeight:ge,multipleItemHeightLG:Te,multipleSelectorBgDisabled:De,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return ue}});const pe=U=>{const te={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:U==="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 ue(U,Ne){return U||pe(Ne)}},84443:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return pe}});function pe(ue,U){return U!==void 0?U:ue!==null}},66339:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return h}});var pe=w(40001),ue=w(19248),U=w(99267),Ne=w(84105),te=w(58617),Z=w(47472),B=w(59301);function h(E){let{suffixIcon:p,clearIcon:j,menuItemSelectedIcon:S,removeIcon:F,loading:P,multiple:R,hasFeedback:M,prefixCls:Y,showSuffixIcon:Q,feedbackIcon:ce,showArrow:W,componentName:J}=E;const V=j!=null?j:B.createElement(ue.Z,null),K=xe=>p===null&&!M&&!W?null:B.createElement(B.Fragment,null,Q!==!1&&xe,M&&ce);let se=null;if(p!==void 0)se=K(p);else if(P)se=K(B.createElement(te.Z,{spin:!0}));else{const xe=`${Y}-suffix`;se=je=>{let{open:X,showSearch:de}=je;return K(X&&de?B.createElement(Z.Z,{className:xe}):B.createElement(Ne.Z,{className:xe}))}}let he=null;S!==void 0?he=S:R?he=B.createElement(pe.Z,null):he=null;let Te=null;return F!==void 0?Te=F:Te=B.createElement(U.Z,null),{clearIcon:V,suffixIcon:se,itemIcon:he,removeIcon:Te}}},61621:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return f}});var pe=w(92310),ue=w.n(pe),U=w(59301),Ne=w(36355),te=w(2738),B=u=>{const{prefixCls:x,className:ee,style:Ce,size:H,shape:ne}=u,$e=ue()({[`${x}-lg`]:H==="large",[`${x}-sm`]:H==="small"}),we=ue()({[`${x}-circle`]:ne==="circle",[`${x}-square`]:ne==="square",[`${x}-round`]:ne==="round"}),ve=U.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return U.createElement("span",{className:ue()(x,$e,we,ee),style:Object.assign(Object.assign({},ve),Ce)})},h=w(36237),E=w(83116),p=w(37613);const j=new h.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),S=u=>({height:u,lineHeight:`${u}px`}),F=u=>Object.assign({width:u},S(u)),P=u=>({background:u.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:j,animationDuration:u.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),R=u=>Object.assign({width:u*5,minWidth:u*5},S(u)),M=u=>{const{skeletonAvatarCls:x,gradientFromColor:ee,controlHeight:Ce,controlHeightLG:H,controlHeightSM:ne}=u;return{[`${x}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ee},F(Ce)),[`${x}${x}-circle`]:{borderRadius:"50%"},[`${x}${x}-lg`]:Object.assign({},F(H)),[`${x}${x}-sm`]:Object.assign({},F(ne))}},Y=u=>{const{controlHeight:x,borderRadiusSM:ee,skeletonInputCls:Ce,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:$e}=u;return{[`${Ce}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$e,borderRadius:ee},R(x)),[`${Ce}-lg`]:Object.assign({},R(H)),[`${Ce}-sm`]:Object.assign({},R(ne))}},Q=u=>Object.assign({width:u},S(u)),ce=u=>{const{skeletonImageCls:x,imageSizeBase:ee,gradientFromColor:Ce,borderRadiusSM:H}=u;return{[`${x}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ce,borderRadius:H},Q(ee*2)),{[`${x}-path`]:{fill:"#bfbfbf"},[`${x}-svg`]:Object.assign(Object.assign({},Q(ee)),{maxWidth:ee*4,maxHeight:ee*4}),[`${x}-svg${x}-svg-circle`]:{borderRadius:"50%"}}),[`${x}${x}-circle`]:{borderRadius:"50%"}}},W=(u,x,ee)=>{const{skeletonButtonCls:Ce}=u;return{[`${ee}${Ce}-circle`]:{width:x,minWidth:x,borderRadius:"50%"},[`${ee}${Ce}-round`]:{borderRadius:x}}},J=u=>Object.assign({width:u*2,minWidth:u*2},S(u)),V=u=>{const{borderRadiusSM:x,skeletonButtonCls:ee,controlHeight:Ce,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:$e}=u;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$e,borderRadius:x,width:Ce*2,minWidth:Ce*2},J(Ce))},W(u,Ce,ee)),{[`${ee}-lg`]:Object.assign({},J(H))}),W(u,H,`${ee}-lg`)),{[`${ee}-sm`]:Object.assign({},J(ne))}),W(u,ne,`${ee}-sm`))},K=u=>{const{componentCls:x,skeletonAvatarCls:ee,skeletonTitleCls:Ce,skeletonParagraphCls:H,skeletonButtonCls:ne,skeletonInputCls:$e,skeletonImageCls:we,controlHeight:ve,controlHeightLG:qe,controlHeightSM:St,gradientFromColor:me,padding:ft,marginSM:lt,borderRadius:Pe,titleHeight:Le,blockRadius:pt,paragraphLiHeight:zt,controlHeightXS:Ht,paragraphMarginTop:er}=u;return{[`${x}`]:{display:"table",width:"100%",[`${x}-header`]:{display:"table-cell",paddingInlineEnd:ft,verticalAlign:"top",[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:me},F(ve)),[`${ee}-circle`]:{borderRadius:"50%"},[`${ee}-lg`]:Object.assign({},F(qe)),[`${ee}-sm`]:Object.assign({},F(St))},[`${x}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ce}`]:{width:"100%",height:Le,background:me,borderRadius:pt,[`+ ${H}`]:{marginBlockStart:St}},[`${H}`]:{padding:0,"> li":{width:"100%",height:zt,listStyle:"none",background:me,borderRadius:pt,"+ li":{marginBlockStart:Ht}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${x}-content`]:{[`${Ce}, ${H} > li`]:{borderRadius:Pe}}},[`${x}-with-avatar ${x}-content`]:{[`${Ce}`]:{marginBlockStart:lt,[`+ ${H}`]:{marginBlockStart:er}}},[`${x}${x}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},V(u)),M(u)),Y(u)),ce(u)),[`${x}${x}-block`]:{width:"100%",[`${ne}`]:{width:"100%"},[`${$e}`]:{width:"100%"}},[`${x}${x}-active`]:{[`
${Ce},
${H} > li,
${ee},
${ne},
${$e},
${we}
`]:Object.assign({},P(u))}}};var se=(0,E.Z)("Skeleton",u=>{const{componentCls:x}=u,ee=(0,p.TS)(u,{skeletonAvatarCls:`${x}-avatar`,skeletonTitleCls:`${x}-title`,skeletonParagraphCls:`${x}-paragraph`,skeletonButtonCls:`${x}-button`,skeletonInputCls:`${x}-input`,skeletonImageCls:`${x}-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(ee)]},u=>{const{colorFillContent:x,colorFill:ee}=u,Ce=x,H=ee;return{color:Ce,colorGradientEnd:H,gradientFromColor:Ce,gradientToColor:H,titleHeight:u.controlHeight/2,blockRadius:u.borderRadiusSM,paragraphMarginTop:u.marginLG+u.marginXXS,paragraphLiHeight:u.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Te=u=>{const{prefixCls:x,className:ee,rootClassName:Ce,active:H,shape:ne="circle",size:$e="default"}=u,{getPrefixCls:we}=U.useContext(Ne.E_),ve=we("skeleton",x),[qe,St]=se(ve),me=(0,te.Z)(u,["prefixCls","className"]),ft=ue()(ve,`${ve}-element`,{[`${ve}-active`]:H},ee,Ce,St);return qe(U.createElement("div",{className:ft},U.createElement(B,Object.assign({prefixCls:`${ve}-avatar`,shape:ne,size:$e},me))))},je=u=>{const{prefixCls:x,className:ee,rootClassName:Ce,active:H,block:ne=!1,size:$e="default"}=u,{getPrefixCls:we}=U.useContext(Ne.E_),ve=we("skeleton",x),[qe,St]=se(ve),me=(0,te.Z)(u,["prefixCls"]),ft=ue()(ve,`${ve}-element`,{[`${ve}-active`]:H,[`${ve}-block`]:ne},ee,Ce,St);return qe(U.createElement("div",{className:ft},U.createElement(B,Object.assign({prefixCls:`${ve}-button`,size:$e},me))))};const X="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 k=u=>{const{prefixCls:x,className:ee,rootClassName:Ce,style:H,active:ne}=u,{getPrefixCls:$e}=U.useContext(Ne.E_),we=$e("skeleton",x),[ve,qe]=se(we),St=ue()(we,`${we}-element`,{[`${we}-active`]:ne},ee,Ce,qe);return ve(U.createElement("div",{className:St},U.createElement("div",{className:ue()(`${we}-image`,ee),style:H},U.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${we}-image-svg`},U.createElement("path",{d:X,className:`${we}-image-path`})))))},Oe=u=>{const{prefixCls:x,className:ee,rootClassName:Ce,active:H,block:ne,size:$e="default"}=u,{getPrefixCls:we}=U.useContext(Ne.E_),ve=we("skeleton",x),[qe,St]=se(ve),me=(0,te.Z)(u,["prefixCls"]),ft=ue()(ve,`${ve}-element`,{[`${ve}-active`]:H,[`${ve}-block`]:ne},ee,Ce,St);return qe(U.createElement("div",{className:ft},U.createElement(B,Object.assign({prefixCls:`${ve}-input`,size:$e},me))))},be=w(32855),He={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"},ge=He,De=w(7657),fe=function(x,ee){return U.createElement(De.Z,(0,be.Z)({},x,{ref:ee,icon:ge}))},Se=U.forwardRef(fe),ct=Se,at=u=>{const{prefixCls:x,className:ee,rootClassName:Ce,style:H,active:ne,children:$e}=u,{getPrefixCls:we}=U.useContext(Ne.E_),ve=we("skeleton",x),[qe,St]=se(ve),me=ue()(ve,`${ve}-element`,{[`${ve}-active`]:ne},St,ee,Ce),ft=$e!=null?$e:U.createElement(ct,null);return qe(U.createElement("div",{className:me},U.createElement("div",{className:ue()(`${ve}-image`,ee),style:H},ft)))},st=w(3300),Ut=u=>{const x=we=>{const{width:ve,rows:qe=2}=u;if(Array.isArray(ve))return ve[we];if(qe-1===we)return ve},{prefixCls:ee,className:Ce,style:H,rows:ne}=u,$e=(0,st.Z)(Array(ne)).map((we,ve)=>U.createElement("li",{key:ve,style:{width:x(ve)}}));return U.createElement("ul",{className:ue()(ee,Ce),style:H},$e)},hr=u=>{let{prefixCls:x,className:ee,width:Ce,style:H}=u;return U.createElement("h3",{className:ue()(x,ee),style:Object.assign({width:Ce},H)})};function or(u){return u&&typeof u=="object"?u:{}}function Sr(u,x){return u&&!x?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ur(u,x){return!u&&x?{width:"38%"}:u&&x?{width:"50%"}:{}}function G(u,x){const ee={};return(!u||!x)&&(ee.width="61%"),!u&&x?ee.rows=3:ee.rows=2,ee}const wt=u=>{const{prefixCls:x,loading:ee,className:Ce,rootClassName:H,style:ne,children:$e,avatar:we=!1,title:ve=!0,paragraph:qe=!0,active:St,round:me}=u,{getPrefixCls:ft,direction:lt,skeleton:Pe}=U.useContext(Ne.E_),Le=ft("skeleton",x),[pt,zt]=se(Le);if(ee||!("loading"in u)){const Ht=!!we,er=!!ve,Pr=!!qe;let pr;if(Ht){const vr=Object.assign(Object.assign({prefixCls:`${Le}-avatar`},Sr(er,Pr)),or(we));pr=U.createElement("div",{className:`${Le}-header`},U.createElement(B,Object.assign({},vr)))}let kr;if(er||Pr){let vr;if(er){const $r=Object.assign(Object.assign({prefixCls:`${Le}-title`},ur(Ht,Pr)),or(ve));vr=U.createElement(hr,Object.assign({},$r))}let dr;if(Pr){const $r=Object.assign(Object.assign({prefixCls:`${Le}-paragraph`},G(Ht,er)),or(qe));dr=U.createElement(Ut,Object.assign({},$r))}kr=U.createElement("div",{className:`${Le}-content`},vr,dr)}const Dr=ue()(Le,{[`${Le}-with-avatar`]:Ht,[`${Le}-active`]:St,[`${Le}-rtl`]:lt==="rtl",[`${Le}-round`]:me},Pe==null?void 0:Pe.className,Ce,H,zt);return pt(U.createElement("div",{className:Dr,style:Object.assign(Object.assign({},Pe==null?void 0:Pe.style),ne)},pr,kr))}return typeof $e!="undefined"?$e:null};wt.Button=je,wt.Avatar=Te,wt.Input=Oe,wt.Image=k,wt.Node=at;var _=wt,f=_},81327:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return Y}});var pe=w(59301),ue=w(92310),U=w.n(ue),Ne=w(11592),te=w(36355),Z=w(33234);const B=pe.createContext({latestIndex:0}),h=B.Provider;var p=Q=>{let{className:ce,index:W,children:J,split:V,style:K}=Q;const{latestIndex:se}=pe.useContext(B);return J==null?null:pe.createElement(pe.Fragment,null,pe.createElement("div",{className:ce,style:K},J),W<se&&V&&pe.createElement("span",{className:`${ce}-split`},V))},j=w(2856);function S(Q){return["small","middle","large"].includes(Q)}function F(Q){return Q?typeof Q=="number"&&!Number.isNaN(Q):!1}var P=function(Q,ce){var W={};for(var J in Q)Object.prototype.hasOwnProperty.call(Q,J)&&ce.indexOf(J)<0&&(W[J]=Q[J]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,J=Object.getOwnPropertySymbols(Q);V<J.length;V++)ce.indexOf(J[V])<0&&Object.prototype.propertyIsEnumerable.call(Q,J[V])&&(W[J[V]]=Q[J[V]]);return W};const M=pe.forwardRef((Q,ce)=>{var W,J;const{getPrefixCls:V,space:K,direction:se}=pe.useContext(te.E_),{size:he=(K==null?void 0:K.size)||"small",align:Te,className:xe,rootClassName:je,children:X,direction:de="horizontal",prefixCls:k,split:rt,style:Oe,wrap:be=!1,classNames:He,styles:ge}=Q,De=P(Q,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[fe,Se]=Array.isArray(he)?he:[he,he],ct=S(Se),dt=S(fe),at=F(Se),st=F(fe),It=(0,Ne.Z)(X,{keepEmpty:!0}),Ut=Te===void 0&&de==="horizontal"?"center":Te,Kt=V("space",k),[hr,or]=(0,j.Z)(Kt),Sr=U()(Kt,K==null?void 0:K.className,or,`${Kt}-${de}`,{[`${Kt}-rtl`]:se==="rtl",[`${Kt}-align-${Ut}`]:Ut,[`${Kt}-gap-row-${Se}`]:ct,[`${Kt}-gap-col-${fe}`]:dt},xe,je),ur=U()(`${Kt}-item`,(W=He==null?void 0:He.item)!==null&&W!==void 0?W:(J=K==null?void 0:K.classNames)===null||J===void 0?void 0:J.item);let G=0;const wt=It.map((u,x)=>{var ee,Ce;u!=null&&(G=x);const H=u&&u.key||`${ur}-${x}`;return pe.createElement(p,{className:ur,key:H,index:x,split:rt,style:(ee=ge==null?void 0:ge.item)!==null&&ee!==void 0?ee:(Ce=K==null?void 0:K.styles)===null||Ce===void 0?void 0:Ce.item},u)}),_=pe.useMemo(()=>({latestIndex:G}),[G]);if(It.length===0)return null;const f={};return be&&(f.flexWrap="wrap"),!dt&&st&&(f.columnGap=fe),!ct&&at&&(f.rowGap=Se),hr(pe.createElement("div",Object.assign({ref:ce,className:Sr,style:Object.assign(Object.assign(Object.assign({},f),K==null?void 0:K.style),Oe)},De),pe.createElement(h,{value:_},wt)))});M.Compact=Z.ZP;var Y=M},8378:function(xn,Jt){"use strict";const w=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`}}});Jt.Z=w},92899:function(xn,Jt,w){"use strict";w.d(Jt,{Fm:function(){return S}});var pe=w(36237),ue=w(95406);const U=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}}),Z=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}}),B=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}}),h=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}}),E=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}}),p=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}}),j={"move-up":{inKeyframes:E,outKeyframes:p},"move-down":{inKeyframes:U,outKeyframes:Ne},"move-left":{inKeyframes:te,outKeyframes:Z},"move-right":{inKeyframes:B,outKeyframes:h}},S=(F,P)=>{const{antCls:R}=F,M=`${R}-${P}`,{inKeyframes:Y,outKeyframes:Q}=j[P];return[(0,ue.R)(M,Y,Q,F.motionDurationMid),{[`
${M}-enter,
${M}-appear
`]:{opacity:0,animationTimingFunction:F.motionEaseOutCirc},[`${M}-leave`]:{animationTimingFunction:F.motionEaseInOutCirc}}]}},13826:function(xn,Jt,w){"use strict";w.d(Jt,{Qt:function(){return te},Uw:function(){return Ne},fJ:function(){return U},ly:function(){return Z},oN:function(){return S}});var pe=w(36237),ue=w(95406);const U=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}}),Z=new pe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),B=new pe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),h=new pe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),E=new pe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new pe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),j={"slide-up":{inKeyframes:U,outKeyframes:Ne},"slide-down":{inKeyframes:te,outKeyframes:Z},"slide-left":{inKeyframes:B,outKeyframes:h},"slide-right":{inKeyframes:E,outKeyframes:p}},S=(F,P)=>{const{antCls:R}=F,M=`${R}-${P}`,{inKeyframes:Y,outKeyframes:Q}=j[P];return[(0,ue.R)(M,Y,Q,F.motionDurationMid),{[`
${M}-enter,
${M}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:F.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${M}-leave`]:{animationTimingFunction:F.motionEaseInQuint}}]}},15969:function(xn,Jt,w){"use strict";w.d(Jt,{N:function(){return pe}});const pe=ue=>({color:ue.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ue.motionDurationSlow}`,"&:focus, &:hover":{color:ue.colorLinkHover},"&:active":{color:ue.colorLinkActive}})},1710:function(xn,Jt,w){"use strict";w.d(Jt,{default:function(){return rr}});var pe={},ue="rc-table-internal-hook",U=w(11913),Ne=w(6089),te=w(34280),Z=w(13697),B=w(59301),h=w(4676);function E(T){var re=B.createContext(void 0),Be=function(Ke){var Xe=Ke.value,ut=Ke.children,Et=B.useRef(Xe);Et.current=Xe;var le=B.useState(function(){return{getValue:function(){return Et.current},listeners:new Set}}),Re=(0,U.Z)(le,1),Ye=Re[0];return(0,te.Z)(function(){(0,h.unstable_batchedUpdates)(function(){Ye.listeners.forEach(function(et){et(Xe)})})},[Xe]),B.createElement(re.Provider,{value:Ye},ut)};return{Context:re,Provider:Be,defaultValue:T}}function p(T,re){var Be=(0,Ne.Z)(typeof re=="function"?re:function(et){if(re===void 0)return et;if(!Array.isArray(re))return et[re];var yt={};return re.forEach(function(_t){yt[_t]=et[_t]}),yt}),Ue=B.useContext(T==null?void 0:T.Context),Ke=Ue||{},Xe=Ke.listeners,ut=Ke.getValue,Et=B.useRef();Et.current=Be(Ue?ut():T==null?void 0:T.defaultValue);var le=B.useState({}),Re=(0,U.Z)(le,2),Ye=Re[1];return(0,te.Z)(function(){if(!Ue)return;function et(yt){var _t=Be(yt);(0,Z.Z)(Et.current,_t,!0)||Ye({})}return Xe.add(et),function(){Xe.delete(et)}},[Ue]),Et.current}var j=w(32855),S=w(8654);function F(){var T=B.createContext(null);function re(){return B.useContext(T)}function Be(Ke,Xe){var ut=(0,S.Yr)(Ke),Et=function(Re,Ye){var et=ut?{ref:Ye}:{},yt=B.useRef(0),_t=B.useRef(Re),Mt=re();return Mt!==null?B.createElement(Ke,(0,j.Z)({},Re,et)):((!Xe||Xe(_t.current,Re))&&(yt.current+=1),_t.current=Re,B.createElement(T.Provider,{value:yt.current},B.createElement(Ke,(0,j.Z)({},Re,et))))};return ut?B.forwardRef(Et):Et}function Ue(Ke,Xe){var ut=(0,S.Yr)(Ke),Et=function(Re,Ye){var et=ut?{ref:Ye}:{};return re(),B.createElement(Ke,(0,j.Z)({},Re,et))};return ut?B.memo(B.forwardRef(Et),Xe):B.memo(Et,Xe)}return{makeImmutable:Be,responseImmutable:Ue,useImmutableMark:re}}var P=F(),R=P.makeImmutable,M=P.responseImmutable,Y=P.useImmutableMark,Q=F(),ce=Q.makeImmutable,W=Q.responseImmutable,J=Q.useImmutableMark,V=E(),K=V;function se(T,re){var Be=B.useRef(0);Be.current+=1;var Ue=B.useRef(T),Ke=[];Object.keys(T||{}).map(function(ut){var Et;(T==null?void 0:T[ut])!==((Et=Ue.current)===null||Et===void 0?void 0:Et[ut])&&Ke.push(ut)}),Ue.current=T;var Xe=B.useRef([]);return Ke.length&&(Xe.current=Ke),B.useDebugValue(Be.current),B.useDebugValue(Xe.current.join(", ")),re&&console.log("".concat(re,":"),Be.current,Xe.current),Be.current}var he=null,Te=B.memo(function(){var T=se();return B.createElement("h1",null,"Render Times: ",T)});Te.displayName="RenderBlock";var xe=w(34666),je=w(27247),X=w(74430),de=w(92310),k=w.n(de),rt=w(80547),Oe=w(97938),be=w(48736),He=B.createContext({renderWithProps:!1}),ge=He,De="RC_TABLE_KEY";function fe(T){return T==null?[]:Array.isArray(T)?T:[T]}function Se(T){var re=[],Be={};return T.forEach(function(Ue){for(var Ke=Ue||{},Xe=Ke.key,ut=Ke.dataIndex,Et=Xe||fe(ut).join("-")||De;Be[Et];)Et="".concat(Et,"_next");Be[Et]=!0,re.push(Et)}),re}function ct(T){return T!=null}function dt(T){return T&&(0,xe.Z)(T)==="object"&&!Array.isArray(T)&&!B.isValidElement(T)}function at(T,re,Be,Ue,Ke,Xe){var ut=B.useContext(ge),Et=J(),le=(0,rt.Z)(function(){if(ct(Ue))return[Ue];var Re=re==null||re===""?[]:Array.isArray(re)?re:[re],Ye=(0,Oe.Z)(T,Re),et=Ye,yt=void 0;if(Ke){var _t=Ke(Ye,T,Be);dt(_t)?(et=_t.children,yt=_t.props,ut.renderWithProps=!0):et=_t}return[et,yt]},[Et,T,Ue,re,Ke,Be],function(Re,Ye){if(Xe){var et=(0,U.Z)(Re,2),yt=et[1],_t=(0,U.Z)(Ye,2),Mt=_t[1];return Xe(Mt,yt)}return ut.renderWithProps?!0:!(0,Z.Z)(Re,Ye,!0)});return le}function st(T,re,Be,Ue){var Ke=T+re-1;return T<=Ue&&Ke>=Be}function It(T,re){return p(K,function(Be){var Ue=st(T,re||1,Be.hoverStartRow,Be.hoverEndRow);return[Ue,Be.onHover]})}var Ut=function(re){var Be=re.ellipsis,Ue=re.rowType,Ke=re.children,Xe,ut=Be===!0?{showTitle:!0}:Be;return ut&&(ut.showTitle||Ue==="header")&&(typeof Ke=="string"||typeof Ke=="number"?Xe=Ke.toString():B.isValidElement(Ke)&&typeof Ke.props.children=="string"&&(Xe=Ke.props.children)),Xe};function Kt(T){var re,Be,Ue,Ke,Xe,ut,Et,le,Re=T.component,Ye=T.children,et=T.ellipsis,yt=T.scope,_t=T.prefixCls,Mt=T.className,Rt=T.align,lr=T.record,Ar=T.render,gr=T.dataIndex,_r=T.renderIndex,dn=T.shouldCellUpdate,ar=T.index,vt=T.rowType,Fn=T.colSpan,gn=T.rowSpan,yr=T.fixLeft,Ur=T.fixRight,Rr=T.firstFixLeft,wr=T.lastFixLeft,Zr=T.firstFixRight,Cn=T.lastFixRight,Gn=T.appendNode,Zn=T.additionalProps,Nn=Zn===void 0?{}:Zn,di=T.isSticky,zn="".concat(_t,"-cell"),Ii=p(K,["supportSticky","allColumnsFixedLeft"]),vn=Ii.supportSticky,_a=Ii.allColumnsFixedLeft,Hi=at(lr,gr,_r,Ye,Ar,dn),Ri=(0,U.Z)(Hi,2),ia=Ri[0],Ki=Ri[1],Qa={},Gi=typeof yr=="number"&&vn,As=typeof Ur=="number"&&vn;Gi&&(Qa.position="sticky",Qa.left=yr),As&&(Qa.position="sticky",Qa.right=Ur);var Sn=(re=(Be=(Ue=Ki==null?void 0:Ki.colSpan)!==null&&Ue!==void 0?Ue:Nn.colSpan)!==null&&Be!==void 0?Be:Fn)!==null&&re!==void 0?re:1,fi=(Ke=(Xe=(ut=Ki==null?void 0:Ki.rowSpan)!==null&&ut!==void 0?ut:Nn.rowSpan)!==null&&Xe!==void 0?Xe:gn)!==null&&Ke!==void 0?Ke:1,mi=It(ar,fi),$n=(0,U.Z)(mi,2),ai=$n[0],kn=$n[1],Qi=function(bn){var no;lr&&kn(ar,ar+fi-1),Nn==null||(no=Nn.onMouseEnter)===null||no===void 0||no.call(Nn,bn)},Xi=function(bn){var no;lr&&kn(-1,-1),Nn==null||(no=Nn.onMouseLeave)===null||no===void 0||no.call(Nn,bn)};if(Sn===0||fi===0)return null;var qi=(Et=Nn.title)!==null&&Et!==void 0?Et:Ut({rowType:vt,ellipsis:et,children:ia}),Mo=k()(zn,Mt,(le={},(0,X.Z)(le,"".concat(zn,"-fix-left"),Gi&&vn),(0,X.Z)(le,"".concat(zn,"-fix-left-first"),Rr&&vn),(0,X.Z)(le,"".concat(zn,"-fix-left-last"),wr&&vn),(0,X.Z)(le,"".concat(zn,"-fix-left-all"),wr&&_a&&vn),(0,X.Z)(le,"".concat(zn,"-fix-right"),As&&vn),(0,X.Z)(le,"".concat(zn,"-fix-right-first"),Zr&&vn),(0,X.Z)(le,"".concat(zn,"-fix-right-last"),Cn&&vn),(0,X.Z)(le,"".concat(zn,"-ellipsis"),et),(0,X.Z)(le,"".concat(zn,"-with-append"),Gn),(0,X.Z)(le,"".concat(zn,"-fix-sticky"),(Gi||As)&&di&&vn),(0,X.Z)(le,"".concat(zn,"-row-hover"),!Ki&&ai),le),Nn.className,Ki==null?void 0:Ki.className),Mi={};Rt&&(Mi.textAlign=Rt);var ns=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Qa),Nn.style),Mi),Ki==null?void 0:Ki.style),ro=ia;return(0,xe.Z)(ro)==="object"&&!Array.isArray(ro)&&!B.isValidElement(ro)&&(ro=null),et&&(wr||Zr)&&(ro=B.createElement("span",{className:"".concat(zn,"-content")},ro)),B.createElement(Re,(0,j.Z)({},Ki,Nn,{className:Mo,style:ns,title:qi,scope:yt,onMouseEnter:Qi,onMouseLeave:Xi,colSpan:Sn!==1?Sn:null,rowSpan:fi!==1?fi:null}),Gn,ro)}var hr=B.memo(Kt);function or(T,re,Be,Ue,Ke,Xe){var ut=Be[T]||{},Et=Be[re]||{},le,Re;ut.fixed==="left"?le=Ue.left[Ke==="rtl"?re:T]:Et.fixed==="right"&&(Re=Ue.right[Ke==="rtl"?T:re]);var Ye=!1,et=!1,yt=!1,_t=!1,Mt=Be[re+1],Rt=Be[T-1],lr=!(Xe!=null&&Xe.children);if(Ke==="rtl"){if(le!==void 0){var Ar=Rt&&Rt.fixed==="left";_t=!Ar&&lr}else if(Re!==void 0){var gr=Mt&&Mt.fixed==="right";yt=!gr&&lr}}else if(le!==void 0){var _r=Mt&&Mt.fixed==="left";Ye=!_r&&lr}else if(Re!==void 0){var dn=Rt&&Rt.fixed==="right";et=!dn&&lr}return{fixLeft:le,fixRight:Re,lastFixLeft:Ye,firstFixRight:et,lastFixRight:yt,firstFixLeft:_t,isSticky:Ue.isSticky}}var Sr=B.createContext({}),ur=Sr;function G(T){var re=T.className,Be=T.index,Ue=T.children,Ke=T.colSpan,Xe=Ke===void 0?1:Ke,ut=T.rowSpan,Et=T.align,le=p(K,["prefixCls","direction"]),Re=le.prefixCls,Ye=le.direction,et=B.useContext(ur),yt=et.scrollColumnIndex,_t=et.stickyOffsets,Mt=et.flattenColumns,Rt=et.columns,lr=Be+Xe-1,Ar=lr+1===yt?Xe+1:Xe,gr=or(Be,Be+Ar-1,Mt,_t,Ye,Rt==null?void 0:Rt[Be]);return B.createElement(hr,(0,j.Z)({className:re,index:Be,component:"td",prefixCls:Re,record:null,dataIndex:null,align:Et,colSpan:Ar,rowSpan:ut,render:function(){return Ue}},gr))}var wt=w(43079),_=["children"];function f(T){var re=T.children,Be=(0,wt.Z)(T,_);return B.createElement("tr",Be,re)}function u(T){var re=T.children;return re}u.Row=f,u.Cell=G;var x=u;function ee(T){var re=T.children,Be=T.stickyOffsets,Ue=T.flattenColumns,Ke=T.columns,Xe=p(K,"prefixCls"),ut=Ue.length-1,Et=Ue[ut],le=B.useMemo(function(){return{stickyOffsets:Be,flattenColumns:Ue,scrollColumnIndex:Et!=null&&Et.scrollbar?ut:null,columns:Ke}},[Et,Ue,ut,Be,Ke]);return B.createElement(ur.Provider,{value:le},B.createElement("tfoot",{className:"".concat(Xe,"-summary")},re))}var Ce=W(ee),H=x,ne=w(70425),$e=w(29301),we=w(29194),ve=w(24514),qe=w(75152),St=w(26112);function me(T,re,Be,Ue,Ke,Xe,ut){T.push({record:re,indent:Be,index:ut});var Et=Xe(re),le=Ke==null?void 0:Ke.has(Et);if(re&&Array.isArray(re[Ue])&&le)for(var Re=0;Re<re[Ue].length;Re+=1)me(T,re[Ue][Re],Be+1,Ue,Ke,Xe,Re)}function ft(T,re,Be,Ue){var Ke=B.useMemo(function(){if(Be!=null&&Be.size){for(var Xe=[],ut=0;ut<(T==null?void 0:T.length);ut+=1){var Et=T[ut];me(Xe,Et,0,re,Be,Ue,ut)}return Xe}return T==null?void 0:T.map(function(le,Re){return{record:le,indent:0,index:Re}})},[T,re,Be,Ue]);return Ke}function lt(T){var re=T.prefixCls,Be=T.children,Ue=T.component,Ke=T.cellComponent,Xe=T.className,ut=T.expanded,Et=T.colSpan,le=T.isEmpty,Re=p(K,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ye=Re.scrollbarSize,et=Re.fixHeader,yt=Re.fixColumn,_t=Re.componentWidth,Mt=Re.horizonScroll,Rt=Be;return(le?Mt&&_t:yt)&&(Rt=B.createElement("div",{style:{width:_t-(et?Ye:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(re,"-expanded-row-fixed")},Rt)),B.createElement(Ue,{className:Xe,style:{display:ut?null:"none"}},B.createElement(hr,{component:Ke,prefixCls:re,colSpan:Et},Rt))}var Pe=lt;function Le(T,re,Be,Ue){var Ke=p(K,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Xe=Ke.flattenColumns,ut=Ke.expandableType,Et=Ke.expandedKeys,le=Ke.childrenColumnName,Re=Ke.onTriggerExpand,Ye=Ke.rowExpandable,et=Ke.onRow,yt=Ke.expandRowByClick,_t=Ke.rowClassName,Mt=ut==="nest",Rt=ut==="row"&&(!Ye||Ye(T)),lr=Rt||Mt,Ar=Et&&Et.has(re),gr=le&&T&&T[le],_r=(0,ne.useEvent)(Re),dn=et==null?void 0:et(T,Be),ar=dn==null?void 0:dn.onClick,vt=function(Ur){yt&&lr&&Re(T,Ur);for(var Rr=arguments.length,wr=new Array(Rr>1?Rr-1:0),Zr=1;Zr<Rr;Zr++)wr[Zr-1]=arguments[Zr];ar==null||ar.apply(void 0,[Ur].concat(wr))},Fn;typeof _t=="string"?Fn=_t:typeof _t=="function"&&(Fn=_t(T,Be,Ue));var gn=Se(Xe);return(0,je.Z)((0,je.Z)({},Ke),{},{columnsKey:gn,nestExpandable:Mt,expanded:Ar,hasNestChildren:gr,record:T,onTriggerExpand:_r,rowSupportExpand:Rt,expandable:lr,rowProps:(0,je.Z)((0,je.Z)({},dn),{},{className:k()(Fn,dn==null?void 0:dn.className),onClick:vt})})}function pt(T,re,Be,Ue,Ke){var Xe=T.record,ut=T.prefixCls,Et=T.columnsKey,le=T.fixedInfoList,Re=T.expandIconColumnIndex,Ye=T.nestExpandable,et=T.indentSize,yt=T.expandIcon,_t=T.expanded,Mt=T.hasNestChildren,Rt=T.onTriggerExpand,lr=Et[Be],Ar=le[Be],gr;Be===(Re||0)&&Ye&&(gr=B.createElement(B.Fragment,null,B.createElement("span",{style:{paddingLeft:"".concat(et*Ue,"px")},className:"".concat(ut,"-row-indent indent-level-").concat(Ue)}),yt({prefixCls:ut,expanded:_t,expandable:Mt,record:Xe,onExpand:Rt})));var _r;return re.onCell&&(_r=re.onCell(Xe,Ke)),{key:lr,fixedInfo:Ar,appendCellNode:gr,additionalCellProps:_r||{}}}function zt(T){var re=T.className,Be=T.style,Ue=T.record,Ke=T.index,Xe=T.renderIndex,ut=T.rowKey,Et=T.indent,le=Et===void 0?0:Et,Re=T.rowComponent,Ye=T.cellComponent,et=T.scopeCellComponent,yt=Le(Ue,ut,Ke,le),_t=yt.prefixCls,Mt=yt.flattenColumns,Rt=yt.expandedRowClassName,lr=yt.expandedRowRender,Ar=yt.rowProps,gr=yt.expanded,_r=yt.rowSupportExpand,dn=B.useState(!1),ar=(0,U.Z)(dn,2),vt=ar[0],Fn=ar[1];B.useEffect(function(){gr&&Fn(!0)},[gr]);var gn=B.createElement(Re,(0,j.Z)({},Ar,{"data-row-key":ut,className:k()(re,"".concat(_t,"-row"),"".concat(_t,"-row-level-").concat(le),Ar==null?void 0:Ar.className),style:(0,je.Z)((0,je.Z)({},Be),Ar==null?void 0:Ar.style)}),Mt.map(function(wr,Zr){var Cn=wr.render,Gn=wr.dataIndex,Zn=wr.className,Nn=pt(yt,wr,Zr,le,Ke),di=Nn.key,zn=Nn.fixedInfo,Ii=Nn.appendCellNode,vn=Nn.additionalCellProps;return B.createElement(hr,(0,j.Z)({className:Zn,ellipsis:wr.ellipsis,align:wr.align,scope:wr.rowScope,component:wr.rowScope?et:Ye,prefixCls:_t,key:di,record:Ue,index:Ke,renderIndex:Xe,dataIndex:Gn,render:Cn,shouldCellUpdate:wr.shouldCellUpdate},zn,{appendNode:Ii,additionalProps:vn}))})),yr;if(_r&&(vt||gr)){var Ur=lr(Ue,Ke,le+1,gr),Rr=Rt&&Rt(Ue,Ke,le);yr=B.createElement(Pe,{expanded:gr,className:k()("".concat(_t,"-expanded-row"),"".concat(_t,"-expanded-row-level-").concat(le+1),Rr),prefixCls:_t,component:Re,cellComponent:Ye,colSpan:Mt.length,isEmpty:!1},Ur)}return B.createElement(B.Fragment,null,gn,yr)}zt.displayName="BodyRow";var Ht=W(zt);function er(T){var re=T.columnKey,Be=T.onColumnResize,Ue=B.useRef();return B.useEffect(function(){Ue.current&&Be(re,Ue.current.offsetWidth)},[]),B.createElement($e.Z,{data:re},B.createElement("td",{ref:Ue,style:{padding:0,border:0,height:0}},B.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Pr(T){var re=T.prefixCls,Be=T.columnsKey,Ue=T.onColumnResize;return B.createElement("tr",{"aria-hidden":"true",className:"".concat(re,"-measure-row"),style:{height:0,fontSize:0}},B.createElement($e.Z.Collection,{onBatchResize:function(Xe){Xe.forEach(function(ut){var Et=ut.data,le=ut.size;Ue(Et,le.offsetWidth)})}},Be.map(function(Ke){return B.createElement(er,{key:Ke,columnKey:Ke,onColumnResize:Ue})})))}function pr(T){var re=T.data,Be=T.measureColumnWidth,Ue=p(K,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ke=Ue.prefixCls,Xe=Ue.getComponent,ut=Ue.onColumnResize,Et=Ue.flattenColumns,le=Ue.getRowKey,Re=Ue.expandedKeys,Ye=Ue.childrenColumnName,et=Ue.emptyNode,yt=ft(re,Ye,Re,le),_t=B.useRef({renderWithProps:!1}),Mt=Xe(["body","wrapper"],"tbody"),Rt=Xe(["body","row"],"tr"),lr=Xe(["body","cell"],"td"),Ar=Xe(["body","cell"],"th"),gr;re.length?gr=yt.map(function(dn,ar){var vt=dn.record,Fn=dn.indent,gn=dn.index,yr=le(vt,ar);return B.createElement(Ht,{key:yr,rowKey:yr,record:vt,index:ar,renderIndex:gn,rowComponent:Rt,cellComponent:lr,scopeCellComponent:Ar,getRowKey:le,indent:Fn})}):gr=B.createElement(Pe,{expanded:!0,className:"".concat(Ke,"-placeholder"),prefixCls:Ke,component:Rt,cellComponent:lr,colSpan:Et.length,isEmpty:!0},et);var _r=Se(Et);return B.createElement(ge.Provider,{value:_t.current},B.createElement(Mt,{className:"".concat(Ke,"-tbody")},Be&&B.createElement(Pr,{prefixCls:Ke,columnsKey:_r,onColumnResize:ut}),gr))}pr.displayName="Body";var kr=W(pr),Dr=["expandable"],vr="RC_TABLE_INTERNAL_COL_DEFINE";function dr(T){var re=T.expandable,Be=(0,wt.Z)(T,Dr),Ue;return"expandable"in T?Ue=(0,je.Z)((0,je.Z)({},Be),re):Ue=Be,Ue.showExpandColumn===!1&&(Ue.expandIconColumnIndex=-1),Ue}var $r=["columnType"];function un(T){for(var re=T.colWidths,Be=T.columns,Ue=T.columCount,Ke=[],Xe=Ue||Be.length,ut=!1,Et=Xe-1;Et>=0;Et-=1){var le=re[Et],Re=Be&&Be[Et],Ye=Re&&Re[vr];if(le||Ye||ut){var et=Ye||{},yt=et.columnType,_t=(0,wt.Z)(et,$r);Ke.unshift(B.createElement("col",(0,j.Z)({key:Et,style:{width:le}},_t))),ut=!0}}return B.createElement("colgroup",null,Ke)}var _n=un,qr=w(3300),Bn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ti(T,re){return(0,B.useMemo)(function(){for(var Be=[],Ue=0;Ue<re;Ue+=1){var Ke=T[Ue];if(Ke!==void 0)Be[Ue]=Ke;else return null}return Be},[T.join("_"),re])}var Ir=B.forwardRef(function(T,re){var Be=T.className,Ue=T.noData,Ke=T.columns,Xe=T.flattenColumns,ut=T.colWidths,Et=T.columCount,le=T.stickyOffsets,Re=T.direction,Ye=T.fixHeader,et=T.stickyTopOffset,yt=T.stickyBottomOffset,_t=T.stickyClassName,Mt=T.onScroll,Rt=T.maxContentScroll,lr=T.children,Ar=(0,wt.Z)(T,Bn),gr=p(K,["prefixCls","scrollbarSize","isSticky"]),_r=gr.prefixCls,dn=gr.scrollbarSize,ar=gr.isSticky,vt=ar&&!Ye?0:dn,Fn=B.useRef(null),gn=B.useCallback(function(Zn){(0,S.mH)(re,Zn),(0,S.mH)(Fn,Zn)},[]);B.useEffect(function(){var Zn;function Nn(di){var zn=di,Ii=zn.currentTarget,vn=zn.deltaX;vn&&(Mt({currentTarget:Ii,scrollLeft:Ii.scrollLeft+vn}),di.preventDefault())}return(Zn=Fn.current)===null||Zn===void 0||Zn.addEventListener("wheel",Nn),function(){var di;(di=Fn.current)===null||di===void 0||di.removeEventListener("wheel",Nn)}},[]);var yr=B.useMemo(function(){return Xe.every(function(Zn){return Zn.width})},[Xe]),Ur=Xe[Xe.length-1],Rr={fixed:Ur?Ur.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_r,"-cell-scrollbar")}}},wr=(0,B.useMemo)(function(){return vt?[].concat((0,qr.Z)(Ke),[Rr]):Ke},[vt,Ke]),Zr=(0,B.useMemo)(function(){return vt?[].concat((0,qr.Z)(Xe),[Rr]):Xe},[vt,Xe]),Cn=(0,B.useMemo)(function(){var Zn=le.right,Nn=le.left;return(0,je.Z)((0,je.Z)({},le),{},{left:Re==="rtl"?[].concat((0,qr.Z)(Nn.map(function(di){return di+vt})),[0]):Nn,right:Re==="rtl"?Zn:[].concat((0,qr.Z)(Zn.map(function(di){return di+vt})),[0]),isSticky:ar})},[vt,le,ar]),Gn=ti(ut,Et);return B.createElement("div",{style:(0,je.Z)({overflow:"hidden"},ar?{top:et,bottom:yt}:{}),ref:gn,className:k()(Be,(0,X.Z)({},_t,!!_t))},B.createElement("table",{style:{tableLayout:"fixed",visibility:Ue||Gn?null:"hidden"}},(!Ue||!Rt||yr)&&B.createElement(_n,{colWidths:Gn?[].concat((0,qr.Z)(Gn),[vt]):[],columCount:Et+1,columns:Zr}),lr((0,je.Z)((0,je.Z)({},Ar),{},{stickyOffsets:Cn,columns:wr,flattenColumns:Zr}))))});Ir.displayName="FixedHolder";var qn=B.memo(Ir);function Ti(T){var re=T.cells,Be=T.stickyOffsets,Ue=T.flattenColumns,Ke=T.rowComponent,Xe=T.cellComponent,ut=T.tdCellComponent,Et=T.onHeaderRow,le=T.index,Re=p(K,["prefixCls","direction"]),Ye=Re.prefixCls,et=Re.direction,yt;Et&&(yt=Et(re.map(function(Mt){return Mt.column}),le));var _t=Se(re.map(function(Mt){return Mt.column}));return B.createElement(Ke,yt,re.map(function(Mt,Rt){var lr=Mt.column,Ar=or(Mt.colStart,Mt.colEnd,Ue,Be,et,lr),gr;return lr&&lr.onHeaderCell&&(gr=Mt.column.onHeaderCell(lr)),B.createElement(hr,(0,j.Z)({},Mt,{scope:lr.title?Mt.colSpan>1?"colgroup":"col":null,ellipsis:lr.ellipsis,align:lr.align,component:lr.title?Xe:ut,prefixCls:Ye,key:_t[Rt]},Ar,{additionalProps:gr,rowType:"header"}))}))}Ti.displayName="HeaderRow";var ci=Ti;function Ui(T){var re=[];function Be(ut,Et){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;re[le]=re[le]||[];var Re=Et,Ye=ut.filter(Boolean).map(function(et){var yt={key:et.key,className:et.className||"",children:et.title,column:et,colStart:Re},_t=1,Mt=et.children;return Mt&&Mt.length>0&&(_t=Be(Mt,Re,le+1).reduce(function(Rt,lr){return Rt+lr},0),yt.hasSubColumns=!0),"colSpan"in et&&(_t=et.colSpan),"rowSpan"in et&&(yt.rowSpan=et.rowSpan),yt.colSpan=_t,yt.colEnd=yt.colStart+_t-1,re[le].push(yt),Re+=_t,_t});return Ye}Be(T,0);for(var Ue=re.length,Ke=function(Et){re[Et].forEach(function(le){!("rowSpan"in le)&&!le.hasSubColumns&&(le.rowSpan=Ue-Et)})},Xe=0;Xe<Ue;Xe+=1)Ke(Xe);return re}function Ei(T){var re=T.stickyOffsets,Be=T.columns,Ue=T.flattenColumns,Ke=T.onHeaderRow,Xe=p(K,["prefixCls","getComponent"]),ut=Xe.prefixCls,Et=Xe.getComponent,le=B.useMemo(function(){return Ui(Be)},[Be]),Re=Et(["header","wrapper"],"thead"),Ye=Et(["header","row"],"tr"),et=Et(["header","cell"],"th"),yt=Et(["header","cell"],"td");return B.createElement(Re,{className:"".concat(ut,"-thead")},le.map(function(_t,Mt){var Rt=B.createElement(ci,{key:Mt,flattenColumns:Ue,cells:_t,stickyOffsets:re,rowComponent:Ye,cellComponent:et,tdCellComponent:yt,onHeaderRow:Ke,index:Mt});return Rt}))}var $i=W(Ei),Ha=w(11592);function Ji(T){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof re=="number"?re:re.endsWith("%")?T*parseFloat(re)/100:null}function gi(T,re){return B.useMemo(function(){if(re&&re>0){var Be=0,Ue=0;T.forEach(function(Re){var Ye=Ji(re,Re.width);Ye?Be+=Ye:Ue+=1});var Ke=re-Be,Xe=Ue,ut=Ke/Ue,Et=0,le=T.map(function(Re){var Ye=(0,je.Z)({},Re),et=Ji(re,Ye.width);if(et)Ye.width=et;else{var yt=Math.floor(ut);Ye.width=Xe===1?Ke:yt,Ke-=yt,Xe-=1}return Et+=Ye.width,Ye});return[le,Et]}return[T,re]},[T,re])}var ki=["children"],Pi=["fixed"];function nt(T){return(0,Ha.Z)(T).filter(function(re){return B.isValidElement(re)}).map(function(re){var Be=re.key,Ue=re.props,Ke=Ue.children,Xe=(0,wt.Z)(Ue,ki),ut=(0,je.Z)({key:Be},Xe);return Ke&&(ut.children=nt(Ke)),ut})}function Ie(T){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return T.filter(function(Be){return Be&&(0,xe.Z)(Be)==="object"}).reduce(function(Be,Ue,Ke){var Xe=Ue.fixed,ut=Xe===!0?"left":Xe,Et="".concat(re,"-").concat(Ke),le=Ue.children;return le&&le.length>0?[].concat((0,qr.Z)(Be),(0,qr.Z)(Ie(le,Et).map(function(Re){return(0,je.Z)({fixed:ut},Re)}))):[].concat((0,qr.Z)(Be),[(0,je.Z)((0,je.Z)({key:Et},Ue),{},{fixed:ut})])},[])}function ke(T){for(var re=!0,Be=0;Be<T.length;Be+=1){var Ue=T[Be];if(re&&Ue.fixed!=="left")re=!1;else if(!re&&Ue.fixed==="left"){warning(!1,"Index ".concat(Be-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ke=!0,Xe=T.length-1;Xe>=0;Xe-=1){var ut=T[Xe];if(Ke&&ut.fixed!=="right")Ke=!1;else if(!Ke&&ut.fixed==="right"){warning(!1,"Index ".concat(Xe+1," of `columns` missing `fixed='right'` prop."));break}}}function Ee(T){return T.map(function(re){var Be=re.fixed,Ue=(0,wt.Z)(re,Pi),Ke=Be;return Be==="left"?Ke="right":Be==="right"&&(Ke="left"),(0,je.Z)({fixed:Ke},Ue)})}function $t(T,re){var Be=T.prefixCls,Ue=T.columns,Ke=T.children,Xe=T.expandable,ut=T.expandedKeys,Et=T.columnTitle,le=T.getRowKey,Re=T.onTriggerExpand,Ye=T.expandIcon,et=T.rowExpandable,yt=T.expandIconColumnIndex,_t=T.direction,Mt=T.expandRowByClick,Rt=T.columnWidth,lr=T.fixed,Ar=T.scrollWidth,gr=B.useMemo(function(){return Ue||nt(Ke)},[Ue,Ke]),_r=B.useMemo(function(){if(Xe){var Ur,Rr=gr.slice();if(!Rr.includes(pe)){var wr=yt||0;wr>=0&&Rr.splice(wr,0,pe)}var Zr=Rr.indexOf(pe);Rr=Rr.filter(function(Nn,di){return Nn!==pe||di===Zr});var Cn=gr[Zr],Gn;(lr==="left"||lr)&&!yt?Gn="left":(lr==="right"||lr)&&yt===gr.length?Gn="right":Gn=Cn?Cn.fixed:null;var Zn=(Ur={},(0,X.Z)(Ur,vr,{className:"".concat(Be,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,X.Z)(Ur,"title",Et),(0,X.Z)(Ur,"fixed",Gn),(0,X.Z)(Ur,"className","".concat(Be,"-row-expand-icon-cell")),(0,X.Z)(Ur,"width",Rt),(0,X.Z)(Ur,"render",function(di,zn,Ii){var vn=le(zn,Ii),_a=ut.has(vn),Hi=et?et(zn):!0,Ri=Ye({prefixCls:Be,expanded:_a,expandable:Hi,record:zn,onExpand:Re});return Mt?B.createElement("span",{onClick:function(Ki){return Ki.stopPropagation()}},Ri):Ri}),Ur);return Rr.map(function(Nn){return Nn===pe?Zn:Nn})}return gr.filter(function(Nn){return Nn!==pe})},[Xe,gr,le,ut,Ye,_t]),dn=B.useMemo(function(){var Ur=_r;return re&&(Ur=re(Ur)),Ur.length||(Ur=[{render:function(){return null}}]),Ur},[re,_r,_t]),ar=B.useMemo(function(){return _t==="rtl"?Ee(Ie(dn)):Ie(dn)},[dn,_t,Ar]),vt=gi(ar,Ar),Fn=(0,U.Z)(vt,2),gn=Fn[0],yr=Fn[1];return[dn,gn,yr]}var Nt=$t;function Er(T){var re,Be=T.prefixCls,Ue=T.record,Ke=T.onExpand,Xe=T.expanded,ut=T.expandable,Et="".concat(Be,"-row-expand-icon");if(!ut)return B.createElement("span",{className:k()(Et,"".concat(Be,"-row-spaced"))});var le=function(Ye){Ke(Ue,Ye),Ye.stopPropagation()};return B.createElement("span",{className:k()(Et,(re={},(0,X.Z)(re,"".concat(Be,"-row-expanded"),Xe),(0,X.Z)(re,"".concat(Be,"-row-collapsed"),!Xe),re)),onClick:le})}function sr(T,re,Be){var Ue=[];function Ke(Xe){(Xe||[]).forEach(function(ut,Et){Ue.push(re(ut,Et)),Ke(ut[Be])})}return Ke(T),Ue}function Kr(T,re,Be){var Ue=dr(T),Ke=Ue.expandIcon,Xe=Ue.expandedRowKeys,ut=Ue.defaultExpandedRowKeys,Et=Ue.defaultExpandAllRows,le=Ue.expandedRowRender,Re=Ue.onExpand,Ye=Ue.onExpandedRowsChange,et=Ue.childrenColumnName,yt=Ke||Er,_t=et||"children",Mt=B.useMemo(function(){return le?"row":T.expandable&&T.internalHooks===ue&&T.expandable.__PARENT_RENDER_ICON__||re.some(function(ar){return ar&&(0,xe.Z)(ar)==="object"&&ar[_t]})?"nest":!1},[!!le,re]),Rt=B.useState(function(){return ut||(Et?sr(re,Be,_t):[])}),lr=(0,U.Z)(Rt,2),Ar=lr[0],gr=lr[1],_r=B.useMemo(function(){return new Set(Xe||Ar||[])},[Xe,Ar]),dn=B.useCallback(function(ar){var vt=Be(ar,re.indexOf(ar)),Fn,gn=_r.has(vt);gn?(_r.delete(vt),Fn=(0,qr.Z)(_r)):Fn=[].concat((0,qr.Z)(_r),[vt]),gr(Fn),Re&&Re(!gn,ar),Ye&&Ye(Fn)},[Be,_r,re,Re,Ye]);return[Ue,Mt,_r,yt,_t,dn]}function Wr(T,re,Be,Ue){var Ke=T.map(function(Xe,ut){return or(ut,ut,T,re,Be,Ue==null?void 0:Ue[ut])});return(0,rt.Z)(function(){return Ke},[Ke],function(Xe,ut){return!(0,Z.Z)(Xe,ut)})}function tn(T){var re=(0,B.useRef)(T),Be=(0,B.useState)({}),Ue=(0,U.Z)(Be,2),Ke=Ue[1],Xe=(0,B.useRef)(null),ut=(0,B.useRef)([]);function Et(le){ut.current.push(le);var Re=Promise.resolve();Xe.current=Re,Re.then(function(){if(Xe.current===Re){var Ye=ut.current,et=re.current;ut.current=[],Ye.forEach(function(yt){re.current=yt(re.current)}),Xe.current=null,et!==re.current&&Ke({})}})}return(0,B.useEffect)(function(){return function(){Xe.current=null}},[]),[re.current,Et]}function Vr(T){var re=(0,B.useRef)(T||null),Be=(0,B.useRef)();function Ue(){window.clearTimeout(Be.current)}function Ke(ut){re.current=ut,Ue(),Be.current=window.setTimeout(function(){re.current=null,Be.current=void 0},100)}function Xe(){return re.current}return(0,B.useEffect)(function(){return Ue},[]),[Ke,Xe]}function jr(){var T=B.useState(-1),re=(0,U.Z)(T,2),Be=re[0],Ue=re[1],Ke=B.useState(-1),Xe=(0,U.Z)(Ke,2),ut=Xe[0],Et=Xe[1],le=B.useCallback(function(Re,Ye){Ue(Re),Et(Ye)},[]);return[Be,ut,le]}var Yr=w(47273),mn=(0,Yr.Z)()?window:null;function rn(T,re){var Be=(0,xe.Z)(T)==="object"?T:{},Ue=Be.offsetHeader,Ke=Ue===void 0?0:Ue,Xe=Be.offsetSummary,ut=Xe===void 0?0:Xe,Et=Be.offsetScroll,le=Et===void 0?0:Et,Re=Be.getContainer,Ye=Re===void 0?function(){return mn}:Re,et=Ye()||mn;return B.useMemo(function(){var yt=!!T;return{isSticky:yt,stickyClassName:yt?"".concat(re,"-sticky-holder"):"",offsetHeader:Ke,offsetSummary:ut,offsetScroll:le,container:et}},[le,Ke,ut,re,et])}function Dn(T,re,Be){var Ue=(0,B.useMemo)(function(){for(var Ke=[],Xe=[],ut=0,Et=0,le=0;le<re;le+=1)if(Be==="rtl"){Xe[le]=Et,Et+=T[le]||0;var Re=re-le-1;Ke[Re]=ut,ut+=T[Re]||0}else{Ke[le]=ut,ut+=T[le]||0;var Ye=re-le-1;Xe[Ye]=Et,Et+=T[Ye]||0}return{left:Ke,right:Xe}},[T,re,Be]);return Ue}var Qn=Dn;function ui(T){var re=T.className,Be=T.children;return B.createElement("div",{className:re},Be)}var Tn=ui,sn=w(8224),Qt=w(55468),Zt=function(re,Be){var Ue,Ke,Xe=re.scrollBodyRef,ut=re.onScroll,Et=re.offsetScroll,le=re.container,Re=p(K,"prefixCls"),Ye=((Ue=Xe.current)===null||Ue===void 0?void 0:Ue.scrollWidth)||0,et=((Ke=Xe.current)===null||Ke===void 0?void 0:Ke.clientWidth)||0,yt=Ye&&et*(et/Ye),_t=B.useRef(),Mt=tn({scrollLeft:0,isHiddenScrollBar:!1}),Rt=(0,U.Z)(Mt,2),lr=Rt[0],Ar=Rt[1],gr=B.useRef({delta:0,x:0}),_r=B.useState(!1),dn=(0,U.Z)(_r,2),ar=dn[0],vt=dn[1],Fn=function(){vt(!1)},gn=function(Zr){Zr.persist(),gr.current.delta=Zr.pageX-lr.scrollLeft,gr.current.x=0,vt(!0),Zr.preventDefault()},yr=function(Zr){var Cn,Gn=Zr||((Cn=window)===null||Cn===void 0?void 0:Cn.event),Zn=Gn.buttons;if(!ar||Zn===0){ar&&vt(!1);return}var Nn=gr.current.x+Zr.pageX-gr.current.x-gr.current.delta;Nn<=0&&(Nn=0),Nn+yt>=et&&(Nn=et-yt),ut({scrollLeft:Nn/et*(Ye+2)}),gr.current.x=Zr.pageX},Ur=function(){if(Xe.current){var Zr=(0,Qt.os)(Xe.current).top,Cn=Zr+Xe.current.offsetHeight,Gn=le===window?document.documentElement.scrollTop+window.innerHeight:(0,Qt.os)(le).top+le.clientHeight;Cn-(0,qe.Z)()<=Gn||Zr>=Gn-Et?Ar(function(Zn){return(0,je.Z)((0,je.Z)({},Zn),{},{isHiddenScrollBar:!0})}):Ar(function(Zn){return(0,je.Z)((0,je.Z)({},Zn),{},{isHiddenScrollBar:!1})})}},Rr=function(Zr){Ar(function(Cn){return(0,je.Z)((0,je.Z)({},Cn),{},{scrollLeft:Zr/Ye*et||0})})};return B.useImperativeHandle(Be,function(){return{setScrollLeft:Rr}}),B.useEffect(function(){var wr=(0,sn.Z)(document.body,"mouseup",Fn,!1),Zr=(0,sn.Z)(document.body,"mousemove",yr,!1);return Ur(),function(){wr.remove(),Zr.remove()}},[yt,ar]),B.useEffect(function(){var wr=(0,sn.Z)(le,"scroll",Ur,!1),Zr=(0,sn.Z)(window,"resize",Ur,!1);return function(){wr.remove(),Zr.remove()}},[le]),B.useEffect(function(){lr.isHiddenScrollBar||Ar(function(wr){var Zr=Xe.current;return Zr?(0,je.Z)((0,je.Z)({},wr),{},{scrollLeft:Zr.scrollLeft/Zr.scrollWidth*Zr.clientWidth}):wr})},[lr.isHiddenScrollBar]),Ye<=et||!yt||lr.isHiddenScrollBar?null:B.createElement("div",{style:{height:(0,qe.Z)(),width:et,bottom:Et},className:"".concat(Re,"-sticky-scroll")},B.createElement("div",{onMouseDown:gn,ref:_t,className:k()("".concat(Re,"-sticky-scroll-bar"),(0,X.Z)({},"".concat(Re,"-sticky-scroll-bar-active"),ar)),style:{width:"".concat(yt,"px"),transform:"translate3d(".concat(lr.scrollLeft,"px, 0, 0)")}}))},qt=B.forwardRef(Zt);function mr(T){return null}var Wt=mr;function Cr(T){return null}var Mr=Cr,Gr="rc-table",Mn=[],Pn={};function oi(){return"No Data"}function ei(T){var re,Be=(0,je.Z)({rowKey:"key",prefixCls:Gr,emptyText:oi},T),Ue=Be.prefixCls,Ke=Be.className,Xe=Be.rowClassName,ut=Be.style,Et=Be.data,le=Be.rowKey,Re=Be.scroll,Ye=Be.tableLayout,et=Be.direction,yt=Be.title,_t=Be.footer,Mt=Be.summary,Rt=Be.caption,lr=Be.id,Ar=Be.showHeader,gr=Be.components,_r=Be.emptyText,dn=Be.onRow,ar=Be.onHeaderRow,vt=Be.internalHooks,Fn=Be.transformColumns,gn=Be.internalRefs,yr=Be.tailor,Ur=Be.sticky,Rr=Et||Mn,wr=!!Rr.length,Zr=vt===ue,Cn=B.useCallback(function(va,Ba){return(0,Oe.Z)(gr,va)||Ba},[gr]),Gn=B.useMemo(function(){return typeof le=="function"?le:function(va){var Ba=va&&va[le];return Ba}},[le]),Zn=Cn(["body"]),Nn=jr(),di=(0,U.Z)(Nn,3),zn=di[0],Ii=di[1],vn=di[2],_a=Kr(Be,Rr,Gn),Hi=(0,U.Z)(_a,6),Ri=Hi[0],ia=Hi[1],Ki=Hi[2],Qa=Hi[3],Gi=Hi[4],As=Hi[5],Sn=Re==null?void 0:Re.x,fi=B.useState(0),mi=(0,U.Z)(fi,2),$n=mi[0],ai=mi[1],kn=Nt((0,je.Z)((0,je.Z)((0,je.Z)({},Be),Ri),{},{expandable:!!Ri.expandedRowRender,columnTitle:Ri.columnTitle,expandedKeys:Ki,getRowKey:Gn,onTriggerExpand:As,expandIcon:Qa,expandIconColumnIndex:Ri.expandIconColumnIndex,direction:et,scrollWidth:Zr&&yr&&typeof Sn=="number"?Sn:null}),Zr?Fn:null),Qi=(0,U.Z)(kn,3),Xi=Qi[0],qi=Qi[1],Mo=Qi[2],Mi=Mo!=null?Mo:Sn,ns=B.useMemo(function(){return{columns:Xi,flattenColumns:qi}},[Xi,qi]),ro=B.useRef(),Qo=B.useRef(),bn=B.useRef(),no=B.useRef(),Cs=B.useRef(),ga=B.useState(!1),en=(0,U.Z)(ga,2),fa=en[0],so=en[1],Va=B.useState(!1),Si=(0,U.Z)(Va,2),bo=Si[0],Ko=Si[1],Bs=tn(new Map),gs=(0,U.Z)(Bs,2),is=gs[0],us=gs[1],bl=Se(qi),as=bl.map(function(va){return is.get(va)}),$s=B.useMemo(function(){return as},[as.join("_")]),ds=Qn($s,qi.length,et),Lo=Re&&ct(Re.y),wo=Re&&ct(Mi)||!!Ri.fixed,qs=wo&&qi.some(function(va){var Ba=va.fixed;return Ba}),Ol=B.useRef(),zl=rn(Ur,Ue),wl=zl.isSticky,BA=zl.offsetHeader,Xc=zl.offsetSummary,xa=zl.offsetScroll,ea=zl.stickyClassName,vs=zl.container,go=B.useMemo(function(){return Mt==null?void 0:Mt(Rr)},[Mt,Rr]),fs=(Lo||wl)&&B.isValidElement(go)&&go.type===x&&go.props.fixed,Ss,Es,_s;Lo&&(Es={overflowY:"scroll",maxHeight:Re.y}),wo&&(Ss={overflowX:"auto"},Lo||(Es={overflowY:"hidden"}),_s={width:Mi===!0?"auto":Mi,minWidth:"100%"});var Dc=B.useCallback(function(va,Ba){(0,we.Z)(ro.current)&&us(function(Zs){if(Zs.get(va)!==Ba){var Wl=new Map(Zs);return Wl.set(va,Ba),Wl}return Zs})},[]),ll=Vr(null),gc=(0,U.Z)(ll,2),Ca=gc[0],So=gc[1];function xl(va,Ba){Ba&&(typeof Ba=="function"?Ba(va):Ba.scrollLeft!==va&&(Ba.scrollLeft=va,Ba.scrollLeft!==va&&setTimeout(function(){Ba.scrollLeft=va},0)))}var rc=(0,Ne.Z)(function(va){var Ba=va.currentTarget,Zs=va.scrollLeft,Wl=et==="rtl",Nl=typeof Zs=="number"?Zs:Ba.scrollLeft,VA=Ba||Pn;if(!So()||So()===VA){var os;Ca(VA),xl(Nl,Qo.current),xl(Nl,bn.current),xl(Nl,Cs.current),xl(Nl,(os=Ol.current)===null||os===void 0?void 0:os.setScrollLeft)}var ys=Ba||Qo.current;if(ys){var ac=ys.scrollWidth,FA=ys.clientWidth;if(ac===FA){so(!1),Ko(!1);return}Wl?(so(-Nl<ac-FA),Ko(-Nl>0)):(so(Nl>0),Ko(Nl<ac-FA))}}),Os=function(){wo&&bn.current?rc({currentTarget:bn.current}):(so(!1),Ko(!1))},HA=function(Ba){var Zs=Ba.width;Zs!==$n&&(Os(),ai(ro.current?ro.current.offsetWidth:Zs))},Cl=B.useRef(!1);B.useEffect(function(){Cl.current&&Os()},[wo,Et,Xi.length]),B.useEffect(function(){Cl.current=!0},[]);var jA=B.useState(0),zA=(0,U.Z)(jA,2),Jc=zA[0],$l=zA[1],vc=B.useState(!0),nc=(0,U.Z)(vc,2),fn=nc[0],Fs=nc[1];B.useEffect(function(){(!yr||!Zr)&&(bn.current instanceof Element?$l((0,qe.o)(bn.current).width):$l((0,qe.o)(no.current).width)),Fs((0,ve.G)("position","sticky"))},[]),B.useEffect(function(){Zr&&gn&&(gn.body.current=bn.current)});var SA=B.useCallback(function(va){return B.createElement(B.Fragment,null,B.createElement($i,va),fs==="top"&&B.createElement(Ce,va,go))},[fs,go]),AA=B.useCallback(function(va){return B.createElement(Ce,va,go)},[go]),sa=Cn(["table"],"table"),EA=B.useMemo(function(){return Ye||(qs?Mi==="max-content"?"auto":"fixed":Lo||wl||qi.some(function(va){var Ba=va.ellipsis;return Ba})?"fixed":"auto")},[Lo,qs,qi,Ye,wl]),$A,Zl={colWidths:$s,columCount:qi.length,stickyOffsets:ds,onHeaderRow:ar,fixHeader:Lo,scroll:Re},Xo=B.useMemo(function(){return wr?null:typeof _r=="function"?_r():_r},[wr,_r]),ZA=B.createElement(kr,{data:Rr,measureColumnWidth:Lo||wo||wl}),Pc=B.createElement(_n,{colWidths:qi.map(function(va){var Ba=va.width;return Ba}),columns:qi}),yc=Rt!=null?B.createElement("caption",{className:"".concat(Ue,"-caption")},Rt):void 0,_A=(0,St.Z)(Be,{data:!0}),Vl=(0,St.Z)(Be,{aria:!0});if(Lo||wl){var ic;typeof Zn=="function"?(ic=Zn(Rr,{scrollbarSize:Jc,ref:bn,onScroll:rc}),Zl.colWidths=qi.map(function(va,Ba){var Zs=va.width,Wl=Ba===qi.length-1?Zs-Jc:Zs;return typeof Wl=="number"&&!Number.isNaN(Wl)?Wl:0})):ic=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ss),Es),onScroll:rc,ref:bn,className:k()("".concat(Ue,"-body"))},B.createElement(sa,(0,j.Z)({style:(0,je.Z)((0,je.Z)({},_s),{},{tableLayout:EA})},Vl),yc,Pc,ZA,!fs&&go&&B.createElement(Ce,{stickyOffsets:ds,flattenColumns:qi,columns:Xi},go)));var lo=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Rr.length,maxContentScroll:wo&&Mi==="max-content"},Zl),ns),{},{direction:et,stickyClassName:ea,onScroll:rc});$A=B.createElement(B.Fragment,null,Ar!==!1&&B.createElement(qn,(0,j.Z)({},lo,{stickyTopOffset:BA,className:"".concat(Ue,"-header"),ref:Qo}),SA),ic,fs&&fs!=="top"&&B.createElement(qn,(0,j.Z)({},lo,{stickyBottomOffset:Xc,className:"".concat(Ue,"-summary"),ref:Cs}),AA),wl&&B.createElement(qt,{ref:Ol,offsetScroll:xa,scrollBodyRef:bn,onScroll:rc,container:vs}))}else $A=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ss),Es),className:k()("".concat(Ue,"-content")),onScroll:rc,ref:bn},B.createElement(sa,(0,j.Z)({style:(0,je.Z)((0,je.Z)({},_s),{},{tableLayout:EA})},Vl),yc,Pc,Ar!==!1&&B.createElement($i,(0,j.Z)({},Zl,ns)),ZA,go&&B.createElement(Ce,{stickyOffsets:ds,flattenColumns:qi,columns:Xi},go)));var Ns=B.createElement("div",(0,j.Z)({className:k()(Ue,Ke,(re={},(0,X.Z)(re,"".concat(Ue,"-rtl"),et==="rtl"),(0,X.Z)(re,"".concat(Ue,"-ping-left"),fa),(0,X.Z)(re,"".concat(Ue,"-ping-right"),bo),(0,X.Z)(re,"".concat(Ue,"-layout-fixed"),Ye==="fixed"),(0,X.Z)(re,"".concat(Ue,"-fixed-header"),Lo),(0,X.Z)(re,"".concat(Ue,"-fixed-column"),qs),(0,X.Z)(re,"".concat(Ue,"-scroll-horizontal"),wo),(0,X.Z)(re,"".concat(Ue,"-has-fix-left"),qi[0]&&qi[0].fixed),(0,X.Z)(re,"".concat(Ue,"-has-fix-right"),qi[qi.length-1]&&qi[qi.length-1].fixed==="right"),re)),style:ut,id:lr,ref:ro},_A),yt&&B.createElement(Tn,{className:"".concat(Ue,"-title")},yt(Rr)),B.createElement("div",{ref:no,className:"".concat(Ue,"-container")},$A),_t&&B.createElement(Tn,{className:"".concat(Ue,"-footer")},_t(Rr)));wo&&(Ns=B.createElement($e.Z,{onResize:HA},Ns));var ts=Wr(qi,ds,et,Xi),bc=B.useMemo(function(){return{scrollX:Mi,prefixCls:Ue,getComponent:Cn,scrollbarSize:Jc,direction:et,fixedInfoList:ts,isSticky:wl,supportSticky:fn,componentWidth:$n,fixHeader:Lo,fixColumn:qs,horizonScroll:wo,tableLayout:EA,rowClassName:Xe,expandedRowClassName:Ri.expandedRowClassName,expandIcon:Qa,expandableType:ia,expandRowByClick:Ri.expandRowByClick,expandedRowRender:Ri.expandedRowRender,onTriggerExpand:As,expandIconColumnIndex:Ri.expandIconColumnIndex,indentSize:Ri.indentSize,allColumnsFixedLeft:qi.every(function(va){return va.fixed==="left"}),emptyNode:Xo,columns:Xi,flattenColumns:qi,onColumnResize:Dc,hoverStartRow:zn,hoverEndRow:Ii,onHover:vn,rowExpandable:Ri.rowExpandable,onRow:dn,getRowKey:Gn,expandedKeys:Ki,childrenColumnName:Gi}},[Mi,Ue,Cn,Jc,et,ts,wl,fn,$n,Lo,qs,wo,EA,Xe,Ri.expandedRowClassName,Qa,ia,Ri.expandRowByClick,Ri.expandedRowRender,As,Ri.expandIconColumnIndex,Ri.indentSize,Xo,Xi,qi,Dc,zn,Ii,vn,Ri.rowExpandable,dn,Gn,Ki,Gi]);return B.createElement(K.Provider,{value:bc},Ns)}function bi(T){return ce(ei,T)}var Jn=bi();Jn.EXPAND_COLUMN=pe,Jn.INTERNAL_HOOKS=ue,Jn.Column=Wt,Jn.ColumnGroup=Mr,Jn.Summary=H;var Hn=Jn,on=w(6790),pi=E(null),Ln=E(null);function ri(T,re,Be){var Ue=re||1;return Be[T+Ue]-(Be[T]||0)}function vi(T){var re=T.rowInfo,Be=T.column,Ue=T.colIndex,Ke=T.indent,Xe=T.index,ut=T.renderIndex,Et=T.record,le=T.style,Re=T.className,Ye=T.inverse,et=T.getHeight,yt=Be.render,_t=Be.dataIndex,Mt=Be.className,Rt=Be.width,lr=p(Ln,["columnsOffset"]),Ar=lr.columnsOffset,gr=pt(re,Be,Ue,Ke,Xe),_r=gr.key,dn=gr.fixedInfo,ar=gr.appendCellNode,vt=gr.additionalCellProps,Fn=vt.style,gn=vt.colSpan,yr=gn===void 0?1:gn,Ur=vt.rowSpan,Rr=Ur===void 0?1:Ur,wr=Ue-1,Zr=ri(wr,yr,Ar),Cn=yr>1?Rt-Zr:0,Gn=(0,je.Z)((0,je.Z)((0,je.Z)({},Fn),le),{},{flex:"0 0 ".concat(Zr,"px"),width:"".concat(Zr,"px"),marginRight:Cn,pointerEvents:"auto"}),Zn=B.useMemo(function(){return Ye?Rr<=1:yr===0||Rr===0||Rr>1},[Rr,yr,Ye]);Zn?Gn.visibility="hidden":Ye&&(Gn.height=et==null?void 0:et(Rr));var Nn=Zn?function(){return null}:yt,di={};return(Rr===0||yr===0)&&(di.rowSpan=1,di.colSpan=1),B.createElement(hr,(0,j.Z)({className:k()(Mt,Re),ellipsis:Be.ellipsis,align:Be.align,scope:Be.rowScope,component:"div",prefixCls:re.prefixCls,key:_r,record:Et,index:Xe,renderIndex:ut,dataIndex:_t,render:Nn,shouldCellUpdate:Be.shouldCellUpdate},dn,{appendNode:ar,additionalProps:(0,je.Z)((0,je.Z)({},vt),{},{style:Gn},di)}))}var _i=vi,Xn=["data","index","className","rowKey","style","extra","getHeight"],Bi=B.forwardRef(function(T,re){var Be=T.data,Ue=T.index,Ke=T.className,Xe=T.rowKey,ut=T.style,Et=T.extra,le=T.getHeight,Re=(0,wt.Z)(T,Xn),Ye=Be.record,et=Be.indent,yt=Be.index,_t=p(K,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Mt=_t.scrollX,Rt=_t.flattenColumns,lr=_t.prefixCls,Ar=_t.fixColumn,gr=_t.componentWidth,_r=Le(Ye,Xe,Ue,et),dn=_r.rowSupportExpand,ar=_r.expanded,vt=_r.rowProps,Fn=_r.expandedRowRender,gn=_r.expandedRowClassName,yr;if(dn&&ar){var Ur=Fn(Ye,Ue,et+1,ar),Rr=gn==null?void 0:gn(Ye,Ue,et),wr={};Ar&&(wr={style:(0,X.Z)({},"--virtual-width","".concat(gr,"px"))});var Zr="".concat(lr,"-expanded-row-cell");yr=B.createElement("div",{className:k()("".concat(lr,"-expanded-row"),"".concat(lr,"-expanded-row-level-").concat(et+1),Rr)},B.createElement(hr,{component:"div",prefixCls:lr,className:k()(Zr,(0,X.Z)({},"".concat(Zr,"-fixed"),Ar)),additionalProps:wr},Ur))}var Cn=(0,je.Z)((0,je.Z)({},ut),{},{width:Mt});Et&&(Cn.position="absolute",Cn.pointerEvents="none");var Gn=B.createElement("div",(0,j.Z)({},vt,Re,{ref:dn?null:re,className:k()(Ke,"".concat(lr,"-row"),vt==null?void 0:vt.className,(0,X.Z)({},"".concat(lr,"-row-extra"),Et)),style:(0,je.Z)((0,je.Z)({},Cn),vt==null?void 0:vt.style)}),Rt.map(function(Zn,Nn){return B.createElement(_i,{key:Nn,rowInfo:_r,column:Zn,colIndex:Nn,indent:et,index:Ue,renderIndex:yt,record:Ye,inverse:Et,getHeight:le})}));return dn?B.createElement("div",{ref:re},Gn,yr):Gn}),ra=W(Bi),ii=ra,cn=B.forwardRef(function(T,re){var Be=T.data,Ue=T.onScroll,Ke=p(K,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Xe=Ke.flattenColumns,ut=Ke.onColumnResize,Et=Ke.getRowKey,le=Ke.expandedKeys,Re=Ke.prefixCls,Ye=Ke.childrenColumnName,et=Ke.emptyNode,yt=Ke.scrollX,_t=p(pi),Mt=_t.scrollY,Rt=_t.listItemHeight,lr=B.useRef(),Ar=ft(Be,Ye,le,Et),gr=B.useMemo(function(){var yr=0;return Xe.map(function(Ur){var Rr=Ur.width,wr=Ur.key;return yr+=Rr,[wr,Rr,yr]})},[Xe]),_r=B.useMemo(function(){return gr.map(function(yr){return yr[2]})},[gr]);B.useEffect(function(){gr.forEach(function(yr){var Ur=(0,U.Z)(yr,2),Rr=Ur[0],wr=Ur[1];ut(Rr,wr)})},[gr]),B.useImperativeHandle(re,function(){var yr={};return Object.defineProperty(yr,"scrollLeft",{get:function(){var Rr;return((Rr=lr.current)===null||Rr===void 0?void 0:Rr.getScrollInfo().x)||0},set:function(Rr){var wr;(wr=lr.current)===null||wr===void 0||wr.scrollTo({left:Rr})}}),yr});var dn=function(Ur,Rr){var wr,Zr=(wr=Ar[Rr])===null||wr===void 0?void 0:wr.record,Cn=Ur.onCell;if(Cn){var Gn,Zn=Cn(Zr,Rr);return(Gn=Zn==null?void 0:Zn.rowSpan)!==null&&Gn!==void 0?Gn:1}return 1},ar=function(Ur){var Rr=Ur.start,wr=Ur.end,Zr=Ur.getSize,Cn=Ur.offsetY;if(wr<0)return null;for(var Gn=Xe.filter(function(Sn){return dn(Sn,Rr)===0}),Zn=Rr,Nn=function(fi){if(Gn=Gn.filter(function(mi){return dn(mi,fi)===0}),!Gn.length)return Zn=fi,"break"},di=Rr;di>=0;di-=1){var zn=Nn(di);if(zn==="break")break}for(var Ii=Xe.filter(function(Sn){return dn(Sn,wr)!==1}),vn=wr,_a=function(fi){if(Ii=Ii.filter(function(mi){return dn(mi,fi)!==1}),!Ii.length)return vn=Math.max(fi-1,wr),"break"},Hi=wr;Hi<Ar.length;Hi+=1){var Ri=_a(Hi);if(Ri==="break")break}for(var ia=[],Ki=function(fi){var mi=Ar[fi];if(!mi)return"continue";Xe.some(function($n){return dn($n,fi)>1})&&ia.push(fi)},Qa=Zn;Qa<=vn;Qa+=1)var Gi=Ki(Qa);var As=ia.map(function(Sn){var fi=Ar[Sn],mi=Et(fi.record,Sn),$n=function(Qi){var Xi=Sn+Qi-1,qi=Et(Ar[Xi].record,Xi),Mo=Zr(mi,qi);return Mo.bottom-Mo.top},ai=Zr(mi);return B.createElement(ii,{key:Sn,data:fi,rowKey:mi,index:Sn,style:{top:-Cn+ai.top},extra:!0,getHeight:$n})});return As},vt=B.useMemo(function(){return{columnsOffset:_r}},[_r]),Fn="".concat(Re,"-tbody"),gn;return Ar.length?gn=B.createElement(on.Z,{fullHeight:!1,ref:lr,className:k()(Fn,"".concat(Fn,"-virtual")),height:Mt,itemHeight:Rt||24,data:Ar,itemKey:function(Ur){return Et(Ur.record)},scrollWidth:yt,onVirtualScroll:function(Ur){var Rr=Ur.x;Ue({scrollLeft:Rr})},extraRender:ar},function(yr,Ur,Rr){var wr=Et(yr.record,Ur);return B.createElement(ii,(0,j.Z)({data:yr,rowKey:wr,index:Ur},Rr))}):gn=B.createElement("div",{className:k()("".concat(Re,"-placeholder"))},B.createElement(hr,{component:"div",prefixCls:Re},et)),B.createElement(Ln.Provider,{value:vt},gn)}),nn=W(cn),Un=nn,wn=function(re,Be){var Ue=Be.ref,Ke=Be.onScroll;return B.createElement(Un,{ref:Ue,data:re,onScroll:Ke})},jn=100;function li(T){var re=T.columns,Be=T.scroll,Ue=T.prefixCls,Ke=Ue===void 0?Gr:Ue,Xe=T.className,ut=T.listItemHeight,Et=Be||{},le=Et.x,Re=Et.y;typeof le!="number"&&(le=((re||[]).length+1)*jn),typeof Re!="number"&&(Re=500);var Ye=B.useMemo(function(){return{scrollY:Re,listItemHeight:ut}},[Re,ut]);return B.createElement(pi.Provider,{value:Ye},B.createElement(Hn,(0,j.Z)({},T,{className:k()(Xe,"".concat(Ke,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Be),{},{x:le}),components:{body:wn},columns:re,internalHooks:ue,tailor:!0})))}function wi(T){return ce(li,T)}var Aa=wi(),Yi=null;function ao(T){return null}var Yn=ao;function On(T){return null}var Fi=On,xi=w(2738),ha=w(68031),Oo=w(36355),na=w(93891),Zi=w(19716),ja=w(8628),Ma=w(31724),eo=w(58421),vo=w(71418),ba=w(88088);function Ai(T){return function(Be){let{prefixCls:Ue,onExpand:Ke,record:Xe,expanded:ut,expandable:Et}=Be;const le=`${Ue}-row-expand-icon`;return B.createElement("button",{type:"button",onClick:Re=>{Ke(Xe,Re),Re.stopPropagation()},className:k()(le,{[`${le}-spaced`]:!Et,[`${le}-expanded`]:Et&&ut,[`${le}-collapsed`]:Et&&!ut}),"aria-label":ut?T.collapse:T.expand,"aria-expanded":ut})}}var ua=Ai;function Do(T,re){return"key"in T&&T.key!==void 0&&T.key!==null?T.key:T.dataIndex?Array.isArray(T.dataIndex)?T.dataIndex.join("."):T.dataIndex:re}function uo(T,re){return re?`${re}-${T}`:`${T}`}function Xa(T,re){return typeof T=="function"?T(re):T}function Di(T,re){const Be=Xa(T,re);return Object.prototype.toString.call(Be)==="[object Object]"?"":Be}var Po={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"},fo=Po,il=w(7657),$o=function(re,Be){return B.createElement(il.Z,(0,j.Z)({},re,{ref:Be,icon:fo}))},Hs=B.forwardRef($o),Zo=Hs,vl=w(56762);function za(T){const re=B.useRef(T),Be=(0,vl.Z)();return[()=>re.current,Ue=>{re.current=Ue,Be()}]}var Ra=w(3113),Ea=w(24905),js=w(38854),yi=w(64165),Vi=w(20834),Oi=w(40875),Wi=w(5112),da=w(17574),La=w(47472),Vo=w(92832);function _o(T){let{value:re,onChange:Be,filterSearch:Ue,tablePrefixCls:Ke,locale:Xe}=T;return Ue?B.createElement("div",{className:`${Ke}-filter-dropdown-search`},B.createElement(Vo.default,{prefix:B.createElement(La.Z,null),placeholder:Xe.filterSearchPlaceholder,onChange:Be,value:re,htmlSize:1,className:`${Ke}-filter-dropdown-search-input`})):null}var Bo=_o,$a=w(10228);const wa=T=>{const{keyCode:re}=T;re===$a.Z.ENTER&&T.stopPropagation()};var Oa=B.forwardRef((T,re)=>B.createElement("div",{className:T.className,onClick:Be=>Be.stopPropagation(),onKeyDown:wa,ref:re},T.children));function Ja(T){let re=[];return(T||[]).forEach(Be=>{let{value:Ue,children:Ke}=Be;re.push(Ue),Ke&&(re=[].concat((0,qr.Z)(re),(0,qr.Z)(Ja(Ke))))}),re}function oo(T){return T.some(re=>{let{children:Be}=re;return Be})}function Ta(T,re){return typeof re=="string"||typeof re=="number"?re==null?void 0:re.toString().toLowerCase().includes(T.trim().toLowerCase()):!1}function ka(T){let{filters:re,prefixCls:Be,filteredKeys:Ue,filterMultiple:Ke,searchValue:Xe,filterSearch:ut}=T;return re.map((Et,le)=>{const Re=String(Et.value);if(Et.children)return{key:Re||le,label:Et.text,popupClassName:`${Be}-dropdown-submenu`,children:ka({filters:Et.children,prefixCls:Be,filteredKeys:Ue,filterMultiple:Ke,searchValue:Xe,filterSearch:ut})};const Ye=Ke?Ea.default:Wi.ZP,et={key:Et.value!==void 0?Re:le,label:B.createElement(B.Fragment,null,B.createElement(Ye,{checked:Ue.includes(Re)}),B.createElement("span",null,Et.text))};return Xe.trim()?typeof ut=="function"?ut(Xe,Et)?et:null:Ta(Xe,Et.text)?et:null:et})}function Fo(T){var re,Be;const{tablePrefixCls:Ue,prefixCls:Ke,column:Xe,dropdownPrefixCls:ut,columnKey:Et,filterMultiple:le,filterMode:Re="menu",filterSearch:Ye=!1,filterState:et,triggerFilter:yt,locale:_t,children:Mt,getPopupContainer:Rt}=T,{filterDropdownOpen:lr,onFilterDropdownOpenChange:Ar,filterResetToDefaultFilteredValue:gr,defaultFilteredValue:_r,filterDropdownVisible:dn,onFilterDropdownVisibleChange:ar}=Xe,[vt,Fn]=B.useState(!1),gn=!!(et&&(!((re=et.filteredKeys)===null||re===void 0)&&re.length||et.forceFiltered)),yr=kn=>{Fn(kn),Ar==null||Ar(kn),ar==null||ar(kn)},Ur=(Be=lr!=null?lr:dn)!==null&&Be!==void 0?Be:vt,Rr=et==null?void 0:et.filteredKeys,[wr,Zr]=za(Rr||[]),Cn=kn=>{let{selectedKeys:Qi}=kn;Zr(Qi)},Gn=(kn,Qi)=>{let{node:Xi,checked:qi}=Qi;Cn(le?{selectedKeys:kn}:{selectedKeys:qi&&Xi.key?[Xi.key]:[]})};B.useEffect(()=>{vt&&Cn({selectedKeys:Rr||[]})},[Rr]);const[Zn,Nn]=B.useState([]),di=kn=>{Nn(kn)},[zn,Ii]=B.useState(""),vn=kn=>{const{value:Qi}=kn.target;Ii(Qi)};B.useEffect(()=>{vt||Ii("")},[vt]);const _a=kn=>{const Qi=kn&&kn.length?kn:null;if(Qi===null&&(!et||!et.filteredKeys)||(0,Z.Z)(Qi,et==null?void 0:et.filteredKeys,!0))return null;yt({column:Xe,key:Et,filteredKeys:Qi})},Hi=()=>{yr(!1),_a(wr())},Ri=function(){let{confirm:kn,closeDropdown:Qi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};kn&&_a([]),Qi&&yr(!1),Ii(""),Zr(gr?(_r||[]).map(Xi=>String(Xi)):[])},ia=function(){let{closeDropdown:kn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};kn&&yr(!1),_a(wr())},Ki=kn=>{kn&&Rr!==void 0&&Zr(Rr||[]),yr(kn),!kn&&!Xe.filterDropdown&&Hi()},Qa=k()({[`${ut}-menu-without-submenu`]:!oo(Xe.filters||[])}),Gi=kn=>{if(kn.target.checked){const Qi=Ja(Xe==null?void 0:Xe.filters).map(Xi=>String(Xi));Zr(Qi)}else Zr([])},As=kn=>{let{filters:Qi}=kn;return(Qi||[]).map((Xi,qi)=>{const Mo=String(Xi.value),Mi={title:Xi.text,key:Xi.value!==void 0?Mo:qi};return Xi.children&&(Mi.children=As({filters:Xi.children})),Mi})},Sn=kn=>{var Qi;return Object.assign(Object.assign({},kn),{text:kn.title,value:kn.key,children:((Qi=kn.children)===null||Qi===void 0?void 0:Qi.map(Xi=>Sn(Xi)))||[]})};let fi;if(typeof Xe.filterDropdown=="function")fi=Xe.filterDropdown({prefixCls:`${ut}-custom`,setSelectedKeys:kn=>Cn({selectedKeys:kn}),selectedKeys:wr(),confirm:ia,clearFilters:Ri,filters:Xe.filters,visible:Ur,close:()=>{yr(!1)}});else if(Xe.filterDropdown)fi=Xe.filterDropdown;else{const kn=wr()||[],Qi=()=>(Xe.filters||[]).length===0?B.createElement(yi.Z,{image:yi.Z.PRESENTED_IMAGE_SIMPLE,description:_t.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Re==="tree"?B.createElement(B.Fragment,null,B.createElement(Bo,{filterSearch:Ye,value:zn,onChange:vn,tablePrefixCls:Ue,locale:_t}),B.createElement("div",{className:`${Ue}-filter-dropdown-tree`},le?B.createElement(Ea.default,{checked:kn.length===Ja(Xe.filters).length,indeterminate:kn.length>0&&kn.length<Ja(Xe.filters).length,className:`${Ue}-filter-dropdown-checkall`,onChange:Gi},_t.filterCheckall):null,B.createElement(da.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:le,checkStrictly:!le,className:`${ut}-menu`,onCheck:Gn,checkedKeys:kn,selectedKeys:kn,showIcon:!1,treeData:As({filters:Xe.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:zn.trim()?qi=>typeof Ye=="function"?Ye(zn,Sn(qi)):Ta(zn,qi.title):void 0}))):B.createElement(B.Fragment,null,B.createElement(Bo,{filterSearch:Ye,value:zn,onChange:vn,tablePrefixCls:Ue,locale:_t}),B.createElement(Vi.default,{selectable:!0,multiple:le,prefixCls:`${ut}-menu`,className:Qa,onSelect:Cn,onDeselect:Cn,selectedKeys:kn,getPopupContainer:Rt,openKeys:Zn,onOpenChange:di,items:ka({filters:Xe.filters||[],filterSearch:Ye,prefixCls:Ke,filteredKeys:wr(),filterMultiple:le,searchValue:zn})})),Xi=()=>gr?(0,Z.Z)((_r||[]).map(qi=>String(qi)),kn,!0):kn.length===0;fi=B.createElement(B.Fragment,null,Qi(),B.createElement("div",{className:`${Ke}-dropdown-btns`},B.createElement(Ra.ZP,{type:"link",size:"small",disabled:Xi(),onClick:()=>Ri()},_t.filterReset),B.createElement(Ra.ZP,{type:"primary",size:"small",onClick:Hi},_t.filterConfirm)))}Xe.filterDropdown&&(fi=B.createElement(Oi.J,{selectable:void 0},fi));const mi=()=>B.createElement(Oa,{className:`${Ke}-dropdown`},fi);let $n;typeof Xe.filterIcon=="function"?$n=Xe.filterIcon(gn):Xe.filterIcon?$n=Xe.filterIcon:$n=B.createElement(Zo,null);const{direction:ai}=B.useContext(Oo.E_);return B.createElement("div",{className:`${Ke}-column`},B.createElement("span",{className:`${Ue}-column-title`},Mt),B.createElement(js.Z,{dropdownRender:mi,trigger:["click"],open:Ur,onOpenChange:Ki,getPopupContainer:Rt,placement:ai==="rtl"?"bottomLeft":"bottomRight"},B.createElement("span",{role:"button",tabIndex:-1,className:k()(`${Ke}-trigger`,{active:gn}),onClick:kn=>{kn.stopPropagation()}},$n)))}var Ll=Fo;function cs(T,re,Be){let Ue=[];return(T||[]).forEach((Ke,Xe)=>{var ut;const Et=uo(Xe,Be);if(Ke.filters||"filterDropdown"in Ke||"onFilter"in Ke)if("filteredValue"in Ke){let le=Ke.filteredValue;"filterDropdown"in Ke||(le=(ut=le==null?void 0:le.map(String))!==null&&ut!==void 0?ut:le),Ue.push({column:Ke,key:Do(Ke,Et),filteredKeys:le,forceFiltered:Ke.filtered})}else Ue.push({column:Ke,key:Do(Ke,Et),filteredKeys:re&&Ke.defaultFilteredValue?Ke.defaultFilteredValue:void 0,forceFiltered:Ke.filtered});"children"in Ke&&(Ue=[].concat((0,qr.Z)(Ue),(0,qr.Z)(cs(Ke.children,re,Et))))}),Ue}function dl(T,re,Be,Ue,Ke,Xe,ut,Et){return Be.map((le,Re)=>{const Ye=uo(Re,Et),{filterMultiple:et=!0,filterMode:yt,filterSearch:_t}=le;let Mt=le;if(Mt.filters||Mt.filterDropdown){const Rt=Do(Mt,Ye),lr=Ue.find(Ar=>{let{key:gr}=Ar;return Rt===gr});Mt=Object.assign(Object.assign({},Mt),{title:Ar=>B.createElement(Ll,{tablePrefixCls:T,prefixCls:`${T}-filter`,dropdownPrefixCls:re,column:Mt,columnKey:Rt,filterState:lr,filterMultiple:et,filterMode:yt,filterSearch:_t,triggerFilter:Xe,locale:Ke,getPopupContainer:ut},Xa(le.title,Ar))})}return"children"in Mt&&(Mt=Object.assign(Object.assign({},Mt),{children:dl(T,re,Mt.children,Ue,Ke,Xe,ut,Ye)})),Mt})}function No(T){const re={};return T.forEach(Be=>{let{key:Ue,filteredKeys:Ke,column:Xe}=Be;const{filters:ut,filterDropdown:Et}=Xe;if(Et)re[Ue]=Ke||null;else if(Array.isArray(Ke)){const le=Ja(ut);re[Ue]=le.filter(Re=>Ke.includes(String(Re)))}else re[Ue]=null}),re}function ks(T,re){return re.reduce((Be,Ue)=>{const{column:{onFilter:Ke,filters:Xe},filteredKeys:ut}=Ue;return Ke&&ut&&ut.length?Be.filter(Et=>ut.some(le=>{const Re=Ja(Xe),Ye=Re.findIndex(yt=>String(yt)===String(le)),et=Ye!==-1?Re[Ye]:le;return Ke(et,Et)})):Be},T)}const Io=T=>T.flatMap(re=>"children"in re?[re].concat((0,qr.Z)(Io(re.children||[]))):[re]);function Kn(T){let{prefixCls:re,dropdownPrefixCls:Be,mergedColumns:Ue,onFilterChange:Ke,getPopupContainer:Xe,locale:ut}=T;const Et=B.useMemo(()=>Io(Ue||[]),[Ue]),[le,Re]=B.useState(()=>cs(Et,!0)),Ye=B.useMemo(()=>{const Mt=cs(Et,!1);if(Mt.length===0)return Mt;let Rt=!0,lr=!0;if(Mt.forEach(Ar=>{let{filteredKeys:gr}=Ar;gr!==void 0?Rt=!1:lr=!1}),Rt){const Ar=(Et||[]).map((gr,_r)=>Do(gr,uo(_r)));return le.filter(gr=>{let{key:_r}=gr;return Ar.includes(_r)}).map(gr=>{const _r=Et[Ar.findIndex(dn=>dn===gr.key)];return Object.assign(Object.assign({},gr),{column:Object.assign(Object.assign({},gr.column),_r),forceFiltered:_r.filtered})})}return Mt},[Et,le]),et=B.useMemo(()=>No(Ye),[Ye]),yt=Mt=>{const Rt=Ye.filter(lr=>{let{key:Ar}=lr;return Ar!==Mt.key});Rt.push(Mt),Re(Rt),Ke(No(Rt),Rt)};return[Mt=>dl(re,Be,Mt,Ye,ut,yt,Xe),Ye,et]}var kl=Kn;function To(T,re,Be){const Ue=B.useRef({});function Ke(Xe){if(!Ue.current||Ue.current.data!==T||Ue.current.childrenColumnName!==re||Ue.current.getRowKey!==Be){let Et=function(le){le.forEach((Re,Ye)=>{const et=Be(Re,Ye);ut.set(et,Re),Re&&typeof Re=="object"&&re in Re&&Et(Re[re]||[])})};const ut=new Map;Et(T),Ue.current={data:T,childrenColumnName:re,kvMap:ut,getRowKey:Be}}return Ue.current.kvMap.get(Xe)}return[Ke]}var Hl=w(50371),zs=function(T,re){var Be={};for(var Ue in T)Object.prototype.hasOwnProperty.call(T,Ue)&&re.indexOf(Ue)<0&&(Be[Ue]=T[Ue]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ue=Object.getOwnPropertySymbols(T);Ke<Ue.length;Ke++)re.indexOf(Ue[Ke])<0&&Object.prototype.propertyIsEnumerable.call(T,Ue[Ke])&&(Be[Ue[Ke]]=T[Ue[Ke]]);return Be};const ms=10;function Da(T,re){const Be={current:T.current,pageSize:T.pageSize};return Object.keys(re&&typeof re=="object"?re:{}).forEach(Ke=>{const Xe=T[Ke];typeof Xe!="function"&&(Be[Ke]=Xe)}),Be}function Uo(T,re,Be){const Ue=Be&&typeof Be=="object"?Be:{},{total:Ke=0}=Ue,Xe=zs(Ue,["total"]),[ut,Et]=(0,B.useState)(()=>({current:"defaultCurrent"in Xe?Xe.defaultCurrent:1,pageSize:"defaultPageSize"in Xe?Xe.defaultPageSize:ms})),le=(0,Hl.Z)(ut,Xe,{total:Ke>0?Ke:T}),Re=Math.ceil((Ke||T)/le.pageSize);le.current>Re&&(le.current=Re||1);const Ye=(yt,_t)=>{Et({current:yt!=null?yt:1,pageSize:_t||le.pageSize})},et=(yt,_t)=>{var Mt;Be&&((Mt=Be.onChange)===null||Mt===void 0||Mt.call(Be,yt,_t)),Ye(yt,_t),re(yt,_t||(le==null?void 0:le.pageSize))};return Be===!1?[{},()=>{}]:[Object.assign(Object.assign({},le),{onChange:et}),Ye]}var jl=Uo,tc=w(84105),fl=w(35654),ma=w(90782),oa=w(71430),ho=w(18929);const Za={},to="SELECT_ALL",Ro="SELECT_INVERT",Ya="SELECT_NONE",Wo=[],Ds=(T,re)=>{let Be=[];return(re||[]).forEach(Ue=>{Be.push(Ue),Ue&&typeof Ue=="object"&&T in Ue&&(Be=[].concat((0,qr.Z)(Be),(0,qr.Z)(Ds(T,Ue[T]))))}),Be};var Xs=(T,re)=>{const{preserveSelectedRowKeys:Be,selectedRowKeys:Ue,defaultSelectedRowKeys:Ke,getCheckboxProps:Xe,onChange:ut,onSelect:Et,onSelectAll:le,onSelectInvert:Re,onSelectNone:Ye,onSelectMultiple:et,columnWidth:yt,type:_t,selections:Mt,fixed:Rt,renderCell:lr,hideSelectAll:Ar,checkStrictly:gr=!0}=re||{},{prefixCls:_r,data:dn,pageData:ar,getRecordByKey:vt,getRowKey:Fn,expandType:gn,childrenColumnName:yr,locale:Ur,getPopupContainer:Rr}=T,[wr,Zr]=(0,ho.Z)(Ue||Ke||Wo,{value:Ue}),Cn=B.useRef(new Map),Gn=(0,B.useCallback)(Sn=>{if(Be){const fi=new Map;Sn.forEach(mi=>{let $n=vt(mi);!$n&&Cn.current.has(mi)&&($n=Cn.current.get(mi)),fi.set(mi,$n)}),Cn.current=fi}},[vt,Be]);B.useEffect(()=>{Gn(wr)},[wr]);const{keyEntities:Zn}=(0,B.useMemo)(()=>{if(gr)return{keyEntities:null};let Sn=dn;if(Be){const fi=new Set(dn.map(($n,ai)=>Fn($n,ai))),mi=Array.from(Cn.current).reduce(($n,ai)=>{let[kn,Qi]=ai;return fi.has(kn)?$n:$n.concat(Qi)},[]);Sn=[].concat((0,qr.Z)(Sn),(0,qr.Z)(mi))}return(0,oa.I8)(Sn,{externalGetKey:Fn,childrenPropName:yr})},[dn,Fn,gr,yr,Be]),Nn=(0,B.useMemo)(()=>Ds(yr,ar),[yr,ar]),di=(0,B.useMemo)(()=>{const Sn=new Map;return Nn.forEach((fi,mi)=>{const $n=Fn(fi,mi),ai=(Xe?Xe(fi):null)||{};Sn.set($n,ai)}),Sn},[Nn,Fn,Xe]),zn=(0,B.useCallback)(Sn=>{var fi;return!!(!((fi=di.get(Fn(Sn)))===null||fi===void 0)&&fi.disabled)},[di,Fn]),[Ii,vn]=(0,B.useMemo)(()=>{if(gr)return[wr||[],[]];const{checkedKeys:Sn,halfCheckedKeys:fi}=(0,ma.S)(wr,!0,Zn,zn);return[Sn||[],fi]},[wr,gr,Zn,zn]),_a=(0,B.useMemo)(()=>{const Sn=_t==="radio"?Ii.slice(0,1):Ii;return new Set(Sn)},[Ii,_t]),Hi=(0,B.useMemo)(()=>_t==="radio"?new Set:new Set(vn),[vn,_t]),[Ri,ia]=(0,B.useState)(null);B.useEffect(()=>{re||Zr(Wo)},[!!re]);const Ki=(0,B.useCallback)((Sn,fi)=>{let mi,$n;Gn(Sn),Be?(mi=Sn,$n=Sn.map(ai=>Cn.current.get(ai))):(mi=[],$n=[],Sn.forEach(ai=>{const kn=vt(ai);kn!==void 0&&(mi.push(ai),$n.push(kn))})),Zr(mi),ut==null||ut(mi,$n,{type:fi})},[Zr,vt,ut,Be]),Qa=(0,B.useCallback)((Sn,fi,mi,$n)=>{if(Et){const ai=mi.map(kn=>vt(kn));Et(vt(Sn),fi,ai,$n)}Ki(mi,"single")},[Et,vt,Ki]),Gi=(0,B.useMemo)(()=>!Mt||Ar?null:(Mt===!0?[to,Ro,Ya]:Mt).map(fi=>fi===to?{key:"all",text:Ur.selectionAll,onSelect(){Ki(dn.map((mi,$n)=>Fn(mi,$n)).filter(mi=>{const $n=di.get(mi);return!($n!=null&&$n.disabled)||_a.has(mi)}),"all")}}:fi===Ro?{key:"invert",text:Ur.selectInvert,onSelect(){const mi=new Set(_a);ar.forEach((ai,kn)=>{const Qi=Fn(ai,kn),Xi=di.get(Qi);Xi!=null&&Xi.disabled||(mi.has(Qi)?mi.delete(Qi):mi.add(Qi))});const $n=Array.from(mi);Re&&Re($n),Ki($n,"invert")}}:fi===Ya?{key:"none",text:Ur.selectNone,onSelect(){Ye==null||Ye(),Ki(Array.from(_a).filter(mi=>{const $n=di.get(mi);return $n==null?void 0:$n.disabled}),"none")}}:fi).map(fi=>Object.assign(Object.assign({},fi),{onSelect:function(){for(var mi,$n,ai=arguments.length,kn=new Array(ai),Qi=0;Qi<ai;Qi++)kn[Qi]=arguments[Qi];($n=fi.onSelect)===null||$n===void 0||(mi=$n).call.apply(mi,[fi].concat(kn)),ia(null)}})),[Mt,_a,ar,Fn,Re,Ki]);return[(0,B.useCallback)(Sn=>{var fi;if(!re)return Sn.filter(ga=>ga!==Za);let mi=(0,qr.Z)(Sn);const $n=new Set(_a),ai=Nn.map(Fn).filter(ga=>!di.get(ga).disabled),kn=ai.every(ga=>$n.has(ga)),Qi=ai.some(ga=>$n.has(ga)),Xi=()=>{const ga=[];kn?ai.forEach(fa=>{$n.delete(fa),ga.push(fa)}):ai.forEach(fa=>{$n.has(fa)||($n.add(fa),ga.push(fa))});const en=Array.from($n);le==null||le(!kn,en.map(fa=>vt(fa)),ga.map(fa=>vt(fa))),Ki(en,"all"),ia(null)};let qi;if(_t!=="radio"){let ga;if(Gi){const Si={getPopupContainer:Rr,items:Gi.map((bo,Ko)=>{const{key:Bs,text:gs,onSelect:is}=bo;return{key:Bs!=null?Bs:Ko,onClick:()=>{is==null||is(ai)},label:gs}})};ga=B.createElement("div",{className:`${_r}-selection-extra`},B.createElement(js.Z,{menu:Si,getPopupContainer:Rr},B.createElement("span",null,B.createElement(tc.Z,null))))}const en=Nn.map((Si,bo)=>{const Ko=Fn(Si,bo),Bs=di.get(Ko)||{};return Object.assign({checked:$n.has(Ko)},Bs)}).filter(Si=>{let{disabled:bo}=Si;return bo}),fa=!!en.length&&en.length===Nn.length,so=fa&&en.every(Si=>{let{checked:bo}=Si;return bo}),Va=fa&&en.some(Si=>{let{checked:bo}=Si;return bo});qi=!Ar&&B.createElement("div",{className:`${_r}-selection`},B.createElement(Ea.default,{checked:fa?so:!!Nn.length&&kn,indeterminate:fa?!so&&Va:!kn&&Qi,onChange:Xi,disabled:Nn.length===0||fa,"aria-label":ga?"Custom selection":"Select all",skipGroup:!0}),ga)}let Mo;_t==="radio"?Mo=(ga,en,fa)=>{const so=Fn(en,fa),Va=$n.has(so);return{node:B.createElement(Wi.ZP,Object.assign({},di.get(so),{checked:Va,onClick:Si=>Si.stopPropagation(),onChange:Si=>{$n.has(so)||Qa(so,!0,[so],Si.nativeEvent)}})),checked:Va}}:Mo=(ga,en,fa)=>{var so;const Va=Fn(en,fa),Si=$n.has(Va),bo=Hi.has(Va),Ko=di.get(Va);let Bs;return gn==="nest"?Bs=bo:Bs=(so=Ko==null?void 0:Ko.indeterminate)!==null&&so!==void 0?so:bo,{node:B.createElement(Ea.default,Object.assign({},Ko,{indeterminate:Bs,checked:Si,skipGroup:!0,onClick:gs=>gs.stopPropagation(),onChange:gs=>{let{nativeEvent:is}=gs;const{shiftKey:us}=is;let bl=-1,as=-1;if(us&&gr){const $s=new Set([Ri,Va]);ai.some((ds,Lo)=>{if($s.has(ds))if(bl===-1)bl=Lo;else return as=Lo,!0;return!1})}if(as!==-1&&bl!==as&&gr){const $s=ai.slice(bl,as+1),ds=[];Si?$s.forEach(wo=>{$n.has(wo)&&(ds.push(wo),$n.delete(wo))}):$s.forEach(wo=>{$n.has(wo)||(ds.push(wo),$n.add(wo))});const Lo=Array.from($n);et==null||et(!Si,Lo.map(wo=>vt(wo)),ds.map(wo=>vt(wo))),Ki(Lo,"multiple")}else{const $s=Ii;if(gr){const ds=Si?(0,fl._5)($s,Va):(0,fl.L0)($s,Va);Qa(Va,!Si,ds,is)}else{const ds=(0,ma.S)([].concat((0,qr.Z)($s),[Va]),!0,Zn,zn),{checkedKeys:Lo,halfCheckedKeys:wo}=ds;let qs=Lo;if(Si){const Ol=new Set(Lo);Ol.delete(Va),qs=(0,ma.S)(Array.from(Ol),{checked:!1,halfCheckedKeys:wo},Zn,zn).checkedKeys}Qa(Va,!Si,qs,is)}}ia(Si?null:Va)}})),checked:Si}};const Mi=(ga,en,fa)=>{const{node:so,checked:Va}=Mo(ga,en,fa);return lr?lr(Va,en,fa,so):so};if(!mi.includes(Za))if(mi.findIndex(ga=>{var en;return((en=ga[vr])===null||en===void 0?void 0:en.columnType)==="EXPAND_COLUMN"})===0){const[ga,...en]=mi;mi=[ga,Za].concat((0,qr.Z)(en))}else mi=[Za].concat((0,qr.Z)(mi));const ns=mi.indexOf(Za);mi=mi.filter((ga,en)=>ga!==Za||en===ns);const ro=mi[ns-1],Qo=mi[ns+1];let bn=Rt;bn===void 0&&((Qo==null?void 0:Qo.fixed)!==void 0?bn=Qo.fixed:(ro==null?void 0:ro.fixed)!==void 0&&(bn=ro.fixed)),bn&&ro&&((fi=ro[vr])===null||fi===void 0?void 0:fi.columnType)==="EXPAND_COLUMN"&&ro.fixed===void 0&&(ro.fixed=bn);const no=k()(`${_r}-selection-col`,{[`${_r}-selection-col-with-dropdown`]:Mt&&_t==="checkbox"}),Cs={fixed:bn,width:yt,className:`${_r}-selection-column`,title:re.columnTitle||qi,render:Mi,onCell:re.onCell,[vr]:{className:no}};return mi.map(ga=>ga===Za?Cs:ga)},[Fn,Nn,re,Ii,_a,Hi,yt,Gi,gn,Ri,di,et,Qa,zn]),_a]},al=w(89489),Wc=w(59477),Dl=w(6848);const Js="ascend",lA="descend";function cA(T){return typeof T.sorter=="object"&&typeof T.sorter.multiple=="number"?T.sorter.multiple:!1}function hc(T){return typeof T=="function"?T:T&&typeof T=="object"&&T.compare?T.compare:!1}function wA(T,re){return re?T[T.indexOf(re)+1]:T[0]}function Pl(T,re,Be){let Ue=[];function Ke(Xe,ut){Ue.push({column:Xe,key:Do(Xe,ut),multiplePriority:cA(Xe),sortOrder:Xe.sortOrder})}return(T||[]).forEach((Xe,ut)=>{const Et=uo(ut,Be);Xe.children?("sortOrder"in Xe&&Ke(Xe,Et),Ue=[].concat((0,qr.Z)(Ue),(0,qr.Z)(Pl(Xe.children,re,Et)))):Xe.sorter&&("sortOrder"in Xe?Ke(Xe,Et):re&&Xe.defaultSortOrder&&Ue.push({column:Xe,key:Do(Xe,Et),multiplePriority:cA(Xe),sortOrder:Xe.defaultSortOrder}))}),Ue}function Ys(T,re,Be,Ue,Ke,Xe,ut,Et){return(re||[]).map((le,Re)=>{const Ye=uo(Re,Et);let et=le;if(et.sorter){const yt=et.sortDirections||Ke,_t=et.showSorterTooltip===void 0?ut:et.showSorterTooltip,Mt=Do(et,Ye),Rt=Be.find(gn=>{let{key:yr}=gn;return yr===Mt}),lr=Rt?Rt.sortOrder:null,Ar=wA(yt,lr);let gr;if(le.sortIcon)gr=le.sortIcon({sortOrder:lr});else{const gn=yt.includes(Js)&&B.createElement(Wc.Z,{className:k()(`${T}-column-sorter-up`,{active:lr===Js})}),yr=yt.includes(lA)&&B.createElement(al.Z,{className:k()(`${T}-column-sorter-down`,{active:lr===lA})});gr=B.createElement("span",{className:k()(`${T}-column-sorter`,{[`${T}-column-sorter-full`]:!!(gn&&yr)})},B.createElement("span",{className:`${T}-column-sorter-inner`,"aria-hidden":"true"},gn,yr))}const{cancelSort:_r,triggerAsc:dn,triggerDesc:ar}=Xe||{};let vt=_r;Ar===lA?vt=ar:Ar===Js&&(vt=dn);const Fn=typeof _t=="object"?_t:{title:vt};et=Object.assign(Object.assign({},et),{className:k()(et.className,{[`${T}-column-sort`]:lr}),title:gn=>{const yr=B.createElement("div",{className:`${T}-column-sorters`},B.createElement("span",{className:`${T}-column-title`},Xa(le.title,gn)),gr);return _t?B.createElement(Dl.Z,Object.assign({},Fn),yr):yr},onHeaderCell:gn=>{const yr=le.onHeaderCell&&le.onHeaderCell(gn)||{},Ur=yr.onClick,Rr=yr.onKeyDown;yr.onClick=Cn=>{Ue({column:le,key:Mt,sortOrder:Ar,multiplePriority:cA(le)}),Ur==null||Ur(Cn)},yr.onKeyDown=Cn=>{Cn.keyCode===$a.Z.ENTER&&(Ue({column:le,key:Mt,sortOrder:Ar,multiplePriority:cA(le)}),Rr==null||Rr(Cn))};const wr=Di(le.title,{}),Zr=wr==null?void 0:wr.toString();return lr?yr["aria-sort"]=lr==="ascend"?"ascending":"descending":yr["aria-label"]=Zr||"",yr.className=k()(yr.className,`${T}-column-has-sorters`),yr.tabIndex=0,le.ellipsis&&(yr.title=(wr!=null?wr:"").toString()),yr}})}return"children"in et&&(et=Object.assign(Object.assign({},et),{children:Ys(T,et.children,Be,Ue,Ke,Xe,ut,Ye)})),et})}function ol(T){const{column:re,sortOrder:Be}=T;return{column:re,order:Be,field:re.dataIndex,columnKey:re.key}}function sl(T){const re=T.filter(Be=>{let{sortOrder:Ue}=Be;return Ue}).map(ol);return re.length===0&&T.length?Object.assign(Object.assign({},ol(T[T.length-1])),{column:void 0}):re.length<=1?re[0]||{}:re}function Na(T,re,Be){const Ue=re.slice().sort((ut,Et)=>Et.multiplePriority-ut.multiplePriority),Ke=T.slice(),Xe=Ue.filter(ut=>{let{column:{sorter:Et},sortOrder:le}=ut;return hc(Et)&&le});return Xe.length?Ke.sort((ut,Et)=>{for(let le=0;le<Xe.length;le+=1){const Re=Xe[le],{column:{sorter:Ye},sortOrder:et}=Re,yt=hc(Ye);if(yt&&et){const _t=yt(ut,Et,et);if(_t!==0)return et===Js?_t:-_t}}return 0}).map(ut=>{const Et=ut[Be];return Et?Object.assign(Object.assign({},ut),{[Be]:Na(Et,re,Be)}):ut}):Ke}function po(T){let{prefixCls:re,mergedColumns:Be,onSorterChange:Ue,sortDirections:Ke,tableLocale:Xe,showSorterTooltip:ut}=T;const[Et,le]=B.useState(Pl(Be,!0)),Re=B.useMemo(()=>{let Mt=!0;const Rt=Pl(Be,!1);if(!Rt.length)return Et;const lr=[];function Ar(_r){Mt?lr.push(_r):lr.push(Object.assign(Object.assign({},_r),{sortOrder:null}))}let gr=null;return Rt.forEach(_r=>{gr===null?(Ar(_r),_r.sortOrder&&(_r.multiplePriority===!1?Mt=!1:gr=!0)):(gr&&_r.multiplePriority!==!1||(Mt=!1),Ar(_r))}),lr},[Be,Et]),Ye=B.useMemo(()=>{const Mt=Re.map(Rt=>{let{column:lr,sortOrder:Ar}=Rt;return{column:lr,order:Ar}});return{sortColumns:Mt,sortColumn:Mt[0]&&Mt[0].column,sortOrder:Mt[0]&&Mt[0].order}},[Re]);function et(Mt){let Rt;Mt.multiplePriority===!1||!Re.length||Re[0].multiplePriority===!1?Rt=[Mt]:Rt=[].concat((0,qr.Z)(Re.filter(lr=>{let{key:Ar}=lr;return Ar!==Mt.key})),[Mt]),le(Rt),Ue(sl(Rt),Rt)}return[Mt=>Ys(re,Mt,Re,et,Ke,Xe,ut),Re,Ye,()=>sl(Re)]}function mo(T,re){return T.map(Be=>{const Ue=Object.assign({},Be);return Ue.title=Xa(Be.title,re),"children"in Ue&&(Ue.children=mo(Ue.children,re)),Ue})}function Go(T){return[B.useCallback(Be=>mo(Be,T),[T])]}var Ps=bi((T,re)=>{const{_renderTimes:Be}=T,{_renderTimes:Ue}=re;return Be!==Ue}),kc=wi((T,re)=>{const{_renderTimes:Be}=T,{_renderTimes:Ue}=re;return Be!==Ue}),yl=w(64993),Gc=w(17313),xA=w(83116),CA=w(37613),mc=T=>{const{componentCls:re}=T,Be=`${T.lineWidth}px ${T.lineType} ${T.tableBorderColor}`,Ue=(Ke,Xe,ut)=>({[`&${re}-${Ke}`]:{[`> ${re}-container`]:{[`> ${re}-content, > ${re}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${re}-expanded-row-fixed`]:{margin:`-${Xe}px -${ut+T.lineWidth}px`}}}}}});return{[`${re}-wrapper`]:{[`${re}${re}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${re}-title`]:{border:Be,borderBottom:0},[`> ${re}-container`]:{borderInlineStart:Be,borderTop:Be,[`
> ${re}-content,
> ${re}-header,
> ${re}-body,
> ${re}-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:Be},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Be},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${re}-cell-fix-right-first::after`]:{borderInlineEnd:Be}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${re}-expanded-row-fixed`]:{margin:`-${T.tablePaddingVertical}px -${T.tablePaddingHorizontal+T.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:T.lineWidth,bottom:0,borderInlineEnd:Be,content:'""'}}}}}},[`&${re}-scroll-horizontal`]:{[`> ${re}-container > ${re}-body`]:{"> table > tbody":{[`
> tr${re}-expanded-row,
> tr${re}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ue("middle",T.tablePaddingVerticalMiddle,T.tablePaddingHorizontalMiddle)),Ue("small",T.tablePaddingVerticalSmall,T.tablePaddingHorizontalSmall)),{[`> ${re}-footer`]:{border:Be,borderTop:0}}),[`${re}-cell`]:{[`${re}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${T.lineWidth}px 0 ${T.lineWidth}px ${T.tableHeaderBg}`}},[`${re}-bordered ${re}-cell-scrollbar`]:{borderInlineEnd:Be}}}},KA=T=>{const{componentCls:re}=T;return{[`${re}-wrapper`]:{[`${re}-cell-ellipsis`]:Object.assign(Object.assign({},Gc.vS),{wordBreak:"keep-all",[`
&${re}-cell-fix-left-last,
&${re}-cell-fix-right-first
`]:{overflow:"visible",[`${re}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${re}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},td=T=>{const{componentCls:re}=T;return{[`${re}-wrapper`]:{[`${re}-tbody > tr${re}-placeholder`]:{textAlign:"center",color:T.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:T.colorBgContainer}}}}},lu=w(15969),Ru=T=>{const{componentCls:re,antCls:Be,controlInteractiveSize:Ue,motionDurationSlow:Ke,lineWidth:Xe,paddingXS:ut,lineType:Et,tableBorderColor:le,tableExpandIconBg:Re,tableExpandColumnWidth:Ye,borderRadius:et,fontSize:yt,fontSizeSM:_t,lineHeight:Mt,tablePaddingVertical:Rt,tablePaddingHorizontal:lr,tableExpandedRowBg:Ar,paddingXXS:gr}=T,_r=Ue/2-Xe,dn=_r*2+Xe*3,ar=`${Xe}px ${Et} ${le}`,vt=gr-Xe;return{[`${re}-wrapper`]:{[`${re}-expand-icon-col`]:{width:Ye},[`${re}-row-expand-icon-cell`]:{textAlign:"center",[`${re}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${re}-row-indent`]:{height:1,float:"left"},[`${re}-row-expand-icon`]:Object.assign(Object.assign({},(0,lu.N)(T)),{position:"relative",float:"left",boxSizing:"border-box",width:dn,height:dn,padding:0,color:"inherit",lineHeight:`${dn}px`,background:Re,border:ar,borderRadius:et,transform:`scale(${Ue/dn})`,transition:`all ${Ke}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ke} ease-out`,content:'""'},"&::before":{top:_r,insetInlineEnd:vt,insetInlineStart:vt,height:Xe},"&::after":{top:vt,bottom:vt,insetInlineStart:_r,width:Xe,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"}}),[`${re}-row-indent + ${re}-row-expand-icon`]:{marginTop:(yt*Mt-Xe*3)/2-Math.ceil((_t*1.4-Xe*3)/2),marginInlineEnd:ut},[`tr${re}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ar}},[`${Be}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${re}-expanded-row-fixed`]:{position:"relative",margin:`-${Rt}px -${lr}px`,padding:`${Rt}px ${lr}px`}}}},c=T=>{const{componentCls:re,antCls:Be,iconCls:Ue,tableFilterDropdownWidth:Ke,tableFilterDropdownSearchWidth:Xe,paddingXXS:ut,paddingXS:Et,colorText:le,lineWidth:Re,lineType:Ye,tableBorderColor:et,tableHeaderIconColor:yt,fontSizeSM:_t,tablePaddingHorizontal:Mt,borderRadius:Rt,motionDurationSlow:lr,colorTextDescription:Ar,colorPrimary:gr,tableHeaderFilterActiveBg:_r,colorTextDisabled:dn,tableFilterDropdownBg:ar,tableFilterDropdownHeight:vt,controlItemBgHover:Fn,controlItemBgActive:gn,boxShadowSecondary:yr,filterDropdownMenuBg:Ur}=T,Rr=`${Be}-dropdown`,wr=`${re}-filter-dropdown`,Zr=`${Be}-tree`,Cn=`${Re}px ${Ye} ${et}`;return[{[`${re}-wrapper`]:{[`${re}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${re}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ut,marginInline:`${ut}px ${-Mt/2}px`,padding:`0 ${ut}px`,color:yt,fontSize:_t,borderRadius:Rt,cursor:"pointer",transition:`all ${lr}`,"&:hover":{color:Ar,background:_r},"&.active":{color:gr}}}},{[`${Be}-dropdown`]:{[wr]:Object.assign(Object.assign({},(0,Gc.Wf)(T)),{minWidth:Ke,backgroundColor:ar,borderRadius:Rt,boxShadow:yr,overflow:"hidden",[`${Rr}-menu`]:{maxHeight:vt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ur,"&:empty::after":{display:"block",padding:`${Et}px 0`,color:dn,fontSize:_t,textAlign:"center",content:'"Not Found"'}},[`${wr}-tree`]:{paddingBlock:`${Et}px 0`,paddingInline:Et,[Zr]:{padding:0},[`${Zr}-treenode ${Zr}-node-content-wrapper:hover`]:{backgroundColor:Fn},[`${Zr}-treenode-checkbox-checked ${Zr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:gn}}},[`${wr}-search`]:{padding:Et,borderBottom:Cn,"&-input":{input:{minWidth:Xe},[Ue]:{color:dn}}},[`${wr}-checkall`]:{width:"100%",marginBottom:ut,marginInlineStart:ut},[`${wr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Et-Re}px ${Et}px`,overflow:"hidden",borderTop:Cn}})}},{[`${Be}-dropdown ${wr}, ${wr}-submenu`]:{[`${Be}-checkbox-wrapper + span`]:{paddingInlineStart:Et,color:le},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},l=T=>{const{componentCls:re,lineWidth:Be,colorSplit:Ue,motionDurationSlow:Ke,zIndexTableFixed:Xe,tableBg:ut,zIndexTableSticky:Et}=T,le=Ue;return{[`${re}-wrapper`]:{[`
${re}-cell-fix-left,
${re}-cell-fix-right
`]:{position:"sticky !important",zIndex:Xe,background:ut},[`
${re}-cell-fix-left-first::after,
${re}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Be,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ke}`,content:'""',pointerEvents:"none"},[`${re}-cell-fix-left-all::after`]:{display:"none"},[`
${re}-cell-fix-right-first::after,
${re}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Be,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ke}`,content:'""',pointerEvents:"none"},[`${re}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Et+1,width:30,transition:`box-shadow ${Ke}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${re}-ping-left`]:{[`&:not(${re}-has-fix-left) ${re}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${le}`}},[`
${re}-cell-fix-left-first::after,
${re}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${le}`},[`${re}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${re}-ping-right`]:{[`&:not(${re}-has-fix-right) ${re}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${le}`}},[`
${re}-cell-fix-right-first::after,
${re}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${le}`}}}}},I=T=>{const{componentCls:re,antCls:Be}=T;return{[`${re}-wrapper`]:{[`${re}-pagination${Be}-pagination`]:{margin:`${T.margin}px 0`},[`${re}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:T.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},N=T=>{const{componentCls:re,tableRadius:Be}=T;return{[`${re}-wrapper`]:{[re]:{[`${re}-title, ${re}-header`]:{borderRadius:`${Be}px ${Be}px 0 0`},[`${re}-title + ${re}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${re}-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:Be,borderStartEndRadius:Be,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Be},"> *:last-child":{borderStartEndRadius:Be}}},"&-footer":{borderRadius:`0 0 ${Be}px ${Be}px`}}}}},ae=T=>{const{componentCls:re}=T;return{[`${re}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${re}-pagination-left`]:{justifyContent:"flex-end"},[`${re}-pagination-right`]:{justifyContent:"flex-start"},[`${re}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${re}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${re}-row-indent`]:{float:"right"}}}}},Ze=T=>{const{componentCls:re,antCls:Be,iconCls:Ue,fontSizeIcon:Ke,padding:Xe,paddingXS:ut,tableHeaderIconColor:Et,tableHeaderIconColorHover:le,tableSelectionColumnWidth:Re}=T;return{[`${re}-wrapper`]:{[`${re}-selection-col`]:{width:Re,[`&${re}-selection-col-with-dropdown`]:{width:Re+Ke+Xe/4}},[`${re}-bordered ${re}-selection-col`]:{width:Re+ut*2,[`&${re}-selection-col-with-dropdown`]:{width:Re+Ke+Xe/4+ut*2}},[`
table tr th${re}-selection-column,
table tr td${re}-selection-column
`]:{paddingInlineEnd:T.paddingXS,paddingInlineStart:T.paddingXS,textAlign:"center",[`${Be}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${re}-selection-column${re}-cell-fix-left`]:{zIndex:T.zIndexTableFixed+1},[`table tr th${re}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${re}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${re}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${T.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${T.tablePaddingHorizontal/4}px`,[Ue]:{color:Et,fontSize:Ke,verticalAlign:"baseline","&:hover":{color:le}}}}}},it=T=>{const{componentCls:re}=T,Be=(Ue,Ke,Xe,ut)=>({[`${re}${re}-${Ue}`]:{fontSize:ut,[`
${re}-title,
${re}-footer,
${re}-cell,
${re}-thead > tr > th,
${re}-tbody > tr > th,
${re}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Ke}px ${Xe}px`},[`${re}-filter-trigger`]:{marginInlineEnd:`-${Xe/2}px`},[`${re}-expanded-row-fixed`]:{margin:`-${Ke}px -${Xe}px`},[`${re}-tbody`]:{[`${re}-wrapper:only-child ${re}`]:{marginBlock:`-${Ke}px`,marginInline:`${T.tableExpandColumnWidth-Xe}px -${Xe}px`}},[`${re}-selection-column`]:{paddingInlineStart:`${Xe/4}px`}}});return{[`${re}-wrapper`]:Object.assign(Object.assign({},Be("middle",T.tablePaddingVerticalMiddle,T.tablePaddingHorizontalMiddle,T.tableFontSizeMiddle)),Be("small",T.tablePaddingVerticalSmall,T.tablePaddingHorizontalSmall,T.tableFontSizeSmall))}},kt=T=>{const{componentCls:re,marginXXS:Be,fontSizeIcon:Ue,tableHeaderIconColor:Ke,tableHeaderIconColorHover:Xe}=T;return{[`${re}-wrapper`]:{[`${re}-thead th${re}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${T.motionDurationSlow}`,"&:hover":{background:T.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:T.colorPrimary},[`
&${re}-cell-fix-left:hover,
&${re}-cell-fix-right:hover
`]:{background:T.tableFixedHeaderSortActiveBg}},[`${re}-thead th${re}-column-sort`]:{background:T.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${re}-column-sort`]:{background:T.tableBodySortBg},[`${re}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${re}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${re}-column-sorter`]:{marginInlineStart:Be,color:Ke,fontSize:0,transition:`color ${T.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ue,"&.active":{color:T.colorPrimary}},[`${re}-column-sorter-up + ${re}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${re}-column-sorters:hover ${re}-column-sorter`]:{color:Xe}}}},Dt=T=>{const{componentCls:re,opacityLoading:Be,tableScrollThumbBg:Ue,tableScrollThumbBgHover:Ke,tableScrollThumbSize:Xe,tableScrollBg:ut,zIndexTableSticky:Et,stickyScrollBarBorderRadius:le}=T,Re=`${T.lineWidth}px ${T.lineType} ${T.tableBorderColor}`;return{[`${re}-wrapper`]:{[`${re}-sticky`]:{"&-holder":{position:"sticky",zIndex:Et,background:T.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Xe}px !important`,zIndex:Et,display:"flex",alignItems:"center",background:ut,borderTop:Re,opacity:Be,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Xe,backgroundColor:Ue,borderRadius:le,transition:`all ${T.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ke}}}}}}},Pt=T=>{const{componentCls:re,lineWidth:Be,tableBorderColor:Ue}=T,Ke=`${Be}px ${T.lineType} ${Ue}`;return{[`${re}-wrapper`]:{[`${re}-summary`]:{position:"relative",zIndex:T.zIndexTableFixed,background:T.tableBg,"> tr":{"> th, > td":{borderBottom:Ke}}},[`div${re}-summary`]:{boxShadow:`0 -${Be}px 0 ${Ue}`}}}},xr=T=>{const{componentCls:re}=T,Be=`${T.lineWidth}px ${T.lineType} ${T.tableBorderColor}`,Ue=`${re}-expanded-row-cell`;return{[`${re}-wrapper`]:{[`${re}-tbody-virtual`]:{[`${re}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${re}-cell`]:{borderBottom:Be},[`${re}-expanded-row`]:{[`${Ue}${Ue}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${T.lineWidth}px)`,borderInlineEnd:"none"}}},[`${re}-bordered`]:{[`${re}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Be,position:"absolute"},[`${re}-cell`]:{borderInlineEnd:Be,[`&${re}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-T.lineWidth,borderInlineStart:Be}}}}}}};const Hr=T=>{const{componentCls:re,fontWeightStrong:Be,tablePaddingVertical:Ue,tablePaddingHorizontal:Ke,lineWidth:Xe,lineType:ut,tableBorderColor:Et,tableFontSize:le,tableBg:Re,tableRadius:Ye,tableHeaderTextColor:et,motionDurationMid:yt,tableHeaderBg:_t,tableHeaderCellSplitColor:Mt,tableRowHoverBg:Rt,tableSelectedRowBg:lr,tableSelectedRowHoverBg:Ar,tableFooterTextColor:gr,tableFooterBg:_r,paddingContentVerticalLG:dn}=T,ar=`${Xe}px ${ut} ${Et}`;return{[`${re}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Gc.dF)()),{[re]:Object.assign(Object.assign({},(0,Gc.Wf)(T)),{fontSize:le,background:Re,borderRadius:`${Ye}px ${Ye}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ye}px ${Ye}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${re}-cell,
${re}-thead > tr > th,
${re}-tbody > tr > th,
${re}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${dn}px ${Ke}px`,overflowWrap:"break-word"},[`${re}-title`]:{padding:`${Ue}px ${Ke}px`},[`${re}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:et,fontWeight:Be,textAlign:"start",background:_t,borderBottom:ar,transition:`background ${yt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${re}-selection-column):not(${re}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Mt,transform:"translateY(-50%)",transition:`background-color ${yt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${re}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${yt}, border-color ${yt}`,borderBottom:ar,[`
> ${re}-wrapper:only-child,
> ${re}-expanded-row-fixed > ${re}-wrapper:only-child
`]:{[re]:{marginBlock:`-${Ue}px`,marginInline:`${T.tableExpandColumnWidth-Ke}px -${Ke}px`,[`${re}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:et,fontWeight:Be,textAlign:"start",background:_t,borderBottom:ar,transition:`background ${yt} ease`},[`
&${re}-row:hover > th,
&${re}-row:hover > td,
> th${re}-cell-row-hover,
> td${re}-cell-row-hover
`]:{background:Rt},[`&${re}-row-selected`]:{"> th, > td":{background:lr},"&:hover > th, &:hover > td":{background:Ar}}}},[`${re}-footer`]:{padding:`${Ue}px ${Ke}px`,color:gr,background:_r}})}};var hn=(0,xA.Z)("Table",T=>{const{colorTextHeading:re,colorSplit:Be,colorIcon:Ue,colorIconHover:Ke,opacityLoading:Xe,colorBgContainer:ut,controlInteractiveSize:Et,headerBg:le,headerColor:Re,headerSortActiveBg:Ye,headerSortHoverBg:et,bodySortBg:yt,rowHoverBg:_t,rowSelectedBg:Mt,rowSelectedHoverBg:Rt,rowExpandedBg:lr,cellPaddingBlock:Ar,cellPaddingInline:gr,cellPaddingBlockMD:_r,cellPaddingInlineMD:dn,cellPaddingBlockSM:ar,cellPaddingInlineSM:vt,borderColor:Fn,footerBg:gn,footerColor:yr,headerBorderRadius:Ur,cellFontSize:Rr,cellFontSizeMD:wr,cellFontSizeSM:Zr,headerSplitColor:Cn,fixedHeaderSortActiveBg:Gn,headerFilterHoverBg:Zn,filterDropdownBg:Nn,expandIconBg:di,selectionColumnWidth:zn,stickyScrollBarBg:Ii}=T,vn=new yl.C(Ue),_a=new yl.C(Ke),Hi=2,Ri=(0,CA.TS)(T,{tableFontSize:Rr,tableBg:ut,tableRadius:Ur,tablePaddingVertical:Ar,tablePaddingHorizontal:gr,tablePaddingVerticalMiddle:_r,tablePaddingHorizontalMiddle:dn,tablePaddingVerticalSmall:ar,tablePaddingHorizontalSmall:vt,tableBorderColor:Fn,tableHeaderTextColor:Re,tableHeaderBg:le,tableFooterTextColor:yr,tableFooterBg:gn,tableHeaderCellSplitColor:Cn,tableHeaderSortBg:Ye,tableHeaderSortHoverBg:et,tableHeaderIconColor:vn.clone().setAlpha(vn.getAlpha()*Xe).toRgbString(),tableHeaderIconColorHover:_a.clone().setAlpha(_a.getAlpha()*Xe).toRgbString(),tableBodySortBg:yt,tableFixedHeaderSortActiveBg:Gn,tableHeaderFilterActiveBg:Zn,tableFilterDropdownBg:Nn,tableRowHoverBg:_t,tableSelectedRowBg:Mt,tableSelectedRowHoverBg:Rt,zIndexTableFixed:Hi,zIndexTableSticky:Hi+1,tableFontSizeMiddle:wr,tableFontSizeSmall:Zr,tableSelectionColumnWidth:zn,tableExpandIconBg:di,tableExpandColumnWidth:Et+2*T.padding,tableExpandedRowBg:lr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Ii,tableScrollThumbBgHover:re,tableScrollBg:Be});return[Hr(Ri),I(Ri),Pt(Ri),kt(Ri),c(Ri),mc(Ri),N(Ri),Ru(Ri),Pt(Ri),td(Ri),Ze(Ri),l(Ri),Dt(Ri),KA(Ri),it(Ri),ae(Ri),xr(Ri)]},T=>{const{colorFillAlter:re,colorBgContainer:Be,colorTextHeading:Ue,colorFillSecondary:Ke,colorFillContent:Xe,controlItemBgActive:ut,controlItemBgActiveHover:Et,padding:le,paddingSM:Re,paddingXS:Ye,colorBorderSecondary:et,borderRadiusLG:yt,fontSize:_t,controlHeight:Mt,colorTextPlaceholder:Rt}=T,lr=new yl.C(Ke).onBackground(Be).toHexShortString(),Ar=new yl.C(Xe).onBackground(Be).toHexShortString(),gr=new yl.C(re).onBackground(Be).toHexShortString();return{headerBg:gr,headerColor:Ue,headerSortActiveBg:lr,headerSortHoverBg:Ar,bodySortBg:gr,rowHoverBg:gr,rowSelectedBg:ut,rowSelectedHoverBg:Et,rowExpandedBg:re,cellPaddingBlock:le,cellPaddingInline:le,cellPaddingBlockMD:Re,cellPaddingInlineMD:Ye,cellPaddingBlockSM:Ye,cellPaddingInlineSM:Ye,borderColor:et,headerBorderRadius:yt,footerBg:gr,footerColor:Ue,cellFontSize:_t,cellFontSizeMD:_t,cellFontSizeSM:_t,headerSplitColor:et,fixedHeaderSortActiveBg:lr,headerFilterHoverBg:Xe,filterDropdownMenuBg:Be,filterDropdownBg:Be,expandIconBg:Be,selectionColumnWidth:Mt,stickyScrollBarBg:Rt,stickyScrollBarBorderRadius:100}});const Lr=[],Vt=(T,re)=>{const{prefixCls:Be,className:Ue,rootClassName:Ke,style:Xe,size:ut,bordered:Et,dropdownPrefixCls:le,dataSource:Re,pagination:Ye,rowSelection:et,rowKey:yt="key",rowClassName:_t,columns:Mt,children:Rt,childrenColumnName:lr,onChange:Ar,getPopupContainer:gr,loading:_r,expandIcon:dn,expandable:ar,expandedRowRender:vt,expandIconColumnIndex:Fn,indentSize:gn,scroll:yr,sortDirections:Ur,locale:Rr,showSorterTooltip:wr=!0,virtual:Zr}=T,Cn=B.useMemo(()=>Mt||nt(Rt),[Mt,Rt]),Gn=B.useMemo(()=>Cn.some(xa=>xa.responsive),[Cn]),Zn=(0,ja.Z)(Gn),Nn=B.useMemo(()=>{const xa=new Set(Object.keys(Zn).filter(ea=>Zn[ea]));return Cn.filter(ea=>!ea.responsive||ea.responsive.some(vs=>xa.has(vs)))},[Cn,Zn]),di=(0,xi.Z)(T,["className","style","columns"]),{locale:zn=Ma.Z,direction:Ii,table:vn,renderEmpty:_a,getPrefixCls:Hi,getPopupContainer:Ri}=B.useContext(Oo.E_),ia=(0,Zi.Z)(ut),Ki=Object.assign(Object.assign({},zn.Table),Rr),Qa=Re||Lr,Gi=Hi("table",Be),As=Hi("dropdown",le),Sn=Object.assign({childrenColumnName:lr,expandIconColumnIndex:Fn},ar),{childrenColumnName:fi="children"}=Sn,mi=B.useMemo(()=>Qa.some(xa=>xa==null?void 0:xa[fi])?"nest":vt||ar&&ar.expandedRowRender?"row":null,[Qa]),$n={body:B.useRef()},ai=B.useMemo(()=>typeof yt=="function"?yt:xa=>xa==null?void 0:xa[yt],[yt]),[kn]=To(Qa,fi,ai),Qi={},Xi=function(xa,ea){let vs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var go,fs,Ss;const Es=Object.assign(Object.assign({},Qi),xa);vs&&((go=Qi.resetPagination)===null||go===void 0||go.call(Qi),!((fs=Es.pagination)===null||fs===void 0)&&fs.current&&(Es.pagination.current=1),Ye&&Ye.onChange&&Ye.onChange(1,(Ss=Es.pagination)===null||Ss===void 0?void 0:Ss.pageSize)),yr&&yr.scrollToFirstRowOnChange!==!1&&$n.body.current&&(0,ha.Z)(0,{getContainer:()=>$n.body.current}),Ar==null||Ar(Es.pagination,Es.filters,Es.sorter,{currentDataSource:ks(Na(Qa,Es.sorterStates,fi),Es.filterStates),action:ea})},qi=(xa,ea)=>{Xi({sorter:xa,sorterStates:ea},"sort",!1)},[Mo,Mi,ns,ro]=po({prefixCls:Gi,mergedColumns:Nn,onSorterChange:qi,sortDirections:Ur||["ascend","descend"],tableLocale:Ki,showSorterTooltip:wr}),Qo=B.useMemo(()=>Na(Qa,Mi,fi),[Qa,Mi]);Qi.sorter=ro(),Qi.sorterStates=Mi;const bn=(xa,ea)=>{Xi({filters:xa,filterStates:ea},"filter",!0)},[no,Cs,ga]=kl({prefixCls:Gi,locale:Ki,dropdownPrefixCls:As,mergedColumns:Nn,onFilterChange:bn,getPopupContainer:gr||Ri}),en=ks(Qo,Cs);Qi.filters=ga,Qi.filterStates=Cs;const fa=B.useMemo(()=>{const xa={};return Object.keys(ga).forEach(ea=>{ga[ea]!==null&&(xa[ea]=ga[ea])}),Object.assign(Object.assign({},ns),{filters:xa})},[ns,ga]),[so]=Go(fa),Va=(xa,ea)=>{Xi({pagination:Object.assign(Object.assign({},Qi.pagination),{current:xa,pageSize:ea})},"paginate")},[Si,bo]=jl(en.length,Va,Ye);Qi.pagination=Ye===!1?{}:Da(Si,Ye),Qi.resetPagination=bo;const Ko=B.useMemo(()=>{if(Ye===!1||!Si.pageSize)return en;const{current:xa=1,total:ea,pageSize:vs=ms}=Si;return en.length<ea?en.length>vs?en.slice((xa-1)*vs,xa*vs):en:en.slice((xa-1)*vs,xa*vs)},[!!Ye,en,Si&&Si.current,Si&&Si.pageSize,Si&&Si.total]),[Bs,gs]=Xs({prefixCls:Gi,data:en,pageData:Ko,getRowKey:ai,getRecordByKey:kn,expandType:mi,childrenColumnName:fi,locale:Ki,getPopupContainer:gr||Ri},et),is=(xa,ea,vs)=>{let go;return typeof _t=="function"?go=k()(_t(xa,ea,vs)):go=k()(_t),k()({[`${Gi}-row-selected`]:gs.has(ai(xa,ea))},go)};Sn.__PARENT_RENDER_ICON__=Sn.expandIcon,Sn.expandIcon=Sn.expandIcon||dn||ua(Ki),mi==="nest"&&Sn.expandIconColumnIndex===void 0?Sn.expandIconColumnIndex=et?1:0:Sn.expandIconColumnIndex>0&&et&&(Sn.expandIconColumnIndex-=1),typeof Sn.indentSize!="number"&&(Sn.indentSize=typeof gn=="number"?gn:15);const us=B.useCallback(xa=>so(Bs(no(Mo(xa)))),[Mo,no,Bs]);let bl,as;if(Ye!==!1&&(Si!=null&&Si.total)){let xa;Si.size?xa=Si.size:xa=ia==="small"||ia==="middle"?"small":void 0;const ea=fs=>B.createElement(eo.Z,Object.assign({},Si,{className:k()(`${Gi}-pagination ${Gi}-pagination-${fs}`,Si.className),size:xa})),vs=Ii==="rtl"?"left":"right",{position:go}=Si;if(go!==null&&Array.isArray(go)){const fs=go.find(_s=>_s.includes("top")),Ss=go.find(_s=>_s.includes("bottom")),Es=go.every(_s=>`${_s}`=="none");!fs&&!Ss&&!Es&&(as=ea(vs)),fs&&(bl=ea(fs.toLowerCase().replace("top",""))),Ss&&(as=ea(Ss.toLowerCase().replace("bottom","")))}else as=ea(vs)}let $s;typeof _r=="boolean"?$s={spinning:_r}:typeof _r=="object"&&($s=Object.assign({spinning:!0},_r));const[ds,Lo]=hn(Gi),[,wo]=(0,ba.Z)(),qs=k()(`${Gi}-wrapper`,vn==null?void 0:vn.className,{[`${Gi}-wrapper-rtl`]:Ii==="rtl"},Ue,Ke,Lo),Ol=Object.assign(Object.assign({},vn==null?void 0:vn.style),Xe),zl=Rr&&Rr.emptyText||(_a==null?void 0:_a("Table"))||B.createElement(na.Z,{componentName:"Table"}),wl=Zr?kc:Ps,BA={},Xc=B.useMemo(()=>{const{fontSize:xa,lineHeight:ea,padding:vs,paddingXS:go,paddingSM:fs}=wo,Ss=Math.floor(xa*ea);switch(ia){case"large":return vs*2+Ss;case"small":return go*2+Ss;default:return fs*2+Ss}},[wo,ia]);return Zr&&(BA.listItemHeight=Xc),ds(B.createElement("div",{ref:re,className:qs,style:Ol},B.createElement(vo.Z,Object.assign({spinning:!1},$s),bl,B.createElement(wl,Object.assign({},BA,di,{columns:Nn,direction:Ii,expandable:Sn,prefixCls:Gi,className:k()({[`${Gi}-middle`]:ia==="middle",[`${Gi}-small`]:ia==="small",[`${Gi}-bordered`]:Et,[`${Gi}-empty`]:Qa.length===0}),data:Ko,rowKey:ai,rowClassName:is,emptyText:zl,internalHooks:ue,internalRefs:$n,transformColumns:us})),as)))};var Or=B.forwardRef(Vt);const Jr=(T,re)=>{const Be=B.useRef(0);return Be.current+=1,B.createElement(Or,Object.assign({},T,{ref:re,_renderTimes:Be.current}))},gt=B.forwardRef(Jr);gt.SELECTION_COLUMN=Za,gt.EXPAND_COLUMN=pe,gt.SELECTION_ALL=to,gt.SELECTION_INVERT=Ro,gt.SELECTION_NONE=Ya,gt.Column=Yn,gt.ColumnGroup=Fi,gt.Summary=H;var Ct=gt,rr=Ct},99313:function(xn,Jt,w){"use strict";w.d(Jt,{default:function(){return Pi}});var pe=w(99267),ue=w(18785),U=w(62772),Ne=w(92310),te=w.n(Ne),Z=w(32855),B=w(74430),h=w(27247),E=w(11913),p=w(34666),j=w(43079),S=w(59301),F=w(49658),P=w(18929),R=w(77900),M=(0,S.createContext)(null),Y=S.forwardRef(function(nt,Ie){var ke=nt.prefixCls,Ee=nt.className,$t=nt.style,Nt=nt.id,Er=nt.active,sr=nt.tabKey,Kr=nt.children;return S.createElement("div",{id:Nt&&"".concat(Nt,"-panel-").concat(sr),role:"tabpanel",tabIndex:Er?0:-1,"aria-labelledby":Nt&&"".concat(Nt,"-tab-").concat(sr),"aria-hidden":!Er,style:$t,className:te()(ke,Er&&"".concat(ke,"-active"),Ee),ref:Ie},Kr)}),Q=Y,ce=["key","forceRender","style","className"];function W(nt){var Ie=nt.id,ke=nt.activeKey,Ee=nt.animated,$t=nt.tabPosition,Nt=nt.destroyInactiveTabPane,Er=S.useContext(M),sr=Er.prefixCls,Kr=Er.tabs,Wr=Ee.tabPane,tn="".concat(sr,"-tabpane");return S.createElement("div",{className:te()("".concat(sr,"-content-holder"))},S.createElement("div",{className:te()("".concat(sr,"-content"),"".concat(sr,"-content-").concat($t),(0,B.Z)({},"".concat(sr,"-content-animated"),Wr))},Kr.map(function(Vr){var jr=Vr.key,Yr=Vr.forceRender,mn=Vr.style,rn=Vr.className,Dn=(0,j.Z)(Vr,ce),Qn=jr===ke;return S.createElement(R.default,(0,Z.Z)({key:jr,visible:Qn,forceRender:Yr,removeOnLeave:!!Nt,leavedClassName:"".concat(tn,"-hidden")},Ee.tabPaneMotion),function(ui,Tn){var sn=ui.style,Qt=ui.className;return S.createElement(Q,(0,Z.Z)({},Dn,{prefixCls:tn,id:Ie,tabKey:jr,animated:Wr,active:Qn,style:(0,h.Z)((0,h.Z)({},mn),sn),className:te()(rn,Qt),ref:Tn}))})})))}var J=w(3300),V=w(29301),K=w(6089),se=w(8654),he={width:0,height:0,left:0,top:0};function Te(nt,Ie,ke){return(0,S.useMemo)(function(){for(var Ee,$t=new Map,Nt=Ie.get((Ee=nt[0])===null||Ee===void 0?void 0:Ee.key)||he,Er=Nt.left+Nt.width,sr=0;sr<nt.length;sr+=1){var Kr=nt[sr].key,Wr=Ie.get(Kr);if(!Wr){var tn;Wr=Ie.get((tn=nt[sr-1])===null||tn===void 0?void 0:tn.key)||he}var Vr=$t.get(Kr)||(0,h.Z)({},Wr);Vr.right=Er-Vr.left-Vr.width,$t.set(Kr,Vr)}return $t},[nt.map(function(Ee){return Ee.key}).join("_"),Ie,ke])}function xe(nt,Ie){var ke=S.useRef(nt),Ee=S.useState({}),$t=(0,E.Z)(Ee,2),Nt=$t[1];function Er(sr){var Kr=typeof sr=="function"?sr(ke.current):sr;Kr!==ke.current&&Ie(Kr,ke.current),ke.current=Kr,Nt({})}return[ke.current,Er]}var je=.1,X=.01,de=20,k=Math.pow(.995,de);function rt(nt,Ie){var ke=(0,S.useState)(),Ee=(0,E.Z)(ke,2),$t=Ee[0],Nt=Ee[1],Er=(0,S.useState)(0),sr=(0,E.Z)(Er,2),Kr=sr[0],Wr=sr[1],tn=(0,S.useState)(0),Vr=(0,E.Z)(tn,2),jr=Vr[0],Yr=Vr[1],mn=(0,S.useState)(),rn=(0,E.Z)(mn,2),Dn=rn[0],Qn=rn[1],ui=(0,S.useRef)();function Tn(Wt){var Cr=Wt.touches[0],Mr=Cr.screenX,Gr=Cr.screenY;Nt({x:Mr,y:Gr}),window.clearInterval(ui.current)}function sn(Wt){if($t){Wt.preventDefault();var Cr=Wt.touches[0],Mr=Cr.screenX,Gr=Cr.screenY;Nt({x:Mr,y:Gr});var Mn=Mr-$t.x,Pn=Gr-$t.y;Ie(Mn,Pn);var oi=Date.now();Wr(oi),Yr(oi-Kr),Qn({x:Mn,y:Pn})}}function Qt(){if($t&&(Nt(null),Qn(null),Dn)){var Wt=Dn.x/jr,Cr=Dn.y/jr,Mr=Math.abs(Wt),Gr=Math.abs(Cr);if(Math.max(Mr,Gr)<je)return;var Mn=Wt,Pn=Cr;ui.current=window.setInterval(function(){if(Math.abs(Mn)<X&&Math.abs(Pn)<X){window.clearInterval(ui.current);return}Mn*=k,Pn*=k,Ie(Mn*de,Pn*de)},de)}}var Zt=(0,S.useRef)();function qt(Wt){var Cr=Wt.deltaX,Mr=Wt.deltaY,Gr=0,Mn=Math.abs(Cr),Pn=Math.abs(Mr);Mn===Pn?Gr=Zt.current==="x"?Cr:Mr:Mn>Pn?(Gr=Cr,Zt.current="x"):(Gr=Mr,Zt.current="y"),Ie(-Gr,-Gr)&&Wt.preventDefault()}var mr=(0,S.useRef)(null);mr.current={onTouchStart:Tn,onTouchMove:sn,onTouchEnd:Qt,onWheel:qt},S.useEffect(function(){function Wt(Mn){mr.current.onTouchStart(Mn)}function Cr(Mn){mr.current.onTouchMove(Mn)}function Mr(Mn){mr.current.onTouchEnd(Mn)}function Gr(Mn){mr.current.onWheel(Mn)}return document.addEventListener("touchmove",Cr,{passive:!1}),document.addEventListener("touchend",Mr,{passive:!1}),nt.current.addEventListener("touchstart",Wt,{passive:!1}),nt.current.addEventListener("wheel",Gr),function(){document.removeEventListener("touchmove",Cr),document.removeEventListener("touchend",Mr)}},[])}var Oe=w(34280);function be(nt){var Ie=(0,S.useState)(0),ke=(0,E.Z)(Ie,2),Ee=ke[0],$t=ke[1],Nt=(0,S.useRef)(0),Er=(0,S.useRef)();return Er.current=nt,(0,Oe.o)(function(){var sr;(sr=Er.current)===null||sr===void 0||sr.call(Er)},[Ee]),function(){Nt.current===Ee&&(Nt.current+=1,$t(Nt.current))}}function He(nt){var Ie=(0,S.useRef)([]),ke=(0,S.useState)({}),Ee=(0,E.Z)(ke,2),$t=Ee[1],Nt=(0,S.useRef)(typeof nt=="function"?nt():nt),Er=be(function(){var Kr=Nt.current;Ie.current.forEach(function(Wr){Kr=Wr(Kr)}),Ie.current=[],Nt.current=Kr,$t({})});function sr(Kr){Ie.current.push(Kr),Er()}return[Nt.current,sr]}var ge={width:0,height:0,left:0,top:0,right:0};function De(nt,Ie,ke,Ee,$t,Nt,Er){var sr=Er.tabs,Kr=Er.tabPosition,Wr=Er.rtl,tn,Vr,jr;return["top","bottom"].includes(Kr)?(tn="width",Vr=Wr?"right":"left",jr=Math.abs(ke)):(tn="height",Vr="top",jr=-ke),(0,S.useMemo)(function(){if(!sr.length)return[0,0];for(var Yr=sr.length,mn=Yr,rn=0;rn<Yr;rn+=1){var Dn=nt.get(sr[rn].key)||ge;if(Dn[Vr]+Dn[tn]>jr+Ie){mn=rn-1;break}}for(var Qn=0,ui=Yr-1;ui>=0;ui-=1){var Tn=nt.get(sr[ui].key)||ge;if(Tn[Vr]<jr){Qn=ui+1;break}}return Qn>=mn?[0,0]:[Qn,mn]},[nt,Ie,Ee,$t,Nt,jr,Kr,sr.map(function(Yr){return Yr.key}).join("_"),Wr])}function fe(nt){var Ie;return nt instanceof Map?(Ie={},nt.forEach(function(ke,Ee){Ie[Ee]=ke})):Ie=nt,JSON.stringify(Ie)}var Se="TABS_DQ";function ct(nt){return String(nt).replace(/"/g,Se)}function dt(nt,Ie,ke,Ee){return!(!ke||Ee||nt===!1||nt===void 0&&(Ie===!1||Ie===null))}function at(nt,Ie){var ke=nt.prefixCls,Ee=nt.editable,$t=nt.locale,Nt=nt.style;return!Ee||Ee.showAdd===!1?null:S.createElement("button",{ref:Ie,type:"button",className:"".concat(ke,"-nav-add"),style:Nt,"aria-label":($t==null?void 0:$t.addAriaLabel)||"Add tab",onClick:function(sr){Ee.onEdit("add",{event:sr})}},Ee.addIcon||"+")}var st=S.forwardRef(at),It=S.forwardRef(function(nt,Ie){var ke=nt.position,Ee=nt.prefixCls,$t=nt.extra;if(!$t)return null;var Nt,Er={};return(0,p.Z)($t)==="object"&&!S.isValidElement($t)?Er=$t:Er.right=$t,ke==="right"&&(Nt=Er.right),ke==="left"&&(Nt=Er.left),Nt?S.createElement("div",{className:"".concat(Ee,"-extra-content"),ref:Ie},Nt):null}),Ut=It,Kt=w(31561),hr=w(15285),or=w(10228);function Sr(nt,Ie){var ke=nt.prefixCls,Ee=nt.id,$t=nt.tabs,Nt=nt.locale,Er=nt.mobile,sr=nt.moreIcon,Kr=sr===void 0?"More":sr,Wr=nt.moreTransitionName,tn=nt.style,Vr=nt.className,jr=nt.editable,Yr=nt.tabBarGutter,mn=nt.rtl,rn=nt.removeAriaLabel,Dn=nt.onTabClick,Qn=nt.getPopupContainer,ui=nt.popupClassName,Tn=(0,S.useState)(!1),sn=(0,E.Z)(Tn,2),Qt=sn[0],Zt=sn[1],qt=(0,S.useState)(null),mr=(0,E.Z)(qt,2),Wt=mr[0],Cr=mr[1],Mr="".concat(Ee,"-more-popup"),Gr="".concat(ke,"-dropdown"),Mn=Wt!==null?"".concat(Mr,"-").concat(Wt):null,Pn=Nt==null?void 0:Nt.dropdownAriaLabel;function oi(Ln,ri){Ln.preventDefault(),Ln.stopPropagation(),jr.onEdit("remove",{key:ri,event:Ln})}var ei=S.createElement(hr.ZP,{onClick:function(ri){var vi=ri.key,_i=ri.domEvent;Dn(vi,_i),Zt(!1)},prefixCls:"".concat(Gr,"-menu"),id:Mr,tabIndex:-1,role:"listbox","aria-activedescendant":Mn,selectedKeys:[Wt],"aria-label":Pn!==void 0?Pn:"expanded dropdown"},$t.map(function(Ln){var ri=Ln.closable,vi=Ln.disabled,_i=Ln.closeIcon,Xn=Ln.key,Bi=Ln.label,ra=dt(ri,_i,jr,vi);return S.createElement(hr.sN,{key:Xn,id:"".concat(Mr,"-").concat(Xn),role:"option","aria-controls":Ee&&"".concat(Ee,"-panel-").concat(Xn),disabled:vi},S.createElement("span",null,Bi),ra&&S.createElement("button",{type:"button","aria-label":rn||"remove",tabIndex:0,className:"".concat(Gr,"-menu-item-remove"),onClick:function(cn){cn.stopPropagation(),oi(cn,Xn)}},_i||jr.removeIcon||"\xD7"))}));function bi(Ln){for(var ri=$t.filter(function(ra){return!ra.disabled}),vi=ri.findIndex(function(ra){return ra.key===Wt})||0,_i=ri.length,Xn=0;Xn<_i;Xn+=1){vi=(vi+Ln+_i)%_i;var Bi=ri[vi];if(!Bi.disabled){Cr(Bi.key);return}}}function Jn(Ln){var ri=Ln.which;if(!Qt){[or.Z.DOWN,or.Z.SPACE,or.Z.ENTER].includes(ri)&&(Zt(!0),Ln.preventDefault());return}switch(ri){case or.Z.UP:bi(-1),Ln.preventDefault();break;case or.Z.DOWN:bi(1),Ln.preventDefault();break;case or.Z.ESC:Zt(!1);break;case or.Z.SPACE:case or.Z.ENTER:Wt!==null&&Dn(Wt,Ln);break}}(0,S.useEffect)(function(){var Ln=document.getElementById(Mn);Ln&&Ln.scrollIntoView&&Ln.scrollIntoView(!1)},[Wt]),(0,S.useEffect)(function(){Qt||Cr(null)},[Qt]);var Hn=(0,B.Z)({},mn?"marginRight":"marginLeft",Yr);$t.length||(Hn.visibility="hidden",Hn.order=1);var on=te()((0,B.Z)({},"".concat(Gr,"-rtl"),mn)),pi=Er?null:S.createElement(Kt.Z,{prefixCls:Gr,overlay:ei,trigger:["hover"],visible:$t.length?Qt:!1,transitionName:Wr,onVisibleChange:Zt,overlayClassName:te()(on,ui),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Qn},S.createElement("button",{type:"button",className:"".concat(ke,"-nav-more"),style:Hn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Mr,id:"".concat(Ee,"-more"),"aria-expanded":Qt,onKeyDown:Jn},Kr));return S.createElement("div",{className:te()("".concat(ke,"-nav-operations"),Vr),style:tn,ref:Ie},pi,S.createElement(st,{prefixCls:ke,locale:Nt,editable:jr}))}var ur=S.memo(S.forwardRef(Sr),function(nt,Ie){return Ie.tabMoving});function G(nt){var Ie,ke=nt.prefixCls,Ee=nt.id,$t=nt.active,Nt=nt.tab,Er=Nt.key,sr=Nt.label,Kr=Nt.disabled,Wr=Nt.closeIcon,tn=nt.closable,Vr=nt.renderWrapper,jr=nt.removeAriaLabel,Yr=nt.editable,mn=nt.onClick,rn=nt.onFocus,Dn=nt.style,Qn="".concat(ke,"-tab"),ui=dt(tn,Wr,Yr,Kr);function Tn(Zt){Kr||mn(Zt)}function sn(Zt){Zt.preventDefault(),Zt.stopPropagation(),Yr.onEdit("remove",{key:Er,event:Zt})}var Qt=S.createElement("div",{key:Er,"data-node-key":ct(Er),className:te()(Qn,(Ie={},(0,B.Z)(Ie,"".concat(Qn,"-with-remove"),ui),(0,B.Z)(Ie,"".concat(Qn,"-active"),$t),(0,B.Z)(Ie,"".concat(Qn,"-disabled"),Kr),Ie)),style:Dn,onClick:Tn},S.createElement("div",{role:"tab","aria-selected":$t,id:Ee&&"".concat(Ee,"-tab-").concat(Er),className:"".concat(Qn,"-btn"),"aria-controls":Ee&&"".concat(Ee,"-panel-").concat(Er),"aria-disabled":Kr,tabIndex:Kr?null:0,onClick:function(qt){qt.stopPropagation(),Tn(qt)},onKeyDown:function(qt){[or.Z.SPACE,or.Z.ENTER].includes(qt.which)&&(qt.preventDefault(),Tn(qt))},onFocus:rn},sr),ui&&S.createElement("button",{type:"button","aria-label":jr||"remove",tabIndex:0,className:"".concat(Qn,"-remove"),onClick:function(qt){qt.stopPropagation(),sn(qt)}},Wr||Yr.removeIcon||"\xD7"));return Vr?Vr(Qt):Qt}var wt=G,_=w(16089),f=function(Ie){var ke=Ie.activeTabOffset,Ee=Ie.horizontal,$t=Ie.rtl,Nt=Ie.indicatorSize,Er=(0,S.useState)(),sr=(0,E.Z)(Er,2),Kr=sr[0],Wr=sr[1],tn=(0,S.useRef)(),Vr=function(mn){return typeof Nt=="function"?Nt(mn):typeof Nt=="number"?Nt:mn};function jr(){_.Z.cancel(tn.current)}return(0,S.useEffect)(function(){var Yr={};return ke&&(Ee?($t?(Yr.right=ke.right+ke.width/2,Yr.transform="translateX(50%)"):(Yr.left=ke.left+ke.width/2,Yr.transform="translateX(-50%)"),Yr.width=Vr(ke.width)):(Yr.top=ke.top+ke.height/2,Yr.transform="translateY(-50%)",Yr.height=Vr(ke.height))),jr(),tn.current=(0,_.Z)(function(){Wr(Yr)}),jr},[ke,Ee,$t,Nt]),{style:Kr}},u=f,x=function(Ie){var ke=Ie.current||{},Ee=ke.offsetWidth,$t=Ee===void 0?0:Ee,Nt=ke.offsetHeight,Er=Nt===void 0?0:Nt;return[$t,Er]},ee=function(Ie,ke){return Ie[ke?0:1]};function Ce(nt,Ie){var ke,Ee=S.useContext(M),$t=Ee.prefixCls,Nt=Ee.tabs,Er=nt.className,sr=nt.style,Kr=nt.id,Wr=nt.animated,tn=nt.activeKey,Vr=nt.rtl,jr=nt.extra,Yr=nt.editable,mn=nt.locale,rn=nt.tabPosition,Dn=nt.tabBarGutter,Qn=nt.children,ui=nt.onTabClick,Tn=nt.onTabScroll,sn=nt.indicatorSize,Qt=(0,S.useRef)(),Zt=(0,S.useRef)(),qt=(0,S.useRef)(),mr=(0,S.useRef)(),Wt=(0,S.useRef)(),Cr=(0,S.useRef)(),Mr=(0,S.useRef)(),Gr=rn==="top"||rn==="bottom",Mn=xe(0,function(wa,pa){Gr&&Tn&&Tn({direction:wa>pa?"left":"right"})}),Pn=(0,E.Z)(Mn,2),oi=Pn[0],ei=Pn[1],bi=xe(0,function(wa,pa){!Gr&&Tn&&Tn({direction:wa>pa?"top":"bottom"})}),Jn=(0,E.Z)(bi,2),Hn=Jn[0],on=Jn[1],pi=(0,S.useState)([0,0]),Ln=(0,E.Z)(pi,2),ri=Ln[0],vi=Ln[1],_i=(0,S.useState)([0,0]),Xn=(0,E.Z)(_i,2),Bi=Xn[0],ra=Xn[1],ii=(0,S.useState)([0,0]),cn=(0,E.Z)(ii,2),nn=cn[0],Un=cn[1],wn=(0,S.useState)([0,0]),jn=(0,E.Z)(wn,2),li=jn[0],wi=jn[1],Aa=He(new Map),Yi=(0,E.Z)(Aa,2),ao=Yi[0],Yn=Yi[1],On=Te(Nt,ao,Bi[0]),Fi=ee(ri,Gr),xi=ee(Bi,Gr),ha=ee(nn,Gr),Oo=ee(li,Gr),na=Fi<xi+ha,Zi=na?Fi-Oo:Fi-ha,ja="".concat($t,"-nav-operations-hidden"),Ma=0,eo=0;Gr&&Vr?(Ma=0,eo=Math.max(0,xi-Zi)):(Ma=Math.min(0,Zi-xi),eo=0);function vo(wa){return wa<Ma?Ma:wa>eo?eo:wa}var ba=(0,S.useRef)(),Ai=(0,S.useState)(),ua=(0,E.Z)(Ai,2),Do=ua[0],uo=ua[1];function Xa(){uo(Date.now())}function Di(){window.clearTimeout(ba.current)}rt(mr,function(wa,pa){function Oa(Ja,oo){Ja(function(Ta){var ka=vo(Ta+oo);return ka})}return na?(Gr?Oa(ei,wa):Oa(on,pa),Di(),Xa(),!0):!1}),(0,S.useEffect)(function(){return Di(),Do&&(ba.current=window.setTimeout(function(){uo(0)},100)),Di},[Do]);var Po=De(On,Zi,Gr?oi:Hn,xi,ha,Oo,(0,h.Z)((0,h.Z)({},nt),{},{tabs:Nt})),fo=(0,E.Z)(Po,2),il=fo[0],$o=fo[1],Hs=(0,K.Z)(function(){var wa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tn,pa=On.get(wa)||{width:0,height:0,left:0,right:0,top:0};if(Gr){var Oa=oi;Vr?pa.right<oi?Oa=pa.right:pa.right+pa.width>oi+Zi&&(Oa=pa.right+pa.width-Zi):pa.left<-oi?Oa=-pa.left:pa.left+pa.width>-oi+Zi&&(Oa=-(pa.left+pa.width-Zi)),on(0),ei(vo(Oa))}else{var Ja=Hn;pa.top<-Hn?Ja=-pa.top:pa.top+pa.height>-Hn+Zi&&(Ja=-(pa.top+pa.height-Zi)),ei(0),on(vo(Ja))}}),Zo={};rn==="top"||rn==="bottom"?Zo[Vr?"marginRight":"marginLeft"]=Dn:Zo.marginTop=Dn;var vl=Nt.map(function(wa,pa){var Oa=wa.key;return S.createElement(wt,{id:Kr,prefixCls:$t,key:Oa,tab:wa,style:pa===0?void 0:Zo,closable:wa.closable,editable:Yr,active:Oa===tn,renderWrapper:Qn,removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,onClick:function(oo){ui(Oa,oo)},onFocus:function(){Hs(Oa),Xa(),mr.current&&(Vr||(mr.current.scrollLeft=0),mr.current.scrollTop=0)}})}),za=function(){return Yn(function(){var pa=new Map;return Nt.forEach(function(Oa){var Ja,oo=Oa.key,Ta=(Ja=Wt.current)===null||Ja===void 0?void 0:Ja.querySelector('[data-node-key="'.concat(ct(oo),'"]'));Ta&&pa.set(oo,{width:Ta.offsetWidth,height:Ta.offsetHeight,left:Ta.offsetLeft,top:Ta.offsetTop})}),pa})};(0,S.useEffect)(function(){za()},[Nt.map(function(wa){return wa.key}).join("_")]);var Ra=be(function(){var wa=x(Qt),pa=x(Zt),Oa=x(qt);vi([wa[0]-pa[0]-Oa[0],wa[1]-pa[1]-Oa[1]]);var Ja=x(Mr);Un(Ja);var oo=x(Cr);wi(oo);var Ta=x(Wt);ra([Ta[0]-Ja[0],Ta[1]-Ja[1]]),za()}),Ea=Nt.slice(0,il),js=Nt.slice($o+1),yi=[].concat((0,J.Z)(Ea),(0,J.Z)(js)),Vi=On.get(tn),Oi=u({activeTabOffset:Vi,horizontal:Gr,rtl:Vr,indicatorSize:sn}),Wi=Oi.style;(0,S.useEffect)(function(){Hs()},[tn,Ma,eo,fe(Vi),fe(On),Gr]),(0,S.useEffect)(function(){Ra()},[Vr]);var da=!!yi.length,La="".concat($t,"-nav-wrap"),Vo,_o,Bo,$a;return Gr?Vr?(_o=oi>0,Vo=oi!==eo):(Vo=oi<0,_o=oi!==Ma):(Bo=Hn<0,$a=Hn!==Ma),S.createElement(V.Z,{onResize:Ra},S.createElement("div",{ref:(0,se.x1)(Ie,Qt),role:"tablist",className:te()("".concat($t,"-nav"),Er),style:sr,onKeyDown:function(){Xa()}},S.createElement(Ut,{ref:Zt,position:"left",extra:jr,prefixCls:$t}),S.createElement(V.Z,{onResize:Ra},S.createElement("div",{className:te()(La,(ke={},(0,B.Z)(ke,"".concat(La,"-ping-left"),Vo),(0,B.Z)(ke,"".concat(La,"-ping-right"),_o),(0,B.Z)(ke,"".concat(La,"-ping-top"),Bo),(0,B.Z)(ke,"".concat(La,"-ping-bottom"),$a),ke)),ref:mr},S.createElement(V.Z,{onResize:Ra},S.createElement("div",{ref:Wt,className:"".concat($t,"-nav-list"),style:{transform:"translate(".concat(oi,"px, ").concat(Hn,"px)"),transition:Do?"none":void 0}},vl,S.createElement(st,{ref:Mr,prefixCls:$t,locale:mn,editable:Yr,style:(0,h.Z)((0,h.Z)({},vl.length===0?void 0:Zo),{},{visibility:da?"hidden":null})}),S.createElement("div",{className:te()("".concat($t,"-ink-bar"),(0,B.Z)({},"".concat($t,"-ink-bar-animated"),Wr.inkBar)),style:Wi}))))),S.createElement(ur,(0,Z.Z)({},nt,{removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,ref:Cr,prefixCls:$t,tabs:yi,className:!da&&ja,tabMoving:!!Do})),S.createElement(Ut,{ref:qt,position:"right",extra:jr,prefixCls:$t})))}var H=S.forwardRef(Ce),ne=["renderTabBar"],$e=["label","key"];function we(nt){var Ie=nt.renderTabBar,ke=(0,j.Z)(nt,ne),Ee=S.useContext(M),$t=Ee.tabs;if(Ie){var Nt=(0,h.Z)((0,h.Z)({},ke),{},{panes:$t.map(function(Er){var sr=Er.label,Kr=Er.key,Wr=(0,j.Z)(Er,$e);return S.createElement(Q,(0,Z.Z)({tab:sr,key:Kr,tabKey:Kr},Wr))})});return Ie(Nt,H)}return S.createElement(H,ke)}var ve=w(48736);function qe(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ie;return nt===!1?Ie={inkBar:!1,tabPane:!1}:nt===!0?Ie={inkBar:!0,tabPane:!1}:Ie=(0,h.Z)({inkBar:!0},(0,p.Z)(nt)==="object"?nt:{}),Ie.tabPaneMotion&&Ie.tabPane===void 0&&(Ie.tabPane=!0),!Ie.tabPaneMotion&&Ie.tabPane&&(Ie.tabPane=!1),Ie}var St=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],me=0;function ft(nt,Ie){var ke,Ee=nt.id,$t=nt.prefixCls,Nt=$t===void 0?"rc-tabs":$t,Er=nt.className,sr=nt.items,Kr=nt.direction,Wr=nt.activeKey,tn=nt.defaultActiveKey,Vr=nt.editable,jr=nt.animated,Yr=nt.tabPosition,mn=Yr===void 0?"top":Yr,rn=nt.tabBarGutter,Dn=nt.tabBarStyle,Qn=nt.tabBarExtraContent,ui=nt.locale,Tn=nt.moreIcon,sn=nt.moreTransitionName,Qt=nt.destroyInactiveTabPane,Zt=nt.renderTabBar,qt=nt.onChange,mr=nt.onTabClick,Wt=nt.onTabScroll,Cr=nt.getPopupContainer,Mr=nt.popupClassName,Gr=nt.indicatorSize,Mn=(0,j.Z)(nt,St),Pn=S.useMemo(function(){return(sr||[]).filter(function(wi){return wi&&(0,p.Z)(wi)==="object"&&"key"in wi})},[sr]),oi=Kr==="rtl",ei=qe(jr),bi=(0,S.useState)(!1),Jn=(0,E.Z)(bi,2),Hn=Jn[0],on=Jn[1];(0,S.useEffect)(function(){on((0,F.Z)())},[]);var pi=(0,P.Z)(function(){var wi;return(wi=Pn[0])===null||wi===void 0?void 0:wi.key},{value:Wr,defaultValue:tn}),Ln=(0,E.Z)(pi,2),ri=Ln[0],vi=Ln[1],_i=(0,S.useState)(function(){return Pn.findIndex(function(wi){return wi.key===ri})}),Xn=(0,E.Z)(_i,2),Bi=Xn[0],ra=Xn[1];(0,S.useEffect)(function(){var wi=Pn.findIndex(function(Yi){return Yi.key===ri});if(wi===-1){var Aa;wi=Math.max(0,Math.min(Bi,Pn.length-1)),vi((Aa=Pn[wi])===null||Aa===void 0?void 0:Aa.key)}ra(wi)},[Pn.map(function(wi){return wi.key}).join("_"),ri,Bi]);var ii=(0,P.Z)(null,{value:Ee}),cn=(0,E.Z)(ii,2),nn=cn[0],Un=cn[1];(0,S.useEffect)(function(){Ee||(Un("rc-tabs-".concat(me)),me+=1)},[]);function wn(wi,Aa){mr==null||mr(wi,Aa);var Yi=wi!==ri;vi(wi),Yi&&(qt==null||qt(wi))}var jn={id:nn,activeKey:ri,animated:ei,tabPosition:mn,rtl:oi,mobile:Hn},li=(0,h.Z)((0,h.Z)({},jn),{},{editable:Vr,locale:ui,moreIcon:Tn,moreTransitionName:sn,tabBarGutter:rn,onTabClick:wn,onTabScroll:Wt,extra:Qn,style:Dn,panes:null,getPopupContainer:Cr,popupClassName:Mr,indicatorSize:Gr});return S.createElement(M.Provider,{value:{tabs:Pn,prefixCls:Nt}},S.createElement("div",(0,Z.Z)({ref:Ie,id:Ee,className:te()(Nt,"".concat(Nt,"-").concat(mn),(ke={},(0,B.Z)(ke,"".concat(Nt,"-mobile"),Hn),(0,B.Z)(ke,"".concat(Nt,"-editable"),Vr),(0,B.Z)(ke,"".concat(Nt,"-rtl"),oi),ke),Er)},Mn),S.createElement(we,(0,Z.Z)({},li,{renderTabBar:Zt})),S.createElement(W,(0,Z.Z)({destroyInactiveTabPane:Qt},jn,{animated:ei}))))}var lt=S.forwardRef(ft),Pe=lt,Le=Pe,pt=w(36355),zt=w(19716),er=()=>null,Pr=w(62892);const pr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function kr(nt){let Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ke;return Ie===!1?ke={inkBar:!1,tabPane:!1}:Ie===!0?ke={inkBar:!0,tabPane:!0}:ke=Object.assign({inkBar:!0},typeof Ie=="object"?Ie:{}),ke.tabPane&&(ke.tabPaneMotion=Object.assign(Object.assign({},pr),{motionName:(0,Pr.m)(nt,"switch")})),ke}var Dr=w(11592),vr=function(nt,Ie){var ke={};for(var Ee in nt)Object.prototype.hasOwnProperty.call(nt,Ee)&&Ie.indexOf(Ee)<0&&(ke[Ee]=nt[Ee]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ee=Object.getOwnPropertySymbols(nt);$t<Ee.length;$t++)Ie.indexOf(Ee[$t])<0&&Object.prototype.propertyIsEnumerable.call(nt,Ee[$t])&&(ke[Ee[$t]]=nt[Ee[$t]]);return ke};function dr(nt){return nt.filter(Ie=>Ie)}function $r(nt,Ie){if(nt)return nt;const ke=(0,Dr.Z)(Ie).map(Ee=>{if(S.isValidElement(Ee)){const{key:$t,props:Nt}=Ee,Er=Nt||{},{tab:sr}=Er,Kr=vr(Er,["tab"]);return Object.assign(Object.assign({key:String($t)},Kr),{label:sr})}return null});return dr(ke)}var un=w(17313),_n=w(83116),qr=w(37613),Bn=w(13826),Ir=nt=>{const{componentCls:Ie,motionDurationSlow:ke}=nt;return[{[Ie]:{[`${Ie}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${ke}`}}}}},[(0,Bn.oN)(nt,"slide-up"),(0,Bn.oN)(nt,"slide-down")]]};const qn=nt=>{const{componentCls:Ie,tabsCardPadding:ke,cardBg:Ee,cardGutter:$t,colorBorderSecondary:Nt,itemSelectedColor:Er}=nt;return{[`${Ie}-card`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-tab`]:{margin:0,padding:ke,background:Ee,border:`${nt.lineWidth}px ${nt.lineType} ${Nt}`,transition:`all ${nt.motionDurationSlow} ${nt.motionEaseInOut}`},[`${Ie}-tab-active`]:{color:Er,background:nt.colorBgContainer},[`${Ie}-ink-bar`]:{visibility:"hidden"}},[`&${Ie}-top, &${Ie}-bottom`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-tab + ${Ie}-tab`]:{marginLeft:{_skip_check_:!0,value:`${$t}px`}}}},[`&${Ie}-top`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-tab`]:{borderRadius:`${nt.borderRadiusLG}px ${nt.borderRadiusLG}px 0 0`},[`${Ie}-tab-active`]:{borderBottomColor:nt.colorBgContainer}}},[`&${Ie}-bottom`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-tab`]:{borderRadius:`0 0 ${nt.borderRadiusLG}px ${nt.borderRadiusLG}px`},[`${Ie}-tab-active`]:{borderTopColor:nt.colorBgContainer}}},[`&${Ie}-left, &${Ie}-right`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-tab + ${Ie}-tab`]:{marginTop:`${$t}px`}}},[`&${Ie}-left`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-tab`]:{borderRadius:{_skip_check_:!0,value:`${nt.borderRadiusLG}px 0 0 ${nt.borderRadiusLG}px`}},[`${Ie}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:nt.colorBgContainer}}}},[`&${Ie}-right`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${nt.borderRadiusLG}px ${nt.borderRadiusLG}px 0`}},[`${Ie}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:nt.colorBgContainer}}}}}}},Ti=nt=>{const{componentCls:Ie,itemHoverColor:ke,dropdownEdgeChildVerticalPadding:Ee}=nt;return{[`${Ie}-dropdown`]:Object.assign(Object.assign({},(0,un.Wf)(nt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:nt.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ie}-dropdown-menu`]:{maxHeight:nt.tabsDropdownHeight,margin:0,padding:`${Ee}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:nt.colorBgContainer,backgroundClip:"padding-box",borderRadius:nt.borderRadiusLG,outline:"none",boxShadow:nt.boxShadowSecondary,"&-item":Object.assign(Object.assign({},un.vS),{display:"flex",alignItems:"center",minWidth:nt.tabsDropdownWidth,margin:0,padding:`${nt.paddingXXS}px ${nt.paddingSM}px`,color:nt.colorText,fontWeight:"normal",fontSize:nt.fontSize,lineHeight:nt.lineHeight,cursor:"pointer",transition:`all ${nt.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:nt.marginSM},color:nt.colorTextDescription,fontSize:nt.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:ke}},"&:hover":{background:nt.controlItemBgHover},"&-disabled":{"&, &:hover":{color:nt.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ci=nt=>{const{componentCls:Ie,margin:ke,colorBorderSecondary:Ee,horizontalMargin:$t,verticalItemPadding:Nt,verticalItemMargin:Er}=nt;return{[`${Ie}-top, ${Ie}-bottom`]:{flexDirection:"column",[`> ${Ie}-nav, > div > ${Ie}-nav`]:{margin:$t,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${nt.lineWidth}px ${nt.lineType} ${Ee}`,content:"''"},[`${Ie}-ink-bar`]:{height:nt.lineWidthBold,"&-animated":{transition:`width ${nt.motionDurationSlow}, left ${nt.motionDurationSlow},
right ${nt.motionDurationSlow}`}},[`${Ie}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:nt.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:nt.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:nt.boxShadowTabsOverflowRight},[`&${Ie}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ie}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ie}-top`]:{[`> ${Ie}-nav,
> div > ${Ie}-nav`]:{"&::before":{bottom:0},[`${Ie}-ink-bar`]:{bottom:0}}},[`${Ie}-bottom`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{order:1,marginTop:`${ke}px`,marginBottom:0,"&::before":{top:0},[`${Ie}-ink-bar`]:{top:0}},[`> ${Ie}-content-holder, > div > ${Ie}-content-holder`]:{order:0}},[`${Ie}-left, ${Ie}-right`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{flexDirection:"column",minWidth:nt.controlHeight*1.25,[`${Ie}-tab`]:{padding:Nt,textAlign:"center"},[`${Ie}-tab + ${Ie}-tab`]:{margin:Er},[`${Ie}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:nt.controlHeight},"&::before":{top:0,boxShadow:nt.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:nt.boxShadowTabsOverflowBottom},[`&${Ie}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ie}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ie}-ink-bar`]:{width:nt.lineWidthBold,"&-animated":{transition:`height ${nt.motionDurationSlow}, top ${nt.motionDurationSlow}`}},[`${Ie}-nav-list, ${Ie}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ie}-left`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ie}-content-holder, > div > ${Ie}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${nt.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${nt.lineWidth}px ${nt.lineType} ${nt.colorBorder}`},[`> ${Ie}-content > ${Ie}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:nt.paddingLG}}}},[`${Ie}-right`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{order:1,[`${Ie}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ie}-content-holder, > div > ${Ie}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-nt.lineWidth},borderRight:{_skip_check_:!0,value:`${nt.lineWidth}px ${nt.lineType} ${nt.colorBorder}`},[`> ${Ie}-content > ${Ie}-tabpane`]:{paddingRight:{_skip_check_:!0,value:nt.paddingLG}}}}}},Ui=nt=>{const{componentCls:Ie,cardPaddingSM:ke,cardPaddingLG:Ee,horizontalItemPaddingSM:$t,horizontalItemPaddingLG:Nt}=nt;return{[Ie]:{"&-small":{[`> ${Ie}-nav`]:{[`${Ie}-tab`]:{padding:$t,fontSize:nt.titleFontSizeSM}}},"&-large":{[`> ${Ie}-nav`]:{[`${Ie}-tab`]:{padding:Nt,fontSize:nt.titleFontSizeLG}}}},[`${Ie}-card`]:{[`&${Ie}-small`]:{[`> ${Ie}-nav`]:{[`${Ie}-tab`]:{padding:ke}},[`&${Ie}-bottom`]:{[`> ${Ie}-nav ${Ie}-tab`]:{borderRadius:`0 0 ${nt.borderRadius}px ${nt.borderRadius}px`}},[`&${Ie}-top`]:{[`> ${Ie}-nav ${Ie}-tab`]:{borderRadius:`${nt.borderRadius}px ${nt.borderRadius}px 0 0`}},[`&${Ie}-right`]:{[`> ${Ie}-nav ${Ie}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${nt.borderRadius}px ${nt.borderRadius}px 0`}}},[`&${Ie}-left`]:{[`> ${Ie}-nav ${Ie}-tab`]:{borderRadius:{_skip_check_:!0,value:`${nt.borderRadius}px 0 0 ${nt.borderRadius}px`}}}},[`&${Ie}-large`]:{[`> ${Ie}-nav`]:{[`${Ie}-tab`]:{padding:Ee}}}}}},Ei=nt=>{const{componentCls:Ie,itemActiveColor:ke,itemHoverColor:Ee,iconCls:$t,tabsHorizontalItemMargin:Nt,horizontalItemPadding:Er,itemSelectedColor:sr,itemColor:Kr}=nt,Wr=`${Ie}-tab`;return{[Wr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Er,fontSize:nt.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Kr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:ke}},(0,un.Qy)(nt)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-nt.marginXXS},marginLeft:{_skip_check_:!0,value:nt.marginXS},color:nt.colorTextDescription,fontSize:nt.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${nt.motionDurationSlow}`,"&:hover":{color:nt.colorTextHeading}},"&:hover":{color:Ee},[`&${Wr}-active ${Wr}-btn`]:{color:sr,textShadow:nt.tabsActiveTextShadow},[`&${Wr}-disabled`]:{color:nt.colorTextDisabled,cursor:"not-allowed"},[`&${Wr}-disabled ${Wr}-btn, &${Wr}-disabled ${Ie}-remove`]:{"&:focus, &:active":{color:nt.colorTextDisabled}},[`& ${Wr}-remove ${$t}`]:{margin:0},[$t]:{marginRight:{_skip_check_:!0,value:nt.marginSM}}},[`${Wr} + ${Wr}`]:{margin:{_skip_check_:!0,value:Nt}}}},$i=nt=>{const{componentCls:Ie,tabsHorizontalItemMarginRTL:ke,iconCls:Ee,cardGutter:$t}=nt;return{[`${Ie}-rtl`]:{direction:"rtl",[`${Ie}-nav`]:{[`${Ie}-tab`]:{margin:{_skip_check_:!0,value:ke},[`${Ie}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ee]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${nt.marginSM}px`}},[`${Ie}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${nt.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${nt.marginXXS}px`},[Ee]:{margin:0}}}},[`&${Ie}-left`]:{[`> ${Ie}-nav`]:{order:1},[`> ${Ie}-content-holder`]:{order:0}},[`&${Ie}-right`]:{[`> ${Ie}-nav`]:{order:0},[`> ${Ie}-content-holder`]:{order:1}},[`&${Ie}-card${Ie}-top, &${Ie}-card${Ie}-bottom`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-tab + ${Ie}-tab`]:{marginRight:{_skip_check_:!0,value:$t},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ie}-dropdown-rtl`]:{direction:"rtl"},[`${Ie}-menu-item`]:{[`${Ie}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ha=nt=>{const{componentCls:Ie,tabsCardPadding:ke,cardHeight:Ee,cardGutter:$t,itemHoverColor:Nt,itemActiveColor:Er,colorBorderSecondary:sr}=nt;return{[Ie]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,un.Wf)(nt)),{display:"flex",[`> ${Ie}-nav, > div > ${Ie}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ie}-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 ${nt.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ie}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${nt.motionDurationSlow}`},[`${Ie}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ie}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ie}-nav-more`]:{position:"relative",padding:ke,background:"transparent",border:0,color:nt.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:nt.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ie}-nav-add`]:Object.assign({minWidth:Ee,marginLeft:{_skip_check_:!0,value:$t},padding:`0 ${nt.paddingXS}px`,background:"transparent",border:`${nt.lineWidth}px ${nt.lineType} ${sr}`,borderRadius:`${nt.borderRadiusLG}px ${nt.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:nt.colorText,transition:`all ${nt.motionDurationSlow} ${nt.motionEaseInOut}`,"&:hover":{color:Nt},"&:active, &:focus:not(:focus-visible)":{color:Er}},(0,un.Qy)(nt))},[`${Ie}-extra-content`]:{flex:"none"},[`${Ie}-ink-bar`]:{position:"absolute",background:nt.inkBarColor,pointerEvents:"none"}}),Ei(nt)),{[`${Ie}-content`]:{position:"relative",width:"100%"},[`${Ie}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ie}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ie}-centered`]:{[`> ${Ie}-nav, > div > ${Ie}-nav`]:{[`${Ie}-nav-wrap`]:{[`&:not([class*='${Ie}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ji=(0,_n.Z)("Tabs",nt=>{const Ie=(0,qr.TS)(nt,{tabsCardPadding:nt.cardPadding||`${(nt.cardHeight-Math.round(nt.fontSize*nt.lineHeight))/2-nt.lineWidth}px ${nt.padding}px`,dropdownEdgeChildVerticalPadding:nt.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${nt.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${nt.horizontalItemGutter}px`});return[Ui(Ie),$i(Ie),ci(Ie),Ti(Ie),qn(Ie),Ha(Ie),Ir(Ie)]},nt=>{const Ie=nt.controlHeightLG;return{zIndexPopup:nt.zIndexPopupBase+50,cardBg:nt.colorFillAlter,cardHeight:Ie,cardPadding:"",cardPaddingSM:`${nt.paddingXXS*1.5}px ${nt.padding}px`,cardPaddingLG:`${nt.paddingXS}px ${nt.padding}px ${nt.paddingXXS*1.5}px`,titleFontSize:nt.fontSize,titleFontSizeLG:nt.fontSizeLG,titleFontSizeSM:nt.fontSize,inkBarColor:nt.colorPrimary,horizontalMargin:`0 0 ${nt.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${nt.paddingSM}px 0`,horizontalItemPaddingSM:`${nt.paddingXS}px 0`,horizontalItemPaddingLG:`${nt.padding}px 0`,verticalItemPadding:`${nt.paddingXS}px ${nt.paddingLG}px`,verticalItemMargin:`${nt.margin}px 0 0 0`,itemColor:nt.colorText,itemSelectedColor:nt.colorPrimary,itemHoverColor:nt.colorPrimaryHover,itemActiveColor:nt.colorPrimaryActive,cardGutter:nt.marginXXS/2}}),gi=function(nt,Ie){var ke={};for(var Ee in nt)Object.prototype.hasOwnProperty.call(nt,Ee)&&Ie.indexOf(Ee)<0&&(ke[Ee]=nt[Ee]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ee=Object.getOwnPropertySymbols(nt);$t<Ee.length;$t++)Ie.indexOf(Ee[$t])<0&&Object.prototype.propertyIsEnumerable.call(nt,Ee[$t])&&(ke[Ee[$t]]=nt[Ee[$t]]);return ke};const ki=nt=>{const{type:Ie,className:ke,rootClassName:Ee,size:$t,onEdit:Nt,hideAdd:Er,centered:sr,addIcon:Kr,popupClassName:Wr,children:tn,items:Vr,animated:jr,style:Yr,indicatorSize:mn}=nt,rn=gi(nt,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Dn,moreIcon:Qn=S.createElement(ue.Z,null)}=rn,{direction:ui,tabs:Tn,getPrefixCls:sn,getPopupContainer:Qt}=S.useContext(pt.E_),Zt=sn("tabs",Dn),[qt,mr]=Ji(Zt);let Wt;Ie==="editable-card"&&(Wt={onEdit:(oi,ei)=>{let{key:bi,event:Jn}=ei;Nt==null||Nt(oi==="add"?Jn:bi,oi)},removeIcon:S.createElement(pe.Z,null),addIcon:Kr||S.createElement(U.Z,null),showAdd:Er!==!0});const Cr=sn(),Mr=$r(Vr,tn),Gr=kr(Zt,jr),Mn=(0,zt.Z)($t),Pn=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),Yr);return qt(S.createElement(Le,Object.assign({direction:ui,getPopupContainer:Qt,moreTransitionName:`${Cr}-slide-up`},rn,{items:Mr,className:te()({[`${Zt}-${Mn}`]:Mn,[`${Zt}-card`]:["card","editable-card"].includes(Ie),[`${Zt}-editable-card`]:Ie==="editable-card",[`${Zt}-centered`]:sr},Tn==null?void 0:Tn.className,ke,Ee,mr),popupClassName:te()(Wr,mr),style:Pn,editable:Wt,moreIcon:Qn,prefixCls:Zt,animated:Gr,indicatorSize:mn!=null?mn:Tn==null?void 0:Tn.indicatorSize})))};ki.TabPane=er;var Pi=ki},17574:function(xn,Jt,w){"use strict";w.d(Jt,{default:function(){return De}});var pe=w(54030),ue=w(3300),U=w(52671),Ne=w(8657),te=w(32855),Z=w(59301),B={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"},h=B,E=w(7657),p=function(Se,ct){return Z.createElement(E.Z,(0,te.Z)({},Se,{ref:ct,icon:h}))},j=Z.forwardRef(p),S=j,F=w(92310),P=w.n(F),R=w(35654),M=w(71430),Y=w(36355),Q=w(56082),ce=w(62892),W=w(20648);const J=4;function V(fe){const{dropPosition:Se,dropLevelOffset:ct,prefixCls:dt,indent:at,direction:st="ltr"}=fe,It=st==="ltr"?"left":"right",Ut=st==="ltr"?"right":"left",Kt={[It]:-ct*at+J,[Ut]:0};switch(Se){case-1:Kt.top=-3;break;case 1:Kt.bottom=-3;break;default:Kt.bottom=-3,Kt[It]=at+J;break}return Z.createElement("div",{style:Kt,className:`${dt}-drop-indicator`})}var K=w(71997),he=Z.forwardRef((fe,Se)=>{const{getPrefixCls:ct,direction:dt,virtual:at,tree:st}=Z.useContext(Y.E_),{prefixCls:It,className:Ut,showIcon:Kt=!1,showLine:hr,switcherIcon:or,blockNode:Sr=!1,children:ur,checkable:G=!1,selectable:wt=!0,draggable:_,motion:f,style:u}=fe,x=ct("tree",It),ee=ct(),Ce=f!=null?f:Object.assign(Object.assign({},(0,ce.Z)(ee)),{motionAppear:!1}),H=Object.assign(Object.assign({},fe),{checkable:G,selectable:wt,showIcon:Kt,motion:Ce,blockNode:Sr,showLine:!!hr,dropIndicatorRender:V}),[ne,$e]=(0,W.ZP)(x),we=Z.useMemo(()=>{if(!_)return!1;let qe={};switch(typeof _){case"function":qe.nodeDraggable=_;break;case"object":qe=Object.assign({},_);break;default:break}return qe.icon!==!1&&(qe.icon=qe.icon||Z.createElement(Q.Z,null)),qe},[_]),ve=qe=>Z.createElement(K.Z,{prefixCls:x,switcherIcon:or,treeNodeProps:qe,showLine:hr});return ne(Z.createElement(pe.Z,Object.assign({itemHeight:20,ref:Se,virtual:at},H,{style:Object.assign(Object.assign({},st==null?void 0:st.style),u),prefixCls:x,className:P()({[`${x}-icon-hide`]:!Kt,[`${x}-block-node`]:Sr,[`${x}-unselectable`]:!wt,[`${x}-rtl`]:dt==="rtl"},st==null?void 0:st.className,Ut,$e),direction:dt,checkable:G&&Z.createElement("span",{className:`${x}-checkbox-inner`}),selectable:wt,switcherIcon:ve,draggable:we}),ur))}),Te;(function(fe){fe[fe.None=0]="None",fe[fe.Start=1]="Start",fe[fe.End=2]="End"})(Te||(Te={}));function xe(fe,Se){function ct(dt){const{key:at,children:st}=dt;Se(at,dt)!==!1&&xe(st||[],Se)}fe.forEach(ct)}function je(fe){let{treeData:Se,expandedKeys:ct,startKey:dt,endKey:at}=fe;const st=[];let It=Te.None;if(dt&&dt===at)return[dt];if(!dt||!at)return[];function Ut(Kt){return Kt===dt||Kt===at}return xe(Se,Kt=>{if(It===Te.End)return!1;if(Ut(Kt)){if(st.push(Kt),It===Te.None)It=Te.Start;else if(It===Te.Start)return It=Te.End,!1}else It===Te.Start&&st.push(Kt);return ct.includes(Kt)}),st}function X(fe,Se){const ct=(0,ue.Z)(Se),dt=[];return xe(fe,(at,st)=>{const It=ct.indexOf(at);return It!==-1&&(dt.push(st),ct.splice(It,1)),!!ct.length}),dt}var de=function(fe,Se){var ct={};for(var dt in fe)Object.prototype.hasOwnProperty.call(fe,dt)&&Se.indexOf(dt)<0&&(ct[dt]=fe[dt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,dt=Object.getOwnPropertySymbols(fe);at<dt.length;at++)Se.indexOf(dt[at])<0&&Object.prototype.propertyIsEnumerable.call(fe,dt[at])&&(ct[dt[at]]=fe[dt[at]]);return ct};function k(fe){const{isLeaf:Se,expanded:ct}=fe;return Se?Z.createElement(U.Z,null):ct?Z.createElement(Ne.Z,null):Z.createElement(S,null)}function rt(fe){let{treeData:Se,children:ct}=fe;return Se||(0,M.zn)(ct)}const Oe=(fe,Se)=>{var{defaultExpandAll:ct,defaultExpandParent:dt,defaultExpandedKeys:at}=fe,st=de(fe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const It=Z.useRef(),Ut=Z.useRef(),Kt=()=>{const{keyEntities:we}=(0,M.I8)(rt(st));let ve;return ct?ve=Object.keys(we):dt?ve=(0,R.r7)(st.expandedKeys||at||[],we):ve=st.expandedKeys||at,ve},[hr,or]=Z.useState(st.selectedKeys||st.defaultSelectedKeys||[]),[Sr,ur]=Z.useState(()=>Kt());Z.useEffect(()=>{"selectedKeys"in st&&or(st.selectedKeys)},[st.selectedKeys]),Z.useEffect(()=>{"expandedKeys"in st&&ur(st.expandedKeys)},[st.expandedKeys]);const G=(we,ve)=>{var qe;return"expandedKeys"in st||ur(we),(qe=st.onExpand)===null||qe===void 0?void 0:qe.call(st,we,ve)},wt=(we,ve)=>{var qe;const{multiple:St}=st,{node:me,nativeEvent:ft}=ve,{key:lt=""}=me,Pe=rt(st),Le=Object.assign(Object.assign({},ve),{selected:!0}),pt=(ft==null?void 0:ft.ctrlKey)||(ft==null?void 0:ft.metaKey),zt=ft==null?void 0:ft.shiftKey;let Ht;St&&pt?(Ht=we,It.current=lt,Ut.current=Ht,Le.selectedNodes=X(Pe,Ht)):St&&zt?(Ht=Array.from(new Set([].concat((0,ue.Z)(Ut.current||[]),(0,ue.Z)(je({treeData:Pe,expandedKeys:Sr,startKey:lt,endKey:It.current}))))),Le.selectedNodes=X(Pe,Ht)):(Ht=[lt],It.current=lt,Ut.current=Ht,Le.selectedNodes=X(Pe,Ht)),(qe=st.onSelect)===null||qe===void 0||qe.call(st,Ht,Le),"selectedKeys"in st||or(Ht)},{getPrefixCls:_,direction:f}=Z.useContext(Y.E_),{prefixCls:u,className:x,showIcon:ee=!0,expandAction:Ce="click"}=st,H=de(st,["prefixCls","className","showIcon","expandAction"]),ne=_("tree",u),$e=P()(`${ne}-directory`,{[`${ne}-directory-rtl`]:f==="rtl"},x);return Z.createElement(he,Object.assign({icon:k,ref:Se,blockNode:!0},H,{showIcon:ee,expandAction:Ce,prefixCls:ne,className:$e,expandedKeys:Sr,selectedKeys:hr,onSelect:wt,onExpand:G}))};var He=Z.forwardRef(Oe);const ge=he;ge.DirectoryTree=He,ge.TreeNode=pe.O;var De=ge},20648:function(xn,Jt,w){"use strict";w.d(Jt,{TM:function(){return F},Yk:function(){return S}});var pe=w(36237),ue=w(98447),U=w(17313),Ne=w(8378),te=w(37613),Z=w(83116);const B=new pe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),h=(P,R)=>({[`.${P}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${R.motionDurationSlow}`}}}),E=(P,R)=>({[`.${P}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:R.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${R.lineWidthBold}px solid ${R.colorPrimary}`,borderRadius:"50%",content:'""'}}}),p=(P,R)=>{const{treeCls:M,treeNodeCls:Y,treeNodePadding:Q,titleHeight:ce,nodeSelectedBg:W,nodeHoverBg:J}=R,V=R.paddingXS;return{[M]:Object.assign(Object.assign({},(0,U.Wf)(R)),{background:R.colorBgContainer,borderRadius:R.borderRadius,transition:`background-color ${R.motionDurationSlow}`,[`&${M}-rtl`]:{[`${M}-switcher`]:{"&_close":{[`${M}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${M}-active-focused)`]:Object.assign({},(0,U.oN)(R)),[`${M}-list-holder-inner`]:{alignItems:"flex-start"},[`&${M}-block-node`]:{[`${M}-list-holder-inner`]:{alignItems:"stretch",[`${M}-node-content-wrapper`]:{flex:"auto"},[`${Y}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Q,insetInlineStart:0,border:`1px solid ${R.colorPrimary}`,opacity:0,animationName:B,animationDuration:R.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Y}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Q}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${M}-node-content-wrapper`]:{color:R.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${M}-node-content-wrapper`]:Object.assign({},(0,U.oN)(R)),[`&:not(${Y}-disabled).filter-node ${M}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${M}-draggable-icon`]:{flexShrink:0,width:ce,lineHeight:`${ce}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${R.motionDurationSlow}`,[`${Y}:hover &`]:{opacity:.45}},[`&${Y}-disabled`]:{[`${M}-draggable-icon`]:{visibility:"hidden"}}}},[`${M}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ce}},[`${M}-draggable-icon`]:{visibility:"hidden"},[`${M}-switcher`]:Object.assign(Object.assign({},h(P,R)),{position:"relative",flex:"none",alignSelf:"stretch",width:ce,margin:0,lineHeight:`${ce}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${M}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:R.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ce/2,bottom:-Q,marginInlineStart:-1,borderInlineEnd:`1px solid ${R.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ce/2*.8,height:ce/2,borderBottom:`1px solid ${R.colorBorder}`,content:'""'}}}),[`${M}-checkbox`]:{top:"initial",marginInlineEnd:V},[`${M}-node-content-wrapper, ${M}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ce,margin:0,padding:`0 ${R.paddingXS/2}px`,color:"inherit",lineHeight:`${ce}px`,background:"transparent",borderRadius:R.borderRadius,cursor:"pointer",transition:`all ${R.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:J},[`&${M}-node-selected`]:{backgroundColor:W},[`${M}-iconEle`]:{display:"inline-block",width:ce,height:ce,lineHeight:`${ce}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${M}-unselectable ${M}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${M}-node-content-wrapper`]:Object.assign({lineHeight:`${ce}px`,userSelect:"none"},E(P,R)),[`${Y}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${R.colorPrimary}`}},"&-show-line":{[`${M}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ce/2,bottom:-Q,borderInlineEnd:`1px solid ${R.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${M}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Y}-leaf-last`]:{[`${M}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ce/2}px !important`}}}}})}},j=P=>{const{treeCls:R,treeNodeCls:M,treeNodePadding:Y,directoryNodeSelectedBg:Q,directoryNodeSelectedColor:ce}=P;return{[`${R}${R}-directory`]:{[M]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Y,insetInlineStart:0,transition:`background-color ${P.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:P.controlItemBgHover}},"> *":{zIndex:1},[`${R}-switcher`]:{transition:`color ${P.motionDurationMid}`},[`${R}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${R}-node-selected`]:{color:ce,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Q},[`${R}-switcher`]:{color:ce},[`${R}-node-content-wrapper`]:{color:ce,background:"transparent"}}}}}},S=(P,R)=>{const M=`.${P}`,Y=`${M}-treenode`,Q=R.paddingXS/2,ce=(0,te.TS)(R,{treeCls:M,treeNodeCls:Y,treeNodePadding:Q});return[p(P,ce),j(ce)]},F=P=>{const{controlHeightSM:R}=P;return{titleHeight:R,nodeHoverBg:P.controlItemBgHover,nodeSelectedBg:P.controlItemBgActive}};Jt.ZP=(0,Z.Z)("Tree",(P,R)=>{let{prefixCls:M}=R;return[{[P.componentCls]:(0,ue.C2)(`${M}-checkbox`,P)},S(M,P),(0,Ne.Z)(P)]},P=>{const{colorTextLightSolid:R,colorPrimary:M}=P;return Object.assign(Object.assign({},F(P)),{directoryNodeSelectedColor:R,directoryNodeSelectedBg:M})})},71997:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return Y}});var pe=w(32855),ue=w(59301),U={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=U,te=w(7657),Z=function(ce,W){return ue.createElement(te.Z,(0,pe.Z)({},ce,{ref:W,icon:Ne}))},B=ue.forwardRef(Z),h=B,E=w(52671),p=w(58617),j=w(15075),S=w(43531),F=w(92310),P=w.n(F),R=w(92343),Y=Q=>{const{prefixCls:ce,switcherIcon:W,treeNodeProps:J,showLine:V}=Q,{isLeaf:K,expanded:se,loading:he}=J;if(he)return ue.createElement(p.Z,{className:`${ce}-switcher-loading-icon`});let Te;if(V&&typeof V=="object"&&(Te=V.showLeafIcon),K){if(!V)return null;if(typeof Te!="boolean"&&Te){const X=typeof Te=="function"?Te(J):Te,de=`${ce}-switcher-line-custom-icon`;return(0,R.l$)(X)?(0,R.Tm)(X,{className:P()(X.props.className||"",de)}):X}return Te?ue.createElement(E.Z,{className:`${ce}-switcher-line-icon`}):ue.createElement("span",{className:`${ce}-switcher-leaf-line`})}const xe=`${ce}-switcher-icon`,je=typeof W=="function"?W(J):W;return(0,R.l$)(je)?(0,R.Tm)(je,{className:P()(je.props.className||"",xe)}):je!==void 0?je:V?se?ue.createElement(j.Z,{className:`${ce}-switcher-line-icon`}):ue.createElement(S.Z,{className:`${ce}-switcher-line-icon`}):ue.createElement(h,{className:xe})}},86251:function(xn,Jt){"use strict";Jt.byteLength=B,Jt.toByteArray=E,Jt.fromByteArray=S;for(var w=[],pe=[],ue=typeof Uint8Array!="undefined"?Uint8Array:Array,U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne=0,te=U.length;Ne<te;++Ne)w[Ne]=U[Ne],pe[U.charCodeAt(Ne)]=Ne;pe[45]=62,pe[95]=63;function Z(F){var P=F.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=F.indexOf("=");R===-1&&(R=P);var M=R===P?0:4-R%4;return[R,M]}function B(F){var P=Z(F),R=P[0],M=P[1];return(R+M)*3/4-M}function h(F,P,R){return(P+R)*3/4-R}function E(F){var P,R=Z(F),M=R[0],Y=R[1],Q=new ue(h(F,M,Y)),ce=0,W=Y>0?M-4:M,J;for(J=0;J<W;J+=4)P=pe[F.charCodeAt(J)]<<18|pe[F.charCodeAt(J+1)]<<12|pe[F.charCodeAt(J+2)]<<6|pe[F.charCodeAt(J+3)],Q[ce++]=P>>16&255,Q[ce++]=P>>8&255,Q[ce++]=P&255;return Y===2&&(P=pe[F.charCodeAt(J)]<<2|pe[F.charCodeAt(J+1)]>>4,Q[ce++]=P&255),Y===1&&(P=pe[F.charCodeAt(J)]<<10|pe[F.charCodeAt(J+1)]<<4|pe[F.charCodeAt(J+2)]>>2,Q[ce++]=P>>8&255,Q[ce++]=P&255),Q}function p(F){return w[F>>18&63]+w[F>>12&63]+w[F>>6&63]+w[F&63]}function j(F,P,R){for(var M,Y=[],Q=P;Q<R;Q+=3)M=(F[Q]<<16&16711680)+(F[Q+1]<<8&65280)+(F[Q+2]&255),Y.push(p(M));return Y.join("")}function S(F){for(var P,R=F.length,M=R%3,Y=[],Q=16383,ce=0,W=R-M;ce<W;ce+=Q)Y.push(j(F,ce,ce+Q>W?W:ce+Q));return M===1?(P=F[R-1],Y.push(w[P>>2]+w[P<<4&63]+"==")):M===2&&(P=(F[R-2]<<8)+F[R-1],Y.push(w[P>>10]+w[P>>4&63]+w[P<<2&63]+"=")),Y.join("")}},19208:function(xn,Jt,w){"use strict";var pe;var ue=w(86251),U=w(67467),Ne=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Jt.lW=h,pe=ce,Jt.h2=50;var te=2147483647;pe=te,h.TYPED_ARRAY_SUPPORT=Z(),!h.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 Z(){try{var _=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(_,f),_.foo()===42}catch(u){return!1}}Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}});function B(_){if(_>te)throw new RangeError('The value "'+_+'" is invalid for option "size"');var f=new Uint8Array(_);return Object.setPrototypeOf(f,h.prototype),f}function h(_,f,u){if(typeof _=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(_)}return E(_,f,u)}h.poolSize=8192;function E(_,f,u){if(typeof _=="string")return F(_,f);if(ArrayBuffer.isView(_))return R(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(ur(_,ArrayBuffer)||_&&ur(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ur(_,SharedArrayBuffer)||_&&ur(_.buffer,SharedArrayBuffer)))return M(_,f,u);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var x=_.valueOf&&_.valueOf();if(x!=null&&x!==_)return h.from(x,f,u);var ee=Y(_);if(ee)return ee;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return h.from(_[Symbol.toPrimitive]("string"),f,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}h.from=function(_,f,u){return E(_,f,u)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array);function p(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function j(_,f,u){return p(_),_<=0?B(_):f!==void 0?typeof u=="string"?B(_).fill(f,u):B(_).fill(f):B(_)}h.alloc=function(_,f,u){return j(_,f,u)};function S(_){return p(_),B(_<0?0:Q(_)|0)}h.allocUnsafe=function(_){return S(_)},h.allocUnsafeSlow=function(_){return S(_)};function F(_,f){if((typeof f!="string"||f==="")&&(f="utf8"),!h.isEncoding(f))throw new TypeError("Unknown encoding: "+f);var u=W(_,f)|0,x=B(u),ee=x.write(_,f);return ee!==u&&(x=x.slice(0,ee)),x}function P(_){for(var f=_.length<0?0:Q(_.length)|0,u=B(f),x=0;x<f;x+=1)u[x]=_[x]&255;return u}function R(_){if(ur(_,Uint8Array)){var f=new Uint8Array(_);return M(f.buffer,f.byteOffset,f.byteLength)}return P(_)}function M(_,f,u){if(f<0||_.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<f+(u||0))throw new RangeError('"length" is outside of buffer bounds');var x;return f===void 0&&u===void 0?x=new Uint8Array(_):u===void 0?x=new Uint8Array(_,f):x=new Uint8Array(_,f,u),Object.setPrototypeOf(x,h.prototype),x}function Y(_){if(h.isBuffer(_)){var f=Q(_.length)|0,u=B(f);return u.length===0||_.copy(u,0,0,f),u}if(_.length!==void 0)return typeof _.length!="number"||G(_.length)?B(0):P(_);if(_.type==="Buffer"&&Array.isArray(_.data))return P(_.data)}function Q(_){if(_>=te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+te.toString(16)+" bytes");return _|0}function ce(_){return+_!=_&&(_=0),h.alloc(+_)}h.isBuffer=function(f){return f!=null&&f._isBuffer===!0&&f!==h.prototype},h.compare=function(f,u){if(ur(f,Uint8Array)&&(f=h.from(f,f.offset,f.byteLength)),ur(u,Uint8Array)&&(u=h.from(u,u.offset,u.byteLength)),!h.isBuffer(f)||!h.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===u)return 0;for(var x=f.length,ee=u.length,Ce=0,H=Math.min(x,ee);Ce<H;++Ce)if(f[Ce]!==u[Ce]){x=f[Ce],ee=u[Ce];break}return x<ee?-1:ee<x?1:0},h.isEncoding=function(f){switch(String(f).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}},h.concat=function(f,u){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(f.length===0)return h.alloc(0);var x;if(u===void 0)for(u=0,x=0;x<f.length;++x)u+=f[x].length;var ee=h.allocUnsafe(u),Ce=0;for(x=0;x<f.length;++x){var H=f[x];if(ur(H,Uint8Array))Ce+H.length>ee.length?h.from(H).copy(ee,Ce):Uint8Array.prototype.set.call(ee,H,Ce);else if(h.isBuffer(H))H.copy(ee,Ce);else throw new TypeError('"list" argument must be an Array of Buffers');Ce+=H.length}return ee};function W(_,f){if(h.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||ur(_,ArrayBuffer))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);var u=_.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&u===0)return 0;for(var ee=!1;;)switch(f){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return Ut(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return or(_).length;default:if(ee)return x?-1:Ut(_).length;f=(""+f).toLowerCase(),ee=!0}}h.byteLength=W;function J(_,f,u){var x=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,f>>>=0,u<=f))return"";for(_||(_="utf8");;)switch(_){case"hex":return ge(this,f,u);case"utf8":case"utf-8":return k(this,f,u);case"ascii":return be(this,f,u);case"latin1":case"binary":return He(this,f,u);case"base64":return de(this,f,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,f,u);default:if(x)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),x=!0}}h.prototype._isBuffer=!0;function V(_,f,u){var x=_[f];_[f]=_[u],_[u]=x}h.prototype.swap16=function(){var f=this.length;if(f%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<f;u+=2)V(this,u,u+1);return this},h.prototype.swap32=function(){var f=this.length;if(f%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<f;u+=4)V(this,u,u+3),V(this,u+1,u+2);return this},h.prototype.swap64=function(){var f=this.length;if(f%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<f;u+=8)V(this,u,u+7),V(this,u+1,u+6),V(this,u+2,u+5),V(this,u+3,u+4);return this},h.prototype.toString=function(){var f=this.length;return f===0?"":arguments.length===0?k(this,0,f):J.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(f){if(!h.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f?!0:h.compare(this,f)===0},h.prototype.inspect=function(){var f="",u=Jt.h2;return f=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(f+=" ... "),"<Buffer "+f+">"},Ne&&(h.prototype[Ne]=h.prototype.inspect),h.prototype.compare=function(f,u,x,ee,Ce){if(ur(f,Uint8Array)&&(f=h.from(f,f.offset,f.byteLength)),!h.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(u===void 0&&(u=0),x===void 0&&(x=f?f.length:0),ee===void 0&&(ee=0),Ce===void 0&&(Ce=this.length),u<0||x>f.length||ee<0||Ce>this.length)throw new RangeError("out of range index");if(ee>=Ce&&u>=x)return 0;if(ee>=Ce)return-1;if(u>=x)return 1;if(u>>>=0,x>>>=0,ee>>>=0,Ce>>>=0,this===f)return 0;for(var H=Ce-ee,ne=x-u,$e=Math.min(H,ne),we=this.slice(ee,Ce),ve=f.slice(u,x),qe=0;qe<$e;++qe)if(we[qe]!==ve[qe]){H=we[qe],ne=ve[qe];break}return H<ne?-1:ne<H?1:0};function K(_,f,u,x,ee){if(_.length===0)return-1;if(typeof u=="string"?(x=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,G(u)&&(u=ee?0:_.length-1),u<0&&(u=_.length+u),u>=_.length){if(ee)return-1;u=_.length-1}else if(u<0)if(ee)u=0;else return-1;if(typeof f=="string"&&(f=h.from(f,x)),h.isBuffer(f))return f.length===0?-1:se(_,f,u,x,ee);if(typeof f=="number")return f=f&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(_,f,u):Uint8Array.prototype.lastIndexOf.call(_,f,u):se(_,[f],u,x,ee);throw new TypeError("val must be string, number or Buffer")}function se(_,f,u,x,ee){var Ce=1,H=_.length,ne=f.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(_.length<2||f.length<2)return-1;Ce=2,H/=2,ne/=2,u/=2}function $e(me,ft){return Ce===1?me[ft]:me.readUInt16BE(ft*Ce)}var we;if(ee){var ve=-1;for(we=u;we<H;we++)if($e(_,we)===$e(f,ve===-1?0:we-ve)){if(ve===-1&&(ve=we),we-ve+1===ne)return ve*Ce}else ve!==-1&&(we-=we-ve),ve=-1}else for(u+ne>H&&(u=H-ne),we=u;we>=0;we--){for(var qe=!0,St=0;St<ne;St++)if($e(_,we+St)!==$e(f,St)){qe=!1;break}if(qe)return we}return-1}h.prototype.includes=function(f,u,x){return this.indexOf(f,u,x)!==-1},h.prototype.indexOf=function(f,u,x){return K(this,f,u,x,!0)},h.prototype.lastIndexOf=function(f,u,x){return K(this,f,u,x,!1)};function he(_,f,u,x){u=Number(u)||0;var ee=_.length-u;x?(x=Number(x),x>ee&&(x=ee)):x=ee;var Ce=f.length;x>Ce/2&&(x=Ce/2);for(var H=0;H<x;++H){var ne=parseInt(f.substr(H*2,2),16);if(G(ne))return H;_[u+H]=ne}return H}function Te(_,f,u,x){return Sr(Ut(f,_.length-u),_,u,x)}function xe(_,f,u,x){return Sr(Kt(f),_,u,x)}function je(_,f,u,x){return Sr(or(f),_,u,x)}function X(_,f,u,x){return Sr(hr(f,_.length-u),_,u,x)}h.prototype.write=function(f,u,x,ee){if(u===void 0)ee="utf8",x=this.length,u=0;else if(x===void 0&&typeof u=="string")ee=u,x=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(x)?(x=x>>>0,ee===void 0&&(ee="utf8")):(ee=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ce=this.length-u;if((x===void 0||x>Ce)&&(x=Ce),f.length>0&&(x<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var H=!1;;)switch(ee){case"hex":return he(this,f,u,x);case"utf8":case"utf-8":return Te(this,f,u,x);case"ascii":case"latin1":case"binary":return xe(this,f,u,x);case"base64":return je(this,f,u,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,f,u,x);default:if(H)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),H=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function de(_,f,u){return f===0&&u===_.length?ue.fromByteArray(_):ue.fromByteArray(_.slice(f,u))}function k(_,f,u){u=Math.min(_.length,u);for(var x=[],ee=f;ee<u;){var Ce=_[ee],H=null,ne=Ce>239?4:Ce>223?3:Ce>191?2:1;if(ee+ne<=u){var $e,we,ve,qe;switch(ne){case 1:Ce<128&&(H=Ce);break;case 2:$e=_[ee+1],($e&192)===128&&(qe=(Ce&31)<<6|$e&63,qe>127&&(H=qe));break;case 3:$e=_[ee+1],we=_[ee+2],($e&192)===128&&(we&192)===128&&(qe=(Ce&15)<<12|($e&63)<<6|we&63,qe>2047&&(qe<55296||qe>57343)&&(H=qe));break;case 4:$e=_[ee+1],we=_[ee+2],ve=_[ee+3],($e&192)===128&&(we&192)===128&&(ve&192)===128&&(qe=(Ce&15)<<18|($e&63)<<12|(we&63)<<6|ve&63,qe>65535&&qe<1114112&&(H=qe))}}H===null?(H=65533,ne=1):H>65535&&(H-=65536,x.push(H>>>10&1023|55296),H=56320|H&1023),x.push(H),ee+=ne}return Oe(x)}var rt=4096;function Oe(_){var f=_.length;if(f<=rt)return String.fromCharCode.apply(String,_);for(var u="",x=0;x<f;)u+=String.fromCharCode.apply(String,_.slice(x,x+=rt));return u}function be(_,f,u){var x="";u=Math.min(_.length,u);for(var ee=f;ee<u;++ee)x+=String.fromCharCode(_[ee]&127);return x}function He(_,f,u){var x="";u=Math.min(_.length,u);for(var ee=f;ee<u;++ee)x+=String.fromCharCode(_[ee]);return x}function ge(_,f,u){var x=_.length;(!f||f<0)&&(f=0),(!u||u<0||u>x)&&(u=x);for(var ee="",Ce=f;Ce<u;++Ce)ee+=wt[_[Ce]];return ee}function De(_,f,u){for(var x=_.slice(f,u),ee="",Ce=0;Ce<x.length-1;Ce+=2)ee+=String.fromCharCode(x[Ce]+x[Ce+1]*256);return ee}h.prototype.slice=function(f,u){var x=this.length;f=~~f,u=u===void 0?x:~~u,f<0?(f+=x,f<0&&(f=0)):f>x&&(f=x),u<0?(u+=x,u<0&&(u=0)):u>x&&(u=x),u<f&&(u=f);var ee=this.subarray(f,u);return Object.setPrototypeOf(ee,h.prototype),ee};function fe(_,f,u){if(_%1!==0||_<0)throw new RangeError("offset is not uint");if(_+f>u)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(f,u,x){f=f>>>0,u=u>>>0,x||fe(f,u,this.length);for(var ee=this[f],Ce=1,H=0;++H<u&&(Ce*=256);)ee+=this[f+H]*Ce;return ee},h.prototype.readUintBE=h.prototype.readUIntBE=function(f,u,x){f=f>>>0,u=u>>>0,x||fe(f,u,this.length);for(var ee=this[f+--u],Ce=1;u>0&&(Ce*=256);)ee+=this[f+--u]*Ce;return ee},h.prototype.readUint8=h.prototype.readUInt8=function(f,u){return f=f>>>0,u||fe(f,1,this.length),this[f]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(f,u){return f=f>>>0,u||fe(f,2,this.length),this[f]|this[f+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(f,u){return f=f>>>0,u||fe(f,2,this.length),this[f]<<8|this[f+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(f,u){return f=f>>>0,u||fe(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+this[f+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(f,u){return f=f>>>0,u||fe(f,4,this.length),this[f]*16777216+(this[f+1]<<16|this[f+2]<<8|this[f+3])},h.prototype.readIntLE=function(f,u,x){f=f>>>0,u=u>>>0,x||fe(f,u,this.length);for(var ee=this[f],Ce=1,H=0;++H<u&&(Ce*=256);)ee+=this[f+H]*Ce;return Ce*=128,ee>=Ce&&(ee-=Math.pow(2,8*u)),ee},h.prototype.readIntBE=function(f,u,x){f=f>>>0,u=u>>>0,x||fe(f,u,this.length);for(var ee=u,Ce=1,H=this[f+--ee];ee>0&&(Ce*=256);)H+=this[f+--ee]*Ce;return Ce*=128,H>=Ce&&(H-=Math.pow(2,8*u)),H},h.prototype.readInt8=function(f,u){return f=f>>>0,u||fe(f,1,this.length),this[f]&128?(255-this[f]+1)*-1:this[f]},h.prototype.readInt16LE=function(f,u){f=f>>>0,u||fe(f,2,this.length);var x=this[f]|this[f+1]<<8;return x&32768?x|4294901760:x},h.prototype.readInt16BE=function(f,u){f=f>>>0,u||fe(f,2,this.length);var x=this[f+1]|this[f]<<8;return x&32768?x|4294901760:x},h.prototype.readInt32LE=function(f,u){return f=f>>>0,u||fe(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},h.prototype.readInt32BE=function(f,u){return f=f>>>0,u||fe(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},h.prototype.readFloatLE=function(f,u){return f=f>>>0,u||fe(f,4,this.length),U.read(this,f,!0,23,4)},h.prototype.readFloatBE=function(f,u){return f=f>>>0,u||fe(f,4,this.length),U.read(this,f,!1,23,4)},h.prototype.readDoubleLE=function(f,u){return f=f>>>0,u||fe(f,8,this.length),U.read(this,f,!0,52,8)},h.prototype.readDoubleBE=function(f,u){return f=f>>>0,u||fe(f,8,this.length),U.read(this,f,!1,52,8)};function Se(_,f,u,x,ee,Ce){if(!h.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>ee||f<Ce)throw new RangeError('"value" argument is out of bounds');if(u+x>_.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(f,u,x,ee){if(f=+f,u=u>>>0,x=x>>>0,!ee){var Ce=Math.pow(2,8*x)-1;Se(this,f,u,x,Ce,0)}var H=1,ne=0;for(this[u]=f&255;++ne<x&&(H*=256);)this[u+ne]=f/H&255;return u+x},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(f,u,x,ee){if(f=+f,u=u>>>0,x=x>>>0,!ee){var Ce=Math.pow(2,8*x)-1;Se(this,f,u,x,Ce,0)}var H=x-1,ne=1;for(this[u+H]=f&255;--H>=0&&(ne*=256);)this[u+H]=f/ne&255;return u+x},h.prototype.writeUint8=h.prototype.writeUInt8=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,1,255,0),this[u]=f&255,u+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,2,65535,0),this[u]=f&255,this[u+1]=f>>>8,u+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,2,65535,0),this[u]=f>>>8,this[u+1]=f&255,u+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,4,4294967295,0),this[u+3]=f>>>24,this[u+2]=f>>>16,this[u+1]=f>>>8,this[u]=f&255,u+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,4,4294967295,0),this[u]=f>>>24,this[u+1]=f>>>16,this[u+2]=f>>>8,this[u+3]=f&255,u+4},h.prototype.writeIntLE=function(f,u,x,ee){if(f=+f,u=u>>>0,!ee){var Ce=Math.pow(2,8*x-1);Se(this,f,u,x,Ce-1,-Ce)}var H=0,ne=1,$e=0;for(this[u]=f&255;++H<x&&(ne*=256);)f<0&&$e===0&&this[u+H-1]!==0&&($e=1),this[u+H]=(f/ne>>0)-$e&255;return u+x},h.prototype.writeIntBE=function(f,u,x,ee){if(f=+f,u=u>>>0,!ee){var Ce=Math.pow(2,8*x-1);Se(this,f,u,x,Ce-1,-Ce)}var H=x-1,ne=1,$e=0;for(this[u+H]=f&255;--H>=0&&(ne*=256);)f<0&&$e===0&&this[u+H+1]!==0&&($e=1),this[u+H]=(f/ne>>0)-$e&255;return u+x},h.prototype.writeInt8=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,1,127,-128),f<0&&(f=255+f+1),this[u]=f&255,u+1},h.prototype.writeInt16LE=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,2,32767,-32768),this[u]=f&255,this[u+1]=f>>>8,u+2},h.prototype.writeInt16BE=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,2,32767,-32768),this[u]=f>>>8,this[u+1]=f&255,u+2},h.prototype.writeInt32LE=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,4,2147483647,-2147483648),this[u]=f&255,this[u+1]=f>>>8,this[u+2]=f>>>16,this[u+3]=f>>>24,u+4},h.prototype.writeInt32BE=function(f,u,x){return f=+f,u=u>>>0,x||Se(this,f,u,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[u]=f>>>24,this[u+1]=f>>>16,this[u+2]=f>>>8,this[u+3]=f&255,u+4};function ct(_,f,u,x,ee,Ce){if(u+x>_.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function dt(_,f,u,x,ee){return f=+f,u=u>>>0,ee||ct(_,f,u,4,34028234663852886e22,-34028234663852886e22),U.write(_,f,u,x,23,4),u+4}h.prototype.writeFloatLE=function(f,u,x){return dt(this,f,u,!0,x)},h.prototype.writeFloatBE=function(f,u,x){return dt(this,f,u,!1,x)};function at(_,f,u,x,ee){return f=+f,u=u>>>0,ee||ct(_,f,u,8,17976931348623157e292,-17976931348623157e292),U.write(_,f,u,x,52,8),u+8}h.prototype.writeDoubleLE=function(f,u,x){return at(this,f,u,!0,x)},h.prototype.writeDoubleBE=function(f,u,x){return at(this,f,u,!1,x)},h.prototype.copy=function(f,u,x,ee){if(!h.isBuffer(f))throw new TypeError("argument should be a Buffer");if(x||(x=0),!ee&&ee!==0&&(ee=this.length),u>=f.length&&(u=f.length),u||(u=0),ee>0&&ee<x&&(ee=x),ee===x||f.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(x<0||x>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),f.length-u<ee-x&&(ee=f.length-u+x);var Ce=ee-x;return this===f&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,x,ee):Uint8Array.prototype.set.call(f,this.subarray(x,ee),u),Ce},h.prototype.fill=function(f,u,x,ee){if(typeof f=="string"){if(typeof u=="string"?(ee=u,u=0,x=this.length):typeof x=="string"&&(ee=x,x=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!h.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(f.length===1){var Ce=f.charCodeAt(0);(ee==="utf8"&&Ce<128||ee==="latin1")&&(f=Ce)}}else typeof f=="number"?f=f&255:typeof f=="boolean"&&(f=Number(f));if(u<0||this.length<u||this.length<x)throw new RangeError("Out of range index");if(x<=u)return this;u=u>>>0,x=x===void 0?this.length:x>>>0,f||(f=0);var H;if(typeof f=="number")for(H=u;H<x;++H)this[H]=f;else{var ne=h.isBuffer(f)?f:h.from(f,ee),$e=ne.length;if($e===0)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(H=0;H<x-u;++H)this[H+u]=ne[H%$e]}return this};var st=/[^+/0-9A-Za-z-_]/g;function It(_){if(_=_.split("=")[0],_=_.trim().replace(st,""),_.length<2)return"";for(;_.length%4!==0;)_=_+"=";return _}function Ut(_,f){f=f||1/0;for(var u,x=_.length,ee=null,Ce=[],H=0;H<x;++H){if(u=_.charCodeAt(H),u>55295&&u<57344){if(!ee){if(u>56319){(f-=3)>-1&&Ce.push(239,191,189);continue}else if(H+1===x){(f-=3)>-1&&Ce.push(239,191,189);continue}ee=u;continue}if(u<56320){(f-=3)>-1&&Ce.push(239,191,189),ee=u;continue}u=(ee-55296<<10|u-56320)+65536}else ee&&(f-=3)>-1&&Ce.push(239,191,189);if(ee=null,u<128){if((f-=1)<0)break;Ce.push(u)}else if(u<2048){if((f-=2)<0)break;Ce.push(u>>6|192,u&63|128)}else if(u<65536){if((f-=3)<0)break;Ce.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((f-=4)<0)break;Ce.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return Ce}function Kt(_){for(var f=[],u=0;u<_.length;++u)f.push(_.charCodeAt(u)&255);return f}function hr(_,f){for(var u,x,ee,Ce=[],H=0;H<_.length&&!((f-=2)<0);++H)u=_.charCodeAt(H),x=u>>8,ee=u%256,Ce.push(ee),Ce.push(x);return Ce}function or(_){return ue.toByteArray(It(_))}function Sr(_,f,u,x){for(var ee=0;ee<x&&!(ee+u>=f.length||ee>=_.length);++ee)f[ee+u]=_[ee];return ee}function ur(_,f){return _ instanceof f||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===f.name}function G(_){return _!==_}var wt=function(){for(var _="0123456789abcdef",f=new Array(256),u=0;u<16;++u)for(var x=u*16,ee=0;ee<16;++ee)f[x+ee]=_[u]+_[ee];return f}()},64270:function(xn){(function(Jt,w){xn.exports=w()})(this,function(){"use strict";var Jt=function(m,d){return Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var ie in v)Object.prototype.hasOwnProperty.call(v,ie)&&(y[ie]=v[ie])},Jt(m,d)};function w(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");Jt(m,d);function y(){this.constructor=m}m.prototype=d===null?Object.create(d):(y.prototype=d.prototype,new y)}var pe=function(){return pe=Object.assign||function(d){for(var y,v=1,ie=arguments.length;v<ie;v++){y=arguments[v];for(var Fe in y)Object.prototype.hasOwnProperty.call(y,Fe)&&(d[Fe]=y[Fe])}return d},pe.apply(this,arguments)};function ue(m,d,y,v){function ie(Fe){return Fe instanceof y?Fe:new y(function(tt){tt(Fe)})}return new(y||(y=Promise))(function(Fe,tt){function xt(fr){try{nr(v.next(fr))}catch(a){tt(a)}}function Bt(fr){try{nr(v.throw(fr))}catch(a){tt(a)}}function nr(fr){fr.done?Fe(fr.value):ie(fr.value).then(xt,Bt)}nr((v=v.apply(m,d||[])).next())})}function U(m,d){var y={label:0,sent:function(){if(Fe[0]&1)throw Fe[1];return Fe[1]},trys:[],ops:[]},v,ie,Fe,tt;return tt={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(tt[Symbol.iterator]=function(){return this}),tt;function xt(nr){return function(fr){return Bt([nr,fr])}}function Bt(nr){if(v)throw new TypeError("Generator is already executing.");for(;y;)try{if(v=1,ie&&(Fe=nr[0]&2?ie.return:nr[0]?ie.throw||((Fe=ie.return)&&Fe.call(ie),0):ie.next)&&!(Fe=Fe.call(ie,nr[1])).done)return Fe;switch(ie=0,Fe&&(nr=[nr[0]&2,Fe.value]),nr[0]){case 0:case 1:Fe=nr;break;case 4:return y.label++,{value:nr[1],done:!1};case 5:y.label++,ie=nr[1],nr=[0];continue;case 7:nr=y.ops.pop(),y.trys.pop();continue;default:if(Fe=y.trys,!(Fe=Fe.length>0&&Fe[Fe.length-1])&&(nr[0]===6||nr[0]===2)){y=0;continue}if(nr[0]===3&&(!Fe||nr[1]>Fe[0]&&nr[1]<Fe[3])){y.label=nr[1];break}if(nr[0]===6&&y.label<Fe[1]){y.label=Fe[1],Fe=nr;break}if(Fe&&y.label<Fe[2]){y.label=Fe[2],y.ops.push(nr);break}Fe[2]&&y.ops.pop(),y.trys.pop();continue}nr=d.call(m,y)}catch(fr){nr=[6,fr],ie=0}finally{v=Fe=0}if(nr[0]&5)throw nr[1];return{value:nr[0]?nr[1]:void 0,done:!0}}}function Ne(m,d,y){if(y||arguments.length===2)for(var v=0,ie=d.length,Fe;v<ie;v++)(Fe||!(v in d))&&(Fe||(Fe=Array.prototype.slice.call(d,0,v)),Fe[v]=d[v]);return m.concat(Fe||d)}for(var te=function(){function m(d,y,v,ie){this.left=d,this.top=y,this.width=v,this.height=ie}return m.prototype.add=function(d,y,v,ie){return new m(this.left+d,this.top+y,this.width+v,this.height+ie)},m.fromClientRect=function(d,y){return new m(y.left+d.windowBounds.left,y.top+d.windowBounds.top,y.width,y.height)},m.fromDOMRectList=function(d,y){var v=Array.from(y).find(function(ie){return ie.width!==0});return v?new m(v.left+d.windowBounds.left,v.top+d.windowBounds.top,v.width,v.height):m.EMPTY},m.EMPTY=new m(0,0,0,0),m}(),Z=function(m,d){return te.fromClientRect(m,d.getBoundingClientRect())},B=function(m){var d=m.body,y=m.documentElement;if(!d||!y)throw new Error("Unable to get document size");var v=Math.max(Math.max(d.scrollWidth,y.scrollWidth),Math.max(d.offsetWidth,y.offsetWidth),Math.max(d.clientWidth,y.clientWidth)),ie=Math.max(Math.max(d.scrollHeight,y.scrollHeight),Math.max(d.offsetHeight,y.offsetHeight),Math.max(d.clientHeight,y.clientHeight));return new te(0,0,v,ie)},h=function(m){for(var d=[],y=0,v=m.length;y<v;){var ie=m.charCodeAt(y++);if(ie>=55296&&ie<=56319&&y<v){var Fe=m.charCodeAt(y++);(Fe&64512)===56320?d.push(((ie&1023)<<10)+(Fe&1023)+65536):(d.push(ie),y--)}else d.push(ie)}return d},E=function(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,m);var y=m.length;if(!y)return"";for(var v=[],ie=-1,Fe="";++ie<y;){var tt=m[ie];tt<=65535?v.push(tt):(tt-=65536,v.push((tt>>10)+55296,tt%1024+56320)),(ie+1===y||v.length>16384)&&(Fe+=String.fromCharCode.apply(String,v),v.length=0)}return Fe},p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),S=0;S<p.length;S++)j[p.charCodeAt(S)]=S;for(var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),R=0;R<F.length;R++)P[F.charCodeAt(R)]=R;for(var M=function(m){var d=m.length*.75,y=m.length,v,ie=0,Fe,tt,xt,Bt;m[m.length-1]==="="&&(d--,m[m.length-2]==="="&&d--);var nr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),fr=Array.isArray(nr)?nr:new Uint8Array(nr);for(v=0;v<y;v+=4)Fe=P[m.charCodeAt(v)],tt=P[m.charCodeAt(v+1)],xt=P[m.charCodeAt(v+2)],Bt=P[m.charCodeAt(v+3)],fr[ie++]=Fe<<2|tt>>4,fr[ie++]=(tt&15)<<4|xt>>2,fr[ie++]=(xt&3)<<6|Bt&63;return nr},Y=function(m){for(var d=m.length,y=[],v=0;v<d;v+=2)y.push(m[v+1]<<8|m[v]);return y},Q=function(m){for(var d=m.length,y=[],v=0;v<d;v+=4)y.push(m[v+3]<<24|m[v+2]<<16|m[v+1]<<8|m[v]);return y},ce=5,W=11,J=2,V=W-ce,K=65536>>ce,se=1<<ce,he=se-1,Te=1024>>ce,xe=K+Te,je=xe,X=32,de=je+X,k=65536>>W,rt=1<<V,Oe=rt-1,be=function(m,d,y){return m.slice?m.slice(d,y):new Uint16Array(Array.prototype.slice.call(m,d,y))},He=function(m,d,y){return m.slice?m.slice(d,y):new Uint32Array(Array.prototype.slice.call(m,d,y))},ge=function(m,d){var y=M(m),v=Array.isArray(y)?Q(y):new Uint32Array(y),ie=Array.isArray(y)?Y(y):new Uint16Array(y),Fe=24,tt=be(ie,Fe/2,v[4]/2),xt=v[5]===2?be(ie,(Fe+v[4])/2):He(v,Math.ceil((Fe+v[4])/4));return new De(v[0],v[1],v[2],v[3],tt,xt)},De=function(){function m(d,y,v,ie,Fe,tt){this.initialValue=d,this.errorValue=y,this.highStart=v,this.highValueIndex=ie,this.index=Fe,this.data=tt}return m.prototype.get=function(d){var y;if(d>=0){if(d<55296||d>56319&&d<=65535)return y=this.index[d>>ce],y=(y<<J)+(d&he),this.data[y];if(d<=65535)return y=this.index[K+(d-55296>>ce)],y=(y<<J)+(d&he),this.data[y];if(d<this.highStart)return y=de-k+(d>>W),y=this.index[y],y+=d>>ce&Oe,y=this.index[y],y=(y<<J)+(d&he),this.data[y];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},m}(),fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ct=0;ct<fe.length;ct++)Se[fe.charCodeAt(ct)]=ct;var dt="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==",at=50,st=1,It=2,Ut=3,Kt=4,hr=5,or=7,Sr=8,ur=9,G=10,wt=11,_=12,f=13,u=14,x=15,ee=16,Ce=17,H=18,ne=19,$e=20,we=21,ve=22,qe=23,St=24,me=25,ft=26,lt=27,Pe=28,Le=29,pt=30,zt=31,Ht=32,er=33,Pr=34,pr=35,kr=36,Dr=37,vr=38,dr=39,$r=40,un=41,_n=42,qr=43,Bn=[9001,65288],ti="!",Ir="\xD7",qn="\xF7",Ti=ge(dt),ci=[pt,kr],Ui=[st,It,Ut,hr],Ei=[G,Sr],$i=[lt,ft],Ha=Ui.concat(Ei),Ji=[vr,dr,$r,Pr,pr],gi=[x,f],ki=function(m,d){d===void 0&&(d="strict");var y=[],v=[],ie=[];return m.forEach(function(Fe,tt){var xt=Ti.get(Fe);if(xt>at?(ie.push(!0),xt-=at):ie.push(!1),["normal","auto","loose"].indexOf(d)!==-1&&[8208,8211,12316,12448].indexOf(Fe)!==-1)return v.push(tt),y.push(ee);if(xt===Kt||xt===wt){if(tt===0)return v.push(tt),y.push(pt);var Bt=y[tt-1];return Ha.indexOf(Bt)===-1?(v.push(v[tt-1]),y.push(Bt)):(v.push(tt),y.push(pt))}if(v.push(tt),xt===zt)return y.push(d==="strict"?we:Dr);if(xt===_n||xt===Le)return y.push(pt);if(xt===qr)return Fe>=131072&&Fe<=196605||Fe>=196608&&Fe<=262141?y.push(Dr):y.push(pt);y.push(xt)}),[v,y,ie]},Pi=function(m,d,y,v){var ie=v[y];if(Array.isArray(m)?m.indexOf(ie)!==-1:m===ie)for(var Fe=y;Fe<=v.length;){Fe++;var tt=v[Fe];if(tt===d)return!0;if(tt!==G)break}if(ie===G)for(var Fe=y;Fe>0;){Fe--;var xt=v[Fe];if(Array.isArray(m)?m.indexOf(xt)!==-1:m===xt)for(var Bt=y;Bt<=v.length;){Bt++;var tt=v[Bt];if(tt===d)return!0;if(tt!==G)break}if(xt!==G)break}return!1},nt=function(m,d){for(var y=m;y>=0;){var v=d[y];if(v===G)y--;else return v}return 0},Ie=function(m,d,y,v,ie){if(y[v]===0)return Ir;var Fe=v-1;if(Array.isArray(ie)&&ie[Fe]===!0)return Ir;var tt=Fe-1,xt=Fe+1,Bt=d[Fe],nr=tt>=0?d[tt]:0,fr=d[xt];if(Bt===It&&fr===Ut)return Ir;if(Ui.indexOf(Bt)!==-1)return ti;if(Ui.indexOf(fr)!==-1||Ei.indexOf(fr)!==-1)return Ir;if(nt(Fe,d)===Sr)return qn;if(Ti.get(m[Fe])===wt||(Bt===Ht||Bt===er)&&Ti.get(m[xt])===wt||Bt===or||fr===or||Bt===ur||[G,f,x].indexOf(Bt)===-1&&fr===ur||[Ce,H,ne,St,Pe].indexOf(fr)!==-1||nt(Fe,d)===ve||Pi(qe,ve,Fe,d)||Pi([Ce,H],we,Fe,d)||Pi(_,_,Fe,d))return Ir;if(Bt===G)return qn;if(Bt===qe||fr===qe)return Ir;if(fr===ee||Bt===ee)return qn;if([f,x,we].indexOf(fr)!==-1||Bt===u||nr===kr&&gi.indexOf(Bt)!==-1||Bt===Pe&&fr===kr||fr===$e||ci.indexOf(fr)!==-1&&Bt===me||ci.indexOf(Bt)!==-1&&fr===me||Bt===lt&&[Dr,Ht,er].indexOf(fr)!==-1||[Dr,Ht,er].indexOf(Bt)!==-1&&fr===ft||ci.indexOf(Bt)!==-1&&$i.indexOf(fr)!==-1||$i.indexOf(Bt)!==-1&&ci.indexOf(fr)!==-1||[lt,ft].indexOf(Bt)!==-1&&(fr===me||[ve,x].indexOf(fr)!==-1&&d[xt+1]===me)||[ve,x].indexOf(Bt)!==-1&&fr===me||Bt===me&&[me,Pe,St].indexOf(fr)!==-1)return Ir;if([me,Pe,St,Ce,H].indexOf(fr)!==-1)for(var a=Fe;a>=0;){var g=d[a];if(g===me)return Ir;if([Pe,St].indexOf(g)!==-1)a--;else break}if([lt,ft].indexOf(fr)!==-1)for(var a=[Ce,H].indexOf(Bt)!==-1?tt:Fe;a>=0;){var g=d[a];if(g===me)return Ir;if([Pe,St].indexOf(g)!==-1)a--;else break}if(vr===Bt&&[vr,dr,Pr,pr].indexOf(fr)!==-1||[dr,Pr].indexOf(Bt)!==-1&&[dr,$r].indexOf(fr)!==-1||[$r,pr].indexOf(Bt)!==-1&&fr===$r||Ji.indexOf(Bt)!==-1&&[$e,ft].indexOf(fr)!==-1||Ji.indexOf(fr)!==-1&&Bt===lt||ci.indexOf(Bt)!==-1&&ci.indexOf(fr)!==-1||Bt===St&&ci.indexOf(fr)!==-1||ci.concat(me).indexOf(Bt)!==-1&&fr===ve&&Bn.indexOf(m[xt])===-1||ci.concat(me).indexOf(fr)!==-1&&Bt===H)return Ir;if(Bt===un&&fr===un){for(var O=y[Fe],oe=1;O>0&&(O--,d[O]===un);)oe++;if(oe%2!==0)return Ir}return Bt===Ht&&fr===er?Ir:qn},ke=function(m,d){d||(d={lineBreak:"normal",wordBreak:"normal"});var y=ki(m,d.lineBreak),v=y[0],ie=y[1],Fe=y[2];(d.wordBreak==="break-all"||d.wordBreak==="break-word")&&(ie=ie.map(function(xt){return[me,pt,_n].indexOf(xt)!==-1?Dr:xt}));var tt=d.wordBreak==="keep-all"?Fe.map(function(xt,Bt){return xt&&m[Bt]>=19968&&m[Bt]<=40959}):void 0;return[v,ie,tt]},Ee=function(){function m(d,y,v,ie){this.codePoints=d,this.required=y===ti,this.start=v,this.end=ie}return m.prototype.slice=function(){return E.apply(void 0,this.codePoints.slice(this.start,this.end))},m}(),$t=function(m,d){var y=h(m),v=ke(y,d),ie=v[0],Fe=v[1],tt=v[2],xt=y.length,Bt=0,nr=0;return{next:function(){if(nr>=xt)return{done:!0,value:null};for(var fr=Ir;nr<xt&&(fr=Ie(y,Fe,ie,++nr,tt))===Ir;);if(fr!==Ir||nr===xt){var a=new Ee(y,fr,Bt,nr);return Bt=nr,{value:a,done:!1}}return{done:!0,value:null}}}},Nt=1,Er=2,sr=4,Kr=8,Wr=10,tn=47,Vr=92,jr=9,Yr=32,mn=34,rn=61,Dn=35,Qn=36,ui=37,Tn=39,sn=40,Qt=41,Zt=95,qt=45,mr=33,Wt=60,Cr=62,Mr=64,Gr=91,Mn=93,Pn=61,oi=123,ei=63,bi=125,Jn=124,Hn=126,on=128,pi=65533,Ln=42,ri=43,vi=44,_i=58,Xn=59,Bi=46,ra=0,ii=8,cn=11,nn=14,Un=31,wn=127,jn=-1,li=48,wi=97,Aa=101,Yi=102,ao=117,Yn=122,On=65,Fi=69,xi=70,ha=85,Oo=90,na=function(m){return m>=li&&m<=57},Zi=function(m){return m>=55296&&m<=57343},ja=function(m){return na(m)||m>=On&&m<=xi||m>=wi&&m<=Yi},Ma=function(m){return m>=wi&&m<=Yn},eo=function(m){return m>=On&&m<=Oo},vo=function(m){return Ma(m)||eo(m)},ba=function(m){return m>=on},Ai=function(m){return m===Wr||m===jr||m===Yr},ua=function(m){return vo(m)||ba(m)||m===Zt},Do=function(m){return ua(m)||na(m)||m===qt},uo=function(m){return m>=ra&&m<=ii||m===cn||m>=nn&&m<=Un||m===wn},Xa=function(m,d){return m!==Vr?!1:d!==Wr},Di=function(m,d,y){return m===qt?ua(d)||Xa(d,y):ua(m)?!0:!!(m===Vr&&Xa(m,d))},Po=function(m,d,y){return m===ri||m===qt?na(d)?!0:d===Bi&&na(y):na(m===Bi?d:m)},fo=function(m){var d=0,y=1;(m[d]===ri||m[d]===qt)&&(m[d]===qt&&(y=-1),d++);for(var v=[];na(m[d]);)v.push(m[d++]);var ie=v.length?parseInt(E.apply(void 0,v),10):0;m[d]===Bi&&d++;for(var Fe=[];na(m[d]);)Fe.push(m[d++]);var tt=Fe.length,xt=tt?parseInt(E.apply(void 0,Fe),10):0;(m[d]===Fi||m[d]===Aa)&&d++;var Bt=1;(m[d]===ri||m[d]===qt)&&(m[d]===qt&&(Bt=-1),d++);for(var nr=[];na(m[d]);)nr.push(m[d++]);var fr=nr.length?parseInt(E.apply(void 0,nr),10):0;return y*(ie+xt*Math.pow(10,-tt))*Math.pow(10,Bt*fr)},il={type:2},$o={type:3},Hs={type:4},Zo={type:13},vl={type:8},za={type:21},Ra={type:9},Ea={type:10},js={type:11},yi={type:12},Vi={type:14},Oi={type:23},Wi={type:1},da={type:25},La={type:24},Vo={type:26},_o={type:27},Bo={type:28},$a={type:29},wa={type:31},pa={type:32},Oa=function(){function m(){this._value=[]}return m.prototype.write=function(d){this._value=this._value.concat(h(d))},m.prototype.read=function(){for(var d=[],y=this.consumeToken();y!==pa;)d.push(y),y=this.consumeToken();return d},m.prototype.consumeToken=function(){var d=this.consumeCodePoint();switch(d){case mn:return this.consumeStringToken(mn);case Dn:var y=this.peekCodePoint(0),v=this.peekCodePoint(1),ie=this.peekCodePoint(2);if(Do(y)||Xa(v,ie)){var Fe=Di(y,v,ie)?Er:Nt,tt=this.consumeName();return{type:5,value:tt,flags:Fe}}break;case Qn:if(this.peekCodePoint(0)===rn)return this.consumeCodePoint(),Zo;break;case Tn:return this.consumeStringToken(Tn);case sn:return il;case Qt:return $o;case Ln:if(this.peekCodePoint(0)===rn)return this.consumeCodePoint(),Vi;break;case ri:if(Po(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case vi:return Hs;case qt:var xt=d,Bt=this.peekCodePoint(0),nr=this.peekCodePoint(1);if(Po(xt,Bt,nr))return this.reconsumeCodePoint(d),this.consumeNumericToken();if(Di(xt,Bt,nr))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();if(Bt===qt&&nr===Cr)return this.consumeCodePoint(),this.consumeCodePoint(),La;break;case Bi:if(Po(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case tn:if(this.peekCodePoint(0)===Ln)for(this.consumeCodePoint();;){var fr=this.consumeCodePoint();if(fr===Ln&&(fr=this.consumeCodePoint(),fr===tn))return this.consumeToken();if(fr===jn)return this.consumeToken()}break;case _i:return Vo;case Xn:return _o;case Wt:if(this.peekCodePoint(0)===mr&&this.peekCodePoint(1)===qt&&this.peekCodePoint(2)===qt)return this.consumeCodePoint(),this.consumeCodePoint(),da;break;case Mr:var a=this.peekCodePoint(0),g=this.peekCodePoint(1),O=this.peekCodePoint(2);if(Di(a,g,O)){var tt=this.consumeName();return{type:7,value:tt}}break;case Gr:return Bo;case Vr:if(Xa(d,this.peekCodePoint(0)))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();break;case Mn:return $a;case Pn:if(this.peekCodePoint(0)===rn)return this.consumeCodePoint(),vl;break;case oi:return js;case bi:return yi;case ao:case ha:var oe=this.peekCodePoint(0),Me=this.peekCodePoint(1);return oe===ri&&(ja(Me)||Me===ei)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(d),this.consumeIdentLikeToken();case Jn:if(this.peekCodePoint(0)===rn)return this.consumeCodePoint(),Ra;if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),za;break;case Hn:if(this.peekCodePoint(0)===rn)return this.consumeCodePoint(),Ea;break;case jn:return pa}return Ai(d)?(this.consumeWhiteSpace(),wa):na(d)?(this.reconsumeCodePoint(d),this.consumeNumericToken()):ua(d)?(this.reconsumeCodePoint(d),this.consumeIdentLikeToken()):{type:6,value:E(d)}},m.prototype.consumeCodePoint=function(){var d=this._value.shift();return typeof d=="undefined"?-1:d},m.prototype.reconsumeCodePoint=function(d){this._value.unshift(d)},m.prototype.peekCodePoint=function(d){return d>=this._value.length?-1:this._value[d]},m.prototype.consumeUnicodeRangeToken=function(){for(var d=[],y=this.consumeCodePoint();ja(y)&&d.length<6;)d.push(y),y=this.consumeCodePoint();for(var v=!1;y===ei&&d.length<6;)d.push(y),y=this.consumeCodePoint(),v=!0;if(v){var ie=parseInt(E.apply(void 0,d.map(function(Bt){return Bt===ei?li:Bt})),16),Fe=parseInt(E.apply(void 0,d.map(function(Bt){return Bt===ei?xi:Bt})),16);return{type:30,start:ie,end:Fe}}var tt=parseInt(E.apply(void 0,d),16);if(this.peekCodePoint(0)===qt&&ja(this.peekCodePoint(1))){this.consumeCodePoint(),y=this.consumeCodePoint();for(var xt=[];ja(y)&&xt.length<6;)xt.push(y),y=this.consumeCodePoint();var Fe=parseInt(E.apply(void 0,xt),16);return{type:30,start:tt,end:Fe}}else return{type:30,start:tt,end:tt}},m.prototype.consumeIdentLikeToken=function(){var d=this.consumeName();return d.toLowerCase()==="url"&&this.peekCodePoint(0)===sn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===sn?(this.consumeCodePoint(),{type:19,value:d}):{type:20,value:d}},m.prototype.consumeUrlToken=function(){var d=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn)return{type:22,value:""};var y=this.peekCodePoint(0);if(y===Tn||y===mn){var v=this.consumeStringToken(this.consumeCodePoint());return v.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===Qt)?(this.consumeCodePoint(),{type:22,value:v.value}):(this.consumeBadUrlRemnants(),Oi)}for(;;){var ie=this.consumeCodePoint();if(ie===jn||ie===Qt)return{type:22,value:E.apply(void 0,d)};if(Ai(ie))return this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===Qt?(this.consumeCodePoint(),{type:22,value:E.apply(void 0,d)}):(this.consumeBadUrlRemnants(),Oi);if(ie===mn||ie===Tn||ie===sn||uo(ie))return this.consumeBadUrlRemnants(),Oi;if(ie===Vr)if(Xa(ie,this.peekCodePoint(0)))d.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Oi;else d.push(ie)}},m.prototype.consumeWhiteSpace=function(){for(;Ai(this.peekCodePoint(0));)this.consumeCodePoint()},m.prototype.consumeBadUrlRemnants=function(){for(;;){var d=this.consumeCodePoint();if(d===Qt||d===jn)return;Xa(d,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},m.prototype.consumeStringSlice=function(d){for(var y=5e4,v="";d>0;){var ie=Math.min(y,d);v+=E.apply(void 0,this._value.splice(0,ie)),d-=ie}return this._value.shift(),v},m.prototype.consumeStringToken=function(d){var y="",v=0;do{var ie=this._value[v];if(ie===jn||ie===void 0||ie===d)return y+=this.consumeStringSlice(v),{type:0,value:y};if(ie===Wr)return this._value.splice(0,v),Wi;if(ie===Vr){var Fe=this._value[v+1];Fe!==jn&&Fe!==void 0&&(Fe===Wr?(y+=this.consumeStringSlice(v),v=-1,this._value.shift()):Xa(ie,Fe)&&(y+=this.consumeStringSlice(v),y+=E(this.consumeEscapedCodePoint()),v=-1))}v++}while(!0)},m.prototype.consumeNumber=function(){var d=[],y=sr,v=this.peekCodePoint(0);for((v===ri||v===qt)&&d.push(this.consumeCodePoint());na(this.peekCodePoint(0));)d.push(this.consumeCodePoint());v=this.peekCodePoint(0);var ie=this.peekCodePoint(1);if(v===Bi&&na(ie))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Kr;na(this.peekCodePoint(0));)d.push(this.consumeCodePoint());v=this.peekCodePoint(0),ie=this.peekCodePoint(1);var Fe=this.peekCodePoint(2);if((v===Fi||v===Aa)&&((ie===ri||ie===qt)&&na(Fe)||na(ie)))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Kr;na(this.peekCodePoint(0));)d.push(this.consumeCodePoint());return[fo(d),y]},m.prototype.consumeNumericToken=function(){var d=this.consumeNumber(),y=d[0],v=d[1],ie=this.peekCodePoint(0),Fe=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(Di(ie,Fe,tt)){var xt=this.consumeName();return{type:15,number:y,flags:v,unit:xt}}return ie===ui?(this.consumeCodePoint(),{type:16,number:y,flags:v}):{type:17,number:y,flags:v}},m.prototype.consumeEscapedCodePoint=function(){var d=this.consumeCodePoint();if(ja(d)){for(var y=E(d);ja(this.peekCodePoint(0))&&y.length<6;)y+=E(this.consumeCodePoint());Ai(this.peekCodePoint(0))&&this.consumeCodePoint();var v=parseInt(y,16);return v===0||Zi(v)||v>1114111?pi:v}return d===jn?pi:d},m.prototype.consumeName=function(){for(var d="";;){var y=this.consumeCodePoint();if(Do(y))d+=E(y);else if(Xa(y,this.peekCodePoint(0)))d+=E(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(y),d}},m}(),Ja=function(){function m(d){this._tokens=d}return m.create=function(d){var y=new Oa;return y.write(d),new m(y.read())},m.parseValue=function(d){return m.create(d).parseComponentValue()},m.parseValues=function(d){return m.create(d).parseComponentValues()},m.prototype.parseComponentValue=function(){for(var d=this.consumeToken();d.type===31;)d=this.consumeToken();if(d.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(d);var y=this.consumeComponentValue();do d=this.consumeToken();while(d.type===31);if(d.type===32)return y;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},m.prototype.parseComponentValues=function(){for(var d=[];;){var y=this.consumeComponentValue();if(y.type===32)return d;d.push(y),d.push()}},m.prototype.consumeComponentValue=function(){var d=this.consumeToken();switch(d.type){case 11:case 28:case 2:return this.consumeSimpleBlock(d.type);case 19:return this.consumeFunction(d)}return d},m.prototype.consumeSimpleBlock=function(d){for(var y={type:d,values:[]},v=this.consumeToken();;){if(v.type===32||ks(v,d))return y;this.reconsumeToken(v),y.values.push(this.consumeComponentValue()),v=this.consumeToken()}},m.prototype.consumeFunction=function(d){for(var y={name:d.value,values:[],type:18};;){var v=this.consumeToken();if(v.type===32||v.type===3)return y;this.reconsumeToken(v),y.values.push(this.consumeComponentValue())}},m.prototype.consumeToken=function(){var d=this._tokens.shift();return typeof d=="undefined"?pa:d},m.prototype.reconsumeToken=function(d){this._tokens.unshift(d)},m}(),oo=function(m){return m.type===15},Ta=function(m){return m.type===17},ka=function(m){return m.type===20},Fo=function(m){return m.type===0},Ll=function(m,d){return ka(m)&&m.value===d},cs=function(m){return m.type!==31},dl=function(m){return m.type!==31&&m.type!==4},No=function(m){var d=[],y=[];return m.forEach(function(v){if(v.type===4){if(y.length===0)throw new Error("Error parsing function args, zero tokens for arg");d.push(y),y=[];return}v.type!==31&&y.push(v)}),y.length&&d.push(y),d},ks=function(m,d){return d===11&&m.type===12||d===28&&m.type===29?!0:d===2&&m.type===3},Io=function(m){return m.type===17||m.type===15},Kn=function(m){return m.type===16||Io(m)},kl=function(m){return m.length>1?[m[0],m[1]]:[m[0]]},To={type:17,number:0,flags:sr},Hl={type:16,number:50,flags:sr},zs={type:16,number:100,flags:sr},ms=function(m,d,y){var v=m[0],ie=m[1];return[Da(v,d),Da(typeof ie!="undefined"?ie:v,y)]},Da=function(m,d){if(m.type===16)return m.number/100*d;if(oo(m))switch(m.unit){case"rem":case"em":return 16*m.number;case"px":default:return m.number}return m.number},Uo="deg",jl="grad",tc="rad",fl="turn",ma={name:"angle",parse:function(m,d){if(d.type===15)switch(d.unit){case Uo:return Math.PI*d.number/180;case jl:return Math.PI/200*d.number;case tc:return d.number;case fl:return Math.PI*2*d.number}throw new Error("Unsupported angle type")}},oa=function(m){return m.type===15&&(m.unit===Uo||m.unit===jl||m.unit===tc||m.unit===fl)},ho=function(m){var d=m.filter(ka).map(function(y){return y.value}).join(" ");switch(d){case"to bottom right":case"to right bottom":case"left top":case"top left":return[To,To];case"to top":case"bottom":return Za(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[To,zs];case"to right":case"left":return Za(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zs,zs];case"to bottom":case"top":return Za(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zs,To];case"to left":case"right":return Za(270)}return 0},Za=function(m){return Math.PI*m/180},to={name:"color",parse:function(m,d){if(d.type===18){var y=Wc[d.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported color function "'+d.name+'"');return y(m,d.values)}if(d.type===5){if(d.value.length===3){var v=d.value.substring(0,1),ie=d.value.substring(1,2),Fe=d.value.substring(2,3);return Wo(parseInt(v+v,16),parseInt(ie+ie,16),parseInt(Fe+Fe,16),1)}if(d.value.length===4){var v=d.value.substring(0,1),ie=d.value.substring(1,2),Fe=d.value.substring(2,3),tt=d.value.substring(3,4);return Wo(parseInt(v+v,16),parseInt(ie+ie,16),parseInt(Fe+Fe,16),parseInt(tt+tt,16)/255)}if(d.value.length===6){var v=d.value.substring(0,2),ie=d.value.substring(2,4),Fe=d.value.substring(4,6);return Wo(parseInt(v,16),parseInt(ie,16),parseInt(Fe,16),1)}if(d.value.length===8){var v=d.value.substring(0,2),ie=d.value.substring(2,4),Fe=d.value.substring(4,6),tt=d.value.substring(6,8);return Wo(parseInt(v,16),parseInt(ie,16),parseInt(Fe,16),parseInt(tt,16)/255)}}if(d.type===20){var xt=Js[d.value.toUpperCase()];if(typeof xt!="undefined")return xt}return Js.TRANSPARENT}},Ro=function(m){return(255&m)===0},Ya=function(m){var d=255&m,y=255&m>>8,v=255&m>>16,ie=255&m>>24;return d<255?"rgba("+ie+","+v+","+y+","+d/255+")":"rgb("+ie+","+v+","+y+")"},Wo=function(m,d,y,v){return(m<<24|d<<16|y<<8|Math.round(v*255)<<0)>>>0},Ds=function(m,d){if(m.type===17)return m.number;if(m.type===16){var y=d===3?1:255;return d===3?m.number/100*y:Math.round(m.number/100*y)}return 0},hl=function(m,d){var y=d.filter(dl);if(y.length===3){var v=y.map(Ds),ie=v[0],Fe=v[1],tt=v[2];return Wo(ie,Fe,tt,1)}if(y.length===4){var xt=y.map(Ds),ie=xt[0],Fe=xt[1],tt=xt[2],Bt=xt[3];return Wo(ie,Fe,tt,Bt)}return 0};function Xs(m,d,y){return y<0&&(y+=1),y>=1&&(y-=1),y<1/6?(d-m)*y*6+m:y<1/2?d:y<2/3?(d-m)*6*(2/3-y)+m:m}var al=function(m,d){var y=d.filter(dl),v=y[0],ie=y[1],Fe=y[2],tt=y[3],xt=(v.type===17?Za(v.number):ma.parse(m,v))/(Math.PI*2),Bt=Kn(ie)?ie.number/100:0,nr=Kn(Fe)?Fe.number/100:0,fr=typeof tt!="undefined"&&Kn(tt)?Da(tt,1):1;if(Bt===0)return Wo(nr*255,nr*255,nr*255,1);var a=nr<=.5?nr*(Bt+1):nr+Bt-nr*Bt,g=nr*2-a,O=Xs(g,a,xt+1/3),oe=Xs(g,a,xt),Me=Xs(g,a,xt-1/3);return Wo(O*255,oe*255,Me*255,fr)},Wc={hsl:al,hsla:al,rgb:hl,rgba:hl},Dl=function(m,d){return to.parse(m,Ja.create(d).parseComponentValue())},Js={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},lA={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(m,d){return d.map(function(y){if(ka(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},cA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hc=function(m,d){var y=to.parse(m,d[0]),v=d[1];return v&&Kn(v)?{color:y,stop:v}:{color:y,stop:null}},wA=function(m,d){var y=m[0],v=m[m.length-1];y.stop===null&&(y.stop=To),v.stop===null&&(v.stop=zs);for(var ie=[],Fe=0,tt=0;tt<m.length;tt++){var xt=m[tt].stop;if(xt!==null){var Bt=Da(xt,d);Bt>Fe?ie.push(Bt):ie.push(Fe),Fe=Bt}else ie.push(null)}for(var nr=null,tt=0;tt<ie.length;tt++){var fr=ie[tt];if(fr===null)nr===null&&(nr=tt);else if(nr!==null){for(var a=tt-nr,g=ie[nr-1],O=(fr-g)/(a+1),oe=1;oe<=a;oe++)ie[nr+oe-1]=O*oe;nr=null}}return m.map(function(Me,We){var ze=Me.color;return{color:ze,stop:Math.max(Math.min(1,ie[We]/d),0)}})},Pl=function(m,d,y){var v=d/2,ie=y/2,Fe=Da(m[0],d)-v,tt=ie-Da(m[1],y);return(Math.atan2(tt,Fe)+Math.PI*2)%(Math.PI*2)},Ys=function(m,d,y){var v=typeof m=="number"?m:Pl(m,d,y),ie=Math.abs(d*Math.sin(v))+Math.abs(y*Math.cos(v)),Fe=d/2,tt=y/2,xt=ie/2,Bt=Math.sin(v-Math.PI/2)*xt,nr=Math.cos(v-Math.PI/2)*xt;return[ie,Fe-nr,Fe+nr,tt-Bt,tt+Bt]},ol=function(m,d){return Math.sqrt(m*m+d*d)},sl=function(m,d,y,v,ie){var Fe=[[0,0],[0,d],[m,0],[m,d]];return Fe.reduce(function(tt,xt){var Bt=xt[0],nr=xt[1],fr=ol(y-Bt,v-nr);return(ie?fr<tt.optimumDistance:fr>tt.optimumDistance)?{optimumCorner:xt,optimumDistance:fr}:tt},{optimumDistance:ie?1/0:-1/0,optimumCorner:null}).optimumCorner},Na=function(m,d,y,v,ie){var Fe=0,tt=0;switch(m.size){case 0:m.shape===0?Fe=tt=Math.min(Math.abs(d),Math.abs(d-v),Math.abs(y),Math.abs(y-ie)):m.shape===1&&(Fe=Math.min(Math.abs(d),Math.abs(d-v)),tt=Math.min(Math.abs(y),Math.abs(y-ie)));break;case 2:if(m.shape===0)Fe=tt=Math.min(ol(d,y),ol(d,y-ie),ol(d-v,y),ol(d-v,y-ie));else if(m.shape===1){var xt=Math.min(Math.abs(y),Math.abs(y-ie))/Math.min(Math.abs(d),Math.abs(d-v)),Bt=sl(v,ie,d,y,!0),nr=Bt[0],fr=Bt[1];Fe=ol(nr-d,(fr-y)/xt),tt=xt*Fe}break;case 1:m.shape===0?Fe=tt=Math.max(Math.abs(d),Math.abs(d-v),Math.abs(y),Math.abs(y-ie)):m.shape===1&&(Fe=Math.max(Math.abs(d),Math.abs(d-v)),tt=Math.max(Math.abs(y),Math.abs(y-ie)));break;case 3:if(m.shape===0)Fe=tt=Math.max(ol(d,y),ol(d,y-ie),ol(d-v,y),ol(d-v,y-ie));else if(m.shape===1){var xt=Math.max(Math.abs(y),Math.abs(y-ie))/Math.max(Math.abs(d),Math.abs(d-v)),a=sl(v,ie,d,y,!1),nr=a[0],fr=a[1];Fe=ol(nr-d,(fr-y)/xt),tt=xt*Fe}break}return Array.isArray(m.size)&&(Fe=Da(m.size[0],v),tt=m.size.length===2?Da(m.size[1],ie):Fe),[Fe,tt]},po=function(m,d){var y=Za(180),v=[];return No(d).forEach(function(ie,Fe){if(Fe===0){var tt=ie[0];if(tt.type===20&&tt.value==="to"){y=ho(ie);return}else if(oa(tt)){y=ma.parse(m,tt);return}}var xt=hc(m,ie);v.push(xt)}),{angle:y,stops:v,type:1}},mo=function(m,d){var y=Za(180),v=[];return No(d).forEach(function(ie,Fe){if(Fe===0){var tt=ie[0];if(tt.type===20&&["top","left","right","bottom"].indexOf(tt.value)!==-1){y=ho(ie);return}else if(oa(tt)){y=(ma.parse(m,tt)+Za(270))%Za(360);return}}var xt=hc(m,ie);v.push(xt)}),{angle:y,stops:v,type:1}},Go=function(m,d){var y=Za(180),v=[],ie=1,Fe=0,tt=3,xt=[];return No(d).forEach(function(Bt,nr){var fr=Bt[0];if(nr===0){if(ka(fr)&&fr.value==="linear"){ie=1;return}else if(ka(fr)&&fr.value==="radial"){ie=2;return}}if(fr.type===18){if(fr.name==="from"){var a=to.parse(m,fr.values[0]);v.push({stop:To,color:a})}else if(fr.name==="to"){var a=to.parse(m,fr.values[0]);v.push({stop:zs,color:a})}else if(fr.name==="color-stop"){var g=fr.values.filter(dl);if(g.length===2){var a=to.parse(m,g[1]),O=g[0];Ta(O)&&v.push({stop:{type:16,number:O.number*100,flags:O.flags},color:a})}}}}),ie===1?{angle:(y+Za(180))%Za(360),stops:v,type:ie}:{size:tt,shape:Fe,stops:v,position:xt,type:ie}},Ps="closest-side",kc="farthest-side",yl="closest-corner",Gc="farthest-corner",xA="circle",CA="ellipse",pc="cover",mc="contain",Uu=function(m,d){var y=0,v=3,ie=[],Fe=[];return No(d).forEach(function(tt,xt){var Bt=!0;if(xt===0){var nr=!1;Bt=tt.reduce(function(a,g){if(nr)if(ka(g))switch(g.value){case"center":return Fe.push(Hl),a;case"top":case"left":return Fe.push(To),a;case"right":case"bottom":return Fe.push(zs),a}else(Kn(g)||Io(g))&&Fe.push(g);else if(ka(g))switch(g.value){case xA:return y=0,!1;case CA:return y=1,!1;case"at":return nr=!0,!1;case Ps:return v=0,!1;case pc:case kc:return v=1,!1;case mc:case yl:return v=2,!1;case Gc:return v=3,!1}else if(Io(g)||Kn(g))return Array.isArray(v)||(v=[]),v.push(g),!1;return a},Bt)}if(Bt){var fr=hc(m,tt);ie.push(fr)}}),{size:v,shape:y,stops:ie,position:Fe,type:2}},KA=function(m,d){var y=0,v=3,ie=[],Fe=[];return No(d).forEach(function(tt,xt){var Bt=!0;if(xt===0?Bt=tt.reduce(function(fr,a){if(ka(a))switch(a.value){case"center":return Fe.push(Hl),!1;case"top":case"left":return Fe.push(To),!1;case"right":case"bottom":return Fe.push(zs),!1}else if(Kn(a)||Io(a))return Fe.push(a),!1;return fr},Bt):xt===1&&(Bt=tt.reduce(function(fr,a){if(ka(a))switch(a.value){case xA:return y=0,!1;case CA:return y=1,!1;case mc:case Ps:return v=0,!1;case kc:return v=1,!1;case yl:return v=2,!1;case pc:case Gc:return v=3,!1}else if(Io(a)||Kn(a))return Array.isArray(v)||(v=[]),v.push(a),!1;return fr},Bt)),Bt){var nr=hc(m,tt);ie.push(nr)}}),{size:v,shape:y,stops:ie,position:Fe,type:2}},ed=function(m){return m.type===1},td=function(m){return m.type===2},lu={name:"image",parse:function(m,d){if(d.type===22){var y={url:d.value,type:0};return m.cache.addImage(d.value),y}if(d.type===18){var v=Ru[d.name];if(typeof v=="undefined")throw new Error('Attempting to parse an unsupported image function "'+d.name+'"');return v(m,d.values)}throw new Error("Unsupported image type "+d.type)}};function vd(m){return!(m.type===20&&m.value==="none")&&(m.type!==18||!!Ru[m.name])}var Ru={"linear-gradient":po,"-moz-linear-gradient":mo,"-ms-linear-gradient":mo,"-o-linear-gradient":mo,"-webkit-linear-gradient":mo,"radial-gradient":Uu,"-moz-radial-gradient":KA,"-ms-radial-gradient":KA,"-o-radial-gradient":KA,"-webkit-radial-gradient":KA,"-webkit-gradient":Go},cu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(m,d){if(d.length===0)return[];var y=d[0];return y.type===20&&y.value==="none"?[]:d.filter(function(v){return dl(v)&&vd(v)}).map(function(v){return lu.parse(m,v)})}},c={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(m,d){return d.map(function(y){if(ka(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},o={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(m,d){return No(d).map(function(y){return y.filter(Kn)}).map(kl)}},l={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(m,d){return No(d).map(function(y){return y.filter(ka).map(function(v){return v.value}).join(" ")}).map(b)}},b=function(m){switch(m){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}},I;(function(m){m.AUTO="auto",m.CONTAIN="contain",m.COVER="cover"})(I||(I={}));var C={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(m,d){return No(d).map(function(y){return y.filter(N)})}},N=function(m){return ka(m)||Kn(m)},$=function(m){return{name:"border-"+m+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ae=$("top"),_e=$("right"),Ze=$("bottom"),Ve=$("left"),it=function(m){return{name:"border-radius-"+m,initialValue:"0 0",prefix:!1,type:1,parse:function(d,y){return kl(y.filter(Kn))}}},ye=it("top-left"),kt=it("top-right"),bt=it("bottom-right"),Dt=it("bottom-left"),ht=function(m){return{name:"border-"+m+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(d,y){switch(y){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Pt=ht("top"),ir=ht("right"),xr=ht("bottom"),Hr=ht("left"),hn=function(m){return{name:"border-"+m+"-width",initialValue:"0",type:0,prefix:!1,parse:function(d,y){return oo(y)?y.number:0}}},Lr=hn("top"),Vt=hn("right"),Or=hn("bottom"),Jr=hn("left"),gt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ct={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(m,d){switch(d){case"rtl":return 1;case"ltr":default:return 0}}},rr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(m,d){return d.filter(ka).reduce(function(y,v){return y|T(v.value)},0)}},T=function(m){switch(m){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},re={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(m,d){switch(d){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Be={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(m,d){return d.type===20&&d.value==="normal"?0:d.type===17||d.type===15?d.number:0}},Ue;(function(m){m.NORMAL="normal",m.STRICT="strict"})(Ue||(Ue={}));var Ke={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,d){switch(d){case"strict":return Ue.STRICT;case"normal":default:return Ue.NORMAL}}},Xe={name:"line-height",initialValue:"normal",prefix:!1,type:4},ut=function(m,d){return ka(m)&&m.value==="normal"?1.2*d:m.type===17?d*m.number:Kn(m)?Da(m,d):d},Et={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(m,d){return d.type===20&&d.value==="none"?null:lu.parse(m,d)}},le={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(m,d){switch(d){case"inside":return 0;case"outside":default:return 1}}},Re={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(m,d){switch(d){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ye=function(m){return{name:"margin-"+m,initialValue:"0",prefix:!1,type:4}},et=Ye("top"),yt=Ye("right"),_t=Ye("bottom"),Mt=Ye("left"),Rt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(m,d){return d.filter(ka).map(function(y){switch(y.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},lr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(m,d){switch(d){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ar=function(m){return{name:"padding-"+m,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},gr=Ar("top"),_r=Ar("right"),dn=Ar("bottom"),ar=Ar("left"),vt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(m,d){switch(d){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Fn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(m,d){switch(d){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},gn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,d){return d.length===1&&Ll(d[0],"none")?[]:No(d).map(function(y){for(var v={color:Js.TRANSPARENT,offsetX:To,offsetY:To,blur:To},ie=0,Fe=0;Fe<y.length;Fe++){var tt=y[Fe];Io(tt)?(ie===0?v.offsetX=tt:ie===1?v.offsetY=tt:v.blur=tt,ie++):v.color=to.parse(m,tt)}return v})}},yr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(m,d){switch(d){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ur={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(m,d){if(d.type===20&&d.value==="none")return null;if(d.type===18){var y=Zr[d.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+d.name+'"');return y(d.values)}return null}},Rr=function(m){var d=m.filter(function(y){return y.type===17}).map(function(y){return y.number});return d.length===6?d:null},wr=function(m){var d=m.filter(function(Bt){return Bt.type===17}).map(function(Bt){return Bt.number}),y=d[0],v=d[1];d[2],d[3];var ie=d[4],Fe=d[5];d[6],d[7],d[8],d[9],d[10],d[11];var tt=d[12],xt=d[13];return d[14],d[15],d.length===16?[y,v,ie,Fe,tt,xt]:null},Zr={matrix:Rr,matrix3d:wr},Cn={type:16,number:50,flags:sr},Gn=[Cn,Cn],Zn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(m,d){var y=d.filter(Kn);return y.length!==2?Gn:[y[0],y[1]]}},Nn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(m,d){switch(d){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},di;(function(m){m.NORMAL="normal",m.BREAK_ALL="break-all",m.KEEP_ALL="keep-all"})(di||(di={}));for(var zn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,d){switch(d){case"break-all":return di.BREAK_ALL;case"keep-all":return di.KEEP_ALL;case"normal":default:return di.NORMAL}}},Ii={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(m,d){if(d.type===20)return{auto:!0,order:0};if(Ta(d))return{auto:!1,order:d.number};throw new Error("Invalid z-index number parsed")}},vn={name:"time",parse:function(m,d){if(d.type===15)switch(d.unit.toLowerCase()){case"s":return 1e3*d.number;case"ms":return d.number}throw new Error("Unsupported time type")}},_a={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(m,d){return Ta(d)?d.number:1}},Hi={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ri={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(m,d){return d.filter(ka).map(function(y){switch(y.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(y){return y!==0})}},ia={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(m,d){var y=[],v=[];return d.forEach(function(ie){switch(ie.type){case 20:case 0:y.push(ie.value);break;case 17:y.push(ie.number.toString());break;case 4:v.push(y.join(" ")),y.length=0;break}}),y.length&&v.push(y.join(" ")),v.map(function(ie){return ie.indexOf(" ")===-1?ie:"'"+ie+"'"})}},Ki={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Qa={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(m,d){if(Ta(d))return d.number;if(ka(d))switch(d.value){case"bold":return 700;case"normal":default:return 400}return 400}},Gi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(m,d){return d.filter(ka).map(function(y){return y.value})}},As={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(m,d){switch(d){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Sn=function(m,d){return(m&d)!==0},fi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(m,d){if(d.length===0)return[];var y=d[0];return y.type===20&&y.value==="none"?[]:d}},mi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(m,d){if(d.length===0)return null;var y=d[0];if(y.type===20&&y.value==="none")return null;for(var v=[],ie=d.filter(cs),Fe=0;Fe<ie.length;Fe++){var tt=ie[Fe],xt=ie[Fe+1];if(tt.type===20){var Bt=xt&&Ta(xt)?xt.number:1;v.push({counter:tt.value,increment:Bt})}}return v}},$n={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(m,d){if(d.length===0)return[];for(var y=[],v=d.filter(cs),ie=0;ie<v.length;ie++){var Fe=v[ie],tt=v[ie+1];if(ka(Fe)&&Fe.value!=="none"){var xt=tt&&Ta(tt)?tt.number:0;y.push({counter:Fe.value,reset:xt})}}return y}},ai={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(m,d){return d.filter(oo).map(function(y){return vn.parse(m,y)})}},kn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(m,d){if(d.length===0)return null;var y=d[0];if(y.type===20&&y.value==="none")return null;var v=[],ie=d.filter(Fo);if(ie.length%2!==0)return null;for(var Fe=0;Fe<ie.length;Fe+=2){var tt=ie[Fe].value,xt=ie[Fe+1].value;v.push({open:tt,close:xt})}return v}},Qi=function(m,d,y){if(!m)return"";var v=m[Math.min(d,m.length-1)];return v?y?v.open:v.close:""},Xi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,d){return d.length===1&&Ll(d[0],"none")?[]:No(d).map(function(y){for(var v={color:255,offsetX:To,offsetY:To,blur:To,spread:To,inset:!1},ie=0,Fe=0;Fe<y.length;Fe++){var tt=y[Fe];Ll(tt,"inset")?v.inset=!0:Io(tt)?(ie===0?v.offsetX=tt:ie===1?v.offsetY=tt:ie===2?v.blur=tt:v.spread=tt,ie++):v.color=to.parse(m,tt)}return v})}},qi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(m,d){var y=[0,1,2],v=[];return d.filter(ka).forEach(function(ie){switch(ie.value){case"stroke":v.push(1);break;case"fill":v.push(0);break;case"markers":v.push(2);break}}),y.forEach(function(ie){v.indexOf(ie)===-1&&v.push(ie)}),v}},Mo={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Mi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(m,d){return oo(d)?d.number:0}},ns=function(){function m(d,y){var v,ie;this.animationDuration=bn(d,ai,y.animationDuration),this.backgroundClip=bn(d,lA,y.backgroundClip),this.backgroundColor=bn(d,cA,y.backgroundColor),this.backgroundImage=bn(d,cu,y.backgroundImage),this.backgroundOrigin=bn(d,c,y.backgroundOrigin),this.backgroundPosition=bn(d,o,y.backgroundPosition),this.backgroundRepeat=bn(d,l,y.backgroundRepeat),this.backgroundSize=bn(d,C,y.backgroundSize),this.borderTopColor=bn(d,ae,y.borderTopColor),this.borderRightColor=bn(d,_e,y.borderRightColor),this.borderBottomColor=bn(d,Ze,y.borderBottomColor),this.borderLeftColor=bn(d,Ve,y.borderLeftColor),this.borderTopLeftRadius=bn(d,ye,y.borderTopLeftRadius),this.borderTopRightRadius=bn(d,kt,y.borderTopRightRadius),this.borderBottomRightRadius=bn(d,bt,y.borderBottomRightRadius),this.borderBottomLeftRadius=bn(d,Dt,y.borderBottomLeftRadius),this.borderTopStyle=bn(d,Pt,y.borderTopStyle),this.borderRightStyle=bn(d,ir,y.borderRightStyle),this.borderBottomStyle=bn(d,xr,y.borderBottomStyle),this.borderLeftStyle=bn(d,Hr,y.borderLeftStyle),this.borderTopWidth=bn(d,Lr,y.borderTopWidth),this.borderRightWidth=bn(d,Vt,y.borderRightWidth),this.borderBottomWidth=bn(d,Or,y.borderBottomWidth),this.borderLeftWidth=bn(d,Jr,y.borderLeftWidth),this.boxShadow=bn(d,Xi,y.boxShadow),this.color=bn(d,gt,y.color),this.direction=bn(d,Ct,y.direction),this.display=bn(d,rr,y.display),this.float=bn(d,re,y.cssFloat),this.fontFamily=bn(d,ia,y.fontFamily),this.fontSize=bn(d,Ki,y.fontSize),this.fontStyle=bn(d,As,y.fontStyle),this.fontVariant=bn(d,Gi,y.fontVariant),this.fontWeight=bn(d,Qa,y.fontWeight),this.letterSpacing=bn(d,Be,y.letterSpacing),this.lineBreak=bn(d,Ke,y.lineBreak),this.lineHeight=bn(d,Xe,y.lineHeight),this.listStyleImage=bn(d,Et,y.listStyleImage),this.listStylePosition=bn(d,le,y.listStylePosition),this.listStyleType=bn(d,Re,y.listStyleType),this.marginTop=bn(d,et,y.marginTop),this.marginRight=bn(d,yt,y.marginRight),this.marginBottom=bn(d,_t,y.marginBottom),this.marginLeft=bn(d,Mt,y.marginLeft),this.opacity=bn(d,_a,y.opacity);var Fe=bn(d,Rt,y.overflow);this.overflowX=Fe[0],this.overflowY=Fe[Fe.length>1?1:0],this.overflowWrap=bn(d,lr,y.overflowWrap),this.paddingTop=bn(d,gr,y.paddingTop),this.paddingRight=bn(d,_r,y.paddingRight),this.paddingBottom=bn(d,dn,y.paddingBottom),this.paddingLeft=bn(d,ar,y.paddingLeft),this.paintOrder=bn(d,qi,y.paintOrder),this.position=bn(d,Fn,y.position),this.textAlign=bn(d,vt,y.textAlign),this.textDecorationColor=bn(d,Hi,(v=y.textDecorationColor)!==null&&v!==void 0?v:y.color),this.textDecorationLine=bn(d,Ri,(ie=y.textDecorationLine)!==null&&ie!==void 0?ie:y.textDecoration),this.textShadow=bn(d,gn,y.textShadow),this.textTransform=bn(d,yr,y.textTransform),this.transform=bn(d,Ur,y.transform),this.transformOrigin=bn(d,Zn,y.transformOrigin),this.visibility=bn(d,Nn,y.visibility),this.webkitTextStrokeColor=bn(d,Mo,y.webkitTextStrokeColor),this.webkitTextStrokeWidth=bn(d,Mi,y.webkitTextStrokeWidth),this.wordBreak=bn(d,zn,y.wordBreak),this.zIndex=bn(d,Ii,y.zIndex)}return m.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},m.prototype.isTransparent=function(){return Ro(this.backgroundColor)},m.prototype.isTransformed=function(){return this.transform!==null},m.prototype.isPositioned=function(){return this.position!==0},m.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},m.prototype.isFloating=function(){return this.float!==0},m.prototype.isInlineLevel=function(){return Sn(this.display,4)||Sn(this.display,33554432)||Sn(this.display,268435456)||Sn(this.display,536870912)||Sn(this.display,67108864)||Sn(this.display,134217728)},m}(),ro=function(){function m(d,y){this.content=bn(d,fi,y.content),this.quotes=bn(d,kn,y.quotes)}return m}(),Qo=function(){function m(d,y){this.counterIncrement=bn(d,mi,y.counterIncrement),this.counterReset=bn(d,$n,y.counterReset)}return m}(),bn=function(m,d,y){var v=new Oa,ie=y!==null&&typeof y!="undefined"?y.toString():d.initialValue;v.write(ie);var Fe=new Ja(v.read());switch(d.type){case 2:var tt=Fe.parseComponentValue();return d.parse(m,ka(tt)?tt.value:d.initialValue);case 0:return d.parse(m,Fe.parseComponentValue());case 1:return d.parse(m,Fe.parseComponentValues());case 4:return Fe.parseComponentValue();case 3:switch(d.format){case"angle":return ma.parse(m,Fe.parseComponentValue());case"color":return to.parse(m,Fe.parseComponentValue());case"image":return lu.parse(m,Fe.parseComponentValue());case"length":var xt=Fe.parseComponentValue();return Io(xt)?xt:To;case"length-percentage":var Bt=Fe.parseComponentValue();return Kn(Bt)?Bt:To;case"time":return vn.parse(m,Fe.parseComponentValue())}break}},no="data-html2canvas-debug",Cs=function(m){var d=m.getAttribute(no);switch(d){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ga=function(m,d){var y=Cs(m);return y===1||d===y},en=function(){function m(d,y){if(this.context=d,this.textNodes=[],this.elements=[],this.flags=0,ga(y,3))debugger;this.styles=new ns(d,window.getComputedStyle(y,null)),Xr(y)&&(this.styles.animationDuration.some(function(v){return v>0})&&(y.style.animationDuration="0s"),this.styles.transform!==null&&(y.style.transform="none")),this.bounds=Z(this.context,y),ga(y,4)&&(this.flags|=16)}return m}(),fa="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Si=0;Si<so.length;Si++)Va[so.charCodeAt(Si)]=Si;for(var bo=function(m){var d=m.length*.75,y=m.length,v,ie=0,Fe,tt,xt,Bt;m[m.length-1]==="="&&(d--,m[m.length-2]==="="&&d--);var nr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),fr=Array.isArray(nr)?nr:new Uint8Array(nr);for(v=0;v<y;v+=4)Fe=Va[m.charCodeAt(v)],tt=Va[m.charCodeAt(v+1)],xt=Va[m.charCodeAt(v+2)],Bt=Va[m.charCodeAt(v+3)],fr[ie++]=Fe<<2|tt>>4,fr[ie++]=(tt&15)<<4|xt>>2,fr[ie++]=(xt&3)<<6|Bt&63;return nr},Ko=function(m){for(var d=m.length,y=[],v=0;v<d;v+=2)y.push(m[v+1]<<8|m[v]);return y},Bs=function(m){for(var d=m.length,y=[],v=0;v<d;v+=4)y.push(m[v+3]<<24|m[v+2]<<16|m[v+1]<<8|m[v]);return y},gs=5,is=11,us=2,bl=is-gs,as=65536>>gs,$s=1<<gs,ds=$s-1,Lo=1024>>gs,wo=as+Lo,qs=wo,Ol=32,zl=qs+Ol,wl=65536>>is,BA=1<<bl,Xc=BA-1,xa=function(m,d,y){return m.slice?m.slice(d,y):new Uint16Array(Array.prototype.slice.call(m,d,y))},ea=function(m,d,y){return m.slice?m.slice(d,y):new Uint32Array(Array.prototype.slice.call(m,d,y))},vs=function(m,d){var y=bo(m),v=Array.isArray(y)?Bs(y):new Uint32Array(y),ie=Array.isArray(y)?Ko(y):new Uint16Array(y),Fe=24,tt=xa(ie,Fe/2,v[4]/2),xt=v[5]===2?xa(ie,(Fe+v[4])/2):ea(v,Math.ceil((Fe+v[4])/4));return new go(v[0],v[1],v[2],v[3],tt,xt)},go=function(){function m(d,y,v,ie,Fe,tt){this.initialValue=d,this.errorValue=y,this.highStart=v,this.highValueIndex=ie,this.index=Fe,this.data=tt}return m.prototype.get=function(d){var y;if(d>=0){if(d<55296||d>56319&&d<=65535)return y=this.index[d>>gs],y=(y<<us)+(d&ds),this.data[y];if(d<=65535)return y=this.index[as+(d-55296>>gs)],y=(y<<us)+(d&ds),this.data[y];if(d<this.highStart)return y=zl-wl+(d>>is),y=this.index[y],y+=d>>gs&Xc,y=this.index[y],y=(y<<us)+(d&ds),this.data[y];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},m}(),fs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ss=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Es=0;Es<fs.length;Es++)Ss[fs.charCodeAt(Es)]=Es;var _s=1,Dc=2,ll=3,gc=4,Ca=5,So=7,xl=8,rc=9,Os=10,HA=11,Cl=12,jA=13,zA=14,Jc=15,$l=function(m){for(var d=[],y=0,v=m.length;y<v;){var ie=m.charCodeAt(y++);if(ie>=55296&&ie<=56319&&y<v){var Fe=m.charCodeAt(y++);(Fe&64512)===56320?d.push(((ie&1023)<<10)+(Fe&1023)+65536):(d.push(ie),y--)}else d.push(ie)}return d},vc=function(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,m);var y=m.length;if(!y)return"";for(var v=[],ie=-1,Fe="";++ie<y;){var tt=m[ie];tt<=65535?v.push(tt):(tt-=65536,v.push((tt>>10)+55296,tt%1024+56320)),(ie+1===y||v.length>16384)&&(Fe+=String.fromCharCode.apply(String,v),v.length=0)}return Fe},nc=vs(fa),fn="\xD7",Fs="\xF7",SA=function(m){return nc.get(m)},AA=function(m,d,y){var v=y-2,ie=d[v],Fe=d[y-1],tt=d[y];if(Fe===Dc&&tt===ll)return fn;if(Fe===Dc||Fe===ll||Fe===gc||tt===Dc||tt===ll||tt===gc)return Fs;if(Fe===xl&&[xl,rc,HA,Cl].indexOf(tt)!==-1||(Fe===HA||Fe===rc)&&(tt===rc||tt===Os)||(Fe===Cl||Fe===Os)&&tt===Os||tt===jA||tt===Ca||tt===So||Fe===_s)return fn;if(Fe===jA&&tt===zA){for(;ie===Ca;)ie=d[--v];if(ie===zA)return fn}if(Fe===Jc&&tt===Jc){for(var xt=0;ie===Jc;)xt++,ie=d[--v];if(xt%2===0)return fn}return Fs},sa=function(m){var d=$l(m),y=d.length,v=0,ie=0,Fe=d.map(SA);return{next:function(){if(v>=y)return{done:!0,value:null};for(var tt=fn;v<y&&(tt=AA(d,Fe,++v))===fn;);if(tt!==fn||v===y){var xt=vc.apply(null,d.slice(ie,v));return ie=v,{value:xt,done:!1}}return{done:!0,value:null}}}},EA=function(m){for(var d=sa(m),y=[],v;!(v=d.next()).done;)v.value&&y.push(v.value.slice());return y},$A=function(m){var d=123;if(m.createRange){var y=m.createRange();if(y.getBoundingClientRect){var v=m.createElement("boundtest");v.style.height=d+"px",v.style.display="block",m.body.appendChild(v),y.selectNode(v);var ie=y.getBoundingClientRect(),Fe=Math.round(ie.height);if(m.body.removeChild(v),Fe===d)return!0}}return!1},Zl=function(m){var d=m.createElement("boundtest");d.style.width="50px",d.style.display="block",d.style.fontSize="12px",d.style.letterSpacing="0px",d.style.wordSpacing="0px",m.body.appendChild(d);var y=m.createRange();d.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var v=d.firstChild,ie=h(v.data).map(function(Bt){return E(Bt)}),Fe=0,tt={},xt=ie.every(function(Bt,nr){y.setStart(v,Fe),y.setEnd(v,Fe+Bt.length);var fr=y.getBoundingClientRect();Fe+=Bt.length;var a=fr.x>tt.x||fr.y>tt.y;return tt=fr,nr===0?!0:a});return m.body.removeChild(d),xt},Xo=function(){return typeof new Image().crossOrigin!="undefined"},ZA=function(){return typeof new XMLHttpRequest().responseType=="string"},Pc=function(m){var d=new Image,y=m.createElement("canvas"),v=y.getContext("2d");if(!v)return!1;d.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{v.drawImage(d,0,0),y.toDataURL()}catch(ie){return!1}return!0},yc=function(m){return m[0]===0&&m[1]===255&&m[2]===0&&m[3]===255},_A=function(m){var d=m.createElement("canvas"),y=100;d.width=y,d.height=y;var v=d.getContext("2d");if(!v)return Promise.reject(!1);v.fillStyle="rgb(0, 255, 0)",v.fillRect(0,0,y,y);var ie=new Image,Fe=d.toDataURL();ie.src=Fe;var tt=Vl(y,y,0,0,ie);return v.fillStyle="red",v.fillRect(0,0,y,y),ic(tt).then(function(xt){v.drawImage(xt,0,0);var Bt=v.getImageData(0,0,y,y).data;v.fillStyle="red",v.fillRect(0,0,y,y);var nr=m.createElement("div");return nr.style.backgroundImage="url("+Fe+")",nr.style.height=y+"px",yc(Bt)?ic(Vl(y,y,0,0,nr)):Promise.reject(!1)}).then(function(xt){return v.drawImage(xt,0,0),yc(v.getImageData(0,0,y,y).data)}).catch(function(){return!1})},Vl=function(m,d,y,v,ie){var Fe="http://www.w3.org/2000/svg",tt=document.createElementNS(Fe,"svg"),xt=document.createElementNS(Fe,"foreignObject");return tt.setAttributeNS(null,"width",m.toString()),tt.setAttributeNS(null,"height",d.toString()),xt.setAttributeNS(null,"width","100%"),xt.setAttributeNS(null,"height","100%"),xt.setAttributeNS(null,"x",y.toString()),xt.setAttributeNS(null,"y",v.toString()),xt.setAttributeNS(null,"externalResourcesRequired","true"),tt.appendChild(xt),xt.appendChild(ie),tt},ic=function(m){return new Promise(function(d,y){var v=new Image;v.onload=function(){return d(v)},v.onerror=y,v.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},lo={get SUPPORT_RANGE_BOUNDS(){var m=$A(document);return Object.defineProperty(lo,"SUPPORT_RANGE_BOUNDS",{value:m}),m},get SUPPORT_WORD_BREAKING(){var m=lo.SUPPORT_RANGE_BOUNDS&&Zl(document);return Object.defineProperty(lo,"SUPPORT_WORD_BREAKING",{value:m}),m},get SUPPORT_SVG_DRAWING(){var m=Pc(document);return Object.defineProperty(lo,"SUPPORT_SVG_DRAWING",{value:m}),m},get SUPPORT_FOREIGNOBJECT_DRAWING(){var m=typeof Array.from=="function"&&typeof window.fetch=="function"?_A(document):Promise.resolve(!1);return Object.defineProperty(lo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:m}),m},get SUPPORT_CORS_IMAGES(){var m=Xo();return Object.defineProperty(lo,"SUPPORT_CORS_IMAGES",{value:m}),m},get SUPPORT_RESPONSE_TYPE(){var m=ZA();return Object.defineProperty(lo,"SUPPORT_RESPONSE_TYPE",{value:m}),m},get SUPPORT_CORS_XHR(){var m="withCredentials"in new XMLHttpRequest;return Object.defineProperty(lo,"SUPPORT_CORS_XHR",{value:m}),m},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var m=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(lo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:m}),m}},Ns=function(){function m(d,y){this.text=d,this.bounds=y}return m}(),ts=function(m,d,y,v){var ie=Wl(d,y),Fe=[],tt=0;return ie.forEach(function(xt){if(y.textDecorationLine.length||xt.trim().length>0)if(lo.SUPPORT_RANGE_BOUNDS){var Bt=va(v,tt,xt.length).getClientRects();if(Bt.length>1){var nr=Ba(xt),fr=0;nr.forEach(function(g){Fe.push(new Ns(g,te.fromDOMRectList(m,va(v,fr+tt,g.length).getClientRects()))),fr+=g.length})}else Fe.push(new Ns(xt,te.fromDOMRectList(m,Bt)))}else{var a=v.splitText(xt.length);Fe.push(new Ns(xt,bc(m,v))),v=a}else lo.SUPPORT_RANGE_BOUNDS||(v=v.splitText(xt.length));tt+=xt.length}),Fe},bc=function(m,d){var y=d.ownerDocument;if(y){var v=y.createElement("html2canvaswrapper");v.appendChild(d.cloneNode(!0));var ie=d.parentNode;if(ie){ie.replaceChild(v,d);var Fe=Z(m,v);return v.firstChild&&ie.replaceChild(v.firstChild,v),Fe}}return te.EMPTY},va=function(m,d,y){var v=m.ownerDocument;if(!v)throw new Error("Node has no owner document");var ie=v.createRange();return ie.setStart(m,d),ie.setEnd(m,d+y),ie},Ba=function(m){if(lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var d=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(d.segment(m)).map(function(y){return y.segment})}return EA(m)},Zs=function(m,d){if(lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var y=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(y.segment(m)).map(function(v){return v.segment})}return VA(m,d)},Wl=function(m,d){return d.letterSpacing!==0?Ba(m):Zs(m,d)},Nl=[32,160,4961,65792,65793,4153,4241],VA=function(m,d){for(var y=$t(m,{lineBreak:d.lineBreak,wordBreak:d.overflowWrap==="break-word"?"break-word":d.wordBreak}),v=[],ie,Fe=function(){if(ie.value){var tt=ie.value.slice(),xt=h(tt),Bt="";xt.forEach(function(nr){Nl.indexOf(nr)===-1?Bt+=E(nr):(Bt.length&&v.push(Bt),v.push(E(nr)),Bt="")}),Bt.length&&v.push(Bt)}};!(ie=y.next()).done;)Fe();return v},os=function(){function m(d,y,v){this.text=ys(y.data,v.textTransform),this.textBounds=ts(d,this.text,v,y)}return m}(),ys=function(m,d){switch(d){case 1:return m.toLowerCase();case 3:return m.replace(ac,FA);case 2:return m.toUpperCase();default:return m}},ac=/(^|\s|:|-|\(|\))([a-z])/g,FA=function(m,d,y){return m.length>0?d+y.toUpperCase():m},Oc=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;return ie.src=v.currentSrc||v.src,ie.intrinsicWidth=v.naturalWidth,ie.intrinsicHeight=v.naturalHeight,ie.context.cache.addImage(ie.src),ie}return d}(en),la=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;return ie.canvas=v,ie.intrinsicWidth=v.width,ie.intrinsicHeight=v.height,ie}return d}(en),Nc=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this,Fe=new XMLSerializer,tt=Z(y,v);return v.setAttribute("width",tt.width+"px"),v.setAttribute("height",tt.height+"px"),ie.svg="data:image/svg+xml,"+encodeURIComponent(Fe.serializeToString(v)),ie.intrinsicWidth=v.width.baseVal.value,ie.intrinsicHeight=v.height.baseVal.value,ie.context.cache.addImage(ie.svg),ie}return d}(en),Gl=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;return ie.value=v.value,ie}return d}(en),IA=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;return ie.start=v.start,ie.reversed=typeof v.reversed=="boolean"&&v.reversed===!0,ie}return d}(en),zr=[{type:15,flags:0,unit:"px",number:3}],yd=[{type:16,flags:0,number:50}],Qu=function(m){return m.width>m.height?new te(m.left+(m.width-m.height)/2,m.top,m.height,m.height):m.width<m.height?new te(m.left,m.top+(m.height-m.width)/2,m.width,m.width):m},WA=function(m){var d=m.type===Ku?new Array(m.value.length+1).join("\u2022"):m.value;return d.length===0?m.placeholder||"":d},GA="checkbox",oc="radio",Ku="password",Au=707406591,Is=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;switch(ie.type=v.type.toLowerCase(),ie.checked=v.checked,ie.value=WA(v),(ie.type===GA||ie.type===oc)&&(ie.styles.backgroundColor=3739148031,ie.styles.borderTopColor=ie.styles.borderRightColor=ie.styles.borderBottomColor=ie.styles.borderLeftColor=2779096575,ie.styles.borderTopWidth=ie.styles.borderRightWidth=ie.styles.borderBottomWidth=ie.styles.borderLeftWidth=1,ie.styles.borderTopStyle=ie.styles.borderRightStyle=ie.styles.borderBottomStyle=ie.styles.borderLeftStyle=1,ie.styles.backgroundClip=[0],ie.styles.backgroundOrigin=[0],ie.bounds=Qu(ie.bounds)),ie.type){case GA:ie.styles.borderTopRightRadius=ie.styles.borderTopLeftRadius=ie.styles.borderBottomRightRadius=ie.styles.borderBottomLeftRadius=zr;break;case oc:ie.styles.borderTopRightRadius=ie.styles.borderTopLeftRadius=ie.styles.borderBottomRightRadius=ie.styles.borderBottomLeftRadius=yd;break}return ie}return d}(en),Tc=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this,Fe=v.options[v.selectedIndex||0];return ie.value=Fe&&Fe.text||"",ie}return d}(en),Yc=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;return ie.value=v.value,ie}return d}(en),Uc=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;ie.src=v.src,ie.width=parseInt(v.width,10)||0,ie.height=parseInt(v.height,10)||0,ie.backgroundColor=ie.styles.backgroundColor;try{if(v.contentWindow&&v.contentWindow.document&&v.contentWindow.document.documentElement){ie.tree=D(y,v.contentWindow.document.documentElement);var Fe=v.contentWindow.document.documentElement?Dl(y,getComputedStyle(v.contentWindow.document.documentElement).backgroundColor):Js.TRANSPARENT,tt=v.contentWindow.document.body?Dl(y,getComputedStyle(v.contentWindow.document.body).backgroundColor):Js.TRANSPARENT;ie.backgroundColor=Ro(Fe)?Ro(tt)?ie.styles.backgroundColor:tt:Fe}}catch(xt){}return ie}return d}(en),Hu=["OL","UL","MENU"],Rc=function(m,d,y,v){for(var ie=d.firstChild,Fe=void 0;ie;ie=Fe)if(Fe=ie.nextSibling,Yt(ie)&&ie.data.trim().length>0)y.textNodes.push(new os(m,ie,y.styles));else if(br(ie))if(qc(ie)&&ie.assignedNodes)ie.assignedNodes().forEach(function(xt){return Rc(m,xt,y,v)});else{var tt=MA(m,ie);tt.styles.isVisible()&&(Ge(ie,tt,v)?tt.flags|=4:Lt(tt.styles)&&(tt.flags|=2),Hu.indexOf(ie.tagName)!==-1&&(tt.flags|=8),y.elements.push(tt),ie.slot,ie.shadowRoot?Rc(m,ie.shadowRoot,tt,v):!Xl(ie)&&!co(ie)&&!LA(ie)&&Rc(m,ie,tt,v))}},MA=function(m,d){return hs(d)?new Oc(m,d):bs(d)?new la(m,d):co(d)?new Nc(m,d):Li(d)?new Gl(m,d):ta(d)?new IA(m,d):Pa(d)?new Is(m,d):LA(d)?new Tc(m,d):Xl(d)?new Yc(m,d):el(d)?new Uc(m,d):new en(m,d)},D=function(m,d){var y=MA(m,d);return y.flags|=4,Rc(m,d,y,y),y},Ge=function(m,d,y){return d.styles.isPositionedWithZIndex()||d.styles.opacity<1||d.styles.isTransformed()||aa(m)&&y.styles.isTransparent()},Lt=function(m){return m.isPositioned()||m.isFloating()},Yt=function(m){return m.nodeType===Node.TEXT_NODE},br=function(m){return m.nodeType===Node.ELEMENT_NODE},Xr=function(m){return br(m)&&typeof m.style!="undefined"&&!En(m)},En=function(m){return typeof m.className=="object"},Li=function(m){return m.tagName==="LI"},ta=function(m){return m.tagName==="OL"},Pa=function(m){return m.tagName==="INPUT"},Fa=function(m){return m.tagName==="HTML"},co=function(m){return m.tagName==="svg"},aa=function(m){return m.tagName==="BODY"},bs=function(m){return m.tagName==="CANVAS"},Ts=function(m){return m.tagName==="VIDEO"},hs=function(m){return m.tagName==="IMG"},el=function(m){return m.tagName==="IFRAME"},Bl=function(m){return m.tagName==="STYLE"},sc=function(m){return m.tagName==="SCRIPT"},Xl=function(m){return m.tagName==="TEXTAREA"},LA=function(m){return m.tagName==="SELECT"},qc=function(m){return m.tagName==="SLOT"},uu=function(m){return m.tagName.indexOf("-")>0},XA=function(){function m(){this.counters={}}return m.prototype.getCounterValue=function(d){var y=this.counters[d];return y&&y.length?y[y.length-1]:1},m.prototype.getCounterValues=function(d){var y=this.counters[d];return y||[]},m.prototype.pop=function(d){var y=this;d.forEach(function(v){return y.counters[v].pop()})},m.prototype.parse=function(d){var y=this,v=d.counterIncrement,ie=d.counterReset,Fe=!0;v!==null&&v.forEach(function(xt){var Bt=y.counters[xt.counter];Bt&&xt.increment!==0&&(Fe=!1,Bt.length||Bt.push(1),Bt[Math.max(0,Bt.length-1)]+=xt.increment)});var tt=[];return Fe&&ie.forEach(function(xt){var Bt=y.counters[xt.counter];tt.push(xt.counter),Bt||(Bt=y.counters[xt.counter]=[]),Bt.push(xt.reset)}),tt},m}(),kA={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"]},JA={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"]},du={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"]},pl={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"]},Qc=function(m,d,y,v,ie,Fe){return m<d||m>y?Yl(m,ie,Fe.length>0):v.integers.reduce(function(tt,xt,Bt){for(;m>=xt;)m-=xt,tt+=v.values[Bt];return tt},"")+Fe},YA=function(m,d,y,v){var ie="";do y||m--,ie=v(m)+ie,m/=d;while(m*d>=d);return ie},rs=function(m,d,y,v,ie){var Fe=y-d+1;return(m<0?"-":"")+(YA(Math.abs(m),Fe,v,function(tt){return E(Math.floor(tt%Fe)+d)})+ie)},Kc=function(m,d,y){y===void 0&&(y=". ");var v=d.length;return YA(Math.abs(m),v,!1,function(ie){return d[Math.floor(ie%v)]})+y},tl=1,eA=2,rl=4,Jl=8,ss=function(m,d,y,v,ie,Fe){if(m<-9999||m>9999)return Yl(m,4,ie.length>0);var tt=Math.abs(m),xt=ie;if(tt===0)return d[0]+xt;for(var Bt=0;tt>0&&Bt<=4;Bt++){var nr=tt%10;nr===0&&Sn(Fe,tl)&&xt!==""?xt=d[nr]+xt:nr>1||nr===1&&Bt===0||nr===1&&Bt===1&&Sn(Fe,eA)||nr===1&&Bt===1&&Sn(Fe,rl)&&m>100||nr===1&&Bt>1&&Sn(Fe,Jl)?xt=d[nr]+(Bt>0?y[Bt-1]:"")+xt:nr===1&&Bt>0&&(xt=y[Bt-1]+xt),tt=Math.floor(tt/10)}return(m<0?v:"")+xt},Tl="\u5341\u767E\u5343\u842C",lc="\u62FE\u4F70\u4EDF\u842C",wc="\u30DE\u30A4\u30CA\u30B9",cc="\uB9C8\uC774\uB108\uC2A4",Yl=function(m,d,y){var v=y?". ":"",ie=y?"\u3001":"",Fe=y?", ":"",tt=y?" ":"";switch(d){case 0:return"\u2022"+tt;case 1:return"\u25E6"+tt;case 2:return"\u25FE"+tt;case 5:var xt=rs(m,48,57,!0,v);return xt.length<4?"0"+xt:xt;case 4:return Kc(m,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ie);case 6:return Qc(m,1,3999,kA,3,v).toLowerCase();case 7:return Qc(m,1,3999,kA,3,v);case 8:return rs(m,945,969,!1,v);case 9:return rs(m,97,122,!1,v);case 10:return rs(m,65,90,!1,v);case 11:return rs(m,1632,1641,!0,v);case 12:case 49:return Qc(m,1,9999,JA,3,v);case 35:return Qc(m,1,9999,JA,3,v).toLowerCase();case 13:return rs(m,2534,2543,!0,v);case 14:case 30:return rs(m,6112,6121,!0,v);case 15:return Kc(m,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",ie);case 16:return Kc(m,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",ie);case 17:case 48:return ss(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Tl,"\u8CA0",ie,eA|rl|Jl);case 47:return ss(m,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",lc,"\u8CA0",ie,tl|eA|rl|Jl);case 42:return ss(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Tl,"\u8D1F",ie,eA|rl|Jl);case 41:return ss(m,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",lc,"\u8D1F",ie,tl|eA|rl|Jl);case 26:return ss(m,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",wc,ie,0);case 25:return ss(m,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",wc,ie,tl|eA|rl);case 31:return ss(m,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",cc,Fe,tl|eA|rl);case 33:return ss(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",cc,Fe,0);case 32:return ss(m,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",cc,Fe,tl|eA|rl);case 18:return rs(m,2406,2415,!0,v);case 20:return Qc(m,1,19999,pl,3,v);case 21:return rs(m,2790,2799,!0,v);case 22:return rs(m,2662,2671,!0,v);case 22:return Qc(m,1,10999,du,3,v);case 23:return Kc(m,"\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 Kc(m,"\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 rs(m,3302,3311,!0,v);case 28:return Kc(m,"\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",ie);case 29:return Kc(m,"\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",ie);case 34:return rs(m,3792,3801,!0,v);case 37:return rs(m,6160,6169,!0,v);case 38:return rs(m,4160,4169,!0,v);case 39:return rs(m,2918,2927,!0,v);case 40:return rs(m,1776,1785,!0,v);case 43:return rs(m,3046,3055,!0,v);case 44:return rs(m,3174,3183,!0,v);case 45:return rs(m,3664,3673,!0,v);case 46:return rs(m,3872,3881,!0,v);case 3:default:return rs(m,48,57,!0,v)}},cl="data-html2canvas-ignore",nl=function(){function m(d,y,v){if(this.context=d,this.options=v,this.scrolledElements=[],this.referenceElement=y,this.counters=new XA,this.quoteDepth=0,!y.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(y.ownerDocument.documentElement,!1)}return m.prototype.toIFrame=function(d,y){var v=this,ie=tA(d,y);if(!ie.contentWindow)return Promise.reject("Unable to find iframe window");var Fe=d.defaultView.pageXOffset,tt=d.defaultView.pageYOffset,xt=ie.contentWindow,Bt=xt.document,nr=uA(ie).then(function(){return ue(v,void 0,void 0,function(){var fr,a;return U(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(fu),xt&&(xt.scrollTo(y.left,y.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(xt.scrollY!==y.top||xt.scrollX!==y.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(xt.scrollX-y.left,xt.scrollY-y.top,0,0))),fr=this.options.onclone,a=this.clonedReferenceElement,typeof a=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Bt.fonts&&Bt.fonts.ready?[4,Bt.fonts.ready]:[3,2];case 1:g.sent(),g.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,qA(Bt)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof fr=="function"?[2,Promise.resolve().then(function(){return fr(Bt,a)}).then(function(){return ie})]:[2,ie]}})})});return Bt.open(),Bt.write(Ul(document.doctype)+"<html></html>"),Cc(this.referenceElement.ownerDocument,Fe,tt),Bt.replaceChild(Bt.adoptNode(this.documentElement),Bt.documentElement),Bt.close(),nr},m.prototype.createElementClone=function(d){if(ga(d,2))debugger;if(bs(d))return this.createCanvasClone(d);if(Ts(d))return this.createVideoClone(d);if(Bl(d))return this.createStyleClone(d);var y=d.cloneNode(!1);return hs(y)&&(hs(d)&&d.currentSrc&&d.currentSrc!==d.src&&(y.src=d.currentSrc,y.srcset=""),y.loading==="lazy"&&(y.loading="eager")),uu(y)?this.createCustomElementClone(y):y},m.prototype.createCustomElementClone=function(d){var y=document.createElement("html2canvascustomelement");return eu(d.style,y),y},m.prototype.createStyleClone=function(d){try{var y=d.sheet;if(y&&y.cssRules){var v=[].slice.call(y.cssRules,0).reduce(function(Fe,tt){return tt&&typeof tt.cssText=="string"?Fe+tt.cssText:Fe},""),ie=d.cloneNode(!1);return ie.textContent=v,ie}}catch(Fe){if(this.context.logger.error("Unable to access cssRules property",Fe),Fe.name!=="SecurityError")throw Fe}return d.cloneNode(!1)},m.prototype.createCanvasClone=function(d){var y;if(this.options.inlineImages&&d.ownerDocument){var v=d.ownerDocument.createElement("img");try{return v.src=d.toDataURL(),v}catch(nr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",d)}}var ie=d.cloneNode(!1);try{ie.width=d.width,ie.height=d.height;var Fe=d.getContext("2d"),tt=ie.getContext("2d");if(tt)if(!this.options.allowTaint&&Fe)tt.putImageData(Fe.getImageData(0,0,d.width,d.height),0,0);else{var xt=(y=d.getContext("webgl2"))!==null&&y!==void 0?y:d.getContext("webgl");if(xt){var Bt=xt.getContextAttributes();(Bt==null?void 0:Bt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",d)}tt.drawImage(d,0,0)}return ie}catch(nr){this.context.logger.info("Unable to clone canvas as it is tainted",d)}return ie},m.prototype.createVideoClone=function(d){var y=d.ownerDocument.createElement("canvas");y.width=d.offsetWidth,y.height=d.offsetHeight;var v=y.getContext("2d");try{return v&&(v.drawImage(d,0,0,y.width,y.height),this.options.allowTaint||v.getImageData(0,0,y.width,y.height)),y}catch(Fe){this.context.logger.info("Unable to clone video as it is tainted",d)}var ie=d.ownerDocument.createElement("canvas");return ie.width=d.offsetWidth,ie.height=d.offsetHeight,ie},m.prototype.appendChildNode=function(d,y,v){(!br(y)||!sc(y)&&!y.hasAttribute(cl)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(y)))&&(!this.options.copyStyles||!br(y)||!Bl(y))&&d.appendChild(this.cloneNode(y,v))},m.prototype.cloneChildNodes=function(d,y,v){for(var ie=this,Fe=d.shadowRoot?d.shadowRoot.firstChild:d.firstChild;Fe;Fe=Fe.nextSibling)if(br(Fe)&&qc(Fe)&&typeof Fe.assignedNodes=="function"){var tt=Fe.assignedNodes();tt.length&&tt.forEach(function(xt){return ie.appendChildNode(y,xt,v)})}else this.appendChildNode(y,Fe,v)},m.prototype.cloneNode=function(d,y){if(Yt(d))return document.createTextNode(d.data);if(!d.ownerDocument)return d.cloneNode(!1);var v=d.ownerDocument.defaultView;if(v&&br(d)&&(Xr(d)||En(d))){var ie=this.createElementClone(d);ie.style.transitionProperty="none";var Fe=v.getComputedStyle(d),tt=v.getComputedStyle(d,":before"),xt=v.getComputedStyle(d,":after");this.referenceElement===d&&Xr(ie)&&(this.clonedReferenceElement=ie),aa(ie)&&uc(ie);var Bt=this.counters.parse(new Qo(this.context,Fe)),nr=this.resolvePseudoContent(d,ie,tt,xc.BEFORE);uu(d)&&(y=!0),Ts(d)||this.cloneChildNodes(d,ie,y),nr&&ie.insertBefore(nr,ie.firstChild);var fr=this.resolvePseudoContent(d,ie,xt,xc.AFTER);return fr&&ie.appendChild(fr),this.counters.pop(Bt),(Fe&&(this.options.copyStyles||En(d))&&!el(d)||y)&&eu(Fe,ie),(d.scrollTop!==0||d.scrollLeft!==0)&&this.scrolledElements.push([ie,d.scrollLeft,d.scrollTop]),(Xl(d)||LA(d))&&(Xl(ie)||LA(ie))&&(ie.value=d.value),ie}return d.cloneNode(!1)},m.prototype.resolvePseudoContent=function(d,y,v,ie){var Fe=this;if(v){var tt=v.content,xt=y.ownerDocument;if(!(!xt||!tt||tt==="none"||tt==="-moz-alt-content"||v.display==="none")){this.counters.parse(new Qo(this.context,v));var Bt=new ro(this.context,v),nr=xt.createElement("html2canvaspseudoelement");eu(v,nr),Bt.content.forEach(function(a){if(a.type===0)nr.appendChild(xt.createTextNode(a.value));else if(a.type===22){var g=xt.createElement("img");g.src=a.value,g.style.opacity="1",nr.appendChild(g)}else if(a.type===18){if(a.name==="attr"){var O=a.values.filter(ka);O.length&&nr.appendChild(xt.createTextNode(d.getAttribute(O[0].value)||""))}else if(a.name==="counter"){var oe=a.values.filter(dl),Me=oe[0],We=oe[1];if(Me&&ka(Me)){var ze=Fe.counters.getCounterValue(Me.value),Je=We&&ka(We)?Re.parse(Fe.context,We.value):3;nr.appendChild(xt.createTextNode(Yl(ze,Je,!1)))}}else if(a.name==="counters"){var ot=a.values.filter(dl),Me=ot[0],mt=ot[1],We=ot[2];if(Me&&ka(Me)){var Tt=Fe.counters.getCounterValues(Me.value),jt=We&&ka(We)?Re.parse(Fe.context,We.value):3,cr=mt&&mt.type===0?mt.value:"",Gt=Tt.map(function(Xt){return Yl(Xt,jt,!1)}).join(cr);nr.appendChild(xt.createTextNode(Gt))}}}else if(a.type===20)switch(a.value){case"open-quote":nr.appendChild(xt.createTextNode(Qi(Bt.quotes,Fe.quoteDepth++,!0)));break;case"close-quote":nr.appendChild(xt.createTextNode(Qi(Bt.quotes,--Fe.quoteDepth,!1)));break;default:nr.appendChild(xt.createTextNode(a.value))}}),nr.className=dA+" "+Bc;var fr=ie===xc.BEFORE?" "+dA:" "+Bc;return En(y)?y.className.baseValue+=fr:y.className+=fr,nr}}},m.destroy=function(d){return d.parentNode?(d.parentNode.removeChild(d),!0):!1},m}(),xc;(function(m){m[m.BEFORE=0]="BEFORE",m[m.AFTER=1]="AFTER"})(xc||(xc={}));var tA=function(m,d){var y=m.createElement("iframe");return y.className="html2canvas-container",y.style.visibility="hidden",y.style.position="fixed",y.style.left="-10000px",y.style.top="0px",y.style.border="0",y.width=d.width.toString(),y.height=d.height.toString(),y.scrolling="no",y.setAttribute(cl,"true"),m.body.appendChild(y),y},rA=function(m){return new Promise(function(d){if(m.complete){d();return}if(!m.src){d();return}m.onload=d,m.onerror=d})},qA=function(m){return Promise.all([].slice.call(m.images,0).map(rA))},uA=function(m){return new Promise(function(d,y){var v=m.contentWindow;if(!v)return y("No window assigned for iframe");var ie=v.document;v.onload=m.onload=function(){v.onload=m.onload=null;var Fe=setInterval(function(){ie.body.childNodes.length>0&&ie.readyState==="complete"&&(clearInterval(Fe),d(m))},50)}})},Ms=["all","d","content"],eu=function(m,d){for(var y=m.length-1;y>=0;y--){var v=m.item(y);Ms.indexOf(v)===-1&&d.style.setProperty(v,m.getPropertyValue(v))}return d},Ul=function(m){var d="";return m&&(d+="<!DOCTYPE ",m.name&&(d+=m.name),m.internalSubset&&(d+=m.internalSubset),m.publicId&&(d+='"'+m.publicId+'"'),m.systemId&&(d+='"'+m.systemId+'"'),d+=">"),d},Cc=function(m,d,y){m&&m.defaultView&&(d!==m.defaultView.pageXOffset||y!==m.defaultView.pageYOffset)&&m.defaultView.scrollTo(d,y)},fu=function(m){var d=m[0],y=m[1],v=m[2];d.scrollLeft=y,d.scrollTop=v},rd=":before",ju=":after",dA="___html2canvas___pseudoelement_before",Bc="___html2canvas___pseudoelement_after",Ac=`{
content: "" !important;
display: none !important;
}`,uc=function(m){ql(m,"."+dA+rd+Ac+`
.`+Bc+ju+Ac)},ql=function(m,d){var y=m.ownerDocument;if(y){var v=y.createElement("style");v.textContent=d,m.appendChild(v)}},fA=function(){function m(){}return m.getOrigin=function(d){var y=m._link;return y?(y.href=d,y.href=y.href,y.protocol+y.hostname+y.port):"about:blank"},m.isSameOrigin=function(d){return m.getOrigin(d)===m._origin},m.setContext=function(d){m._link=d.document.createElement("a"),m._origin=m.getOrigin(d.location.href)},m._origin="about:blank",m}(),hA=function(){function m(d,y){this.context=d,this._options=y,this._cache={}}return m.prototype.addImage=function(d){var y=Promise.resolve();return this.has(d)||(Rs(d)||Jo(d))&&(this._cache[d]=this.loadImage(d)).catch(function(){}),y},m.prototype.match=function(d){return this._cache[d]},m.prototype.loadImage=function(d){return ue(this,void 0,void 0,function(){var y,v,ie,Fe,tt=this;return U(this,function(xt){switch(xt.label){case 0:return y=fA.isSameOrigin(d),v=!Ho(d)&&this._options.useCORS===!0&&lo.SUPPORT_CORS_IMAGES&&!y,ie=!Ho(d)&&!y&&!Rs(d)&&typeof this._options.proxy=="string"&&lo.SUPPORT_CORS_XHR&&!v,!y&&this._options.allowTaint===!1&&!Ho(d)&&!Rs(d)&&!ie&&!v?[2]:(Fe=d,ie?[4,this.proxy(Fe)]:[3,2]);case 1:Fe=xt.sent(),xt.label=2;case 2:return this.context.logger.debug("Added image "+d.substring(0,256)),[4,new Promise(function(Bt,nr){var fr=new Image;fr.onload=function(){return Bt(fr)},fr.onerror=nr,(Us(Fe)||v)&&(fr.crossOrigin="anonymous"),fr.src=Fe,fr.complete===!0&&setTimeout(function(){return Bt(fr)},500),tt._options.imageTimeout>0&&setTimeout(function(){return nr("Timed out ("+tt._options.imageTimeout+"ms) loading image")},tt._options.imageTimeout)})];case 3:return[2,xt.sent()]}})})},m.prototype.has=function(d){return typeof this._cache[d]!="undefined"},m.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},m.prototype.proxy=function(d){var y=this,v=this._options.proxy;if(!v)throw new Error("No proxy defined");var ie=d.substring(0,256);return new Promise(function(Fe,tt){var xt=lo.SUPPORT_RESPONSE_TYPE?"blob":"text",Bt=new XMLHttpRequest;Bt.onload=function(){if(Bt.status===200)if(xt==="text")Fe(Bt.response);else{var a=new FileReader;a.addEventListener("load",function(){return Fe(a.result)},!1),a.addEventListener("error",function(g){return tt(g)},!1),a.readAsDataURL(Bt.response)}else tt("Failed to proxy resource "+ie+" with status code "+Bt.status)},Bt.onerror=tt;var nr=v.indexOf("?")>-1?"&":"?";if(Bt.open("GET",""+v+nr+"url="+encodeURIComponent(d)+"&responseType="+xt),xt!=="text"&&Bt instanceof XMLHttpRequest&&(Bt.responseType=xt),y._options.imageTimeout){var fr=y._options.imageTimeout;Bt.timeout=fr,Bt.ontimeout=function(){return tt("Timed out ("+fr+"ms) proxying "+ie)}}Bt.send()})},m}(),hu=/^data:image\/svg\+xml/i,Sc=/^data:image\/.*;base64,/i,Ec=/^data:image\/.*/i,Jo=function(m){return lo.SUPPORT_SVG_DRAWING||!Ua(m)},Ho=function(m){return Ec.test(m)},Us=function(m){return Sc.test(m)},Rs=function(m){return m.substr(0,4)==="blob"},Ua=function(m){return m.substr(-3).toLowerCase()==="svg"||hu.test(m)},hi=function(){function m(d,y){this.type=0,this.x=d,this.y=y}return m.prototype.add=function(d,y){return new m(this.x+d,this.y+y)},m}(),ec=function(m,d,y){return new hi(m.x+(d.x-m.x)*y,m.y+(d.y-m.y)*y)},tu=function(){function m(d,y,v,ie){this.type=1,this.start=d,this.startControl=y,this.endControl=v,this.end=ie}return m.prototype.subdivide=function(d,y){var v=ec(this.start,this.startControl,d),ie=ec(this.startControl,this.endControl,d),Fe=ec(this.endControl,this.end,d),tt=ec(v,ie,d),xt=ec(ie,Fe,d),Bt=ec(tt,xt,d);return y?new m(this.start,v,tt,Bt):new m(Bt,xt,Fe,this.end)},m.prototype.add=function(d,y){return new m(this.start.add(d,y),this.startControl.add(d,y),this.endControl.add(d,y),this.end.add(d,y))},m.prototype.reverse=function(){return new m(this.end,this.endControl,this.startControl,this.start)},m}(),Qs=function(m){return m.type===1},zu=function(){function m(d){var y=d.styles,v=d.bounds,ie=ms(y.borderTopLeftRadius,v.width,v.height),Fe=ie[0],tt=ie[1],xt=ms(y.borderTopRightRadius,v.width,v.height),Bt=xt[0],nr=xt[1],fr=ms(y.borderBottomRightRadius,v.width,v.height),a=fr[0],g=fr[1],O=ms(y.borderBottomLeftRadius,v.width,v.height),oe=O[0],Me=O[1],We=[];We.push((Fe+Bt)/v.width),We.push((oe+a)/v.width),We.push((tt+Me)/v.height),We.push((nr+g)/v.height);var ze=Math.max.apply(Math,We);ze>1&&(Fe/=ze,tt/=ze,Bt/=ze,nr/=ze,a/=ze,g/=ze,oe/=ze,Me/=ze);var Je=v.width-Bt,ot=v.height-g,mt=v.width-a,Tt=v.height-Me,jt=y.borderTopWidth,cr=y.borderRightWidth,Gt=y.borderBottomWidth,Nr=y.borderLeftWidth,Tr=Da(y.paddingTop,d.bounds.width),Xt=Da(y.paddingRight,d.bounds.width),tr=Da(y.paddingBottom,d.bounds.width),Qr=Da(y.paddingLeft,d.bounds.width);this.topLeftBorderDoubleOuterBox=Fe>0||tt>0?Ao(v.left+Nr/3,v.top+jt/3,Fe-Nr/3,tt-jt/3,ya.TOP_LEFT):new hi(v.left+Nr/3,v.top+jt/3),this.topRightBorderDoubleOuterBox=Fe>0||tt>0?Ao(v.left+Je,v.top+jt/3,Bt-cr/3,nr-jt/3,ya.TOP_RIGHT):new hi(v.left+v.width-cr/3,v.top+jt/3),this.bottomRightBorderDoubleOuterBox=a>0||g>0?Ao(v.left+mt,v.top+ot,a-cr/3,g-Gt/3,ya.BOTTOM_RIGHT):new hi(v.left+v.width-cr/3,v.top+v.height-Gt/3),this.bottomLeftBorderDoubleOuterBox=oe>0||Me>0?Ao(v.left+Nr/3,v.top+Tt,oe-Nr/3,Me-Gt/3,ya.BOTTOM_LEFT):new hi(v.left+Nr/3,v.top+v.height-Gt/3),this.topLeftBorderDoubleInnerBox=Fe>0||tt>0?Ao(v.left+Nr*2/3,v.top+jt*2/3,Fe-Nr*2/3,tt-jt*2/3,ya.TOP_LEFT):new hi(v.left+Nr*2/3,v.top+jt*2/3),this.topRightBorderDoubleInnerBox=Fe>0||tt>0?Ao(v.left+Je,v.top+jt*2/3,Bt-cr*2/3,nr-jt*2/3,ya.TOP_RIGHT):new hi(v.left+v.width-cr*2/3,v.top+jt*2/3),this.bottomRightBorderDoubleInnerBox=a>0||g>0?Ao(v.left+mt,v.top+ot,a-cr*2/3,g-Gt*2/3,ya.BOTTOM_RIGHT):new hi(v.left+v.width-cr*2/3,v.top+v.height-Gt*2/3),this.bottomLeftBorderDoubleInnerBox=oe>0||Me>0?Ao(v.left+Nr*2/3,v.top+Tt,oe-Nr*2/3,Me-Gt*2/3,ya.BOTTOM_LEFT):new hi(v.left+Nr*2/3,v.top+v.height-Gt*2/3),this.topLeftBorderStroke=Fe>0||tt>0?Ao(v.left+Nr/2,v.top+jt/2,Fe-Nr/2,tt-jt/2,ya.TOP_LEFT):new hi(v.left+Nr/2,v.top+jt/2),this.topRightBorderStroke=Fe>0||tt>0?Ao(v.left+Je,v.top+jt/2,Bt-cr/2,nr-jt/2,ya.TOP_RIGHT):new hi(v.left+v.width-cr/2,v.top+jt/2),this.bottomRightBorderStroke=a>0||g>0?Ao(v.left+mt,v.top+ot,a-cr/2,g-Gt/2,ya.BOTTOM_RIGHT):new hi(v.left+v.width-cr/2,v.top+v.height-Gt/2),this.bottomLeftBorderStroke=oe>0||Me>0?Ao(v.left+Nr/2,v.top+Tt,oe-Nr/2,Me-Gt/2,ya.BOTTOM_LEFT):new hi(v.left+Nr/2,v.top+v.height-Gt/2),this.topLeftBorderBox=Fe>0||tt>0?Ao(v.left,v.top,Fe,tt,ya.TOP_LEFT):new hi(v.left,v.top),this.topRightBorderBox=Bt>0||nr>0?Ao(v.left+Je,v.top,Bt,nr,ya.TOP_RIGHT):new hi(v.left+v.width,v.top),this.bottomRightBorderBox=a>0||g>0?Ao(v.left+mt,v.top+ot,a,g,ya.BOTTOM_RIGHT):new hi(v.left+v.width,v.top+v.height),this.bottomLeftBorderBox=oe>0||Me>0?Ao(v.left,v.top+Tt,oe,Me,ya.BOTTOM_LEFT):new hi(v.left,v.top+v.height),this.topLeftPaddingBox=Fe>0||tt>0?Ao(v.left+Nr,v.top+jt,Math.max(0,Fe-Nr),Math.max(0,tt-jt),ya.TOP_LEFT):new hi(v.left+Nr,v.top+jt),this.topRightPaddingBox=Bt>0||nr>0?Ao(v.left+Math.min(Je,v.width-cr),v.top+jt,Je>v.width+cr?0:Math.max(0,Bt-cr),Math.max(0,nr-jt),ya.TOP_RIGHT):new hi(v.left+v.width-cr,v.top+jt),this.bottomRightPaddingBox=a>0||g>0?Ao(v.left+Math.min(mt,v.width-Nr),v.top+Math.min(ot,v.height-Gt),Math.max(0,a-cr),Math.max(0,g-Gt),ya.BOTTOM_RIGHT):new hi(v.left+v.width-cr,v.top+v.height-Gt),this.bottomLeftPaddingBox=oe>0||Me>0?Ao(v.left+Nr,v.top+Math.min(Tt,v.height-Gt),Math.max(0,oe-Nr),Math.max(0,Me-Gt),ya.BOTTOM_LEFT):new hi(v.left+Nr,v.top+v.height-Gt),this.topLeftContentBox=Fe>0||tt>0?Ao(v.left+Nr+Qr,v.top+jt+Tr,Math.max(0,Fe-(Nr+Qr)),Math.max(0,tt-(jt+Tr)),ya.TOP_LEFT):new hi(v.left+Nr+Qr,v.top+jt+Tr),this.topRightContentBox=Bt>0||nr>0?Ao(v.left+Math.min(Je,v.width+Nr+Qr),v.top+jt+Tr,Je>v.width+Nr+Qr?0:Bt-Nr+Qr,nr-(jt+Tr),ya.TOP_RIGHT):new hi(v.left+v.width-(cr+Xt),v.top+jt+Tr),this.bottomRightContentBox=a>0||g>0?Ao(v.left+Math.min(mt,v.width-(Nr+Qr)),v.top+Math.min(ot,v.height+jt+Tr),Math.max(0,a-(cr+Xt)),g-(Gt+tr),ya.BOTTOM_RIGHT):new hi(v.left+v.width-(cr+Xt),v.top+v.height-(Gt+tr)),this.bottomLeftContentBox=oe>0||Me>0?Ao(v.left+Nr+Qr,v.top+Tt,Math.max(0,oe-(Nr+Qr)),Me-(Gt+tr),ya.BOTTOM_LEFT):new hi(v.left+Nr+Qr,v.top+v.height-(Gt+tr))}return m}(),ya;(function(m){m[m.TOP_LEFT=0]="TOP_LEFT",m[m.TOP_RIGHT=1]="TOP_RIGHT",m[m.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",m[m.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ya||(ya={}));var Ao=function(m,d,y,v,ie){var Fe=4*((Math.sqrt(2)-1)/3),tt=y*Fe,xt=v*Fe,Bt=m+y,nr=d+v;switch(ie){case ya.TOP_LEFT:return new tu(new hi(m,nr),new hi(m,nr-xt),new hi(Bt-tt,d),new hi(Bt,d));case ya.TOP_RIGHT:return new tu(new hi(m,d),new hi(m+tt,d),new hi(Bt,nr-xt),new hi(Bt,nr));case ya.BOTTOM_RIGHT:return new tu(new hi(Bt,d),new hi(Bt,d+xt),new hi(m+tt,nr),new hi(m,nr));case ya.BOTTOM_LEFT:default:return new tu(new hi(Bt,nr),new hi(Bt-tt,nr),new hi(m,d+xt),new hi(m,d))}},ko=function(m){return[m.topLeftBorderBox,m.topRightBorderBox,m.bottomRightBorderBox,m.bottomLeftBorderBox]},$u=function(m){return[m.topLeftContentBox,m.topRightContentBox,m.bottomRightContentBox,m.bottomLeftContentBox]},pu=function(m){return[m.topLeftPaddingBox,m.topRightPaddingBox,m.bottomRightPaddingBox,m.bottomLeftPaddingBox]},nd=function(){function m(d,y,v){this.offsetX=d,this.offsetY=y,this.matrix=v,this.type=0,this.target=6}return m}(),DA=function(){function m(d,y){this.path=d,this.target=y,this.type=1}return m}(),mu=function(){function m(d){this.opacity=d,this.type=2,this.target=6}return m}(),ru=function(m){return m.type===0},Zu=function(m){return m.type===1},Al=function(m){return m.type===2},gu=function(m,d){return m.length===d.length?m.some(function(y,v){return y===d[v]}):!1},id=function(m,d,y,v,ie){return m.map(function(Fe,tt){switch(tt){case 0:return Fe.add(d,y);case 1:return Fe.add(d+v,y);case 2:return Fe.add(d+v,y+ie);case 3:return Fe.add(d,y+ie)}return Fe})},yn=function(){function m(d){this.element=d,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return m}(),jo=function(){function m(d,y){if(this.container=d,this.parent=y,this.effects=[],this.curves=new zu(this.container),this.container.styles.opacity<1&&this.effects.push(new mu(this.container.styles.opacity)),this.container.styles.transform!==null){var v=this.container.bounds.left+this.container.styles.transformOrigin[0].number,ie=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Fe=this.container.styles.transform;this.effects.push(new nd(v,ie,Fe))}if(this.container.styles.overflowX!==0){var tt=ko(this.curves),xt=pu(this.curves);gu(tt,xt)?this.effects.push(new DA(tt,6)):(this.effects.push(new DA(tt,2)),this.effects.push(new DA(xt,4)))}}return m.prototype.getEffects=function(d){for(var y=[2,3].indexOf(this.container.styles.position)===-1,v=this.parent,ie=this.effects.slice(0);v;){var Fe=v.effects.filter(function(Bt){return!Zu(Bt)});if(y||v.container.styles.position!==0||!v.parent){if(ie.unshift.apply(ie,Fe),y=[2,3].indexOf(v.container.styles.position)===-1,v.container.styles.overflowX!==0){var tt=ko(v.curves),xt=pu(v.curves);gu(tt,xt)||ie.unshift(new DA(xt,6))}}else ie.unshift.apply(ie,Fe);v=v.parent}return ie.filter(function(Bt){return Sn(Bt.target,d)})},m}(),bd=function(m,d,y,v){m.container.elements.forEach(function(ie){var Fe=Sn(ie.flags,4),tt=Sn(ie.flags,2),xt=new jo(ie,m);Sn(ie.styles.display,2048)&&v.push(xt);var Bt=Sn(ie.flags,8)?[]:v;if(Fe||tt){var nr=Fe||ie.styles.isPositioned()?y:d,fr=new yn(xt);if(ie.styles.isPositioned()||ie.styles.opacity<1||ie.styles.isTransformed()){var a=ie.styles.zIndex.order;if(a<0){var g=0;nr.negativeZIndex.some(function(oe,Me){return a>oe.element.container.styles.zIndex.order?(g=Me,!1):g>0}),nr.negativeZIndex.splice(g,0,fr)}else if(a>0){var O=0;nr.positiveZIndex.some(function(oe,Me){return a>=oe.element.container.styles.zIndex.order?(O=Me+1,!1):O>0}),nr.positiveZIndex.splice(O,0,fr)}else nr.zeroOrAutoZIndexOrTransformedOrOpacity.push(fr)}else ie.styles.isFloating()?nr.nonPositionedFloats.push(fr):nr.nonPositionedInlineLevel.push(fr);bd(xt,fr,Fe?fr:y,Bt)}else ie.styles.isInlineLevel()?d.inlineLevel.push(xt):d.nonInlineLevel.push(xt),bd(xt,d,y,Bt);Sn(ie.flags,8)&&gf(ie,Bt)})},gf=function(m,d){for(var y=m instanceof IA?m.start:1,v=m instanceof IA?m.reversed:!1,ie=0;ie<d.length;ie++){var Fe=d[ie];Fe.container instanceof Gl&&typeof Fe.container.value=="number"&&Fe.container.value!==0&&(y=Fe.container.value),Fe.listValue=Yl(y,Fe.container.styles.listStyleType,!0),y+=v?-1:1}},Zd=function(m){var d=new jo(m,null),y=new yn(d),v=[];return bd(d,y,y,v),gf(d.container,v),y},wd=function(m,d){switch(d){case 0:return ml(m.topLeftBorderBox,m.topLeftPaddingBox,m.topRightBorderBox,m.topRightPaddingBox);case 1:return ml(m.topRightBorderBox,m.topRightPaddingBox,m.bottomRightBorderBox,m.bottomRightPaddingBox);case 2:return ml(m.bottomRightBorderBox,m.bottomRightPaddingBox,m.bottomLeftBorderBox,m.bottomLeftPaddingBox);case 3:default:return ml(m.bottomLeftBorderBox,m.bottomLeftPaddingBox,m.topLeftBorderBox,m.topLeftPaddingBox)}},Vu=function(m,d){switch(d){case 0:return ml(m.topLeftBorderBox,m.topLeftBorderDoubleOuterBox,m.topRightBorderBox,m.topRightBorderDoubleOuterBox);case 1:return ml(m.topRightBorderBox,m.topRightBorderDoubleOuterBox,m.bottomRightBorderBox,m.bottomRightBorderDoubleOuterBox);case 2:return ml(m.bottomRightBorderBox,m.bottomRightBorderDoubleOuterBox,m.bottomLeftBorderBox,m.bottomLeftBorderDoubleOuterBox);case 3:default:return ml(m.bottomLeftBorderBox,m.bottomLeftBorderDoubleOuterBox,m.topLeftBorderBox,m.topLeftBorderDoubleOuterBox)}},ad=function(m,d){switch(d){case 0:return ml(m.topLeftBorderDoubleInnerBox,m.topLeftPaddingBox,m.topRightBorderDoubleInnerBox,m.topRightPaddingBox);case 1:return ml(m.topRightBorderDoubleInnerBox,m.topRightPaddingBox,m.bottomRightBorderDoubleInnerBox,m.bottomRightPaddingBox);case 2:return ml(m.bottomRightBorderDoubleInnerBox,m.bottomRightPaddingBox,m.bottomLeftBorderDoubleInnerBox,m.bottomLeftPaddingBox);case 3:default:return ml(m.bottomLeftBorderDoubleInnerBox,m.bottomLeftPaddingBox,m.topLeftBorderDoubleInnerBox,m.topLeftPaddingBox)}},xd=function(m,d){switch(d){case 0:return vu(m.topLeftBorderStroke,m.topRightBorderStroke);case 1:return vu(m.topRightBorderStroke,m.bottomRightBorderStroke);case 2:return vu(m.bottomRightBorderStroke,m.bottomLeftBorderStroke);case 3:default:return vu(m.bottomLeftBorderStroke,m.topLeftBorderStroke)}},vu=function(m,d){var y=[];return Qs(m)?y.push(m.subdivide(.5,!1)):y.push(m),Qs(d)?y.push(d.subdivide(.5,!0)):y.push(d),y},ml=function(m,d,y,v){var ie=[];return Qs(m)?ie.push(m.subdivide(.5,!1)):ie.push(m),Qs(y)?ie.push(y.subdivide(.5,!0)):ie.push(y),Qs(v)?ie.push(v.subdivide(.5,!0).reverse()):ie.push(v),Qs(d)?ie.push(d.subdivide(.5,!1).reverse()):ie.push(d),ie},nu=function(m){var d=m.bounds,y=m.styles;return d.add(y.borderLeftWidth,y.borderTopWidth,-(y.borderRightWidth+y.borderLeftWidth),-(y.borderTopWidth+y.borderBottomWidth))},Ls=function(m){var d=m.styles,y=m.bounds,v=Da(d.paddingLeft,y.width),ie=Da(d.paddingRight,y.width),Fe=Da(d.paddingTop,y.width),tt=Da(d.paddingBottom,y.width);return y.add(v+d.borderLeftWidth,Fe+d.borderTopWidth,-(d.borderRightWidth+d.borderLeftWidth+v+ie),-(d.borderTopWidth+d.borderBottomWidth+Fe+tt))},yu=function(m,d){return m===0?d.bounds:m===2?Ls(d):nu(d)},Cd=function(m,d){return m===0?d.bounds:m===2?Ls(d):nu(d)},pA=function(m,d,y){var v=yu(Vs(m.styles.backgroundOrigin,d),m),ie=Cd(Vs(m.styles.backgroundClip,d),m),Fe=_c(Vs(m.styles.backgroundSize,d),y,v),tt=Fe[0],xt=Fe[1],Bt=ms(Vs(m.styles.backgroundPosition,d),v.width-tt,v.height-xt),nr=nA(Vs(m.styles.backgroundRepeat,d),Bt,Fe,v,ie),fr=Math.round(v.left+Bt[0]),a=Math.round(v.top+Bt[1]);return[nr,fr,a,tt,xt]},gl=function(m){return ka(m)&&m.value===I.AUTO},od=function(m){return typeof m=="number"},_c=function(m,d,y){var v=d[0],ie=d[1],Fe=d[2],tt=m[0],xt=m[1];if(!tt)return[0,0];if(Kn(tt)&&xt&&Kn(xt))return[Da(tt,y.width),Da(xt,y.height)];var Bt=od(Fe);if(ka(tt)&&(tt.value===I.CONTAIN||tt.value===I.COVER)){if(od(Fe)){var nr=y.width/y.height;return nr<Fe!=(tt.value===I.COVER)?[y.width,y.width/Fe]:[y.height*Fe,y.height]}return[y.width,y.height]}var fr=od(v),a=od(ie),g=fr||a;if(gl(tt)&&(!xt||gl(xt))){if(fr&&a)return[v,ie];if(!Bt&&!g)return[y.width,y.height];if(g&&Bt){var O=fr?v:ie*Fe,oe=a?ie:v/Fe;return[O,oe]}var Me=fr?v:y.width,We=a?ie:y.height;return[Me,We]}if(Bt){var ze=0,Je=0;return Kn(tt)?ze=Da(tt,y.width):Kn(xt)&&(Je=Da(xt,y.height)),gl(tt)?ze=Je*Fe:(!xt||gl(xt))&&(Je=ze/Fe),[ze,Je]}var ot=null,mt=null;if(Kn(tt)?ot=Da(tt,y.width):xt&&Kn(xt)&&(mt=Da(xt,y.height)),ot!==null&&(!xt||gl(xt))&&(mt=fr&&a?ot/v*ie:y.height),mt!==null&&gl(tt)&&(ot=fr&&a?mt/ie*v:y.width),ot!==null&&mt!==null)return[ot,mt];throw new Error("Unable to calculate background-size for element")},Vs=function(m,d){var y=m[d];return typeof y=="undefined"?m[0]:y},nA=function(m,d,y,v,ie){var Fe=d[0],tt=d[1],xt=y[0],Bt=y[1];switch(m){case 2:return[new hi(Math.round(v.left),Math.round(v.top+tt)),new hi(Math.round(v.left+v.width),Math.round(v.top+tt)),new hi(Math.round(v.left+v.width),Math.round(Bt+v.top+tt)),new hi(Math.round(v.left),Math.round(Bt+v.top+tt))];case 3:return[new hi(Math.round(v.left+Fe),Math.round(v.top)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top)),new hi(Math.round(v.left+Fe+xt),Math.round(v.height+v.top)),new hi(Math.round(v.left+Fe),Math.round(v.height+v.top))];case 1:return[new hi(Math.round(v.left+Fe),Math.round(v.top+tt)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top+tt)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top+tt+Bt)),new hi(Math.round(v.left+Fe),Math.round(v.top+tt+Bt))];default:return[new hi(Math.round(ie.left),Math.round(ie.top)),new hi(Math.round(ie.left+ie.width),Math.round(ie.top)),new hi(Math.round(ie.left+ie.width),Math.round(ie.height+ie.top)),new hi(Math.round(ie.left),Math.round(ie.height+ie.top))]}},vf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bu="Hidden Text",PA=function(){function m(d){this._data={},this._document=d}return m.prototype.parseMetrics=function(d,y){var v=this._document.createElement("div"),ie=this._document.createElement("img"),Fe=this._document.createElement("span"),tt=this._document.body;v.style.visibility="hidden",v.style.fontFamily=d,v.style.fontSize=y,v.style.margin="0",v.style.padding="0",v.style.whiteSpace="nowrap",tt.appendChild(v),ie.src=vf,ie.width=1,ie.height=1,ie.style.margin="0",ie.style.padding="0",ie.style.verticalAlign="baseline",Fe.style.fontFamily=d,Fe.style.fontSize=y,Fe.style.margin="0",Fe.style.padding="0",Fe.appendChild(this._document.createTextNode(bu)),v.appendChild(Fe),v.appendChild(ie);var xt=ie.offsetTop-Fe.offsetTop+2;v.removeChild(Fe),v.appendChild(this._document.createTextNode(bu)),v.style.lineHeight="normal",ie.style.verticalAlign="super";var Bt=ie.offsetTop-v.offsetTop+2;return tt.removeChild(v),{baseline:xt,middle:Bt}},m.prototype.getMetrics=function(d,y){var v=d+" "+y;return typeof this._data[v]=="undefined"&&(this._data[v]=this.parseMetrics(d,y)),this._data[v]},m}(),dc=function(){function m(d,y){this.context=d,this.options=y}return m}(),yf=1e4,Wu=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;return ie._activeEffects=[],ie.canvas=v.canvas?v.canvas:document.createElement("canvas"),ie.ctx=ie.canvas.getContext("2d"),v.canvas||(ie.canvas.width=Math.floor(v.width*v.scale),ie.canvas.height=Math.floor(v.height*v.scale),ie.canvas.style.width=v.width+"px",ie.canvas.style.height=v.height+"px"),ie.fontMetrics=new PA(document),ie.ctx.scale(ie.options.scale,ie.options.scale),ie.ctx.translate(-v.x,-v.y),ie.ctx.textBaseline="bottom",ie._activeEffects=[],ie.context.logger.debug("Canvas renderer initialized ("+v.width+"x"+v.height+") with scale "+v.scale),ie}return d.prototype.applyEffects=function(y){for(var v=this;this._activeEffects.length;)this.popEffect();y.forEach(function(ie){return v.applyEffect(ie)})},d.prototype.applyEffect=function(y){this.ctx.save(),Al(y)&&(this.ctx.globalAlpha=y.opacity),ru(y)&&(this.ctx.translate(y.offsetX,y.offsetY),this.ctx.transform(y.matrix[0],y.matrix[1],y.matrix[2],y.matrix[3],y.matrix[4],y.matrix[5]),this.ctx.translate(-y.offsetX,-y.offsetY)),Zu(y)&&(this.path(y.path),this.ctx.clip()),this._activeEffects.push(y)},d.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},d.prototype.renderStack=function(y){return ue(this,void 0,void 0,function(){var v;return U(this,function(ie){switch(ie.label){case 0:return v=y.element.container.styles,v.isVisible()?[4,this.renderStackContent(y)]:[3,2];case 1:ie.sent(),ie.label=2;case 2:return[2]}})})},d.prototype.renderNode=function(y){return ue(this,void 0,void 0,function(){return U(this,function(v){switch(v.label){case 0:if(Sn(y.container.flags,16))debugger;return y.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(y)]:[3,3];case 1:return v.sent(),[4,this.renderNodeContent(y)];case 2:v.sent(),v.label=3;case 3:return[2]}})})},d.prototype.renderTextWithLetterSpacing=function(y,v,ie){var Fe=this;if(v===0)this.ctx.fillText(y.text,y.bounds.left,y.bounds.top+ie);else{var tt=Ba(y.text);tt.reduce(function(xt,Bt){return Fe.ctx.fillText(Bt,xt,y.bounds.top+ie),xt+Fe.ctx.measureText(Bt).width},y.bounds.left)}},d.prototype.createFontStyle=function(y){var v=y.fontVariant.filter(function(tt){return tt==="normal"||tt==="small-caps"}).join(""),ie=bf(y.fontFamily).join(", "),Fe=oo(y.fontSize)?""+y.fontSize.number+y.fontSize.unit:y.fontSize.number+"px";return[[y.fontStyle,v,y.fontWeight,Fe,ie].join(" "),ie,Fe]},d.prototype.renderTextNode=function(y,v){return ue(this,void 0,void 0,function(){var ie,Fe,tt,xt,Bt,nr,fr,a,g=this;return U(this,function(O){return ie=this.createFontStyle(v),Fe=ie[0],tt=ie[1],xt=ie[2],this.ctx.font=Fe,this.ctx.direction=v.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Bt=this.fontMetrics.getMetrics(tt,xt),nr=Bt.baseline,fr=Bt.middle,a=v.paintOrder,y.textBounds.forEach(function(oe){a.forEach(function(Me){switch(Me){case 0:g.ctx.fillStyle=Ya(v.color),g.renderTextWithLetterSpacing(oe,v.letterSpacing,nr);var We=v.textShadow;We.length&&oe.text.trim().length&&(We.slice(0).reverse().forEach(function(ze){g.ctx.shadowColor=Ya(ze.color),g.ctx.shadowOffsetX=ze.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=ze.offsetY.number*g.options.scale,g.ctx.shadowBlur=ze.blur.number,g.renderTextWithLetterSpacing(oe,v.letterSpacing,nr)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),v.textDecorationLine.length&&(g.ctx.fillStyle=Ya(v.textDecorationColor||v.color),v.textDecorationLine.forEach(function(ze){switch(ze){case 1:g.ctx.fillRect(oe.bounds.left,Math.round(oe.bounds.top+nr),oe.bounds.width,1);break;case 2:g.ctx.fillRect(oe.bounds.left,Math.round(oe.bounds.top),oe.bounds.width,1);break;case 3:g.ctx.fillRect(oe.bounds.left,Math.ceil(oe.bounds.top+fr),oe.bounds.width,1);break}}));break;case 1:v.webkitTextStrokeWidth&&oe.text.trim().length&&(g.ctx.strokeStyle=Ya(v.webkitTextStrokeColor),g.ctx.lineWidth=v.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(oe.text,oe.bounds.left,oe.bounds.top+nr)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},d.prototype.renderReplacedElement=function(y,v,ie){if(ie&&y.intrinsicWidth>0&&y.intrinsicHeight>0){var Fe=Ls(y),tt=pu(v);this.path(tt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(ie,0,0,y.intrinsicWidth,y.intrinsicHeight,Fe.left,Fe.top,Fe.width,Fe.height),this.ctx.restore()}},d.prototype.renderNodeContent=function(y){return ue(this,void 0,void 0,function(){var v,ie,Fe,tt,xt,Bt,Je,Je,nr,fr,a,g,mt,O,oe,Tt,Me,We,ze,Je,ot,mt,Tt;return U(this,function(jt){switch(jt.label){case 0:this.applyEffects(y.getEffects(4)),v=y.container,ie=y.curves,Fe=v.styles,tt=0,xt=v.textNodes,jt.label=1;case 1:return tt<xt.length?(Bt=xt[tt],[4,this.renderTextNode(Bt,Fe)]):[3,4];case 2:jt.sent(),jt.label=3;case 3:return tt++,[3,1];case 4:if(!(v instanceof Oc))return[3,8];jt.label=5;case 5:return jt.trys.push([5,7,,8]),[4,this.context.cache.match(v.src)];case 6:return Je=jt.sent(),this.renderReplacedElement(v,ie,Je),[3,8];case 7:return jt.sent(),this.context.logger.error("Error loading image "+v.src),[3,8];case 8:if(v instanceof la&&this.renderReplacedElement(v,ie,v.canvas),!(v instanceof Nc))return[3,12];jt.label=9;case 9:return jt.trys.push([9,11,,12]),[4,this.context.cache.match(v.svg)];case 10:return Je=jt.sent(),this.renderReplacedElement(v,ie,Je),[3,12];case 11:return jt.sent(),this.context.logger.error("Error loading svg "+v.svg.substring(0,255)),[3,12];case 12:return v instanceof Uc&&v.tree?(nr=new d(this.context,{scale:this.options.scale,backgroundColor:v.backgroundColor,x:0,y:0,width:v.width,height:v.height}),[4,nr.render(v.tree)]):[3,14];case 13:fr=jt.sent(),v.width&&v.height&&this.ctx.drawImage(fr,0,0,v.width,v.height,v.bounds.left,v.bounds.top,v.bounds.width,v.bounds.height),jt.label=14;case 14:if(v instanceof Is&&(a=Math.min(v.bounds.width,v.bounds.height),v.type===GA?v.checked&&(this.ctx.save(),this.path([new hi(v.bounds.left+a*.39363,v.bounds.top+a*.79),new hi(v.bounds.left+a*.16,v.bounds.top+a*.5549),new hi(v.bounds.left+a*.27347,v.bounds.top+a*.44071),new hi(v.bounds.left+a*.39694,v.bounds.top+a*.5649),new hi(v.bounds.left+a*.72983,v.bounds.top+a*.23),new hi(v.bounds.left+a*.84,v.bounds.top+a*.34085),new hi(v.bounds.left+a*.39363,v.bounds.top+a*.79)]),this.ctx.fillStyle=Ya(Au),this.ctx.fill(),this.ctx.restore()):v.type===oc&&v.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(v.bounds.left+a/2,v.bounds.top+a/2,a/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ya(Au),this.ctx.fill(),this.ctx.restore())),wu(v)&&v.value.length){switch(g=this.createFontStyle(Fe),mt=g[0],O=g[1],oe=this.fontMetrics.getMetrics(mt,O).baseline,this.ctx.font=mt,this.ctx.fillStyle=Ya(Fe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=OA(v.styles.textAlign),Tt=Ls(v),Me=0,v.styles.textAlign){case 1:Me+=Tt.width/2;break;case 2:Me+=Tt.width;break}We=Tt.add(Me,0,0,-Tt.height/2+1),this.ctx.save(),this.path([new hi(Tt.left,Tt.top),new hi(Tt.left+Tt.width,Tt.top),new hi(Tt.left+Tt.width,Tt.top+Tt.height),new hi(Tt.left,Tt.top+Tt.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ns(v.value,We),Fe.letterSpacing,oe),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Sn(v.styles.display,2048))return[3,20];if(v.styles.listStyleImage===null)return[3,19];if(ze=v.styles.listStyleImage,ze.type!==0)return[3,18];Je=void 0,ot=ze.url,jt.label=15;case 15:return jt.trys.push([15,17,,18]),[4,this.context.cache.match(ot)];case 16:return Je=jt.sent(),this.ctx.drawImage(Je,v.bounds.left-(Je.width+10),v.bounds.top),[3,18];case 17:return jt.sent(),this.context.logger.error("Error loading list-style-image "+ot),[3,18];case 18:return[3,20];case 19:y.listValue&&v.styles.listStyleType!==-1&&(mt=this.createFontStyle(Fe)[0],this.ctx.font=mt,this.ctx.fillStyle=Ya(Fe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Tt=new te(v.bounds.left,v.bounds.top+Da(v.styles.paddingTop,v.bounds.width),v.bounds.width,ut(Fe.lineHeight,Fe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ns(y.listValue,Tt),Fe.letterSpacing,ut(Fe.lineHeight,Fe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),jt.label=20;case 20:return[2]}})})},d.prototype.renderStackContent=function(y){return ue(this,void 0,void 0,function(){var v,ie,ze,Fe,tt,ze,xt,Bt,ze,nr,fr,ze,a,g,ze,O,oe,ze,Me,We,ze;return U(this,function(Je){switch(Je.label){case 0:if(Sn(y.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(y.element)];case 1:Je.sent(),v=0,ie=y.negativeZIndex,Je.label=2;case 2:return v<ie.length?(ze=ie[v],[4,this.renderStack(ze)]):[3,5];case 3:Je.sent(),Je.label=4;case 4:return v++,[3,2];case 5:return[4,this.renderNodeContent(y.element)];case 6:Je.sent(),Fe=0,tt=y.nonInlineLevel,Je.label=7;case 7:return Fe<tt.length?(ze=tt[Fe],[4,this.renderNode(ze)]):[3,10];case 8:Je.sent(),Je.label=9;case 9:return Fe++,[3,7];case 10:xt=0,Bt=y.nonPositionedFloats,Je.label=11;case 11:return xt<Bt.length?(ze=Bt[xt],[4,this.renderStack(ze)]):[3,14];case 12:Je.sent(),Je.label=13;case 13:return xt++,[3,11];case 14:nr=0,fr=y.nonPositionedInlineLevel,Je.label=15;case 15:return nr<fr.length?(ze=fr[nr],[4,this.renderStack(ze)]):[3,18];case 16:Je.sent(),Je.label=17;case 17:return nr++,[3,15];case 18:a=0,g=y.inlineLevel,Je.label=19;case 19:return a<g.length?(ze=g[a],[4,this.renderNode(ze)]):[3,22];case 20:Je.sent(),Je.label=21;case 21:return a++,[3,19];case 22:O=0,oe=y.zeroOrAutoZIndexOrTransformedOrOpacity,Je.label=23;case 23:return O<oe.length?(ze=oe[O],[4,this.renderStack(ze)]):[3,26];case 24:Je.sent(),Je.label=25;case 25:return O++,[3,23];case 26:Me=0,We=y.positiveZIndex,Je.label=27;case 27:return Me<We.length?(ze=We[Me],[4,this.renderStack(ze)]):[3,30];case 28:Je.sent(),Je.label=29;case 29:return Me++,[3,27];case 30:return[2]}})})},d.prototype.mask=function(y){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(y.slice(0).reverse()),this.ctx.closePath()},d.prototype.path=function(y){this.ctx.beginPath(),this.formatPath(y),this.ctx.closePath()},d.prototype.formatPath=function(y){var v=this;y.forEach(function(ie,Fe){var tt=Qs(ie)?ie.start:ie;Fe===0?v.ctx.moveTo(tt.x,tt.y):v.ctx.lineTo(tt.x,tt.y),Qs(ie)&&v.ctx.bezierCurveTo(ie.startControl.x,ie.startControl.y,ie.endControl.x,ie.endControl.y,ie.end.x,ie.end.y)})},d.prototype.renderRepeat=function(y,v,ie,Fe){this.path(y),this.ctx.fillStyle=v,this.ctx.translate(ie,Fe),this.ctx.fill(),this.ctx.translate(-ie,-Fe)},d.prototype.resizeImage=function(y,v,ie){var Fe;if(y.width===v&&y.height===ie)return y;var tt=(Fe=this.canvas.ownerDocument)!==null&&Fe!==void 0?Fe:document,xt=tt.createElement("canvas");xt.width=Math.max(1,v),xt.height=Math.max(1,ie);var Bt=xt.getContext("2d");return Bt.drawImage(y,0,0,y.width,y.height,0,0,v,ie),xt},d.prototype.renderBackgroundImage=function(y){return ue(this,void 0,void 0,function(){var v,ie,Fe,tt,xt,Bt;return U(this,function(nr){switch(nr.label){case 0:v=y.styles.backgroundImage.length-1,ie=function(fr){var a,g,O,Tr,si,Wn,Qr,ln,Gt,oe,Tr,si,Wn,Qr,ln,Me,We,ze,Je,ot,mt,Tt,jt,cr,Gt,Nr,Tr,Xt,tr,Qr,ln,An,si,Wn,zi,ni,Ka,qa,Sa,Ia,xo,Wa;return U(this,function(ca){switch(ca.label){case 0:if(fr.type!==0)return[3,5];a=void 0,g=fr.url,ca.label=1;case 1:return ca.trys.push([1,3,,4]),[4,Fe.context.cache.match(g)];case 2:return a=ca.sent(),[3,4];case 3:return ca.sent(),Fe.context.logger.error("Error loading background-image "+g),[3,4];case 4:return a&&(O=pA(y,v,[a.width,a.height,a.width/a.height]),Tr=O[0],si=O[1],Wn=O[2],Qr=O[3],ln=O[4],Gt=Fe.ctx.createPattern(Fe.resizeImage(a,Qr,ln),"repeat"),Fe.renderRepeat(Tr,Gt,si,Wn)),[3,6];case 5:ed(fr)?(oe=pA(y,v,[null,null,null]),Tr=oe[0],si=oe[1],Wn=oe[2],Qr=oe[3],ln=oe[4],Me=Ys(fr.angle,Qr,ln),We=Me[0],ze=Me[1],Je=Me[2],ot=Me[3],mt=Me[4],Tt=document.createElement("canvas"),Tt.width=Qr,Tt.height=ln,jt=Tt.getContext("2d"),cr=jt.createLinearGradient(ze,ot,Je,mt),wA(fr.stops,We).forEach(function(Co){return cr.addColorStop(Co.stop,Ya(Co.color))}),jt.fillStyle=cr,jt.fillRect(0,0,Qr,ln),Qr>0&&ln>0&&(Gt=Fe.ctx.createPattern(Tt,"repeat"),Fe.renderRepeat(Tr,Gt,si,Wn))):td(fr)&&(Nr=pA(y,v,[null,null,null]),Tr=Nr[0],Xt=Nr[1],tr=Nr[2],Qr=Nr[3],ln=Nr[4],An=fr.position.length===0?[Hl]:fr.position,si=Da(An[0],Qr),Wn=Da(An[An.length-1],ln),zi=Na(fr,si,Wn,Qr,ln),ni=zi[0],Ka=zi[1],ni>0&&Ka>0&&(qa=Fe.ctx.createRadialGradient(Xt+si,tr+Wn,0,Xt+si,tr+Wn,ni),wA(fr.stops,ni*2).forEach(function(Co){return qa.addColorStop(Co.stop,Ya(Co.color))}),Fe.path(Tr),Fe.ctx.fillStyle=qa,ni!==Ka?(Sa=y.bounds.left+.5*y.bounds.width,Ia=y.bounds.top+.5*y.bounds.height,xo=Ka/ni,Wa=1/xo,Fe.ctx.save(),Fe.ctx.translate(Sa,Ia),Fe.ctx.transform(1,0,0,xo,0,0),Fe.ctx.translate(-Sa,-Ia),Fe.ctx.fillRect(Xt,Wa*(tr-Ia)+Ia,Qr,ln*Wa),Fe.ctx.restore()):Fe.ctx.fill())),ca.label=6;case 6:return v--,[2]}})},Fe=this,tt=0,xt=y.styles.backgroundImage.slice(0).reverse(),nr.label=1;case 1:return tt<xt.length?(Bt=xt[tt],[5,ie(Bt)]):[3,4];case 2:nr.sent(),nr.label=3;case 3:return tt++,[3,1];case 4:return[2]}})})},d.prototype.renderSolidBorder=function(y,v,ie){return ue(this,void 0,void 0,function(){return U(this,function(Fe){return this.path(wd(ie,v)),this.ctx.fillStyle=Ya(y),this.ctx.fill(),[2]})})},d.prototype.renderDoubleBorder=function(y,v,ie,Fe){return ue(this,void 0,void 0,function(){var tt,xt;return U(this,function(Bt){switch(Bt.label){case 0:return v<3?[4,this.renderSolidBorder(y,ie,Fe)]:[3,2];case 1:return Bt.sent(),[2];case 2:return tt=Vu(Fe,ie),this.path(tt),this.ctx.fillStyle=Ya(y),this.ctx.fill(),xt=ad(Fe,ie),this.path(xt),this.ctx.fill(),[2]}})})},d.prototype.renderNodeBackgroundAndBorders=function(y){return ue(this,void 0,void 0,function(){var v,ie,Fe,tt,xt,Bt,nr,fr,a=this;return U(this,function(g){switch(g.label){case 0:return this.applyEffects(y.getEffects(2)),v=y.container.styles,ie=!Ro(v.backgroundColor)||v.backgroundImage.length,Fe=[{style:v.borderTopStyle,color:v.borderTopColor,width:v.borderTopWidth},{style:v.borderRightStyle,color:v.borderRightColor,width:v.borderRightWidth},{style:v.borderBottomStyle,color:v.borderBottomColor,width:v.borderBottomWidth},{style:v.borderLeftStyle,color:v.borderLeftColor,width:v.borderLeftWidth}],tt=sd(Vs(v.backgroundClip,0),y.curves),ie||v.boxShadow.length?(this.ctx.save(),this.path(tt),this.ctx.clip(),Ro(v.backgroundColor)||(this.ctx.fillStyle=Ya(v.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(y.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),v.boxShadow.slice(0).reverse().forEach(function(O){a.ctx.save();var oe=ko(y.curves),Me=O.inset?0:yf,We=id(oe,-Me+(O.inset?1:-1)*O.spread.number,(O.inset?1:-1)*O.spread.number,O.spread.number*(O.inset?-2:2),O.spread.number*(O.inset?-2:2));O.inset?(a.path(oe),a.ctx.clip(),a.mask(We)):(a.mask(oe),a.ctx.clip(),a.path(We)),a.ctx.shadowOffsetX=O.offsetX.number+Me,a.ctx.shadowOffsetY=O.offsetY.number,a.ctx.shadowColor=Ya(O.color),a.ctx.shadowBlur=O.blur.number,a.ctx.fillStyle=O.inset?Ya(O.color):"rgba(0,0,0,1)",a.ctx.fill(),a.ctx.restore()}),g.label=2;case 2:xt=0,Bt=0,nr=Fe,g.label=3;case 3:return Bt<nr.length?(fr=nr[Bt],fr.style!==0&&!Ro(fr.color)&&fr.width>0?fr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(fr.color,fr.width,xt,y.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return fr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(fr.color,fr.width,xt,y.curves,3)];case 6:return g.sent(),[3,11];case 7:return fr.style!==4?[3,9]:[4,this.renderDoubleBorder(fr.color,fr.width,xt,y.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(fr.color,xt,y.curves)];case 10:g.sent(),g.label=11;case 11:xt++,g.label=12;case 12:return Bt++,[3,3];case 13:return[2]}})})},d.prototype.renderDashedDottedBorder=function(y,v,ie,Fe,tt){return ue(this,void 0,void 0,function(){var xt,Bt,nr,fr,a,g,O,oe,Me,We,ze,Je,ot,mt,Tt,jt,Tt,jt;return U(this,function(cr){return this.ctx.save(),xt=xd(Fe,ie),Bt=wd(Fe,ie),tt===2&&(this.path(Bt),this.ctx.clip()),Qs(Bt[0])?(nr=Bt[0].start.x,fr=Bt[0].start.y):(nr=Bt[0].x,fr=Bt[0].y),Qs(Bt[1])?(a=Bt[1].end.x,g=Bt[1].end.y):(a=Bt[1].x,g=Bt[1].y),ie===0||ie===2?O=Math.abs(nr-a):O=Math.abs(fr-g),this.ctx.beginPath(),tt===3?this.formatPath(xt):this.formatPath(Bt.slice(0,2)),oe=v<3?v*3:v*2,Me=v<3?v*2:v,tt===3&&(oe=v,Me=v),We=!0,O<=oe*2?We=!1:O<=oe*2+Me?(ze=O/(2*oe+Me),oe*=ze,Me*=ze):(Je=Math.floor((O+Me)/(oe+Me)),ot=(O-Je*oe)/(Je-1),mt=(O-(Je+1)*oe)/Je,Me=mt<=0||Math.abs(Me-ot)<Math.abs(Me-mt)?ot:mt),We&&(tt===3?this.ctx.setLineDash([0,oe+Me]):this.ctx.setLineDash([oe,Me])),tt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=v):this.ctx.lineWidth=v*2+1.1,this.ctx.strokeStyle=Ya(y),this.ctx.stroke(),this.ctx.setLineDash([]),tt===2&&(Qs(Bt[0])&&(Tt=Bt[3],jt=Bt[0],this.ctx.beginPath(),this.formatPath([new hi(Tt.end.x,Tt.end.y),new hi(jt.start.x,jt.start.y)]),this.ctx.stroke()),Qs(Bt[1])&&(Tt=Bt[1],jt=Bt[2],this.ctx.beginPath(),this.formatPath([new hi(Tt.end.x,Tt.end.y),new hi(jt.start.x,jt.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},d.prototype.render=function(y){return ue(this,void 0,void 0,function(){var v;return U(this,function(ie){switch(ie.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ya(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),v=Zd(y),[4,this.renderStack(v)];case 1:return ie.sent(),this.applyEffects([]),[2,this.canvas]}})})},d}(dc),wu=function(m){return m instanceof Yc||m instanceof Tc?!0:m instanceof Is&&m.type!==oc&&m.type!==GA},sd=function(m,d){switch(m){case 0:return ko(d);case 2:return $u(d);case 1:default:return pu(d)}},OA=function(m){switch(m){case 1:return"center";case 2:return"right";case 0:default:return"left"}},mA=["-apple-system","system-ui"],bf=function(m){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?m.filter(function(d){return mA.indexOf(d)===-1}):m},Gu=function(m){w(d,m);function d(y,v){var ie=m.call(this,y,v)||this;return ie.canvas=v.canvas?v.canvas:document.createElement("canvas"),ie.ctx=ie.canvas.getContext("2d"),ie.options=v,ie.canvas.width=Math.floor(v.width*v.scale),ie.canvas.height=Math.floor(v.height*v.scale),ie.canvas.style.width=v.width+"px",ie.canvas.style.height=v.height+"px",ie.ctx.scale(ie.options.scale,ie.options.scale),ie.ctx.translate(-v.x,-v.y),ie.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+v.width+"x"+v.height+" at "+v.x+","+v.y+") with scale "+v.scale),ie}return d.prototype.render=function(y){return ue(this,void 0,void 0,function(){var v,ie;return U(this,function(Fe){switch(Fe.label){case 0:return v=Vl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,y),[4,xu(v)];case 1:return ie=Fe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ya(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(ie,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},d}(dc),xu=function(m){return new Promise(function(d,y){var v=new Image;v.onload=function(){d(v)},v.onerror=y,v.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},Cu=function(){function m(d){var y=d.id,v=d.enabled;this.id=y,this.enabled=v,this.start=Date.now()}return m.prototype.debug=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ne([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},m.prototype.getTime=function(){return Date.now()-this.start},m.prototype.info=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ne([this.id,this.getTime()+"ms"],d))},m.prototype.warn=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ne([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},m.prototype.error=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ne([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},m.instances={},m}(),Bd=function(){function m(d,y){var v;this.windowBounds=y,this.instanceName="#"+m.instanceCount++,this.logger=new Cu({id:this.instanceName,enabled:d.logging}),this.cache=(v=d.cache)!==null&&v!==void 0?v:new hA(this,d)}return m.instanceCount=1,m}(),Vd=function(m,d){return d===void 0&&(d={}),wf(m,d)};typeof window!="undefined"&&fA.setContext(window);var wf=function(m,d){return ue(void 0,void 0,void 0,function(){var y,v,ie,Fe,tt,xt,Bt,nr,fr,a,g,O,oe,Me,We,ze,Je,ot,mt,Tt,cr,jt,cr,Gt,Nr,Tr,Xt,tr,Qr,ln,An,si,Wn,zi,ni,Ka,qa,Sa,Ia,xo;return U(this,function(Wa){switch(Wa.label){case 0:if(!m||typeof m!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(y=m.ownerDocument,!y)throw new Error("Element is not attached to a Document");if(v=y.defaultView,!v)throw new Error("Document is not attached to a Window");return ie={allowTaint:(Gt=d.allowTaint)!==null&&Gt!==void 0?Gt:!1,imageTimeout:(Nr=d.imageTimeout)!==null&&Nr!==void 0?Nr:15e3,proxy:d.proxy,useCORS:(Tr=d.useCORS)!==null&&Tr!==void 0?Tr:!1},Fe=pe({logging:(Xt=d.logging)!==null&&Xt!==void 0?Xt:!0,cache:d.cache},ie),tt={windowWidth:(tr=d.windowWidth)!==null&&tr!==void 0?tr:v.innerWidth,windowHeight:(Qr=d.windowHeight)!==null&&Qr!==void 0?Qr:v.innerHeight,scrollX:(ln=d.scrollX)!==null&&ln!==void 0?ln:v.pageXOffset,scrollY:(An=d.scrollY)!==null&&An!==void 0?An:v.pageYOffset},xt=new te(tt.scrollX,tt.scrollY,tt.windowWidth,tt.windowHeight),Bt=new Bd(Fe,xt),nr=(si=d.foreignObjectRendering)!==null&&si!==void 0?si:!1,fr={allowTaint:(Wn=d.allowTaint)!==null&&Wn!==void 0?Wn:!1,onclone:d.onclone,ignoreElements:d.ignoreElements,inlineImages:nr,copyStyles:nr},Bt.logger.debug("Starting document clone with size "+xt.width+"x"+xt.height+" scrolled to "+-xt.left+","+-xt.top),a=new nl(Bt,m,fr),g=a.clonedReferenceElement,g?[4,a.toIFrame(y,xt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return O=Wa.sent(),oe=aa(g)||Fa(g)?B(g.ownerDocument):Z(Bt,g),Me=oe.width,We=oe.height,ze=oe.left,Je=oe.top,ot=Wd(Bt,g,d.backgroundColor),mt={canvas:d.canvas,backgroundColor:ot,scale:(ni=(zi=d.scale)!==null&&zi!==void 0?zi:v.devicePixelRatio)!==null&&ni!==void 0?ni:1,x:((Ka=d.x)!==null&&Ka!==void 0?Ka:0)+ze,y:((qa=d.y)!==null&&qa!==void 0?qa:0)+Je,width:(Sa=d.width)!==null&&Sa!==void 0?Sa:Math.ceil(Me),height:(Ia=d.height)!==null&&Ia!==void 0?Ia:Math.ceil(We)},nr?(Bt.logger.debug("Document cloned, using foreign object rendering"),cr=new Gu(Bt,mt),[4,cr.render(g)]):[3,3];case 2:return Tt=Wa.sent(),[3,5];case 3:return Bt.logger.debug("Document cloned, element located at "+ze+","+Je+" with size "+Me+"x"+We+" using computed rendering"),Bt.logger.debug("Starting DOM parsing"),jt=D(Bt,g),ot===jt.styles.backgroundColor&&(jt.styles.backgroundColor=Js.TRANSPARENT),Bt.logger.debug("Starting renderer for element at "+mt.x+","+mt.y+" with size "+mt.width+"x"+mt.height),cr=new Wu(Bt,mt),[4,cr.render(jt)];case 4:Tt=Wa.sent(),Wa.label=5;case 5:return(!((xo=d.removeContainer)!==null&&xo!==void 0)||xo)&&(nl.destroy(O)||Bt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Bt.logger.debug("Finished rendering"),[2,Tt]}})})},Wd=function(m,d,y){var v=d.ownerDocument,ie=v.documentElement?Dl(m,getComputedStyle(v.documentElement).backgroundColor):Js.TRANSPARENT,Fe=v.body?Dl(m,getComputedStyle(v.body).backgroundColor):Js.TRANSPARENT,tt=typeof y=="string"?Dl(m,y):y===null?Js.TRANSPARENT:4294967295;return d===v.documentElement?Ro(ie)?Ro(Fe)?tt:Fe:ie:tt};return Vd})},44164:function(xn,Jt,w){var pe=w(97671);(function(U,Ne){xn.exports=Ne(w(7348),w(64270))})(self,function(ue,U){return function(){var Ne={"./src/plugin/hyperlinks.js":function(h,E,p){"use strict";p.r(E);var j=p("./node_modules/core-js/modules/web.dom-collections.for-each.js"),S=p.n(j),F=p("./node_modules/core-js/modules/es.string.link.js"),P=p.n(F),R=p("./src/worker.js"),M=p("./src/utils.js"),Y=[],Q={toContainer:R.default.prototype.toContainer,toPdf:R.default.prototype.toPdf};R.default.prototype.toContainer=function(){return Q.toContainer.call(this).then(function(){if(this.opt.enableLinks){var J=this.prop.container,V=J.querySelectorAll("a"),K=(0,M.unitConvert)(J.getBoundingClientRect(),this.prop.pageSize.k);Y=[],Array.prototype.forEach.call(V,function(se){for(var he=se.getClientRects(),Te=0;Te<he.length;Te++){var xe=(0,M.unitConvert)(he[Te],this.prop.pageSize.k);xe.left-=K.left,xe.top-=K.top;var je=Math.floor(xe.top/this.prop.pageSize.inner.height)+1,X=this.opt.margin[0]+xe.top%this.prop.pageSize.inner.height,de=this.opt.margin[1]+xe.left;Y.push({page:je,top:X,left:de,clientRect:xe,link:se})}},this)}})},R.default.prototype.toPdf=function(){return Q.toPdf.call(this).then(function(){if(this.opt.enableLinks){Y.forEach(function(V){this.prop.pdf.setPage(V.page),this.prop.pdf.link(V.left,V.top,V.clientRect.width,V.clientRect.height,{url:V.link.href})},this);var J=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(J)}})}},"./src/plugin/jspdf-plugin.js":function(h,E,p){"use strict";p.r(E);var j=p("./node_modules/core-js/modules/es.symbol.js"),S=p.n(j),F=p("./node_modules/core-js/modules/es.symbol.description.js"),P=p.n(F),R=p("./node_modules/core-js/modules/es.object.to-string.js"),M=p.n(R),Y=p("./node_modules/core-js/modules/es.symbol.iterator.js"),Q=p.n(Y),ce=p("./node_modules/core-js/modules/es.array.iterator.js"),W=p.n(ce),J=p("./node_modules/core-js/modules/es.string.iterator.js"),V=p.n(J),K=p("./node_modules/core-js/modules/web.dom-collections.iterator.js"),se=p.n(K),he=p("jspdf"),Te=p.n(he);function xe(je){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xe=function(de){return typeof de}:xe=function(de){return de&&typeof Symbol=="function"&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},xe(je)}he.jsPDF.getPageSize=function(je,X,de){if(xe(je)==="object"){var k=je;je=k.orientation,X=k.unit||X,de=k.format||de}X=X||"mm",de=de||"a4",je=(""+(je||"P")).toLowerCase();var rt=(""+de).toLowerCase(),Oe={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(X){case"pt":var be=1;break;case"mm":var be=72/25.4;break;case"cm":var be=72/2.54;break;case"in":var be=72;break;case"px":var be=72/96;break;case"pc":var be=12;break;case"em":var be=12;break;case"ex":var be=6;break;default:throw"Invalid unit: "+X}if(Oe.hasOwnProperty(rt))var He=Oe[rt][1]/be,ge=Oe[rt][0]/be;else try{var He=de[1],ge=de[0]}catch(Se){throw new Error("Invalid format: "+de)}if(je==="p"||je==="portrait"){if(je="p",ge>He){var De=ge;ge=He,He=De}}else if(je==="l"||je==="landscape"){if(je="l",He>ge){var De=ge;ge=He,He=De}}else throw"Invalid orientation: "+je;var fe={width:ge,height:He,unit:X,k:be};return fe},E.default=he.jsPDF},"./src/plugin/pagebreaks.js":function(h,E,p){"use strict";p.r(E);var j=p("./node_modules/core-js/modules/es.array.concat.js"),S=p.n(j),F=p("./node_modules/core-js/modules/es.array.slice.js"),P=p.n(F),R=p("./node_modules/core-js/modules/es.array.join.js"),M=p.n(R),Y=p("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Q=p.n(Y),ce=p("./node_modules/core-js/modules/es.object.keys.js"),W=p.n(ce),J=p("./src/worker.js"),V=p("./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 Te=this.prop.container,xe=this.prop.pageSize.inner.px.height,je=[].concat(this.opt.pagebreak.mode),X={avoidAll:je.indexOf("avoid-all")!==-1,css:je.indexOf("css")!==-1,legacy:je.indexOf("legacy")!==-1},de={},k=this;["before","after","avoid"].forEach(function(be){var He=X.avoidAll&&be==="avoid";de[be]=He?[]:[].concat(k.opt.pagebreak[be]||[]),de[be].length>0&&(de[be]=Array.prototype.slice.call(Te.querySelectorAll(de[be].join(", "))))});var rt=Te.querySelectorAll(".html2pdf__page-break");rt=Array.prototype.slice.call(rt);var Oe=Te.querySelectorAll("*");Array.prototype.forEach.call(Oe,function(He){var ge={before:!1,after:X.legacy&&rt.indexOf(He)!==-1,avoid:X.avoidAll};if(X.css){var De=window.getComputedStyle(He),fe=["always","page","left","right"],Se=["avoid","avoid-page"];ge={before:ge.before||fe.indexOf(De.breakBefore||De.pageBreakBefore)!==-1,after:ge.after||fe.indexOf(De.breakAfter||De.pageBreakAfter)!==-1,avoid:ge.avoid||Se.indexOf(De.breakInside||De.pageBreakInside)!==-1}}Object.keys(ge).forEach(function(Ut){ge[Ut]=ge[Ut]||de[Ut].indexOf(He)!==-1});var ct=He.getBoundingClientRect();if(ge.avoid&&!ge.before){var dt=Math.floor(ct.top/xe),at=Math.floor(ct.bottom/xe),st=Math.abs(ct.bottom-ct.top)/xe;at!==dt&&st<=1&&(ge.before=!0)}if(ge.before){var It=(0,V.createElement)("div",{style:{display:"block",height:xe-ct.top%xe+"px"}});He.parentNode.insertBefore(It,He)}if(ge.after){var It=(0,V.createElement)("div",{style:{display:"block",height:xe-ct.bottom%xe+"px"}});He.parentNode.insertBefore(It,He.nextSibling)}})})}},"./src/utils.js":function(h,E,p){"use strict";p.r(E),p.d(E,{objType:function(){return je},createElement:function(){return X},cloneNode:function(){return de},unitConvert:function(){return k},toPx:function(){return rt}});var j=p("./node_modules/core-js/modules/es.number.constructor.js"),S=p.n(j),F=p("./node_modules/core-js/modules/es.symbol.js"),P=p.n(F),R=p("./node_modules/core-js/modules/es.symbol.description.js"),M=p.n(R),Y=p("./node_modules/core-js/modules/es.object.to-string.js"),Q=p.n(Y),ce=p("./node_modules/core-js/modules/es.symbol.iterator.js"),W=p.n(ce),J=p("./node_modules/core-js/modules/es.array.iterator.js"),V=p.n(J),K=p("./node_modules/core-js/modules/es.string.iterator.js"),se=p.n(K),he=p("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Te=p.n(he);function xe(Oe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xe=function(He){return typeof He}:xe=function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},xe(Oe)}var je=function(be){var He=xe(be);return He==="undefined"?"undefined":He==="string"||be instanceof String?"string":He==="number"||be instanceof Number?"number":He==="function"||be instanceof Function?"function":be&&be.constructor===Array?"array":be&&be.nodeType===1?"element":He==="object"?"object":"unknown"},X=function(be,He){var ge=document.createElement(be);if(He.className&&(ge.className=He.className),He.innerHTML){ge.innerHTML=He.innerHTML;for(var De=ge.getElementsByTagName("script"),fe=De.length;fe-- >0;null)De[fe].parentNode.removeChild(De[fe])}for(var Se in He.style)ge.style[Se]=He.style[Se];return ge},de=function Oe(be,He){for(var ge=be.nodeType===3?document.createTextNode(be.nodeValue):be.cloneNode(!1),De=be.firstChild;De;De=De.nextSibling)(He===!0||De.nodeType!==1||De.nodeName!=="SCRIPT")&&ge.appendChild(Oe(De,He));return be.nodeType===1&&(be.nodeName==="CANVAS"?(ge.width=be.width,ge.height=be.height,ge.getContext("2d").drawImage(be,0,0)):(be.nodeName==="TEXTAREA"||be.nodeName==="SELECT")&&(ge.value=be.value),ge.addEventListener("load",function(){ge.scrollTop=be.scrollTop,ge.scrollLeft=be.scrollLeft},!0)),ge},k=function(be,He){if(je(be)==="number")return be*72/96/He;var ge={};for(var De in be)ge[De]=be[De]*72/96/He;return ge},rt=function(be,He){return Math.floor(be*He/72*96)}},"./src/worker.js":function(h,E,p){"use strict";p.r(E);var j=p("./node_modules/core-js/modules/es.object.assign.js"),S=p.n(j),F=p("./node_modules/core-js/modules/es.array.map.js"),P=p.n(F),R=p("./node_modules/core-js/modules/es.object.keys.js"),M=p.n(R),Y=p("./node_modules/core-js/modules/es.array.concat.js"),Q=p.n(Y),ce=p("./node_modules/core-js/modules/es.object.to-string.js"),W=p.n(ce),J=p("./node_modules/core-js/modules/es.regexp.to-string.js"),V=p.n(J),K=p("./node_modules/core-js/modules/es.function.name.js"),se=p.n(K),he=p("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Te=p.n(he),xe=p("jspdf"),je=p.n(xe),X=p("html2canvas"),de=p.n(X),k=p("./src/utils.js"),rt=p("./node_modules/es6-promise/dist/es6-promise.js"),Oe=p.n(rt),be=Oe().Promise,He=function ge(De){var fe=Object.assign(ge.convert(be.resolve()),JSON.parse(JSON.stringify(ge.template))),Se=ge.convert(be.resolve(),fe);return Se=Se.setProgress(1,ge,1,[ge]),Se=Se.set(De),Se};He.prototype=Object.create(be.prototype),He.prototype.constructor=He,He.convert=function(De,fe){return De.__proto__=fe||He.prototype,De},He.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:{}}},He.prototype.from=function(De,fe){function Se(ct){switch((0,k.objType)(ct)){case"string":return"string";case"element":return ct.nodeName.toLowerCase&&ct.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(fe=fe||Se(De),fe){case"string":return this.set({src:(0,k.createElement)("div",{innerHTML:De})});case"element":return this.set({src:De});case"canvas":return this.set({canvas:De});case"img":return this.set({img:De});default:return this.error("Unknown source type.")}})},He.prototype.to=function(De){switch(De){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},He.prototype.toContainer=function(){var De=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(De).then(function(){var Se={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},ct={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Se.opacity=0;var dt=(0,k.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,k.createElement)("div",{className:"html2pdf__overlay",style:Se}),this.prop.container=(0,k.createElement)("div",{className:"html2pdf__container",style:ct}),this.prop.container.appendChild(dt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},He.prototype.toCanvas=function(){var De=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(De).then(function(){var Se=Object.assign({},this.opt.html2canvas);return delete Se.onrendered,X(this.prop.container,Se)}).then(function(Se){var ct=this.opt.html2canvas.onrendered||function(){};ct(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},He.prototype.toImg=function(){var De=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(De).then(function(){var Se=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Se})},He.prototype.toPdf=function(){var De=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(De).then(function(){var Se=this.prop.canvas,ct=this.opt,dt=Se.height,at=Math.floor(Se.width*this.prop.pageSize.inner.ratio),st=Math.ceil(dt/at),It=this.prop.pageSize.inner.height,Ut=document.createElement("canvas"),Kt=Ut.getContext("2d");Ut.width=Se.width,Ut.height=at,this.prop.pdf=this.prop.pdf||new xe.jsPDF(ct.jsPDF);for(var hr=0;hr<st;hr++){hr===st-1&&dt%at!==0&&(Ut.height=dt%at,It=Ut.height*this.prop.pageSize.inner.width/Ut.width);var or=Ut.width,Sr=Ut.height;Kt.fillStyle="white",Kt.fillRect(0,0,or,Sr),Kt.drawImage(Se,0,hr*at,or,Sr,0,0,or,Sr),hr&&this.prop.pdf.addPage();var ur=Ut.toDataURL("image/"+ct.image.type,ct.image.quality);this.prop.pdf.addImage(ur,ct.image.type,ct.margin[1],ct.margin[0],this.prop.pageSize.inner.width,It)}})},He.prototype.output=function(De,fe,Se){return Se=Se||"pdf",Se.toLowerCase()==="img"||Se.toLowerCase()==="image"?this.outputImg(De,fe):this.outputPdf(De,fe)},He.prototype.outputPdf=function(De,fe){var Se=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Se).then(function(){return this.prop.pdf.output(De,fe)})},He.prototype.outputImg=function(De,fe){var Se=[function(){return this.prop.img||this.toImg()}];return this.thenList(Se).then(function(){switch(De){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+De+'" is not supported.'}})},He.prototype.save=function(De){var fe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(fe).set(De?{filename:De}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},He.prototype.set=function(De){if((0,k.objType)(De)!=="object")return this;var fe=Object.keys(De||{}).map(function(Se){switch(Se){case"margin":return this.setMargin.bind(this,De.margin);case"jsPDF":return function(){return this.opt.jsPDF=De.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,De.pageSize);default:return Se in He.template.prop?function(){this.prop[Se]=De[Se]}:function(){this.opt[Se]=De[Se]}}},this);return this.then(function(){return this.thenList(fe)})},He.prototype.get=function(De,fe){return this.then(function(){var ct=De in He.template.prop?this.prop[De]:this.opt[De];return fe?fe(ct):ct})},He.prototype.setMargin=function(De){return this.then(function(){switch((0,k.objType)(De)){case"number":De=[De,De,De,De];case"array":if(De.length===2&&(De=[De[0],De[1],De[0],De[1]]),De.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=De}).then(this.setPageSize)},He.prototype.setPageSize=function(De){return this.then(function(){De=De||xe.jsPDF.getPageSize(this.opt.jsPDF),De.hasOwnProperty("inner")||(De.inner={width:De.width-this.opt.margin[1]-this.opt.margin[3],height:De.height-this.opt.margin[0]-this.opt.margin[2]},De.inner.px={width:(0,k.toPx)(De.inner.width,De.k),height:(0,k.toPx)(De.inner.height,De.k)},De.inner.ratio=De.inner.height/De.inner.width),this.prop.pageSize=De})},He.prototype.setProgress=function(De,fe,Se,ct){return De!=null&&(this.progress.val=De),fe!=null&&(this.progress.state=fe),Se!=null&&(this.progress.n=Se),ct!=null&&(this.progress.stack=ct),this.progress.ratio=this.progress.val/this.progress.state,this},He.prototype.updateProgress=function(De,fe,Se,ct){return this.setProgress(De?this.progress.val+De:null,fe||null,Se?this.progress.n+Se:null,ct?this.progress.stack.concat(ct):null)},He.prototype.then=function(De,fe){var Se=this;return this.thenCore(De,fe,function(dt,at){return Se.updateProgress(null,null,1,[dt]),be.prototype.then.call(this,function(It){return Se.updateProgress(null,dt),It}).then(dt,at).then(function(It){return Se.updateProgress(1),It})})},He.prototype.thenCore=function(De,fe,Se){Se=Se||be.prototype.then;var ct=this;De&&(De=De.bind(ct)),fe&&(fe=fe.bind(ct));var dt=be.toString().indexOf("[native code]")!==-1&&be.name==="Promise",at=dt?ct:He.convert(Object.assign({},ct),be.prototype),st=Se.call(at,De,fe);return He.convert(st,ct.__proto__)},He.prototype.thenExternal=function(De,fe){return be.prototype.then.call(this,De,fe)},He.prototype.thenList=function(De){var fe=this;return De.forEach(function(ct){fe=fe.thenCore(ct)}),fe},He.prototype.catch=function(ge){ge&&(ge=ge.bind(this));var De=be.prototype.catch.call(this,ge);return He.convert(De,this)},He.prototype.catchExternal=function(De){return be.prototype.catch.call(this,De)},He.prototype.error=function(De){return this.then(function(){throw new Error(De)})},He.prototype.using=He.prototype.set,He.prototype.saveAs=He.prototype.save,He.prototype.export=He.prototype.output,He.prototype.run=He.prototype.then,E.default=He},"./node_modules/core-js/internals/a-function.js":function(h){h.exports=function(E){if(typeof E!="function")throw TypeError(String(E)+" is not a function");return E}},"./node_modules/core-js/internals/a-possible-prototype.js":function(h,E,p){var j=p("./node_modules/core-js/internals/is-object.js");h.exports=function(S){if(!j(S)&&S!==null)throw TypeError("Can't set "+String(S)+" as a prototype");return S}},"./node_modules/core-js/internals/add-to-unscopables.js":function(h,E,p){var j=p("./node_modules/core-js/internals/well-known-symbol.js"),S=p("./node_modules/core-js/internals/object-create.js"),F=p("./node_modules/core-js/internals/object-define-property.js"),P=j("unscopables"),R=Array.prototype;R[P]==null&&F.f(R,P,{configurable:!0,value:S(null)}),h.exports=function(M){R[P][M]=!0}},"./node_modules/core-js/internals/an-object.js":function(h,E,p){var j=p("./node_modules/core-js/internals/is-object.js");h.exports=function(S){if(!j(S))throw TypeError(String(S)+" is not an object");return S}},"./node_modules/core-js/internals/array-for-each.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/array-iteration.js").forEach,S=p("./node_modules/core-js/internals/array-method-is-strict.js"),F=S("forEach");h.exports=F?[].forEach:function(R){return j(this,R,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-indexed-object.js"),S=p("./node_modules/core-js/internals/to-length.js"),F=p("./node_modules/core-js/internals/to-absolute-index.js"),P=function(R){return function(M,Y,Q){var ce=j(M),W=S(ce.length),J=F(Q,W),V;if(R&&Y!=Y){for(;W>J;)if(V=ce[J++],V!=V)return!0}else for(;W>J;J++)if((R||J in ce)&&ce[J]===Y)return R||J||0;return!R&&-1}};h.exports={includes:P(!0),indexOf:P(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(h,E,p){var j=p("./node_modules/core-js/internals/function-bind-context.js"),S=p("./node_modules/core-js/internals/indexed-object.js"),F=p("./node_modules/core-js/internals/to-object.js"),P=p("./node_modules/core-js/internals/to-length.js"),R=p("./node_modules/core-js/internals/array-species-create.js"),M=[].push,Y=function(Q){var ce=Q==1,W=Q==2,J=Q==3,V=Q==4,K=Q==6,se=Q==7,he=Q==5||K;return function(Te,xe,je,X){for(var de=F(Te),k=S(de),rt=j(xe,je,3),Oe=P(k.length),be=0,He=X||R,ge=ce?He(Te,Oe):W||se?He(Te,0):void 0,De,fe;Oe>be;be++)if((he||be in k)&&(De=k[be],fe=rt(De,be,de),Q))if(ce)ge[be]=fe;else if(fe)switch(Q){case 3:return!0;case 5:return De;case 6:return be;case 2:M.call(ge,De)}else switch(Q){case 4:return!1;case 7:M.call(ge,De)}return K?-1:J||V?V:ge}};h.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(h,E,p){var j=p("./node_modules/core-js/internals/fails.js"),S=p("./node_modules/core-js/internals/well-known-symbol.js"),F=p("./node_modules/core-js/internals/engine-v8-version.js"),P=S("species");h.exports=function(R){return F>=51||!j(function(){var M=[],Y=M.constructor={};return Y[P]=function(){return{foo:1}},M[R](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/fails.js");h.exports=function(S,F){var P=[][S];return!!P&&j(function(){P.call(null,F||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(h,E,p){var j=p("./node_modules/core-js/internals/is-object.js"),S=p("./node_modules/core-js/internals/is-array.js"),F=p("./node_modules/core-js/internals/well-known-symbol.js"),P=F("species");h.exports=function(R){var M;return S(R)&&(M=R.constructor,typeof M=="function"&&(M===Array||S(M.prototype))?M=void 0:j(M)&&(M=M[P],M===null&&(M=void 0))),M===void 0?Array:M}},"./node_modules/core-js/internals/array-species-create.js":function(h,E,p){var j=p("./node_modules/core-js/internals/array-species-constructor.js");h.exports=function(S,F){return new(j(S))(F===0?0:F)}},"./node_modules/core-js/internals/classof-raw.js":function(h){var E={}.toString;h.exports=function(p){return E.call(p).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-string-tag-support.js"),S=p("./node_modules/core-js/internals/classof-raw.js"),F=p("./node_modules/core-js/internals/well-known-symbol.js"),P=F("toStringTag"),R=S(function(){return arguments}())=="Arguments",M=function(Y,Q){try{return Y[Q]}catch(ce){}};h.exports=j?S:function(Y){var Q,ce,W;return Y===void 0?"Undefined":Y===null?"Null":typeof(ce=M(Q=Object(Y),P))=="string"?ce:R?S(Q):(W=S(Q))=="Object"&&typeof Q.callee=="function"?"Arguments":W}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(h,E,p){var j=p("./node_modules/core-js/internals/has.js"),S=p("./node_modules/core-js/internals/own-keys.js"),F=p("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),P=p("./node_modules/core-js/internals/object-define-property.js");h.exports=function(R,M){for(var Y=S(M),Q=P.f,ce=F.f,W=0;W<Y.length;W++){var J=Y[W];j(R,J)||Q(R,J,ce(M,J))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(h,E,p){var j=p("./node_modules/core-js/internals/fails.js");h.exports=!j(function(){function S(){}return S.prototype.constructor=null,Object.getPrototypeOf(new S)!==S.prototype})},"./node_modules/core-js/internals/create-html.js":function(h,E,p){var j=p("./node_modules/core-js/internals/require-object-coercible.js"),S=p("./node_modules/core-js/internals/to-string.js"),F=/"/g;h.exports=function(P,R,M,Y){var Q=S(j(P)),ce="<"+R;return M!==""&&(ce+=" "+M+'="'+S(Y).replace(F,"&quot;")+'"'),ce+">"+Q+"</"+R+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,S=p("./node_modules/core-js/internals/object-create.js"),F=p("./node_modules/core-js/internals/create-property-descriptor.js"),P=p("./node_modules/core-js/internals/set-to-string-tag.js"),R=p("./node_modules/core-js/internals/iterators.js"),M=function(){return this};h.exports=function(Y,Q,ce){var W=Q+" Iterator";return Y.prototype=S(j,{next:F(1,ce)}),P(Y,W,!1,!0),R[W]=M,Y}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(h,E,p){var j=p("./node_modules/core-js/internals/descriptors.js"),S=p("./node_modules/core-js/internals/object-define-property.js"),F=p("./node_modules/core-js/internals/create-property-descriptor.js");h.exports=j?function(P,R,M){return S.f(P,R,F(1,M))}:function(P,R,M){return P[R]=M,P}},"./node_modules/core-js/internals/create-property-descriptor.js":function(h){h.exports=function(E,p){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:p}}},"./node_modules/core-js/internals/create-property.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/to-property-key.js"),S=p("./node_modules/core-js/internals/object-define-property.js"),F=p("./node_modules/core-js/internals/create-property-descriptor.js");h.exports=function(P,R,M){var Y=j(R);Y in P?S.f(P,Y,F(0,M)):P[Y]=M}},"./node_modules/core-js/internals/define-iterator.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/create-iterator-constructor.js"),F=p("./node_modules/core-js/internals/object-get-prototype-of.js"),P=p("./node_modules/core-js/internals/object-set-prototype-of.js"),R=p("./node_modules/core-js/internals/set-to-string-tag.js"),M=p("./node_modules/core-js/internals/create-non-enumerable-property.js"),Y=p("./node_modules/core-js/internals/redefine.js"),Q=p("./node_modules/core-js/internals/well-known-symbol.js"),ce=p("./node_modules/core-js/internals/is-pure.js"),W=p("./node_modules/core-js/internals/iterators.js"),J=p("./node_modules/core-js/internals/iterators-core.js"),V=J.IteratorPrototype,K=J.BUGGY_SAFARI_ITERATORS,se=Q("iterator"),he="keys",Te="values",xe="entries",je=function(){return this};h.exports=function(X,de,k,rt,Oe,be,He){S(k,de,rt);var ge=function(Kt){if(Kt===Oe&&dt)return dt;if(!K&&Kt in Se)return Se[Kt];switch(Kt){case he:return function(){return new k(this,Kt)};case Te:return function(){return new k(this,Kt)};case xe:return function(){return new k(this,Kt)}}return function(){return new k(this)}},De=de+" Iterator",fe=!1,Se=X.prototype,ct=Se[se]||Se["@@iterator"]||Oe&&Se[Oe],dt=!K&&ct||ge(Oe),at=de=="Array"&&Se.entries||ct,st,It,Ut;if(at&&(st=F(at.call(new X)),V!==Object.prototype&&st.next&&(!ce&&F(st)!==V&&(P?P(st,V):typeof st[se]!="function"&&M(st,se,je)),R(st,De,!0,!0),ce&&(W[De]=je))),Oe==Te&&ct&&ct.name!==Te&&(fe=!0,dt=function(){return ct.call(this)}),(!ce||He)&&Se[se]!==dt&&M(Se,se,dt),W[de]=dt,Oe)if(It={values:ge(Te),keys:be?dt:ge(he),entries:ge(xe)},He)for(Ut in It)(K||fe||!(Ut in Se))&&Y(Se,Ut,It[Ut]);else j({target:de,proto:!0,forced:K||fe},It);return It}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(h,E,p){var j=p("./node_modules/core-js/internals/path.js"),S=p("./node_modules/core-js/internals/has.js"),F=p("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),P=p("./node_modules/core-js/internals/object-define-property.js").f;h.exports=function(R){var M=j.Symbol||(j.Symbol={});S(M,R)||P(M,R,{value:F.f(R)})}},"./node_modules/core-js/internals/descriptors.js":function(h,E,p){var j=p("./node_modules/core-js/internals/fails.js");h.exports=!j(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/is-object.js"),F=j.document,P=S(F)&&S(F.createElement);h.exports=function(R){return P?F.createElement(R):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(h){h.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(h,E,p){var j=p("./node_modules/core-js/internals/get-built-in.js");h.exports=j("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/engine-user-agent.js"),F=j.process,P=j.Deno,R=F&&F.versions||P&&P.version,M=R&&R.v8,Y,Q;M?(Y=M.split("."),Q=Y[0]<4?1:Y[0]+Y[1]):S&&(Y=S.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=S.match(/Chrome\/(\d+)/),Y&&(Q=Y[1]))),h.exports=Q&&+Q},"./node_modules/core-js/internals/enum-bug-keys.js":function(h){h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,F=p("./node_modules/core-js/internals/create-non-enumerable-property.js"),P=p("./node_modules/core-js/internals/redefine.js"),R=p("./node_modules/core-js/internals/set-global.js"),M=p("./node_modules/core-js/internals/copy-constructor-properties.js"),Y=p("./node_modules/core-js/internals/is-forced.js");h.exports=function(Q,ce){var W=Q.target,J=Q.global,V=Q.stat,K,se,he,Te,xe,je;if(J?se=j:V?se=j[W]||R(W,{}):se=(j[W]||{}).prototype,se)for(he in ce){if(xe=ce[he],Q.noTargetGet?(je=S(se,he),Te=je&&je.value):Te=se[he],K=Y(J?he:W+(V?".":"#")+he,Q.forced),!K&&Te!==void 0){if(typeof xe==typeof Te)continue;M(xe,Te)}(Q.sham||Te&&Te.sham)&&F(xe,"sham",!0),P(se,he,xe,Q)}}},"./node_modules/core-js/internals/fails.js":function(h){h.exports=function(E){try{return!!E()}catch(p){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(h,E,p){var j=p("./node_modules/core-js/internals/a-function.js");h.exports=function(S,F,P){if(j(S),F===void 0)return S;switch(P){case 0:return function(){return S.call(F)};case 1:return function(R){return S.call(F,R)};case 2:return function(R,M){return S.call(F,R,M)};case 3:return function(R,M,Y){return S.call(F,R,M,Y)}}return function(){return S.apply(F,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=function(F){return typeof F=="function"?F:void 0};h.exports=function(F,P){return arguments.length<2?S(j[F]):j[F]&&j[F][P]}},"./node_modules/core-js/internals/global.js":function(h){var E=function(p){return p&&p.Math==Math&&p};h.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof w.g=="object"&&w.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-object.js"),S={}.hasOwnProperty;h.exports=Object.hasOwn||function(P,R){return S.call(j(P),R)}},"./node_modules/core-js/internals/hidden-keys.js":function(h){h.exports={}},"./node_modules/core-js/internals/html.js":function(h,E,p){var j=p("./node_modules/core-js/internals/get-built-in.js");h.exports=j("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(h,E,p){var j=p("./node_modules/core-js/internals/descriptors.js"),S=p("./node_modules/core-js/internals/fails.js"),F=p("./node_modules/core-js/internals/document-create-element.js");h.exports=!j&&!S(function(){return Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(h,E,p){var j=p("./node_modules/core-js/internals/fails.js"),S=p("./node_modules/core-js/internals/classof-raw.js"),F="".split;h.exports=j(function(){return!Object("z").propertyIsEnumerable(0)})?function(P){return S(P)=="String"?F.call(P,""):Object(P)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(h,E,p){var j=p("./node_modules/core-js/internals/is-object.js"),S=p("./node_modules/core-js/internals/object-set-prototype-of.js");h.exports=function(F,P,R){var M,Y;return S&&typeof(M=P.constructor)=="function"&&M!==R&&j(Y=M.prototype)&&Y!==R.prototype&&S(F,Y),F}},"./node_modules/core-js/internals/inspect-source.js":function(h,E,p){var j=p("./node_modules/core-js/internals/shared-store.js"),S=Function.toString;typeof j.inspectSource!="function"&&(j.inspectSource=function(F){return S.call(F)}),h.exports=j.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(h,E,p){var j=p("./node_modules/core-js/internals/native-weak-map.js"),S=p("./node_modules/core-js/internals/global.js"),F=p("./node_modules/core-js/internals/is-object.js"),P=p("./node_modules/core-js/internals/create-non-enumerable-property.js"),R=p("./node_modules/core-js/internals/has.js"),M=p("./node_modules/core-js/internals/shared-store.js"),Y=p("./node_modules/core-js/internals/shared-key.js"),Q=p("./node_modules/core-js/internals/hidden-keys.js"),ce="Object already initialized",W=S.WeakMap,J,V,K,se=function(k){return K(k)?V(k):J(k,{})},he=function(k){return function(rt){var Oe;if(!F(rt)||(Oe=V(rt)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return Oe}};if(j||M.state){var Te=M.state||(M.state=new W),xe=Te.get,je=Te.has,X=Te.set;J=function(k,rt){if(je.call(Te,k))throw new TypeError(ce);return rt.facade=k,X.call(Te,k,rt),rt},V=function(k){return xe.call(Te,k)||{}},K=function(k){return je.call(Te,k)}}else{var de=Y("state");Q[de]=!0,J=function(k,rt){if(R(k,de))throw new TypeError(ce);return rt.facade=k,P(k,de,rt),rt},V=function(k){return R(k,de)?k[de]:{}},K=function(k){return R(k,de)}}h.exports={set:J,get:V,has:K,enforce:se,getterFor:he}},"./node_modules/core-js/internals/is-array.js":function(h,E,p){var j=p("./node_modules/core-js/internals/classof-raw.js");h.exports=Array.isArray||function(F){return j(F)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(h,E,p){var j=p("./node_modules/core-js/internals/fails.js"),S=/#|\.prototype\./,F=function(Q,ce){var W=R[P(Q)];return W==Y?!0:W==M?!1:typeof ce=="function"?j(ce):!!ce},P=F.normalize=function(Q){return String(Q).replace(S,".").toLowerCase()},R=F.data={},M=F.NATIVE="N",Y=F.POLYFILL="P";h.exports=F},"./node_modules/core-js/internals/is-object.js":function(h){h.exports=function(E){return typeof E=="object"?E!==null:typeof E=="function"}},"./node_modules/core-js/internals/is-pure.js":function(h){h.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(h,E,p){var j=p("./node_modules/core-js/internals/get-built-in.js"),S=p("./node_modules/core-js/internals/use-symbol-as-uid.js");h.exports=S?function(F){return typeof F=="symbol"}:function(F){var P=j("Symbol");return typeof P=="function"&&Object(F)instanceof P}},"./node_modules/core-js/internals/iterators-core.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/fails.js"),S=p("./node_modules/core-js/internals/object-get-prototype-of.js"),F=p("./node_modules/core-js/internals/create-non-enumerable-property.js"),P=p("./node_modules/core-js/internals/has.js"),R=p("./node_modules/core-js/internals/well-known-symbol.js"),M=p("./node_modules/core-js/internals/is-pure.js"),Y=R("iterator"),Q=!1,ce=function(){return this},W,J,V;[].keys&&(V=[].keys(),"next"in V?(J=S(S(V)),J!==Object.prototype&&(W=J)):Q=!0);var K=W==null||j(function(){var se={};return W[Y].call(se)!==se});K&&(W={}),(!M||K)&&!P(W,Y)&&F(W,Y,ce),h.exports={IteratorPrototype:W,BUGGY_SAFARI_ITERATORS:Q}},"./node_modules/core-js/internals/iterators.js":function(h){h.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(h,E,p){var j=p("./node_modules/core-js/internals/engine-v8-version.js"),S=p("./node_modules/core-js/internals/fails.js");h.exports=!!Object.getOwnPropertySymbols&&!S(function(){var F=Symbol();return!String(F)||!(Object(F)instanceof Symbol)||!Symbol.sham&&j&&j<41})},"./node_modules/core-js/internals/native-weak-map.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/inspect-source.js"),F=j.WeakMap;h.exports=typeof F=="function"&&/native code/.test(S(F))},"./node_modules/core-js/internals/object-assign.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/descriptors.js"),S=p("./node_modules/core-js/internals/fails.js"),F=p("./node_modules/core-js/internals/object-keys.js"),P=p("./node_modules/core-js/internals/object-get-own-property-symbols.js"),R=p("./node_modules/core-js/internals/object-property-is-enumerable.js"),M=p("./node_modules/core-js/internals/to-object.js"),Y=p("./node_modules/core-js/internals/indexed-object.js"),Q=Object.assign,ce=Object.defineProperty;h.exports=!Q||S(function(){if(j&&Q({b:1},Q(ce({},"a",{enumerable:!0,get:function(){ce(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var W={},J={},V=Symbol(),K="abcdefghijklmnopqrst";return W[V]=7,K.split("").forEach(function(se){J[se]=se}),Q({},W)[V]!=7||F(Q({},J)).join("")!=K})?function(J,V){for(var K=M(J),se=arguments.length,he=1,Te=P.f,xe=R.f;se>he;)for(var je=Y(arguments[he++]),X=Te?F(je).concat(Te(je)):F(je),de=X.length,k=0,rt;de>k;)rt=X[k++],(!j||xe.call(je,rt))&&(K[rt]=je[rt]);return K}:Q},"./node_modules/core-js/internals/object-create.js":function(h,E,p){var j=p("./node_modules/core-js/internals/an-object.js"),S=p("./node_modules/core-js/internals/object-define-properties.js"),F=p("./node_modules/core-js/internals/enum-bug-keys.js"),P=p("./node_modules/core-js/internals/hidden-keys.js"),R=p("./node_modules/core-js/internals/html.js"),M=p("./node_modules/core-js/internals/document-create-element.js"),Y=p("./node_modules/core-js/internals/shared-key.js"),Q=">",ce="<",W="prototype",J="script",V=Y("IE_PROTO"),K=function(){},se=function(X){return ce+J+Q+X+ce+"/"+J+Q},he=function(X){X.write(se("")),X.close();var de=X.parentWindow.Object;return X=null,de},Te=function(){var X=M("iframe"),de="java"+J+":",k;if(X.style)return X.style.display="none",R.appendChild(X),X.src=String(de),k=X.contentWindow.document,k.open(),k.write(se("document.F=Object")),k.close(),k.F},xe,je=function(){try{xe=new ActiveXObject("htmlfile")}catch(de){}je=document.domain&&xe?he(xe):Te()||he(xe);for(var X=F.length;X--;)delete je[W][F[X]];return je()};P[V]=!0,h.exports=Object.create||function(de,k){var rt;return de!==null?(K[W]=j(de),rt=new K,K[W]=null,rt[V]=de):rt=je(),k===void 0?rt:S(rt,k)}},"./node_modules/core-js/internals/object-define-properties.js":function(h,E,p){var j=p("./node_modules/core-js/internals/descriptors.js"),S=p("./node_modules/core-js/internals/object-define-property.js"),F=p("./node_modules/core-js/internals/an-object.js"),P=p("./node_modules/core-js/internals/object-keys.js");h.exports=j?Object.defineProperties:function(M,Y){F(M);for(var Q=P(Y),ce=Q.length,W=0,J;ce>W;)S.f(M,J=Q[W++],Y[J]);return M}},"./node_modules/core-js/internals/object-define-property.js":function(h,E,p){var j=p("./node_modules/core-js/internals/descriptors.js"),S=p("./node_modules/core-js/internals/ie8-dom-define.js"),F=p("./node_modules/core-js/internals/an-object.js"),P=p("./node_modules/core-js/internals/to-property-key.js"),R=Object.defineProperty;E.f=j?R:function(Y,Q,ce){if(F(Y),Q=P(Q),F(ce),S)try{return R(Y,Q,ce)}catch(W){}if("get"in ce||"set"in ce)throw TypeError("Accessors not supported");return"value"in ce&&(Y[Q]=ce.value),Y}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(h,E,p){var j=p("./node_modules/core-js/internals/descriptors.js"),S=p("./node_modules/core-js/internals/object-property-is-enumerable.js"),F=p("./node_modules/core-js/internals/create-property-descriptor.js"),P=p("./node_modules/core-js/internals/to-indexed-object.js"),R=p("./node_modules/core-js/internals/to-property-key.js"),M=p("./node_modules/core-js/internals/has.js"),Y=p("./node_modules/core-js/internals/ie8-dom-define.js"),Q=Object.getOwnPropertyDescriptor;E.f=j?Q:function(W,J){if(W=P(W),J=R(J),Y)try{return Q(W,J)}catch(V){}if(M(W,J))return F(!S.f.call(W,J),W[J])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-indexed-object.js"),S=p("./node_modules/core-js/internals/object-get-own-property-names.js").f,F={}.toString,P=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],R=function(M){try{return S(M)}catch(Y){return P.slice()}};h.exports.f=function(Y){return P&&F.call(Y)=="[object Window]"?R(Y):S(j(Y))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(h,E,p){var j=p("./node_modules/core-js/internals/object-keys-internal.js"),S=p("./node_modules/core-js/internals/enum-bug-keys.js"),F=S.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(R){return j(R,F)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(h,E){E.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(h,E,p){var j=p("./node_modules/core-js/internals/has.js"),S=p("./node_modules/core-js/internals/to-object.js"),F=p("./node_modules/core-js/internals/shared-key.js"),P=p("./node_modules/core-js/internals/correct-prototype-getter.js"),R=F("IE_PROTO"),M=Object.prototype;h.exports=P?Object.getPrototypeOf:function(Y){return Y=S(Y),j(Y,R)?Y[R]:typeof Y.constructor=="function"&&Y instanceof Y.constructor?Y.constructor.prototype:Y instanceof Object?M:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(h,E,p){var j=p("./node_modules/core-js/internals/has.js"),S=p("./node_modules/core-js/internals/to-indexed-object.js"),F=p("./node_modules/core-js/internals/array-includes.js").indexOf,P=p("./node_modules/core-js/internals/hidden-keys.js");h.exports=function(R,M){var Y=S(R),Q=0,ce=[],W;for(W in Y)!j(P,W)&&j(Y,W)&&ce.push(W);for(;M.length>Q;)j(Y,W=M[Q++])&&(~F(ce,W)||ce.push(W));return ce}},"./node_modules/core-js/internals/object-keys.js":function(h,E,p){var j=p("./node_modules/core-js/internals/object-keys-internal.js"),S=p("./node_modules/core-js/internals/enum-bug-keys.js");h.exports=Object.keys||function(P){return j(P,S)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(h,E){"use strict";var p={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,S=j&&!p.call({1:2},1);E.f=S?function(P){var R=j(this,P);return!!R&&R.enumerable}:p},"./node_modules/core-js/internals/object-set-prototype-of.js":function(h,E,p){var j=p("./node_modules/core-js/internals/an-object.js"),S=p("./node_modules/core-js/internals/a-possible-prototype.js");h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var F=!1,P={},R;try{R=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,R.call(P,[]),F=P instanceof Array}catch(M){}return function(Y,Q){return j(Y),S(Q),F?R.call(Y,Q):Y.__proto__=Q,Y}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/to-string-tag-support.js"),S=p("./node_modules/core-js/internals/classof.js");h.exports=j?{}.toString:function(){return"[object "+S(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(h,E,p){var j=p("./node_modules/core-js/internals/is-object.js");h.exports=function(S,F){var P,R;if(F==="string"&&typeof(P=S.toString)=="function"&&!j(R=P.call(S))||typeof(P=S.valueOf)=="function"&&!j(R=P.call(S))||F!=="string"&&typeof(P=S.toString)=="function"&&!j(R=P.call(S)))return R;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(h,E,p){var j=p("./node_modules/core-js/internals/get-built-in.js"),S=p("./node_modules/core-js/internals/object-get-own-property-names.js"),F=p("./node_modules/core-js/internals/object-get-own-property-symbols.js"),P=p("./node_modules/core-js/internals/an-object.js");h.exports=j("Reflect","ownKeys")||function(M){var Y=S.f(P(M)),Q=F.f;return Q?Y.concat(Q(M)):Y}},"./node_modules/core-js/internals/path.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js");h.exports=j},"./node_modules/core-js/internals/redefine.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/create-non-enumerable-property.js"),F=p("./node_modules/core-js/internals/has.js"),P=p("./node_modules/core-js/internals/set-global.js"),R=p("./node_modules/core-js/internals/inspect-source.js"),M=p("./node_modules/core-js/internals/internal-state.js"),Y=M.get,Q=M.enforce,ce=String(String).split("String");(h.exports=function(W,J,V,K){var se=K?!!K.unsafe:!1,he=K?!!K.enumerable:!1,Te=K?!!K.noTargetGet:!1,xe;if(typeof V=="function"&&(typeof J=="string"&&!F(V,"name")&&S(V,"name",J),xe=Q(V),xe.source||(xe.source=ce.join(typeof J=="string"?J:""))),W===j){he?W[J]=V:P(J,V);return}else se?!Te&&W[J]&&(he=!0):delete W[J];he?W[J]=V:S(W,J,V)})(Function.prototype,"toString",function(){return typeof this=="function"&&Y(this).source||R(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/an-object.js");h.exports=function(){var S=j(this),F="";return S.global&&(F+="g"),S.ignoreCase&&(F+="i"),S.multiline&&(F+="m"),S.dotAll&&(F+="s"),S.unicode&&(F+="u"),S.sticky&&(F+="y"),F}},"./node_modules/core-js/internals/require-object-coercible.js":function(h){h.exports=function(E){if(E==null)throw TypeError("Can't call method on "+E);return E}},"./node_modules/core-js/internals/set-global.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js");h.exports=function(S,F){try{Object.defineProperty(j,S,{value:F,configurable:!0,writable:!0})}catch(P){j[S]=F}return F}},"./node_modules/core-js/internals/set-to-string-tag.js":function(h,E,p){var j=p("./node_modules/core-js/internals/object-define-property.js").f,S=p("./node_modules/core-js/internals/has.js"),F=p("./node_modules/core-js/internals/well-known-symbol.js"),P=F("toStringTag");h.exports=function(R,M,Y){R&&!S(R=Y?R:R.prototype,P)&&j(R,P,{configurable:!0,value:M})}},"./node_modules/core-js/internals/shared-key.js":function(h,E,p){var j=p("./node_modules/core-js/internals/shared.js"),S=p("./node_modules/core-js/internals/uid.js"),F=j("keys");h.exports=function(P){return F[P]||(F[P]=S(P))}},"./node_modules/core-js/internals/shared-store.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/set-global.js"),F="__core-js_shared__",P=j[F]||S(F,{});h.exports=P},"./node_modules/core-js/internals/shared.js":function(h,E,p){var j=p("./node_modules/core-js/internals/is-pure.js"),S=p("./node_modules/core-js/internals/shared-store.js");(h.exports=function(F,P){return S[F]||(S[F]=P!==void 0?P:{})})("versions",[]).push({version:"3.16.0",mode:j?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(h,E,p){var j=p("./node_modules/core-js/internals/fails.js");h.exports=function(S){return j(function(){var F=""[S]('"');return F!==F.toLowerCase()||F.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-integer.js"),S=p("./node_modules/core-js/internals/to-string.js"),F=p("./node_modules/core-js/internals/require-object-coercible.js"),P=function(R){return function(M,Y){var Q=S(F(M)),ce=j(Y),W=Q.length,J,V;return ce<0||ce>=W?R?"":void 0:(J=Q.charCodeAt(ce),J<55296||J>56319||ce+1===W||(V=Q.charCodeAt(ce+1))<56320||V>57343?R?Q.charAt(ce):J:R?Q.slice(ce,ce+2):(J-55296<<10)+(V-56320)+65536)}};h.exports={codeAt:P(!1),charAt:P(!0)}},"./node_modules/core-js/internals/string-trim.js":function(h,E,p){var j=p("./node_modules/core-js/internals/require-object-coercible.js"),S=p("./node_modules/core-js/internals/to-string.js"),F=p("./node_modules/core-js/internals/whitespaces.js"),P="["+F+"]",R=RegExp("^"+P+P+"*"),M=RegExp(P+P+"*$"),Y=function(Q){return function(ce){var W=S(j(ce));return Q&1&&(W=W.replace(R,"")),Q&2&&(W=W.replace(M,"")),W}};h.exports={start:Y(1),end:Y(2),trim:Y(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-integer.js"),S=Math.max,F=Math.min;h.exports=function(P,R){var M=j(P);return M<0?S(M+R,0):F(M,R)}},"./node_modules/core-js/internals/to-indexed-object.js":function(h,E,p){var j=p("./node_modules/core-js/internals/indexed-object.js"),S=p("./node_modules/core-js/internals/require-object-coercible.js");h.exports=function(F){return j(S(F))}},"./node_modules/core-js/internals/to-integer.js":function(h){var E=Math.ceil,p=Math.floor;h.exports=function(j){return isNaN(j=+j)?0:(j>0?p:E)(j)}},"./node_modules/core-js/internals/to-length.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-integer.js"),S=Math.min;h.exports=function(F){return F>0?S(j(F),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(h,E,p){var j=p("./node_modules/core-js/internals/require-object-coercible.js");h.exports=function(S){return Object(j(S))}},"./node_modules/core-js/internals/to-primitive.js":function(h,E,p){var j=p("./node_modules/core-js/internals/is-object.js"),S=p("./node_modules/core-js/internals/is-symbol.js"),F=p("./node_modules/core-js/internals/ordinary-to-primitive.js"),P=p("./node_modules/core-js/internals/well-known-symbol.js"),R=P("toPrimitive");h.exports=function(M,Y){if(!j(M)||S(M))return M;var Q=M[R],ce;if(Q!==void 0){if(Y===void 0&&(Y="default"),ce=Q.call(M,Y),!j(ce)||S(ce))return ce;throw TypeError("Can't convert object to primitive value")}return Y===void 0&&(Y="number"),F(M,Y)}},"./node_modules/core-js/internals/to-property-key.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-primitive.js"),S=p("./node_modules/core-js/internals/is-symbol.js");h.exports=function(F){var P=j(F,"string");return S(P)?P:String(P)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(h,E,p){var j=p("./node_modules/core-js/internals/well-known-symbol.js"),S=j("toStringTag"),F={};F[S]="z",h.exports=String(F)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(h,E,p){var j=p("./node_modules/core-js/internals/is-symbol.js");h.exports=function(S){if(j(S))throw TypeError("Cannot convert a Symbol value to a string");return String(S)}},"./node_modules/core-js/internals/uid.js":function(h){var E=0,p=Math.random();h.exports=function(j){return"Symbol("+String(j===void 0?"":j)+")_"+(++E+p).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(h,E,p){var j=p("./node_modules/core-js/internals/native-symbol.js");h.exports=j&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(h,E,p){var j=p("./node_modules/core-js/internals/well-known-symbol.js");E.f=j},"./node_modules/core-js/internals/well-known-symbol.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/shared.js"),F=p("./node_modules/core-js/internals/has.js"),P=p("./node_modules/core-js/internals/uid.js"),R=p("./node_modules/core-js/internals/native-symbol.js"),M=p("./node_modules/core-js/internals/use-symbol-as-uid.js"),Y=S("wks"),Q=j.Symbol,ce=M?Q:Q&&Q.withoutSetter||P;h.exports=function(W){return(!F(Y,W)||!(R||typeof Y[W]=="string"))&&(R&&F(Q,W)?Y[W]=Q[W]:Y[W]=ce("Symbol."+W)),Y[W]}},"./node_modules/core-js/internals/whitespaces.js":function(h){h.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(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/fails.js"),F=p("./node_modules/core-js/internals/is-array.js"),P=p("./node_modules/core-js/internals/is-object.js"),R=p("./node_modules/core-js/internals/to-object.js"),M=p("./node_modules/core-js/internals/to-length.js"),Y=p("./node_modules/core-js/internals/create-property.js"),Q=p("./node_modules/core-js/internals/array-species-create.js"),ce=p("./node_modules/core-js/internals/array-method-has-species-support.js"),W=p("./node_modules/core-js/internals/well-known-symbol.js"),J=p("./node_modules/core-js/internals/engine-v8-version.js"),V=W("isConcatSpreadable"),K=9007199254740991,se="Maximum allowed index exceeded",he=J>=51||!S(function(){var X=[];return X[V]=!1,X.concat()[0]!==X}),Te=ce("concat"),xe=function(X){if(!P(X))return!1;var de=X[V];return de!==void 0?!!de:F(X)},je=!he||!Te;j({target:"Array",proto:!0,forced:je},{concat:function(de){var k=R(this),rt=Q(k,0),Oe=0,be,He,ge,De,fe;for(be=-1,ge=arguments.length;be<ge;be++)if(fe=be===-1?k:arguments[be],xe(fe)){if(De=M(fe.length),Oe+De>K)throw TypeError(se);for(He=0;He<De;He++,Oe++)He in fe&&Y(rt,Oe,fe[He])}else{if(Oe>=K)throw TypeError(se);Y(rt,Oe++,fe)}return rt.length=Oe,rt}})},"./node_modules/core-js/modules/es.array.iterator.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/to-indexed-object.js"),S=p("./node_modules/core-js/internals/add-to-unscopables.js"),F=p("./node_modules/core-js/internals/iterators.js"),P=p("./node_modules/core-js/internals/internal-state.js"),R=p("./node_modules/core-js/internals/define-iterator.js"),M="Array Iterator",Y=P.set,Q=P.getterFor(M);h.exports=R(Array,"Array",function(ce,W){Y(this,{type:M,target:j(ce),index:0,kind:W})},function(){var ce=Q(this),W=ce.target,J=ce.kind,V=ce.index++;return!W||V>=W.length?(ce.target=void 0,{value:void 0,done:!0}):J=="keys"?{value:V,done:!1}:J=="values"?{value:W[V],done:!1}:{value:[V,W[V]],done:!1}},"values"),F.Arguments=F.Array,S("keys"),S("values"),S("entries")},"./node_modules/core-js/modules/es.array.join.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/indexed-object.js"),F=p("./node_modules/core-js/internals/to-indexed-object.js"),P=p("./node_modules/core-js/internals/array-method-is-strict.js"),R=[].join,M=S!=Object,Y=P("join",",");j({target:"Array",proto:!0,forced:M||!Y},{join:function(ce){return R.call(F(this),ce===void 0?",":ce)}})},"./node_modules/core-js/modules/es.array.map.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/array-iteration.js").map,F=p("./node_modules/core-js/internals/array-method-has-species-support.js"),P=F("map");j({target:"Array",proto:!0,forced:!P},{map:function(M){return S(this,M,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/is-object.js"),F=p("./node_modules/core-js/internals/is-array.js"),P=p("./node_modules/core-js/internals/to-absolute-index.js"),R=p("./node_modules/core-js/internals/to-length.js"),M=p("./node_modules/core-js/internals/to-indexed-object.js"),Y=p("./node_modules/core-js/internals/create-property.js"),Q=p("./node_modules/core-js/internals/well-known-symbol.js"),ce=p("./node_modules/core-js/internals/array-method-has-species-support.js"),W=ce("slice"),J=Q("species"),V=[].slice,K=Math.max;j({target:"Array",proto:!0,forced:!W},{slice:function(he,Te){var xe=M(this),je=R(xe.length),X=P(he,je),de=P(Te===void 0?je:Te,je),k,rt,Oe;if(F(xe)&&(k=xe.constructor,typeof k=="function"&&(k===Array||F(k.prototype))?k=void 0:S(k)&&(k=k[J],k===null&&(k=void 0)),k===Array||k===void 0))return V.call(xe,X,de);for(rt=new(k===void 0?Array:k)(K(de-X,0)),Oe=0;X<de;X++,Oe++)X in xe&&Y(rt,Oe,xe[X]);return rt.length=Oe,rt}})},"./node_modules/core-js/modules/es.function.name.js":function(h,E,p){var j=p("./node_modules/core-js/internals/descriptors.js"),S=p("./node_modules/core-js/internals/object-define-property.js").f,F=Function.prototype,P=F.toString,R=/^\s*function ([^ (]*)/,M="name";j&&!(M in F)&&S(F,M,{configurable:!0,get:function(){try{return P.call(this).match(R)[1]}catch(Y){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/descriptors.js"),S=p("./node_modules/core-js/internals/global.js"),F=p("./node_modules/core-js/internals/is-forced.js"),P=p("./node_modules/core-js/internals/redefine.js"),R=p("./node_modules/core-js/internals/has.js"),M=p("./node_modules/core-js/internals/classof-raw.js"),Y=p("./node_modules/core-js/internals/inherit-if-required.js"),Q=p("./node_modules/core-js/internals/is-symbol.js"),ce=p("./node_modules/core-js/internals/to-primitive.js"),W=p("./node_modules/core-js/internals/fails.js"),J=p("./node_modules/core-js/internals/object-create.js"),V=p("./node_modules/core-js/internals/object-get-own-property-names.js").f,K=p("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,se=p("./node_modules/core-js/internals/object-define-property.js").f,he=p("./node_modules/core-js/internals/string-trim.js").trim,Te="Number",xe=S[Te],je=xe.prototype,X=M(J(je))==Te,de=function(He){if(Q(He))throw TypeError("Cannot convert a Symbol value to a number");var ge=ce(He,"number"),De,fe,Se,ct,dt,at,st,It;if(typeof ge=="string"&&ge.length>2){if(ge=he(ge),De=ge.charCodeAt(0),De===43||De===45){if(fe=ge.charCodeAt(2),fe===88||fe===120)return NaN}else if(De===48){switch(ge.charCodeAt(1)){case 66:case 98:Se=2,ct=49;break;case 79:case 111:Se=8,ct=55;break;default:return+ge}for(dt=ge.slice(2),at=dt.length,st=0;st<at;st++)if(It=dt.charCodeAt(st),It<48||It>ct)return NaN;return parseInt(dt,Se)}}return+ge};if(F(Te,!xe(" 0o1")||!xe("0b1")||xe("+0x1"))){for(var k=function(ge){var De=arguments.length<1?0:ge,fe=this;return fe instanceof k&&(X?W(function(){je.valueOf.call(fe)}):M(fe)!=Te)?Y(new xe(de(De)),fe,k):de(De)},rt=j?V(xe):"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(","),Oe=0,be;rt.length>Oe;Oe++)R(xe,be=rt[Oe])&&!R(k,be)&&se(k,be,K(xe,be));k.prototype=je,je.constructor=k,P(S,Te,k)}},"./node_modules/core-js/modules/es.object.assign.js":function(h,E,p){var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/object-assign.js");j({target:"Object",stat:!0,forced:Object.assign!==S},{assign:S})},"./node_modules/core-js/modules/es.object.keys.js":function(h,E,p){var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/to-object.js"),F=p("./node_modules/core-js/internals/object-keys.js"),P=p("./node_modules/core-js/internals/fails.js"),R=P(function(){F(1)});j({target:"Object",stat:!0,forced:R},{keys:function(Y){return F(S(Y))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(h,E,p){var j=p("./node_modules/core-js/internals/to-string-tag-support.js"),S=p("./node_modules/core-js/internals/redefine.js"),F=p("./node_modules/core-js/internals/object-to-string.js");j||S(Object.prototype,"toString",F,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/redefine.js"),S=p("./node_modules/core-js/internals/an-object.js"),F=p("./node_modules/core-js/internals/to-string.js"),P=p("./node_modules/core-js/internals/fails.js"),R=p("./node_modules/core-js/internals/regexp-flags.js"),M="toString",Y=RegExp.prototype,Q=Y[M],ce=P(function(){return Q.call({source:"a",flags:"b"})!="/a/b"}),W=Q.name!=M;(ce||W)&&j(RegExp.prototype,M,function(){var V=S(this),K=F(V.source),se=V.flags,he=F(se===void 0&&V instanceof RegExp&&!("flags"in Y)?R.call(V):se);return"/"+K+"/"+he},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/string-multibyte.js").charAt,S=p("./node_modules/core-js/internals/to-string.js"),F=p("./node_modules/core-js/internals/internal-state.js"),P=p("./node_modules/core-js/internals/define-iterator.js"),R="String Iterator",M=F.set,Y=F.getterFor(R);P(String,"String",function(Q){M(this,{type:R,string:S(Q),index:0})},function(){var ce=Y(this),W=ce.string,J=ce.index,V;return J>=W.length?{value:void 0,done:!0}:(V=j(W,J),ce.index+=V.length,{value:V,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/create-html.js"),F=p("./node_modules/core-js/internals/string-html-forced.js");j({target:"String",proto:!0,forced:F("link")},{link:function(R){return S(this,"a","href",R)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/descriptors.js"),F=p("./node_modules/core-js/internals/global.js"),P=p("./node_modules/core-js/internals/has.js"),R=p("./node_modules/core-js/internals/is-object.js"),M=p("./node_modules/core-js/internals/object-define-property.js").f,Y=p("./node_modules/core-js/internals/copy-constructor-properties.js"),Q=F.Symbol;if(S&&typeof Q=="function"&&(!("description"in Q.prototype)||Q().description!==void 0)){var ce={},W=function(){var Te=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),xe=this instanceof W?new Q(Te):Te===void 0?Q():Q(Te);return Te===""&&(ce[xe]=!0),xe};Y(W,Q);var J=W.prototype=Q.prototype;J.constructor=W;var V=J.toString,K=String(Q("test"))=="Symbol(test)",se=/^Symbol\((.*)\)[^)]+$/;M(J,"description",{configurable:!0,get:function(){var Te=R(this)?this.valueOf():this,xe=V.call(Te);if(P(ce,Te))return"";var je=K?xe.slice(7,-1):xe.replace(se,"$1");return je===""?void 0:je}}),j({global:!0,forced:!0},{Symbol:W})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(h,E,p){var j=p("./node_modules/core-js/internals/define-well-known-symbol.js");j("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(h,E,p){"use strict";var j=p("./node_modules/core-js/internals/export.js"),S=p("./node_modules/core-js/internals/global.js"),F=p("./node_modules/core-js/internals/get-built-in.js"),P=p("./node_modules/core-js/internals/is-pure.js"),R=p("./node_modules/core-js/internals/descriptors.js"),M=p("./node_modules/core-js/internals/native-symbol.js"),Y=p("./node_modules/core-js/internals/fails.js"),Q=p("./node_modules/core-js/internals/has.js"),ce=p("./node_modules/core-js/internals/is-array.js"),W=p("./node_modules/core-js/internals/is-object.js"),J=p("./node_modules/core-js/internals/is-symbol.js"),V=p("./node_modules/core-js/internals/an-object.js"),K=p("./node_modules/core-js/internals/to-object.js"),se=p("./node_modules/core-js/internals/to-indexed-object.js"),he=p("./node_modules/core-js/internals/to-property-key.js"),Te=p("./node_modules/core-js/internals/to-string.js"),xe=p("./node_modules/core-js/internals/create-property-descriptor.js"),je=p("./node_modules/core-js/internals/object-create.js"),X=p("./node_modules/core-js/internals/object-keys.js"),de=p("./node_modules/core-js/internals/object-get-own-property-names.js"),k=p("./node_modules/core-js/internals/object-get-own-property-names-external.js"),rt=p("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Oe=p("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),be=p("./node_modules/core-js/internals/object-define-property.js"),He=p("./node_modules/core-js/internals/object-property-is-enumerable.js"),ge=p("./node_modules/core-js/internals/create-non-enumerable-property.js"),De=p("./node_modules/core-js/internals/redefine.js"),fe=p("./node_modules/core-js/internals/shared.js"),Se=p("./node_modules/core-js/internals/shared-key.js"),ct=p("./node_modules/core-js/internals/hidden-keys.js"),dt=p("./node_modules/core-js/internals/uid.js"),at=p("./node_modules/core-js/internals/well-known-symbol.js"),st=p("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),It=p("./node_modules/core-js/internals/define-well-known-symbol.js"),Ut=p("./node_modules/core-js/internals/set-to-string-tag.js"),Kt=p("./node_modules/core-js/internals/internal-state.js"),hr=p("./node_modules/core-js/internals/array-iteration.js").forEach,or=Se("hidden"),Sr="Symbol",ur="prototype",G=at("toPrimitive"),wt=Kt.set,_=Kt.getterFor(Sr),f=Object[ur],u=S.Symbol,x=F("JSON","stringify"),ee=Oe.f,Ce=be.f,H=k.f,ne=He.f,$e=fe("symbols"),we=fe("op-symbols"),ve=fe("string-to-symbol-registry"),qe=fe("symbol-to-string-registry"),St=fe("wks"),me=S.QObject,ft=!me||!me[ur]||!me[ur].findChild,lt=R&&Y(function(){return je(Ce({},"a",{get:function(){return Ce(this,"a",{value:7}).a}})).a!=7})?function(Dr,vr,dr){var $r=ee(f,vr);$r&&delete f[vr],Ce(Dr,vr,dr),$r&&Dr!==f&&Ce(f,vr,$r)}:Ce,Pe=function(Dr,vr){var dr=$e[Dr]=je(u[ur]);return wt(dr,{type:Sr,tag:Dr,description:vr}),R||(dr.description=vr),dr},Le=function(vr,dr,$r){vr===f&&Le(we,dr,$r),V(vr);var un=he(dr);return V($r),Q($e,un)?($r.enumerable?(Q(vr,or)&&vr[or][un]&&(vr[or][un]=!1),$r=je($r,{enumerable:xe(0,!1)})):(Q(vr,or)||Ce(vr,or,xe(1,{})),vr[or][un]=!0),lt(vr,un,$r)):Ce(vr,un,$r)},pt=function(vr,dr){V(vr);var $r=se(dr),un=X($r).concat(pr($r));return hr(un,function(_n){(!R||Ht.call($r,_n))&&Le(vr,_n,$r[_n])}),vr},zt=function(vr,dr){return dr===void 0?je(vr):pt(je(vr),dr)},Ht=function(vr){var dr=he(vr),$r=ne.call(this,dr);return this===f&&Q($e,dr)&&!Q(we,dr)?!1:$r||!Q(this,dr)||!Q($e,dr)||Q(this,or)&&this[or][dr]?$r:!0},er=function(vr,dr){var $r=se(vr),un=he(dr);if(!($r===f&&Q($e,un)&&!Q(we,un))){var _n=ee($r,un);return _n&&Q($e,un)&&!(Q($r,or)&&$r[or][un])&&(_n.enumerable=!0),_n}},Pr=function(vr){var dr=H(se(vr)),$r=[];return hr(dr,function(un){!Q($e,un)&&!Q(ct,un)&&$r.push(un)}),$r},pr=function(vr){var dr=vr===f,$r=H(dr?we:se(vr)),un=[];return hr($r,function(_n){Q($e,_n)&&(!dr||Q(f,_n))&&un.push($e[_n])}),un};if(M||(u=function(){if(this instanceof u)throw TypeError("Symbol is not a constructor");var vr=!arguments.length||arguments[0]===void 0?void 0:Te(arguments[0]),dr=dt(vr),$r=function(un){this===f&&$r.call(we,un),Q(this,or)&&Q(this[or],dr)&&(this[or][dr]=!1),lt(this,dr,xe(1,un))};return R&&ft&&lt(f,dr,{configurable:!0,set:$r}),Pe(dr,vr)},De(u[ur],"toString",function(){return _(this).tag}),De(u,"withoutSetter",function(Dr){return Pe(dt(Dr),Dr)}),He.f=Ht,be.f=Le,Oe.f=er,de.f=k.f=Pr,rt.f=pr,st.f=function(Dr){return Pe(at(Dr),Dr)},R&&(Ce(u[ur],"description",{configurable:!0,get:function(){return _(this).description}}),P||De(f,"propertyIsEnumerable",Ht,{unsafe:!0}))),j({global:!0,wrap:!0,forced:!M,sham:!M},{Symbol:u}),hr(X(St),function(Dr){It(Dr)}),j({target:Sr,stat:!0,forced:!M},{for:function(Dr){var vr=Te(Dr);if(Q(ve,vr))return ve[vr];var dr=u(vr);return ve[vr]=dr,qe[dr]=vr,dr},keyFor:function(vr){if(!J(vr))throw TypeError(vr+" is not a symbol");if(Q(qe,vr))return qe[vr]},useSetter:function(){ft=!0},useSimple:function(){ft=!1}}),j({target:"Object",stat:!0,forced:!M,sham:!R},{create:zt,defineProperty:Le,defineProperties:pt,getOwnPropertyDescriptor:er}),j({target:"Object",stat:!0,forced:!M},{getOwnPropertyNames:Pr,getOwnPropertySymbols:pr}),j({target:"Object",stat:!0,forced:Y(function(){rt.f(1)})},{getOwnPropertySymbols:function(vr){return rt.f(K(vr))}}),x){var kr=!M||Y(function(){var Dr=u();return x([Dr])!="[null]"||x({a:Dr})!="{}"||x(Object(Dr))!="{}"});j({target:"JSON",stat:!0,forced:kr},{stringify:function(vr,dr,$r){for(var un=[vr],_n=1,qr;arguments.length>_n;)un.push(arguments[_n++]);if(qr=dr,!(!W(dr)&&vr===void 0||J(vr)))return ce(dr)||(dr=function(Bn,ti){if(typeof qr=="function"&&(ti=qr.call(this,Bn,ti)),!J(ti))return ti}),un[1]=dr,x.apply(null,un)}})}u[ur][G]||ge(u[ur],G,u[ur].valueOf),Ut(u,Sr),ct[or]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/dom-iterables.js"),F=p("./node_modules/core-js/internals/array-for-each.js"),P=p("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var R in S){var M=j[R],Y=M&&M.prototype;if(Y&&Y.forEach!==F)try{P(Y,"forEach",F)}catch(Q){Y.forEach=F}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(h,E,p){var j=p("./node_modules/core-js/internals/global.js"),S=p("./node_modules/core-js/internals/dom-iterables.js"),F=p("./node_modules/core-js/modules/es.array.iterator.js"),P=p("./node_modules/core-js/internals/create-non-enumerable-property.js"),R=p("./node_modules/core-js/internals/well-known-symbol.js"),M=R("iterator"),Y=R("toStringTag"),Q=F.values;for(var ce in S){var W=j[ce],J=W&&W.prototype;if(J){if(J[M]!==Q)try{P(J,M,Q)}catch(K){J[M]=Q}if(J[Y]||P(J,Y,ce),S[ce]){for(var V in F)if(J[V]!==F[V])try{P(J,V,F[V])}catch(K){J[V]=F[V]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(h){(function(E,p){h.exports=p()})(this,function(){"use strict";function E(me){var ft=typeof me;return me!==null&&(ft==="object"||ft==="function")}function p(me){return typeof me=="function"}var j=void 0;Array.isArray?j=Array.isArray:j=function(me){return Object.prototype.toString.call(me)==="[object Array]"};var S=j,F=0,P=void 0,R=void 0,M=function(ft,lt){X[F]=ft,X[F+1]=lt,F+=2,F===2&&(R?R(de):rt())};function Y(me){R=me}function Q(me){M=me}var ce=typeof window!="undefined"?window:void 0,W=ce||{},J=W.MutationObserver||W.WebKitMutationObserver,V=typeof self=="undefined"&&typeof pe!="undefined"&&{}.toString.call(pe)==="[object process]",K=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function se(){return function(){return pe.nextTick(de)}}function he(){return typeof P!="undefined"?function(){P(de)}:je()}function Te(){var me=0,ft=new J(de),lt=document.createTextNode("");return ft.observe(lt,{characterData:!0}),function(){lt.data=me=++me%2}}function xe(){var me=new MessageChannel;return me.port1.onmessage=de,function(){return me.port2.postMessage(0)}}function je(){var me=setTimeout;return function(){return me(de,1)}}var X=new Array(1e3);function de(){for(var me=0;me<F;me+=2){var ft=X[me],lt=X[me+1];ft(lt),X[me]=void 0,X[me+1]=void 0}F=0}function k(){try{var me=Function("return this")().require("vertx");return P=me.runOnLoop||me.runOnContext,he()}catch(ft){return je()}}var rt=void 0;V?rt=se():J?rt=Te():K?rt=xe():ce===void 0?rt=k():rt=je();function Oe(me,ft){var lt=this,Pe=new this.constructor(ge);Pe[He]===void 0&&x(Pe);var Le=lt._state;if(Le){var pt=arguments[Le-1];M(function(){return wt(Le,Pe,pt,lt._result)})}else ur(lt,Pe,me,ft);return Pe}function be(me){var ft=this;if(me&&typeof me=="object"&&me.constructor===ft)return me;var lt=new ft(ge);return Kt(lt,me),lt}var He=Math.random().toString(36).substring(2);function ge(){}var De=void 0,fe=1,Se=2;function ct(){return new TypeError("You cannot resolve a promise with itself")}function dt(){return new TypeError("A promises callback cannot return that same promise.")}function at(me,ft,lt,Pe){try{me.call(ft,lt,Pe)}catch(Le){return Le}}function st(me,ft,lt){M(function(Pe){var Le=!1,pt=at(lt,ft,function(zt){Le||(Le=!0,ft!==zt?Kt(Pe,zt):or(Pe,zt))},function(zt){Le||(Le=!0,Sr(Pe,zt))},"Settle: "+(Pe._label||" unknown promise"));!Le&&pt&&(Le=!0,Sr(Pe,pt))},me)}function It(me,ft){ft._state===fe?or(me,ft._result):ft._state===Se?Sr(me,ft._result):ur(ft,void 0,function(lt){return Kt(me,lt)},function(lt){return Sr(me,lt)})}function Ut(me,ft,lt){ft.constructor===me.constructor&&lt===Oe&&ft.constructor.resolve===be?It(me,ft):lt===void 0?or(me,ft):p(lt)?st(me,ft,lt):or(me,ft)}function Kt(me,ft){if(me===ft)Sr(me,ct());else if(E(ft)){var lt=void 0;try{lt=ft.then}catch(Pe){Sr(me,Pe);return}Ut(me,ft,lt)}else or(me,ft)}function hr(me){me._onerror&&me._onerror(me._result),G(me)}function or(me,ft){me._state===De&&(me._result=ft,me._state=fe,me._subscribers.length!==0&&M(G,me))}function Sr(me,ft){me._state===De&&(me._state=Se,me._result=ft,M(hr,me))}function ur(me,ft,lt,Pe){var Le=me._subscribers,pt=Le.length;me._onerror=null,Le[pt]=ft,Le[pt+fe]=lt,Le[pt+Se]=Pe,pt===0&&me._state&&M(G,me)}function G(me){var ft=me._subscribers,lt=me._state;if(ft.length!==0){for(var Pe=void 0,Le=void 0,pt=me._result,zt=0;zt<ft.length;zt+=3)Pe=ft[zt],Le=ft[zt+lt],Pe?wt(lt,Pe,Le,pt):Le(pt);me._subscribers.length=0}}function wt(me,ft,lt,Pe){var Le=p(lt),pt=void 0,zt=void 0,Ht=!0;if(Le){try{pt=lt(Pe)}catch(er){Ht=!1,zt=er}if(ft===pt){Sr(ft,dt());return}}else pt=Pe;ft._state!==De||(Le&&Ht?Kt(ft,pt):Ht===!1?Sr(ft,zt):me===fe?or(ft,pt):me===Se&&Sr(ft,pt))}function _(me,ft){try{ft(function(Pe){Kt(me,Pe)},function(Pe){Sr(me,Pe)})}catch(lt){Sr(me,lt)}}var f=0;function u(){return f++}function x(me){me[He]=f++,me._state=void 0,me._result=void 0,me._subscribers=[]}function ee(){return new Error("Array Methods must be provided an Array")}var Ce=function(){function me(ft,lt){this._instanceConstructor=ft,this.promise=new ft(ge),this.promise[He]||x(this.promise),S(lt)?(this.length=lt.length,this._remaining=lt.length,this._result=new Array(this.length),this.length===0?or(this.promise,this._result):(this.length=this.length||0,this._enumerate(lt),this._remaining===0&&or(this.promise,this._result))):Sr(this.promise,ee())}return me.prototype._enumerate=function(lt){for(var Pe=0;this._state===De&&Pe<lt.length;Pe++)this._eachEntry(lt[Pe],Pe)},me.prototype._eachEntry=function(lt,Pe){var Le=this._instanceConstructor,pt=Le.resolve;if(pt===be){var zt=void 0,Ht=void 0,er=!1;try{zt=lt.then}catch(pr){er=!0,Ht=pr}if(zt===Oe&&lt._state!==De)this._settledAt(lt._state,Pe,lt._result);else if(typeof zt!="function")this._remaining--,this._result[Pe]=lt;else if(Le===qe){var Pr=new Le(ge);er?Sr(Pr,Ht):Ut(Pr,lt,zt),this._willSettleAt(Pr,Pe)}else this._willSettleAt(new Le(function(pr){return pr(lt)}),Pe)}else this._willSettleAt(pt(lt),Pe)},me.prototype._settledAt=function(lt,Pe,Le){var pt=this.promise;pt._state===De&&(this._remaining--,lt===Se?Sr(pt,Le):this._result[Pe]=Le),this._remaining===0&&or(pt,this._result)},me.prototype._willSettleAt=function(lt,Pe){var Le=this;ur(lt,void 0,function(pt){return Le._settledAt(fe,Pe,pt)},function(pt){return Le._settledAt(Se,Pe,pt)})},me}();function H(me){return new Ce(this,me).promise}function ne(me){var ft=this;return S(me)?new ft(function(lt,Pe){for(var Le=me.length,pt=0;pt<Le;pt++)ft.resolve(me[pt]).then(lt,Pe)}):new ft(function(lt,Pe){return Pe(new TypeError("You must pass an array to race."))})}function $e(me){var ft=this,lt=new ft(ge);return Sr(lt,me),lt}function we(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ve(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var qe=function(){function me(ft){this[He]=u(),this._result=this._state=void 0,this._subscribers=[],ge!==ft&&(typeof ft!="function"&&we(),this instanceof me?_(this,ft):ve())}return me.prototype.catch=function(lt){return this.then(null,lt)},me.prototype.finally=function(lt){var Pe=this,Le=Pe.constructor;return p(lt)?Pe.then(function(pt){return Le.resolve(lt()).then(function(){return pt})},function(pt){return Le.resolve(lt()).then(function(){throw pt})}):Pe.then(lt,lt)},me}();qe.prototype.then=Oe,qe.all=H,qe.race=ne,qe.resolve=be,qe.reject=$e,qe._setScheduler=Y,qe._setAsap=Q,qe._asap=M;function St(){var me=void 0;if(typeof w.g!="undefined")me=w.g;else if(typeof self!="undefined")me=self;else try{me=Function("return this")()}catch(Pe){throw new Error("polyfill failed because global object is unavailable in this environment")}var ft=me.Promise;if(ft){var lt=null;try{lt=Object.prototype.toString.call(ft.resolve())}catch(Pe){}if(lt==="[object Promise]"&&!ft.cast)return}me.Promise=qe}return qe.polyfill=St,qe.Promise=qe,qe})},html2canvas:function(h){"use strict";h.exports=U},jspdf:function(h){"use strict";h.exports=ue}},te={};function Z(h){var E=te[h];if(E!==void 0)return E.exports;var p=te[h]={exports:{}};return Ne[h].call(p.exports,p,p.exports,Z),p.exports}(function(){Z.n=function(h){var E=h&&h.__esModule?function(){return h.default}:function(){return h};return Z.d(E,{a:E}),E}})(),function(){Z.d=function(h,E){for(var p in E)Z.o(E,p)&&!Z.o(h,p)&&Object.defineProperty(h,p,{enumerable:!0,get:E[p]})}}(),function(){Z.o=function(h,E){return Object.prototype.hasOwnProperty.call(h,E)}}(),function(){Z.r=function(h){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})}}();var B={};return function(){"use strict";Z.r(B);var h=Z("./src/worker.js"),E=Z("./src/plugin/jspdf-plugin.js"),p=Z("./src/plugin/pagebreaks.js"),j=Z("./src/plugin/hyperlinks.js"),S=function F(P,R){var M=new F.Worker(R);return P?M.from(P).save():M};S.Worker=h.default,B.default=S}(),B=B.default,B}()})},67467:function(xn,Jt){Jt.read=function(w,pe,ue,U,Ne){var te,Z,B=Ne*8-U-1,h=(1<<B)-1,E=h>>1,p=-7,j=ue?Ne-1:0,S=ue?-1:1,F=w[pe+j];for(j+=S,te=F&(1<<-p)-1,F>>=-p,p+=B;p>0;te=te*256+w[pe+j],j+=S,p-=8);for(Z=te&(1<<-p)-1,te>>=-p,p+=U;p>0;Z=Z*256+w[pe+j],j+=S,p-=8);if(te===0)te=1-E;else{if(te===h)return Z?NaN:(F?-1:1)*(1/0);Z=Z+Math.pow(2,U),te=te-E}return(F?-1:1)*Z*Math.pow(2,te-U)},Jt.write=function(w,pe,ue,U,Ne,te){var Z,B,h,E=te*8-Ne-1,p=(1<<E)-1,j=p>>1,S=Ne===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=U?0:te-1,P=U?1:-1,R=pe<0||pe===0&&1/pe<0?1:0;for(pe=Math.abs(pe),isNaN(pe)||pe===1/0?(B=isNaN(pe)?1:0,Z=p):(Z=Math.floor(Math.log(pe)/Math.LN2),pe*(h=Math.pow(2,-Z))<1&&(Z--,h*=2),Z+j>=1?pe+=S/h:pe+=S*Math.pow(2,1-j),pe*h>=2&&(Z++,h/=2),Z+j>=p?(B=0,Z=p):Z+j>=1?(B=(pe*h-1)*Math.pow(2,Ne),Z=Z+j):(B=pe*Math.pow(2,j-1)*Math.pow(2,Ne),Z=0));Ne>=8;w[ue+F]=B&255,F+=P,B/=256,Ne-=8);for(Z=Z<<Ne|B,E+=Ne;E>0;w[ue+F]=Z&255,F+=P,Z/=256,E-=8);w[ue+F-P]|=R*128}},24334:function(xn,Jt,w){var pe,ue;(function(U,Ne){xn.exports=Ne(U)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof w.g!="undefined"?w.g:this,function(U){"use strict";U=U||{};var Ne=U.Base64,te="2.6.4",Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=function(k){for(var rt={},Oe=0,be=k.length;Oe<be;Oe++)rt[k.charAt(Oe)]=Oe;return rt}(Z),h=String.fromCharCode,E=function(k){if(k.length<2){var rt=k.charCodeAt(0);return rt<128?k:rt<2048?h(192|rt>>>6)+h(128|rt&63):h(224|rt>>>12&15)+h(128|rt>>>6&63)+h(128|rt&63)}else{var rt=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return h(240|rt>>>18&7)+h(128|rt>>>12&63)+h(128|rt>>>6&63)+h(128|rt&63)}},p=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,j=function(k){return k.replace(p,E)},S=function(k){var rt=[0,2,1][k.length%3],Oe=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),be=[Z.charAt(Oe>>>18),Z.charAt(Oe>>>12&63),rt>=2?"=":Z.charAt(Oe>>>6&63),rt>=1?"=":Z.charAt(Oe&63)];return be.join("")},F=U.btoa&&typeof U.btoa=="function"?function(k){return U.btoa(k)}:function(k){if(k.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return k.replace(/[\s\S]{1,3}/g,S)},P=function(k){return F(j(String(k)))},R=function(k){return k.replace(/[+\/]/g,function(rt){return rt=="+"?"-":"_"}).replace(/=/g,"")},M=function(k,rt){return rt?R(P(k)):P(k)},Y=function(k){return M(k,!0)},Q;U.Uint8Array&&(Q=function(k,rt){for(var Oe="",be=0,He=k.length;be<He;be+=3){var ge=k[be],De=k[be+1],fe=k[be+2],Se=ge<<16|De<<8|fe;Oe+=Z.charAt(Se>>>18)+Z.charAt(Se>>>12&63)+(typeof De!="undefined"?Z.charAt(Se>>>6&63):"=")+(typeof fe!="undefined"?Z.charAt(Se&63):"=")}return rt?R(Oe):Oe});var ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,W=function(k){switch(k.length){case 4:var rt=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),Oe=rt-65536;return h((Oe>>>10)+55296)+h((Oe&1023)+56320);case 3:return h((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return h((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},J=function(k){return k.replace(ce,W)},V=function(k){var rt=k.length,Oe=rt%4,be=(rt>0?B[k.charAt(0)]<<18:0)|(rt>1?B[k.charAt(1)]<<12:0)|(rt>2?B[k.charAt(2)]<<6:0)|(rt>3?B[k.charAt(3)]:0),He=[h(be>>>16),h(be>>>8&255),h(be&255)];return He.length-=[0,0,2,1][Oe],He.join("")},K=U.atob&&typeof U.atob=="function"?function(k){return U.atob(k)}:function(k){return k.replace(/\S{1,4}/g,V)},se=function(k){return K(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},he=function(k){return J(K(k))},Te=function(k){return String(k).replace(/[-_]/g,function(rt){return rt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},xe=function(k){return he(Te(k))},je;U.Uint8Array&&(je=function(k){return Uint8Array.from(se(Te(k)),function(rt){return rt.charCodeAt(0)})});var X=function(){var k=U.Base64;return U.Base64=Ne,k};if(U.Base64={VERSION:te,atob:se,btoa:F,fromBase64:xe,toBase64:M,utob:j,encode:M,encodeURI:Y,btou:J,decode:xe,noConflict:X,fromUint8Array:Q,toUint8Array:je},typeof Object.defineProperty=="function"){var de=function(k){return{value:k,enumerable:!1,writable:!0,configurable:!0}};U.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",de(function(){return xe(this)})),Object.defineProperty(String.prototype,"toBase64",de(function(k){return M(this,k)})),Object.defineProperty(String.prototype,"toBase64URI",de(function(){return M(this,!0)}))}}return U.Meteor&&(Base64=U.Base64),xn.exports?xn.exports.Base64=U.Base64:(pe=[],ue=function(){return U.Base64}.apply(Jt,pe),ue!==void 0&&(xn.exports=ue)),{Base64:U.Base64}})},7348:function(xn,Jt,w){"use strict";w.r(Jt),w.d(Jt,{AcroForm:function(){return To},AcroFormAppearance:function(){return Kn},AcroFormButton:function(){return Fo},AcroFormCheckBox:function(){return No},AcroFormChoiceField:function(){return Ja},AcroFormComboBox:function(){return Ta},AcroFormEditBox:function(){return ka},AcroFormListBox:function(){return oo},AcroFormPasswordField:function(){return Io},AcroFormPushButton:function(){return Ll},AcroFormRadioButton:function(){return cs},AcroFormTextField:function(){return ks},GState:function(){return Ma},ShadingPattern:function(){return vo},TilingPattern:function(){return ba},default:function(){return Ai},jsPDF:function(){return Ai}});var pe=w(34666),ue={},U=function(c,o,l,b,I){var C=new Worker(ue[o]||(ue[o]=URL.createObjectURL(new Blob([c+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return C.onmessage=function(N){var $=N.data,ae=$.$e$;if(ae){var _e=new Error(ae[0]);_e.code=ae[1],_e.stack=ae[2],I(_e,null)}else I(null,$)},C.postMessage(l,b),C},Ne=Uint8Array,te=Uint16Array,Z=Int32Array,B=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]),h=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]),E=new Ne([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p=function(c,o){for(var l=new te(31),b=0;b<31;++b)l[b]=o+=1<<c[b-1];for(var I=new Z(l[30]),b=1;b<30;++b)for(var C=l[b];C<l[b+1];++C)I[C]=C-l[b]<<5|b;return{b:l,r:I}},j=p(B,2),S=j.b,F=j.r;S[28]=258,F[258]=28;for(var P=p(h,0),R=P.b,M=P.r,Y=new te(32768),Q=0;Q<32768;++Q){var ce=(Q&43690)>>1|(Q&21845)<<1;ce=(ce&52428)>>2|(ce&13107)<<2,ce=(ce&61680)>>4|(ce&3855)<<4,Y[Q]=((ce&65280)>>8|(ce&255)<<8)>>1}for(var W=function(c,o,l){for(var b=c.length,I=0,C=new te(o);I<b;++I)c[I]&&++C[c[I]-1];var N=new te(o);for(I=1;I<o;++I)N[I]=N[I-1]+C[I-1]<<1;var $;if(l){$=new te(1<<o);var ae=15-o;for(I=0;I<b;++I)if(c[I])for(var _e=I<<4|c[I],Ze=o-c[I],Ve=N[c[I]-1]++<<Ze,it=Ve|(1<<Ze)-1;Ve<=it;++Ve)$[Y[Ve]>>ae]=_e}else for($=new te(b),I=0;I<b;++I)c[I]&&($[I]=Y[N[c[I]-1]++]>>15-c[I]);return $},J=new Ne(288),Q=0;Q<144;++Q)J[Q]=8;for(var Q=144;Q<256;++Q)J[Q]=9;for(var Q=256;Q<280;++Q)J[Q]=7;for(var Q=280;Q<288;++Q)J[Q]=8;for(var V=new Ne(32),Q=0;Q<32;++Q)V[Q]=5;var K=W(J,9,0),se=W(J,9,1),he=W(V,5,0),Te=W(V,5,1),xe=function(c){for(var o=c[0],l=1;l<c.length;++l)c[l]>o&&(o=c[l]);return o},je=function(c,o,l){var b=o/8|0;return(c[b]|c[b+1]<<8)>>(o&7)&l},X=function(c,o){var l=o/8|0;return(c[l]|c[l+1]<<8|c[l+2]<<16)>>(o&7)},de=function(c){return(c+7)/8|0},k=function(c,o,l){return(o==null||o<0)&&(o=0),(l==null||l>c.length)&&(l=c.length),new Ne(c.subarray(o,l))},rt={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},Oe=["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"],be=function(c,o,l){var b=new Error(o||Oe[c]);if(b.code=c,Error.captureStackTrace&&Error.captureStackTrace(b,be),!l)throw b;return b},He=function(c,o,l,b){var I=c.length,C=b?b.length:0;if(!I||o.f&&!o.l)return l||new Ne(0);var N=!l,$=N||o.i!=2,ae=o.i;N&&(l=new Ne(I*3));var _e=function(Ar){var gr=l.length;if(Ar>gr){var _r=new Ne(Math.max(gr*2,Ar));_r.set(l),l=_r}},Ze=o.f||0,Ve=o.p||0,it=o.b||0,ye=o.l,kt=o.d,bt=o.m,Dt=o.n,ht=I*8;do{if(!ye){Ze=je(c,Ve,1);var Pt=je(c,Ve+1,3);if(Ve+=3,Pt)if(Pt==1)ye=se,kt=Te,bt=9,Dt=5;else if(Pt==2){var hn=je(c,Ve,31)+257,Lr=je(c,Ve+10,15)+4,Vt=hn+je(c,Ve+5,31)+1;Ve+=14;for(var Or=new Ne(Vt),Jr=new Ne(19),gt=0;gt<Lr;++gt)Jr[E[gt]]=je(c,Ve+gt*3,7);Ve+=Lr*3;for(var Ct=xe(Jr),rr=(1<<Ct)-1,T=W(Jr,Ct,1),gt=0;gt<Vt;){var re=T[je(c,Ve,rr)];Ve+=re&15;var ir=re>>4;if(ir<16)Or[gt++]=ir;else{var Be=0,Ue=0;for(ir==16?(Ue=3+je(c,Ve,3),Ve+=2,Be=Or[gt-1]):ir==17?(Ue=3+je(c,Ve,7),Ve+=3):ir==18&&(Ue=11+je(c,Ve,127),Ve+=7);Ue--;)Or[gt++]=Be}}var Ke=Or.subarray(0,hn),Xe=Or.subarray(hn);bt=xe(Ke),Dt=xe(Xe),ye=W(Ke,bt,1),kt=W(Xe,Dt,1)}else be(1);else{var ir=de(Ve)+4,xr=c[ir-4]|c[ir-3]<<8,Hr=ir+xr;if(Hr>I){ae&&be(0);break}$&&_e(it+xr),l.set(c.subarray(ir,Hr),it),o.b=it+=xr,o.p=Ve=Hr*8,o.f=Ze;continue}if(Ve>ht){ae&&be(0);break}}$&&_e(it+131072);for(var ut=(1<<bt)-1,Et=(1<<Dt)-1,le=Ve;;le=Ve){var Be=ye[X(c,Ve)&ut],Re=Be>>4;if(Ve+=Be&15,Ve>ht){ae&&be(0);break}if(Be||be(2),Re<256)l[it++]=Re;else if(Re==256){le=Ve,ye=null;break}else{var Ye=Re-254;if(Re>264){var gt=Re-257,et=B[gt];Ye=je(c,Ve,(1<<et)-1)+S[gt],Ve+=et}var yt=kt[X(c,Ve)&Et],_t=yt>>4;yt||be(3),Ve+=yt&15;var Xe=R[_t];if(_t>3){var et=h[_t];Xe+=X(c,Ve)&(1<<et)-1,Ve+=et}if(Ve>ht){ae&&be(0);break}$&&_e(it+131072);var Mt=it+Ye;if(it<Xe){var Rt=C-Xe,lr=Math.min(Xe,Mt);for(Rt+it<0&&be(3);it<lr;++it)l[it]=b[Rt+it]}for(;it<Mt;++it)l[it]=l[it-Xe]}}o.l=ye,o.p=le,o.b=it,o.f=Ze,ye&&(Ze=1,o.m=bt,o.d=kt,o.n=Dt)}while(!Ze);return it!=l.length&&N?k(l,0,it):l.subarray(0,it)},ge=function(c,o,l){l<<=o&7;var b=o/8|0;c[b]|=l,c[b+1]|=l>>8},De=function(c,o,l){l<<=o&7;var b=o/8|0;c[b]|=l,c[b+1]|=l>>8,c[b+2]|=l>>16},fe=function(c,o){for(var l=[],b=0;b<c.length;++b)c[b]&&l.push({s:b,f:c[b]});var I=l.length,C=l.slice();if(!I)return{t:Ut,l:0};if(I==1){var N=new Ne(l[0].s+1);return N[l[0].s]=1,{t:N,l:1}}l.sort(function(Hr,hn){return Hr.f-hn.f}),l.push({s:-1,f:25001});var $=l[0],ae=l[1],_e=0,Ze=1,Ve=2;for(l[0]={s:-1,f:$.f+ae.f,l:$,r:ae};Ze!=I-1;)$=l[l[_e].f<l[Ve].f?_e++:Ve++],ae=l[_e!=Ze&&l[_e].f<l[Ve].f?_e++:Ve++],l[Ze++]={s:-1,f:$.f+ae.f,l:$,r:ae};for(var it=C[0].s,b=1;b<I;++b)C[b].s>it&&(it=C[b].s);var ye=new te(it+1),kt=Se(l[Ze-1],ye,0);if(kt>o){var b=0,bt=0,Dt=kt-o,ht=1<<Dt;for(C.sort(function(hn,Lr){return ye[Lr.s]-ye[hn.s]||hn.f-Lr.f});b<I;++b){var Pt=C[b].s;if(ye[Pt]>o)bt+=ht-(1<<kt-ye[Pt]),ye[Pt]=o;else break}for(bt>>=Dt;bt>0;){var ir=C[b].s;ye[ir]<o?bt-=1<<o-ye[ir]++-1:++b}for(;b>=0&&bt;--b){var xr=C[b].s;ye[xr]==o&&(--ye[xr],++bt)}kt=o}return{t:new Ne(ye),l:kt}},Se=function(c,o,l){return c.s==-1?Math.max(Se(c.l,o,l+1),Se(c.r,o,l+1)):o[c.s]=l},ct=function(c){for(var o=c.length;o&&!c[--o];);for(var l=new te(++o),b=0,I=c[0],C=1,N=function(ae){l[b++]=ae},$=1;$<=o;++$)if(c[$]==I&&$!=o)++C;else{if(!I&&C>2){for(;C>138;C-=138)N(32754);C>2&&(N(C>10?C-11<<5|28690:C-3<<5|12305),C=0)}else if(C>3){for(N(I),--C;C>6;C-=6)N(8304);C>2&&(N(C-3<<5|8208),C=0)}for(;C--;)N(I);C=1,I=c[$]}return{c:l.subarray(0,b),n:o}},dt=function(c,o){for(var l=0,b=0;b<o.length;++b)l+=c[b]*o[b];return l},at=function(c,o,l){var b=l.length,I=de(o+2);c[I]=b&255,c[I+1]=b>>8,c[I+2]=c[I]^255,c[I+3]=c[I+1]^255;for(var C=0;C<b;++C)c[I+C+4]=l[C];return(I+4+b)*8},st=function(c,o,l,b,I,C,N,$,ae,_e,Ze){ge(o,Ze++,l),++I[256];for(var Ve=fe(I,15),it=Ve.t,ye=Ve.l,kt=fe(C,15),bt=kt.t,Dt=kt.l,ht=ct(it),Pt=ht.c,ir=ht.n,xr=ct(bt),Hr=xr.c,hn=xr.n,Lr=new te(19),Vt=0;Vt<Pt.length;++Vt)++Lr[Pt[Vt]&31];for(var Vt=0;Vt<Hr.length;++Vt)++Lr[Hr[Vt]&31];for(var Or=fe(Lr,7),Jr=Or.t,gt=Or.l,Ct=19;Ct>4&&!Jr[E[Ct-1]];--Ct);var rr=_e+5<<3,T=dt(I,J)+dt(C,V)+N,re=dt(I,it)+dt(C,bt)+N+14+3*Ct+dt(Lr,Jr)+2*Lr[16]+3*Lr[17]+7*Lr[18];if(ae>=0&&rr<=T&&rr<=re)return at(o,Ze,c.subarray(ae,ae+_e));var Be,Ue,Ke,Xe;if(ge(o,Ze,1+(re<T)),Ze+=2,re<T){Be=W(it,ye,0),Ue=it,Ke=W(bt,Dt,0),Xe=bt;var ut=W(Jr,gt,0);ge(o,Ze,ir-257),ge(o,Ze+5,hn-1),ge(o,Ze+10,Ct-4),Ze+=14;for(var Vt=0;Vt<Ct;++Vt)ge(o,Ze+3*Vt,Jr[E[Vt]]);Ze+=3*Ct;for(var Et=[Pt,Hr],le=0;le<2;++le)for(var Re=Et[le],Vt=0;Vt<Re.length;++Vt){var Ye=Re[Vt]&31;ge(o,Ze,ut[Ye]),Ze+=Jr[Ye],Ye>15&&(ge(o,Ze,Re[Vt]>>5&127),Ze+=Re[Vt]>>12)}}else Be=K,Ue=J,Ke=he,Xe=V;for(var Vt=0;Vt<$;++Vt){var et=b[Vt];if(et>255){var Ye=et>>18&31;De(o,Ze,Be[Ye+257]),Ze+=Ue[Ye+257],Ye>7&&(ge(o,Ze,et>>23&31),Ze+=B[Ye]);var yt=et&31;De(o,Ze,Ke[yt]),Ze+=Xe[yt],yt>3&&(De(o,Ze,et>>5&8191),Ze+=h[yt])}else De(o,Ze,Be[et]),Ze+=Ue[et]}return De(o,Ze,Be[256]),Ze+Ue[256]},It=new Z([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ut=new Ne(0),Kt=function(c,o,l,b,I,C){var N=C.z||c.length,$=new Ne(b+N+5*(1+Math.ceil(N/7e3))+I),ae=$.subarray(b,$.length-I),_e=C.l,Ze=(C.r||0)&7;if(o){Ze&&(ae[0]=C.r>>3);for(var Ve=It[o-1],it=Ve>>13,ye=Ve&8191,kt=(1<<l)-1,bt=C.p||new te(32768),Dt=C.h||new te(kt+1),ht=Math.ceil(l/3),Pt=2*ht,ir=function(dn){return(c[dn]^c[dn+1]<<ht^c[dn+2]<<Pt)&kt},xr=new Z(25e3),Hr=new te(288),hn=new te(32),Lr=0,Vt=0,Or=C.i||0,Jr=0,gt=C.w||0,Ct=0;Or+2<N;++Or){var rr=ir(Or),T=Or&32767,re=Dt[rr];if(bt[T]=re,Dt[rr]=T,gt<=Or){var Be=N-Or;if((Lr>7e3||Jr>24576)&&(Be>423||!_e)){Ze=st(c,ae,0,xr,Hr,hn,Vt,Jr,Ct,Or-Ct,Ze),Jr=Lr=Vt=0,Ct=Or;for(var Ue=0;Ue<286;++Ue)Hr[Ue]=0;for(var Ue=0;Ue<30;++Ue)hn[Ue]=0}var Ke=2,Xe=0,ut=ye,Et=T-re&32767;if(Be>2&&rr==ir(Or-Et))for(var le=Math.min(it,Be)-1,Re=Math.min(32767,Or),Ye=Math.min(258,Be);Et<=Re&&--ut&&T!=re;){if(c[Or+Ke]==c[Or+Ke-Et]){for(var et=0;et<Ye&&c[Or+et]==c[Or+et-Et];++et);if(et>Ke){if(Ke=et,Xe=Et,et>le)break;for(var yt=Math.min(Et,et-2),_t=0,Ue=0;Ue<yt;++Ue){var Mt=Or-Et+Ue&32767,Rt=bt[Mt],lr=Mt-Rt&32767;lr>_t&&(_t=lr,re=Mt)}}}T=re,re=bt[T],Et+=T-re&32767}if(Xe){xr[Jr++]=268435456|F[Ke]<<18|M[Xe];var Ar=F[Ke]&31,gr=M[Xe]&31;Vt+=B[Ar]+h[gr],++Hr[257+Ar],++hn[gr],gt=Or+Ke,++Lr}else xr[Jr++]=c[Or],++Hr[c[Or]]}}for(Or=Math.max(Or,gt);Or<N;++Or)xr[Jr++]=c[Or],++Hr[c[Or]];Ze=st(c,ae,_e,xr,Hr,hn,Vt,Jr,Ct,Or-Ct,Ze),_e||(C.r=Ze&7|ae[Ze/8|0]<<3,Ze-=7,C.h=Dt,C.p=bt,C.i=Or,C.w=gt)}else{for(var Or=C.w||0;Or<N+_e;Or+=65535){var _r=Or+65535;_r>=N&&(ae[Ze/8|0]=_e,_r=N),Ze=at(ae,Ze+1,c.subarray(Or,_r))}C.i=N}return k($,0,b+de(Ze)+I)},hr=null,or=function(){var c=-1;return{p:function(o){for(var l=c,b=0;b<o.length;++b)l=hr[l&255^o[b]]^l>>>8;c=l},d:function(){return~c}}},Sr=function(){var c=1,o=0;return{p:function(l){for(var b=c,I=o,C=l.length|0,N=0;N!=C;){for(var $=Math.min(N+2655,C);N<$;++N)I+=b+=l[N];b=(b&65535)+15*(b>>16),I=(I&65535)+15*(I>>16)}c=b,o=I},d:function(){return c%=65521,o%=65521,(c&255)<<24|(c&65280)<<8|(o&255)<<8|o>>8}}},ur=function(c,o,l,b,I){if(!I&&(I={l:1},o.dictionary)){var C=o.dictionary.subarray(-32768),N=new Ne(C.length+c.length);N.set(C),N.set(c,C.length),c=N,I.w=C.length}return Kt(c,o.level==null?6:o.level,o.mem==null?I.l?Math.ceil(Math.max(8,Math.min(13,Math.log(c.length)))*1.5):20:12+o.mem,l,b,I)},G=function(c,o){var l={};for(var b in c)l[b]=c[b];for(var b in o)l[b]=o[b];return l},wt=function(c,o,l){for(var b=c(),I=c.toString(),C=I.slice(I.indexOf("[")+1,I.lastIndexOf("]")).replace(/\s+/g,"").split(","),N=0;N<b.length;++N){var $=b[N],ae=C[N];if(typeof $=="function"){o+=";"+ae+"=";var _e=$.toString();if($.prototype)if(_e.indexOf("[native code]")!=-1){var Ze=_e.indexOf(" ",8)+1;o+=_e.slice(Ze,_e.indexOf("(",Ze))}else{o+=_e;for(var Ve in $.prototype)o+=";"+ae+".prototype."+Ve+"="+$.prototype[Ve].toString()}else o+=_e}else l[ae]=$}return o},_=null,f=function(c){var o=[];for(var l in c)c[l].buffer&&o.push((c[l]=new c[l].constructor(c[l])).buffer);return o},u=function(c,o,l,b){if(!_[l]){for(var I="",C={},N=c.length-1,$=0;$<N;++$)I=wt(c[$],I,C);_[l]={c:wt(c[N],I,C),e:C}}var ae=G({},_[l].e);return U(_[l].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",l,ae,f(ae),b)},x=function(){return[Ne,te,Z,B,h,E,S,R,se,Te,Y,Oe,W,xe,je,X,de,k,be,He,Bn,we,ve]},ee=function(){return[Ne,te,Z,B,h,E,F,M,K,J,he,V,Y,It,Ut,W,ge,De,fe,Se,ct,dt,at,st,de,k,Kt,ur,$r,we]},Ce=function(){return[pt,er,Le,or,hr]},H=function(){return[zt,Ht]},ne=function(){return[Pr,Le,Sr]},$e=function(){return[pr]},we=function(c){return postMessage(c,[c.buffer])},ve=function(c){return c&&{out:c.size&&new Ne(c.size),dictionary:c.dictionary}},qe=function(c,o,l,b,I,C){var N=u(l,b,I,function($,ae){N.terminate(),C($,ae)});return N.postMessage([c,o],o.consume?[c.buffer]:[]),function(){N.terminate()}},St=function(c){return c.ondata=function(o,l){return postMessage([o,l],[o.buffer])},function(o){o.data.length?(c.push(o.data[0],o.data[1]),postMessage([o.data[0].length])):c.flush()}},me=function(c,o,l,b,I,C,N){var $,ae=u(c,b,I,function(_e,Ze){_e?(ae.terminate(),o.ondata.call(o,_e)):Array.isArray(Ze)?Ze.length==1?(o.queuedSize-=Ze[0],o.ondrain&&o.ondrain(Ze[0])):(Ze[1]&&ae.terminate(),o.ondata.call(o,_e,Ze[0],Ze[1])):N(Ze)});ae.postMessage(l),o.queuedSize=0,o.push=function(_e,Ze){o.ondata||be(5),$&&o.ondata(be(4,0,1),null,!!Ze),o.queuedSize+=_e.length,ae.postMessage([_e,$=Ze],[_e.buffer])},o.terminate=function(){ae.terminate()},C&&(o.flush=function(){ae.postMessage([])})},ft=function(c,o){return c[o]|c[o+1]<<8},lt=function(c,o){return(c[o]|c[o+1]<<8|c[o+2]<<16|c[o+3]<<24)>>>0},Pe=function(c,o){return lt(c,o)+lt(c,o+4)*4294967296},Le=function(c,o,l){for(;l;++o)c[o]=l,l>>>=8},pt=function(c,o){var l=o.filename;if(c[0]=31,c[1]=139,c[2]=8,c[8]=o.level<2?4:o.level==9?2:0,c[9]=3,o.mtime!=0&&Le(c,4,Math.floor(new Date(o.mtime||Date.now())/1e3)),l){c[3]=8;for(var b=0;b<=l.length;++b)c[b+10]=l.charCodeAt(b)}},zt=function(c){(c[0]!=31||c[1]!=139||c[2]!=8)&&be(6,"invalid gzip data");var o=c[3],l=10;o&4&&(l+=(c[10]|c[11]<<8)+2);for(var b=(o>>3&1)+(o>>4&1);b>0;b-=!c[l++]);return l+(o&2)},Ht=function(c){var o=c.length;return(c[o-4]|c[o-3]<<8|c[o-2]<<16|c[o-1]<<24)>>>0},er=function(c){return 10+(c.filename?c.filename.length+1:0)},Pr=function(c,o){var l=o.level,b=l==0?0:l<6?1:l==9?3:2;if(c[0]=120,c[1]=b<<6|(o.dictionary&&32),c[1]|=31-(c[0]<<8|c[1])%31,o.dictionary){var I=Sr();I.p(o.dictionary),Le(c,2,I.d())}},pr=function(c,o){return((c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31)&&be(6,"invalid zlib data"),(c[1]>>5&1)==+!o&&be(6,"invalid zlib data: "+(c[1]&32?"need":"unexpected")+" dictionary"),(c[1]>>3&4)+2};function kr(c,o){return typeof c=="function"&&(o=c,c={}),this.ondata=o,c}var Dr=null,vr=null;function dr(c,o,l){return l||(l=o,o={}),typeof l!="function"&&be(7),qe(c,o,[ee],function(b){return we($r(b.data[0],b.data[1]))},0,l)}function $r(c,o){return ur(c,o||{},0,0)}var un=null,_n=null;function qr(c,o,l){return l||(l=o,o={}),typeof l!="function"&&be(7),qe(c,o,[x],function(b){return we(Bn(b.data[0],ve(b.data[1])))},1,l)}function Bn(c,o){return He(c,{i:2},o&&o.out,o&&o.dictionary)}var ti=null,Ir=null;function qn(c,o,l){return l||(l=o,o={}),typeof l!="function"&&be(7),qe(c,o,[ee,Ce,function(){return[Ti]}],function(b){return we(Ti(b.data[0],b.data[1]))},2,l)}function Ti(c,o){o||(o={});var l=or(),b=c.length;l.p(c);var I=ur(c,o,er(o),8),C=I.length;return pt(I,o),Le(I,C-8,l.d()),Le(I,C-4,b),I}var ci=null,Ui=null;function Ei(c,o,l){return l||(l=o,o={}),typeof l!="function"&&be(7),qe(c,o,[x,H,function(){return[$i]}],function(b){return we($i(b.data[0],b.data[1]))},3,l)}function $i(c,o){var l=zt(c);return l+8>c.length&&be(6,"invalid gzip data"),He(c.subarray(l,-8),{i:2},o&&o.out||new Ne(Ht(c)),o&&o.dictionary)}var Ha=null,Ji=null;function gi(c,o,l){return l||(l=o,o={}),typeof l!="function"&&be(7),qe(c,o,[ee,ne,function(){return[ki]}],function(b){return we(ki(b.data[0],b.data[1]))},4,l)}function ki(c,o){o||(o={});var l=Sr();l.p(c);var b=ur(c,o,o.dictionary?6:2,4);return Pr(b,o),Le(b,b.length-4,l.d()),b}var Pi=null,nt=null;function Ie(c,o,l){return l||(l=o,o={}),typeof l!="function"&&be(7),qe(c,o,[x,$e,function(){return[ke]}],function(b){return we(ke(b.data[0],ve(b.data[1])))},5,l)}function ke(c,o){return He(c.subarray(pr(c,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var Ee=null,$t=null;function Nt(c,o,l){return l||(l=o,o={}),typeof l!="function"&&be(7),c[0]==31&&c[1]==139&&c[2]==8?Ei(c,o,l):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?qr(c,o,l):Ie(c,o,l)}function Er(c,o){return c[0]==31&&c[1]==139&&c[2]==8?$i(c,o):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?Bn(c,o):ke(c,o)}var sr=function(c,o,l,b){for(var I in c){var C=c[I],N=o+I,$=b;Array.isArray(C)&&($=G(b,C[1]),C=C[0]),C instanceof Ne?l[N]=[C,$]:(l[N+="/"]=[new Ne(0),$],sr(C,N,l,b))}},Kr=typeof TextEncoder!="undefined"&&new TextEncoder,Wr=typeof TextDecoder!="undefined"&&new TextDecoder,tn=0;try{Wr.decode(Ut,{stream:!0}),tn=1}catch(c){}var Vr=function(c){for(var o="",l=0;;){var b=c[l++],I=(b>127)+(b>223)+(b>239);if(l+I>c.length)return{s:o,r:k(c,l-1)};I?I==3?(b=((b&15)<<18|(c[l++]&63)<<12|(c[l++]&63)<<6|c[l++]&63)-65536,o+=String.fromCharCode(55296|b>>10,56320|b&1023)):I&1?o+=String.fromCharCode((b&31)<<6|c[l++]&63):o+=String.fromCharCode((b&15)<<12|(c[l++]&63)<<6|c[l++]&63):o+=String.fromCharCode(b)}},jr=null,Yr=null;function mn(c,o){if(o){for(var l=new Ne(c.length),b=0;b<c.length;++b)l[b]=c.charCodeAt(b);return l}if(Kr)return Kr.encode(c);for(var I=c.length,C=new Ne(c.length+(c.length>>1)),N=0,$=function(Ze){C[N++]=Ze},b=0;b<I;++b){if(N+5>C.length){var ae=new Ne(N+8+(I-b<<1));ae.set(C),C=ae}var _e=c.charCodeAt(b);_e<128||o?$(_e):_e<2048?($(192|_e>>6),$(128|_e&63)):_e>55295&&_e<57344?(_e=65536+(_e&1047552)|c.charCodeAt(++b)&1023,$(240|_e>>18),$(128|_e>>12&63),$(128|_e>>6&63),$(128|_e&63)):($(224|_e>>12),$(128|_e>>6&63),$(128|_e&63))}return k(C,0,N)}function rn(c,o){if(o){for(var l="",b=0;b<c.length;b+=16384)l+=String.fromCharCode.apply(null,c.subarray(b,b+16384));return l}else{if(Wr)return Wr.decode(c);var I=Vr(c),C=I.s,l=I.r;return l.length&&be(8),C}}var Dn=function(c){return c==1?3:c<6?2:c==9?1:0},Qn=function(c,o){return o+30+ft(c,o+26)+ft(c,o+28)},ui=function(c,o,l){var b=ft(c,o+28),I=rn(c.subarray(o+46,o+46+b),!(ft(c,o+8)&2048)),C=o+46+b,N=lt(c,o+20),$=l&&N==4294967295?Tn(c,C):[N,lt(c,o+24),lt(c,o+42)],ae=$[0],_e=$[1],Ze=$[2];return[ft(c,o+10),ae,_e,I,C+ft(c,o+30)+ft(c,o+32),Ze]},Tn=function(c,o){for(;ft(c,o)!=1;o+=4+ft(c,o+2));return[Pe(c,o+12),Pe(c,o+4),Pe(c,o+20)]},sn=function(c){var o=0;if(c)for(var l in c){var b=c[l].length;b>65535&&be(9),o+=b+4}return o},Qt=function(c,o,l,b,I,C,N,$){var ae=b.length,_e=l.extra,Ze=$&&$.length,Ve=sn(_e);Le(c,o,N!=null?33639248:67324752),o+=4,N!=null&&(c[o++]=20,c[o++]=l.os),c[o]=20,o+=2,c[o++]=l.flag<<1|(C<0&&8),c[o++]=I&&8,c[o++]=l.compression&255,c[o++]=l.compression>>8;var it=new Date(l.mtime==null?Date.now():l.mtime),ye=it.getFullYear()-1980;if((ye<0||ye>119)&&be(10),Le(c,o,ye<<25|it.getMonth()+1<<21|it.getDate()<<16|it.getHours()<<11|it.getMinutes()<<5|it.getSeconds()>>1),o+=4,C!=-1&&(Le(c,o,l.crc),Le(c,o+4,C<0?-C-2:C),Le(c,o+8,l.size)),Le(c,o+12,ae),Le(c,o+14,Ve),o+=16,N!=null&&(Le(c,o,Ze),Le(c,o+6,l.attrs),Le(c,o+10,N),o+=14),c.set(b,o),o+=ae,Ve)for(var kt in _e){var bt=_e[kt],Dt=bt.length;Le(c,o,+kt),Le(c,o+2,Dt),c.set(bt,o+4),o+=4+Dt}return Ze&&(c.set($,o),o+=Ze),o},Zt=function(c,o,l,b,I){Le(c,o,101010256),Le(c,o+8,l),Le(c,o+10,l),Le(c,o+12,b),Le(c,o+16,I)},qt=null,mr=null,Wt=null,Cr=null;function Mr(c,o,l){l||(l=o,o={}),typeof l!="function"&&be(7);var b={};sr(c,"",b,o);var I=Object.keys(b),C=I.length,N=0,$=0,ae=C,_e=new Array(C),Ze=[],Ve=function(){for(var Dt=0;Dt<Ze.length;++Dt)Ze[Dt]()},it=function(Dt,ht){bi(function(){l(Dt,ht)})};bi(function(){it=l});var ye=function(){var Dt=new Ne($+22),ht=N,Pt=$-N;$=0;for(var ir=0;ir<ae;++ir){var xr=_e[ir];try{var Hr=xr.c.length;Qt(Dt,$,xr,xr.f,xr.u,Hr);var hn=30+xr.f.length+sn(xr.extra),Lr=$+hn;Dt.set(xr.c,Lr),Qt(Dt,N,xr,xr.f,xr.u,Hr,$,xr.m),N+=16+hn+(xr.m?xr.m.length:0),$=Lr+Hr}catch(Vt){return it(Vt,null)}}Zt(Dt,N,_e.length,Pt,ht),it(null,Dt)};C||ye();for(var kt=function(Dt){var ht=I[Dt],Pt=b[ht],ir=Pt[0],xr=Pt[1],Hr=or(),hn=ir.length;Hr.p(ir);var Lr=mn(ht),Vt=Lr.length,Or=xr.comment,Jr=Or&&mn(Or),gt=Jr&&Jr.length,Ct=sn(xr.extra),rr=xr.level==0?0:8,T=function(re,Be){if(re)Ve(),it(re,null);else{var Ue=Be.length;_e[Dt]=G(xr,{size:hn,crc:Hr.d(),c:Be,f:Lr,m:Jr,u:Vt!=ht.length||Jr&&Or.length!=gt,compression:rr}),N+=30+Vt+Ct+Ue,$+=76+2*(Vt+Ct)+(gt||0)+Ue,--C||ye()}};if(Vt>65535&&T(be(11,0,1),null),!rr)T(null,ir);else if(hn<16e4)try{T(null,$r(ir,xr))}catch(re){T(re,null)}else Ze.push(dr(ir,xr,T))},bt=0;bt<ae;++bt)kt(bt);return Ve}function Gr(c,o){o||(o={});var l={},b=[];sr(c,"",l,o);var I=0,C=0;for(var N in l){var $=l[N],ae=$[0],_e=$[1],Ze=_e.level==0?0:8,Ve=mn(N),it=Ve.length,ye=_e.comment,kt=ye&&mn(ye),bt=kt&&kt.length,Dt=sn(_e.extra);it>65535&&be(11);var ht=Ze?$r(ae,_e):ae,Pt=ht.length,ir=or();ir.p(ae),b.push(G(_e,{size:ae.length,crc:ir.d(),c:ht,f:Ve,m:kt,u:it!=N.length||kt&&ye.length!=bt,o:I,compression:Ze})),I+=30+it+Dt+Pt,C+=76+2*(it+Dt)+(bt||0)+Pt}for(var xr=new Ne(C+22),Hr=I,hn=C-I,Lr=0;Lr<b.length;++Lr){var Ve=b[Lr];Qt(xr,Ve.o,Ve,Ve.f,Ve.u,Ve.c.length);var Vt=30+Ve.f.length+sn(Ve.extra);xr.set(Ve.c,Ve.o+Vt),Qt(xr,I,Ve,Ve.f,Ve.u,Ve.c.length,Ve.o,Ve.m),I+=16+Vt+(Ve.m?Ve.m.length:0)}return Zt(xr,I,b.length,hn,Hr),xr}var Mn=null,Pn=null,oi=null,ei=null,bi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(c){c()};function Jn(c,o,l){l||(l=o,o={}),typeof l!="function"&&be(7);var b=[],I=function(){for(var Dt=0;Dt<b.length;++Dt)b[Dt]()},C={},N=function(Dt,ht){bi(function(){l(Dt,ht)})};bi(function(){N=l});for(var $=c.length-22;lt(c,$)!=101010256;--$)if(!$||c.length-$>65558)return N(be(13,0,1),null),I;var ae=ft(c,$+8);if(ae){var _e=ae,Ze=lt(c,$+16),Ve=Ze==4294967295||_e==65535;if(Ve){var it=lt(c,$-12);Ve=lt(c,it)==101075792,Ve&&(_e=ae=lt(c,it+32),Ze=lt(c,it+48))}for(var ye=o&&o.filter,kt=function(Dt){var ht=ui(c,Ze,Ve),Pt=ht[0],ir=ht[1],xr=ht[2],Hr=ht[3],hn=ht[4],Lr=ht[5],Vt=Qn(c,Lr);Ze=hn;var Or=function(gt,Ct){gt?(I(),N(gt,null)):(Ct&&(C[Hr]=Ct),--ae||N(null,C))};if(!ye||ye({name:Hr,size:ir,originalSize:xr,compression:Pt}))if(!Pt)Or(null,k(c,Vt,Vt+ir));else if(Pt==8){var Jr=c.subarray(Vt,Vt+ir);if(xr<524288||ir>.8*xr)try{Or(null,Bn(Jr,{out:new Ne(xr)}))}catch(gt){Or(gt,null)}else b.push(qr(Jr,{size:xr},Or))}else Or(be(14,"unknown compression type "+Pt,1),null);else Or(null,null)},bt=0;bt<_e;++bt)kt(bt)}else N(null,{});return I}function Hn(c,o){for(var l={},b=c.length-22;lt(c,b)!=101010256;--b)(!b||c.length-b>65558)&&be(13);var I=ft(c,b+8);if(!I)return{};var C=lt(c,b+16),N=C==4294967295||I==65535;if(N){var $=lt(c,b-12);N=lt(c,$)==101075792,N&&(I=lt(c,$+32),C=lt(c,$+48))}for(var ae=o&&o.filter,_e=0;_e<I;++_e){var Ze=ui(c,C,N),Ve=Ze[0],it=Ze[1],ye=Ze[2],kt=Ze[3],bt=Ze[4],Dt=Ze[5],ht=Qn(c,Dt);C=bt,(!ae||ae({name:kt,size:it,originalSize:ye,compression:Ve}))&&(Ve?Ve==8?l[kt]=Bn(c.subarray(ht,ht+it),{out:new Ne(ye)}):be(14,"unknown compression type "+Ve):l[kt]=k(c,ht,ht+it))}return l}var on=function(){return typeof window!="undefined"?window:typeof w.g!="undefined"?w.g:typeof self!="undefined"?self:this}();function pi(){on.console&&typeof on.console.log=="function"&&on.console.log.apply(on.console,arguments)}var Ln={log:pi,warn:function(c){on.console&&(typeof on.console.warn=="function"?on.console.warn.apply(on.console,arguments):pi.call(null,arguments))},error:function(c){on.console&&(typeof on.console.error=="function"?on.console.error.apply(on.console,arguments):pi(c))}};function ri(c,o,l){var b=new XMLHttpRequest;b.open("GET",c),b.responseType="blob",b.onload=function(){ra(b.response,o,l)},b.onerror=function(){Ln.error("could not download file")},b.send()}function vi(c){var o=new XMLHttpRequest;o.open("HEAD",c,!1);try{o.send()}catch(l){}return o.status>=200&&o.status<=299}function _i(c){try{c.dispatchEvent(new MouseEvent("click"))}catch(l){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(o)}}var Xn,Bi,ra=on.saveAs||((typeof window=="undefined"?"undefined":(0,pe.Z)(window))!=="object"||window!==on?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(c,o,l){var b=on.URL||on.webkitURL,I=document.createElement("a");o=o||c.name||"download",I.download=o,I.rel="noopener",typeof c=="string"?(I.href=c,I.origin!==location.origin?vi(I.href)?ri(c,o,l):_i(I,I.target="_blank"):_i(I)):(I.href=b.createObjectURL(c),setTimeout(function(){b.revokeObjectURL(I.href)},4e4),setTimeout(function(){_i(I)},0))}:"msSaveOrOpenBlob"in navigator?function(c,o,l){if(o=o||c.name||"download",typeof c=="string")if(vi(c))ri(c,o,l);else{var b=document.createElement("a");b.href=c,b.target="_blank",setTimeout(function(){_i(b)})}else navigator.msSaveOrOpenBlob(function(I,C){return C===void 0?C={autoBom:!1}:(0,pe.Z)(C)!=="object"&&(Ln.warn("Deprecated: Expected third argument to be a object"),C={autoBom:!C}),C.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(I.type)?new Blob(["\uFEFF",I],{type:I.type}):I}(c,l),o)}:function(c,o,l,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),typeof c=="string")return ri(c,o,l);var I=c.type==="application/octet-stream",C=/constructor/i.test(on.HTMLElement)||on.safari,N=/CriOS\/[\d]+/.test(navigator.userAgent);if((N||I&&C)&&(typeof FileReader=="undefined"?"undefined":(0,pe.Z)(FileReader))==="object"){var $=new FileReader;$.onloadend=function(){var Ze=$.result;Ze=N?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=Ze:location=Ze,b=null},$.readAsDataURL(c)}else{var ae=on.URL||on.webkitURL,_e=ae.createObjectURL(c);b?b.location=_e:location.href=_e,b=null,setTimeout(function(){ae.revokeObjectURL(_e)},4e4)}});function ii(c){var o;c=c||"",this.ok=!1,c.charAt(0)=="#"&&(c=c.substr(1,6)),c={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"}[c=(c=c.replace(/ /g,"")).toLowerCase()]||c;for(var l=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function($){return[parseInt($[1]),parseInt($[2]),parseInt($[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function($){return[parseInt($[1],16),parseInt($[2],16),parseInt($[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function($){return[parseInt($[1]+$[1],16),parseInt($[2]+$[2],16),parseInt($[3]+$[3],16)]}}],b=0;b<l.length;b++){var I=l[b].re,C=l[b].process,N=I.exec(c);N&&(o=C(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 $=this.r.toString(16),ae=this.g.toString(16),_e=this.b.toString(16);return $.length==1&&($="0"+$),ae.length==1&&(ae="0"+ae),_e.length==1&&(_e="0"+_e),"#"+$+ae+_e}}function cn(c,o){var l=c[0],b=c[1],I=c[2],C=c[3];l=Un(l,b,I,C,o[0],7,-680876936),C=Un(C,l,b,I,o[1],12,-389564586),I=Un(I,C,l,b,o[2],17,606105819),b=Un(b,I,C,l,o[3],22,-1044525330),l=Un(l,b,I,C,o[4],7,-176418897),C=Un(C,l,b,I,o[5],12,1200080426),I=Un(I,C,l,b,o[6],17,-1473231341),b=Un(b,I,C,l,o[7],22,-45705983),l=Un(l,b,I,C,o[8],7,1770035416),C=Un(C,l,b,I,o[9],12,-1958414417),I=Un(I,C,l,b,o[10],17,-42063),b=Un(b,I,C,l,o[11],22,-1990404162),l=Un(l,b,I,C,o[12],7,1804603682),C=Un(C,l,b,I,o[13],12,-40341101),I=Un(I,C,l,b,o[14],17,-1502002290),l=wn(l,b=Un(b,I,C,l,o[15],22,1236535329),I,C,o[1],5,-165796510),C=wn(C,l,b,I,o[6],9,-1069501632),I=wn(I,C,l,b,o[11],14,643717713),b=wn(b,I,C,l,o[0],20,-373897302),l=wn(l,b,I,C,o[5],5,-701558691),C=wn(C,l,b,I,o[10],9,38016083),I=wn(I,C,l,b,o[15],14,-660478335),b=wn(b,I,C,l,o[4],20,-405537848),l=wn(l,b,I,C,o[9],5,568446438),C=wn(C,l,b,I,o[14],9,-1019803690),I=wn(I,C,l,b,o[3],14,-187363961),b=wn(b,I,C,l,o[8],20,1163531501),l=wn(l,b,I,C,o[13],5,-1444681467),C=wn(C,l,b,I,o[2],9,-51403784),I=wn(I,C,l,b,o[7],14,1735328473),l=jn(l,b=wn(b,I,C,l,o[12],20,-1926607734),I,C,o[5],4,-378558),C=jn(C,l,b,I,o[8],11,-2022574463),I=jn(I,C,l,b,o[11],16,1839030562),b=jn(b,I,C,l,o[14],23,-35309556),l=jn(l,b,I,C,o[1],4,-1530992060),C=jn(C,l,b,I,o[4],11,1272893353),I=jn(I,C,l,b,o[7],16,-155497632),b=jn(b,I,C,l,o[10],23,-1094730640),l=jn(l,b,I,C,o[13],4,681279174),C=jn(C,l,b,I,o[0],11,-358537222),I=jn(I,C,l,b,o[3],16,-722521979),b=jn(b,I,C,l,o[6],23,76029189),l=jn(l,b,I,C,o[9],4,-640364487),C=jn(C,l,b,I,o[12],11,-421815835),I=jn(I,C,l,b,o[15],16,530742520),l=li(l,b=jn(b,I,C,l,o[2],23,-995338651),I,C,o[0],6,-198630844),C=li(C,l,b,I,o[7],10,1126891415),I=li(I,C,l,b,o[14],15,-1416354905),b=li(b,I,C,l,o[5],21,-57434055),l=li(l,b,I,C,o[12],6,1700485571),C=li(C,l,b,I,o[3],10,-1894986606),I=li(I,C,l,b,o[10],15,-1051523),b=li(b,I,C,l,o[1],21,-2054922799),l=li(l,b,I,C,o[8],6,1873313359),C=li(C,l,b,I,o[15],10,-30611744),I=li(I,C,l,b,o[6],15,-1560198380),b=li(b,I,C,l,o[13],21,1309151649),l=li(l,b,I,C,o[4],6,-145523070),C=li(C,l,b,I,o[11],10,-1120210379),I=li(I,C,l,b,o[2],15,718787259),b=li(b,I,C,l,o[9],21,-343485551),c[0]=xi(l,c[0]),c[1]=xi(b,c[1]),c[2]=xi(I,c[2]),c[3]=xi(C,c[3])}function nn(c,o,l,b,I,C){return o=xi(xi(o,c),xi(b,C)),xi(o<<I|o>>>32-I,l)}function Un(c,o,l,b,I,C,N){return nn(o&l|~o&b,c,o,I,C,N)}function wn(c,o,l,b,I,C,N){return nn(o&b|l&~b,c,o,I,C,N)}function jn(c,o,l,b,I,C,N){return nn(o^l^b,c,o,I,C,N)}function li(c,o,l,b,I,C,N){return nn(l^(o|~b),c,o,I,C,N)}function wi(c){var o,l=c.length,b=[1732584193,-271733879,-1732584194,271733878];for(o=64;o<=c.length;o+=64)cn(b,Aa(c.substring(o-64,o)));c=c.substring(o-64);var I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(o=0;o<c.length;o++)I[o>>2]|=c.charCodeAt(o)<<(o%4<<3);if(I[o>>2]|=128<<(o%4<<3),o>55)for(cn(b,I),o=0;o<16;o++)I[o]=0;return I[14]=8*l,cn(b,I),b}function Aa(c){var o,l=[];for(o=0;o<64;o+=4)l[o>>2]=c.charCodeAt(o)+(c.charCodeAt(o+1)<<8)+(c.charCodeAt(o+2)<<16)+(c.charCodeAt(o+3)<<24);return l}Xn=on.atob.bind(on),Bi=on.btoa.bind(on);var Yi="0123456789abcdef".split("");function ao(c){for(var o="",l=0;l<4;l++)o+=Yi[c>>8*l+4&15]+Yi[c>>8*l&15];return o}function Yn(c){return String.fromCharCode((255&c)>>0,(65280&c)>>8,(16711680&c)>>16,(4278190080&c)>>24)}function On(c){return wi(c).map(Yn).join("")}var Fi=function(c){for(var o=0;o<c.length;o++)c[o]=ao(c[o]);return c.join("")}(wi("hello"))!="5d41402abc4b2a76b9719d911017c592";function xi(c,o){if(Fi){var l=(65535&c)+(65535&o);return(c>>16)+(o>>16)+(l>>16)<<16|65535&l}return c+o&4294967295}function ha(c,o){var l,b,I,C;if(c!==l){for(var N=(I=c,C=1+(256/c.length>>0),new Array(C+1).join(I)),$=[],ae=0;ae<256;ae++)$[ae]=ae;var _e=0;for(ae=0;ae<256;ae++){var Ze=$[ae];_e=(_e+Ze+N.charCodeAt(ae))%256,$[ae]=$[_e],$[_e]=Ze}l=c,b=$}else $=b;var Ve=o.length,it=0,ye=0,kt="";for(ae=0;ae<Ve;ae++)ye=(ye+(Ze=$[it=(it+1)%256]))%256,$[it]=$[ye],$[ye]=Ze,N=$[($[it]+$[ye])%256],kt+=String.fromCharCode(o.charCodeAt(ae)^N);return kt}var Oo={print:4,modify:8,copy:16,"annot-forms":32};function na(c,o,l,b){this.v=1,this.r=2;var I=192;c.forEach(function($){if(Oo.perm!==void 0)throw new Error("Invalid permission: "+$);I+=Oo[$]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var C=(o+this.padding).substr(0,32),N=(l+this.padding).substr(0,32);this.O=this.processOwnerPassword(C,N),this.P=-(1+(255^I)),this.encryptionKey=On(C+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(b)).substr(0,5),this.U=ha(this.encryptionKey,this.padding)}function Zi(c){if(/[^\u0000-\u00ff]/.test(c))throw new Error("Invalid PDF Name Object: "+c+", Only accept ASCII characters.");for(var o="",l=c.length,b=0;b<l;b++){var I=c.charCodeAt(b);I<33||I===35||I===37||I===40||I===41||I===47||I===60||I===62||I===91||I===93||I===123||I===125||I>126?o+="#"+("0"+I.toString(16)).slice(-2):o+=c[b]}return o}function ja(c){if((0,pe.Z)(c)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var o={};this.subscribe=function(l,b,I){if(I=I||!1,typeof l!="string"||typeof b!="function"||typeof I!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");o.hasOwnProperty(l)||(o[l]={});var C=Math.random().toString(35);return o[l][C]=[b,!!I],C},this.unsubscribe=function(l){for(var b in o)if(o[b][l])return delete o[b][l],Object.keys(o[b]).length===0&&delete o[b],!0;return!1},this.publish=function(l){if(o.hasOwnProperty(l)){var b=Array.prototype.slice.call(arguments,1),I=[];for(var C in o[l]){var N=o[l][C];try{N[0].apply(c,b)}catch($){on.console&&Ln.error("jsPDF PubSub Error",$.message,$)}N[1]&&I.push(C)}I.length&&I.forEach(this.unsubscribe)}},this.getTopics=function(){return o}}function Ma(c){if(!(this instanceof Ma))return new Ma(c);var o="opacity,stroke-opacity".split(",");for(var l in c)c.hasOwnProperty(l)&&o.indexOf(l)>=0&&(this[l]=c[l]);this.id="",this.objectNumber=-1}function eo(c,o){this.gState=c,this.matrix=o,this.id="",this.objectNumber=-1}function vo(c,o,l,b,I){if(!(this instanceof vo))return new vo(c,o,l,b,I);this.type=c==="axial"?2:3,this.coords=o,this.colors=l,eo.call(this,b,I)}function ba(c,o,l,b,I){if(!(this instanceof ba))return new ba(c,o,l,b,I);this.boundingBox=c,this.xStep=o,this.yStep=l,this.stream="",this.cloneIndex=0,eo.call(this,b,I)}function Ai(c){var o,l=typeof arguments[0]=="string"?arguments[0]:"p",b=arguments[1],I=arguments[2],C=arguments[3],N=[],$=1,ae=16,_e="S",Ze=null;(0,pe.Z)(c=c||{})==="object"&&(l=c.orientation,b=c.unit||b,I=c.format||I,C=c.compress||c.compressPdf||C,(Ze=c.encryption||null)!==null&&(Ze.userPassword=Ze.userPassword||"",Ze.ownerPassword=Ze.ownerPassword||"",Ze.userPermissions=Ze.userPermissions||[]),$=typeof c.userUnit=="number"?Math.abs(c.userUnit):1,c.precision!==void 0&&(o=c.precision),c.floatPrecision!==void 0&&(ae=c.floatPrecision),_e=c.defaultPathOperation||"S"),N=c.filters||(C===!0?["FlateEncode"]:N),b=b||"mm",l=(""+(l||"P")).toLowerCase();var Ve=c.putOnlyUsedFonts||!1,it={},ye={internal:{},__private__:{}};ye.__private__.PubSub=ja;var kt="1.3",bt=ye.__private__.getPdfVersion=function(){return kt};ye.__private__.setPdfVersion=function(D){kt=D};var Dt={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]};ye.__private__.getPageFormats=function(){return Dt};var ht=ye.__private__.getPageFormat=function(D){return Dt[D]};I=I||"a4";var Pt={COMPAT:"compat",ADVANCED:"advanced"},ir=Pt.COMPAT;function xr(){this.saveGraphicsState(),vt(new Mi(vn,0,0,-vn,0,Rc()*vn).toString()+" cm"),this.setFontSize(this.getFontSize()/vn),_e="n",ir=Pt.ADVANCED}function Hr(){this.restoreGraphicsState(),_e="S",ir=Pt.COMPAT}var hn=ye.__private__.combineFontStyleAndFontWeight=function(D,Ge){if(D=="bold"&&Ge=="normal"||D=="bold"&&Ge==400||D=="normal"&&Ge=="italic"||D=="bold"&&Ge=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Ge&&(D=Ge==400||Ge==="normal"?D==="italic"?"italic":"normal":Ge!=700&&Ge!=="bold"||D!=="normal"?(Ge==700?"bold":Ge)+""+D:"bold"),D};ye.advancedAPI=function(D){var Ge=ir===Pt.COMPAT;return Ge&&xr.call(this),typeof D!="function"||(D(this),Ge&&Hr.call(this)),this},ye.compatAPI=function(D){var Ge=ir===Pt.ADVANCED;return Ge&&Hr.call(this),typeof D!="function"||(D(this),Ge&&xr.call(this)),this},ye.isAdvancedAPI=function(){return ir===Pt.ADVANCED};var Lr,Vt=function(D){if(ir!==Pt.ADVANCED)throw new Error(D+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Or=ye.roundToPrecision=ye.__private__.roundToPrecision=function(D,Ge){var Lt=o||Ge;if(isNaN(D)||isNaN(Lt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return D.toFixed(Lt).replace(/0+$/,"")};Lr=ye.hpf=ye.__private__.hpf=typeof ae=="number"?function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return Or(D,ae)}:ae==="smart"?function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return Or(D,D>-1&&D<1?16:5)}:function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return Or(D,16)};var Jr=ye.f2=ye.__private__.f2=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.f2");return Or(D,2)},gt=ye.__private__.f3=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.f3");return Or(D,3)},Ct=ye.scale=ye.__private__.scale=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.scale");return ir===Pt.COMPAT?D*vn:ir===Pt.ADVANCED?D:void 0},rr=function(D){return ir===Pt.COMPAT?Rc()-D:ir===Pt.ADVANCED?D:void 0},T=function(D){return Ct(rr(D))};ye.__private__.setPrecision=ye.setPrecision=function(D){typeof parseInt(D,10)=="number"&&(o=parseInt(D,10))};var re,Be="00000000000000000000000000000000",Ue=ye.__private__.getFileId=function(){return Be},Ke=ye.__private__.setFileId=function(D){return Be=D!==void 0&&/^[a-fA-F0-9]{32}$/.test(D)?D.toUpperCase():Be.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Ze!==null&&(Fs=new na(Ze.userPermissions,Ze.userPassword,Ze.ownerPassword,Be)),Be};ye.setFileId=function(D){return Ke(D),this},ye.getFileId=function(){return Ue()};var Xe=ye.__private__.convertDateToPDFDate=function(D){var Ge=D.getTimezoneOffset(),Lt=Ge<0?"+":"-",Yt=Math.floor(Math.abs(Ge/60)),br=Math.abs(Ge%60),Xr=[Lt,Ye(Yt),"'",Ye(br),"'"].join("");return["D:",D.getFullYear(),Ye(D.getMonth()+1),Ye(D.getDate()),Ye(D.getHours()),Ye(D.getMinutes()),Ye(D.getSeconds()),Xr].join("")},ut=ye.__private__.convertPDFDateToDate=function(D){var Ge=parseInt(D.substr(2,4),10),Lt=parseInt(D.substr(6,2),10)-1,Yt=parseInt(D.substr(8,2),10),br=parseInt(D.substr(10,2),10),Xr=parseInt(D.substr(12,2),10),En=parseInt(D.substr(14,2),10);return new Date(Ge,Lt,Yt,br,Xr,En,0)},Et=ye.__private__.setCreationDate=function(D){var Ge;if(D===void 0&&(D=new Date),D instanceof Date)Ge=Xe(D);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(D))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Ge=D}return re=Ge},le=ye.__private__.getCreationDate=function(D){var Ge=re;return D==="jsDate"&&(Ge=ut(re)),Ge};ye.setCreationDate=function(D){return Et(D),this},ye.getCreationDate=function(D){return le(D)};var Re,Ye=ye.__private__.padd2=function(D){return("0"+parseInt(D)).slice(-2)},et=ye.__private__.padd2Hex=function(D){return("00"+(D=D.toString())).substr(D.length)},yt=0,_t=[],Mt=[],Rt=0,lr=[],Ar=[],gr=!1,_r=Mt,dn=function(){yt=0,Rt=0,Mt=[],_t=[],lr=[],en=no(),fa=no()};ye.__private__.setCustomOutputDestination=function(D){gr=!0,_r=D};var ar=function(D){gr||(_r=D)};ye.__private__.resetCustomOutputDestination=function(){gr=!1,_r=Mt};var vt=ye.__private__.out=function(D){return D=D.toString(),Rt+=D.length+1,_r.push(D),_r},Fn=ye.__private__.write=function(D){return vt(arguments.length===1?D.toString():Array.prototype.join.call(arguments," "))},gn=ye.__private__.getArrayBuffer=function(D){for(var Ge=D.length,Lt=new ArrayBuffer(Ge),Yt=new Uint8Array(Lt);Ge--;)Yt[Ge]=D.charCodeAt(Ge);return Lt},yr=[["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]];ye.__private__.getStandardFonts=function(){return yr};var Ur=c.fontSize||16;ye.__private__.setFontSize=ye.setFontSize=function(D){return Ur=ir===Pt.ADVANCED?D/vn:D,this};var Rr,wr=ye.__private__.getFontSize=ye.getFontSize=function(){return ir===Pt.COMPAT?Ur:Ur*vn},Zr=c.R2L||!1;ye.__private__.setR2L=ye.setR2L=function(D){return Zr=D,this},ye.__private__.getR2L=ye.getR2L=function(){return Zr};var Cn,Gn=ye.__private__.setZoomMode=function(D){var Ge=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(D))Rr=D;else if(isNaN(D)){if(Ge.indexOf(D)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+D+'" is not recognized.');Rr=D}else Rr=parseInt(D,10)};ye.__private__.getZoomMode=function(){return Rr};var Zn,Nn=ye.__private__.setPageMode=function(D){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(D)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+D+'" is not recognized.');Cn=D};ye.__private__.getPageMode=function(){return Cn};var di=ye.__private__.setLayoutMode=function(D){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(D)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+D+'" is not recognized.');Zn=D};ye.__private__.getLayoutMode=function(){return Zn},ye.__private__.setDisplayMode=ye.setDisplayMode=function(D,Ge,Lt){return Gn(D),di(Ge),Nn(Lt),this};var zn={title:"",subject:"",author:"",keywords:"",creator:""};ye.__private__.getDocumentProperty=function(D){if(Object.keys(zn).indexOf(D)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zn[D]},ye.__private__.getDocumentProperties=function(){return zn},ye.__private__.setDocumentProperties=ye.setProperties=ye.setDocumentProperties=function(D){for(var Ge in zn)zn.hasOwnProperty(Ge)&&D[Ge]&&(zn[Ge]=D[Ge]);return this},ye.__private__.setDocumentProperty=function(D,Ge){if(Object.keys(zn).indexOf(D)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zn[D]=Ge};var Ii,vn,_a,Hi,Ri,ia={},Ki={},Qa=[],Gi={},As={},Sn={},fi={},mi=null,$n=0,ai=[],kn=new ja(ye),Qi=c.hotfixes||[],Xi={},qi={},Mo=[],Mi=function D(Ge,Lt,Yt,br,Xr,En){if(!(this instanceof D))return new D(Ge,Lt,Yt,br,Xr,En);isNaN(Ge)&&(Ge=1),isNaN(Lt)&&(Lt=0),isNaN(Yt)&&(Yt=0),isNaN(br)&&(br=1),isNaN(Xr)&&(Xr=0),isNaN(En)&&(En=0),this._matrix=[Ge,Lt,Yt,br,Xr,En]};Object.defineProperty(Mi.prototype,"sx",{get:function(){return this._matrix[0]},set:function(D){this._matrix[0]=D}}),Object.defineProperty(Mi.prototype,"shy",{get:function(){return this._matrix[1]},set:function(D){this._matrix[1]=D}}),Object.defineProperty(Mi.prototype,"shx",{get:function(){return this._matrix[2]},set:function(D){this._matrix[2]=D}}),Object.defineProperty(Mi.prototype,"sy",{get:function(){return this._matrix[3]},set:function(D){this._matrix[3]=D}}),Object.defineProperty(Mi.prototype,"tx",{get:function(){return this._matrix[4]},set:function(D){this._matrix[4]=D}}),Object.defineProperty(Mi.prototype,"ty",{get:function(){return this._matrix[5]},set:function(D){this._matrix[5]=D}}),Object.defineProperty(Mi.prototype,"a",{get:function(){return this._matrix[0]},set:function(D){this._matrix[0]=D}}),Object.defineProperty(Mi.prototype,"b",{get:function(){return this._matrix[1]},set:function(D){this._matrix[1]=D}}),Object.defineProperty(Mi.prototype,"c",{get:function(){return this._matrix[2]},set:function(D){this._matrix[2]=D}}),Object.defineProperty(Mi.prototype,"d",{get:function(){return this._matrix[3]},set:function(D){this._matrix[3]=D}}),Object.defineProperty(Mi.prototype,"e",{get:function(){return this._matrix[4]},set:function(D){this._matrix[4]=D}}),Object.defineProperty(Mi.prototype,"f",{get:function(){return this._matrix[5]},set:function(D){this._matrix[5]=D}}),Object.defineProperty(Mi.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Mi.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Mi.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Mi.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Mi.prototype.join=function(D){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Lr).join(D)},Mi.prototype.multiply=function(D){var Ge=D.sx*this.sx+D.shy*this.shx,Lt=D.sx*this.shy+D.shy*this.sy,Yt=D.shx*this.sx+D.sy*this.shx,br=D.shx*this.shy+D.sy*this.sy,Xr=D.tx*this.sx+D.ty*this.shx+this.tx,En=D.tx*this.shy+D.ty*this.sy+this.ty;return new Mi(Ge,Lt,Yt,br,Xr,En)},Mi.prototype.decompose=function(){var D=this.sx,Ge=this.shy,Lt=this.shx,Yt=this.sy,br=this.tx,Xr=this.ty,En=Math.sqrt(D*D+Ge*Ge),Li=(D/=En)*Lt+(Ge/=En)*Yt;Lt-=D*Li,Yt-=Ge*Li;var ta=Math.sqrt(Lt*Lt+Yt*Yt);return Li/=ta,D*(Yt/=ta)<Ge*(Lt/=ta)&&(D=-D,Ge=-Ge,Li=-Li,En=-En),{scale:new Mi(En,0,0,ta,0,0),translate:new Mi(1,0,0,1,br,Xr),rotate:new Mi(D,Ge,-Ge,D,0,0),skew:new Mi(1,0,Li,1,0,0)}},Mi.prototype.toString=function(D){return this.join(" ")},Mi.prototype.inversed=function(){var D=this.sx,Ge=this.shy,Lt=this.shx,Yt=this.sy,br=this.tx,Xr=this.ty,En=1/(D*Yt-Ge*Lt),Li=Yt*En,ta=-Ge*En,Pa=-Lt*En,Fa=D*En;return new Mi(Li,ta,Pa,Fa,-Li*br-Pa*Xr,-ta*br-Fa*Xr)},Mi.prototype.applyToPoint=function(D){var Ge=D.x*this.sx+D.y*this.shx+this.tx,Lt=D.x*this.shy+D.y*this.sy+this.ty;return new oc(Ge,Lt)},Mi.prototype.applyToRectangle=function(D){var Ge=this.applyToPoint(D),Lt=this.applyToPoint(new oc(D.x+D.w,D.y+D.h));return new Ku(Ge.x,Ge.y,Lt.x-Ge.x,Lt.y-Ge.y)},Mi.prototype.clone=function(){var D=this.sx,Ge=this.shy,Lt=this.shx,Yt=this.sy,br=this.tx,Xr=this.ty;return new Mi(D,Ge,Lt,Yt,br,Xr)},ye.Matrix=Mi;var ns=ye.matrixMult=function(D,Ge){return Ge.multiply(D)},ro=new Mi(1,0,0,1,0,0);ye.unitMatrix=ye.identityMatrix=ro;var Qo=function(D,Ge){if(!As[D]){var Lt=(Ge instanceof vo?"Sh":"P")+(Object.keys(Gi).length+1).toString(10);Ge.id=Lt,As[D]=Lt,Gi[Lt]=Ge,kn.publish("addPattern",Ge)}};ye.ShadingPattern=vo,ye.TilingPattern=ba,ye.addShadingPattern=function(D,Ge){return Vt("addShadingPattern()"),Qo(D,Ge),this},ye.beginTilingPattern=function(D){Vt("beginTilingPattern()"),Is(D.boundingBox[0],D.boundingBox[1],D.boundingBox[2]-D.boundingBox[0],D.boundingBox[3]-D.boundingBox[1],D.matrix)},ye.endTilingPattern=function(D,Ge){Vt("endTilingPattern()"),Ge.stream=Ar[Re].join(`
`),Qo(D,Ge),kn.publish("endTilingPattern",Ge),Mo.pop().restore()};var bn=ye.__private__.newObject=function(){var D=no();return Cs(D,!0),D},no=ye.__private__.newObjectDeferred=function(){return yt++,_t[yt]=function(){return Rt},yt},Cs=function(D,Ge){return Ge=typeof Ge=="boolean"&&Ge,_t[D]=Rt,Ge&&vt(D+" 0 obj"),D},ga=ye.__private__.newAdditionalObject=function(){var D={objId:no(),content:""};return lr.push(D),D},en=no(),fa=no(),so=ye.__private__.decodeColorString=function(D){var Ge=D.split(" ");if(Ge.length!==2||Ge[1]!=="g"&&Ge[1]!=="G")Ge.length===5&&(Ge[4]==="k"||Ge[4]==="K")&&(Ge=[(1-Ge[0])*(1-Ge[3]),(1-Ge[1])*(1-Ge[3]),(1-Ge[2])*(1-Ge[3]),"r"]);else{var Lt=parseFloat(Ge[0]);Ge=[Lt,Lt,Lt,"r"]}for(var Yt="#",br=0;br<3;br++)Yt+=("0"+Math.floor(255*parseFloat(Ge[br])).toString(16)).slice(-2);return Yt},Va=ye.__private__.encodeColorString=function(D){var Ge;typeof D=="string"&&(D={ch1:D});var Lt=D.ch1,Yt=D.ch2,br=D.ch3,Xr=D.ch4,En=D.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Lt=="string"&&Lt.charAt(0)!=="#"){var Li=new ii(Lt);if(Li.ok)Lt=Li.toHex();else if(!/^\d*\.?\d*$/.test(Lt))throw new Error('Invalid color "'+Lt+'" passed to jsPDF.encodeColorString.')}if(typeof Lt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Lt)&&(Lt="#"+Lt[1]+Lt[1]+Lt[2]+Lt[2]+Lt[3]+Lt[3]),typeof Lt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Lt)){var ta=parseInt(Lt.substr(1),16);Lt=ta>>16&255,Yt=ta>>8&255,br=255&ta}if(Yt===void 0||Xr===void 0&&Lt===Yt&&Yt===br)if(typeof Lt=="string")Ge=Lt+" "+En[0];else switch(D.precision){case 2:Ge=Jr(Lt/255)+" "+En[0];break;case 3:default:Ge=gt(Lt/255)+" "+En[0]}else if(Xr===void 0||(0,pe.Z)(Xr)==="object"){if(Xr&&!isNaN(Xr.a)&&Xr.a===0)return Ge=["1.","1.","1.",En[1]].join(" ");if(typeof Lt=="string")Ge=[Lt,Yt,br,En[1]].join(" ");else switch(D.precision){case 2:Ge=[Jr(Lt/255),Jr(Yt/255),Jr(br/255),En[1]].join(" ");break;default:case 3:Ge=[gt(Lt/255),gt(Yt/255),gt(br/255),En[1]].join(" ")}}else if(typeof Lt=="string")Ge=[Lt,Yt,br,Xr,En[2]].join(" ");else switch(D.precision){case 2:Ge=[Jr(Lt),Jr(Yt),Jr(br),Jr(Xr),En[2]].join(" ");break;case 3:default:Ge=[gt(Lt),gt(Yt),gt(br),gt(Xr),En[2]].join(" ")}return Ge},Si=ye.__private__.getFilters=function(){return N},bo=ye.__private__.putStream=function(D){var Ge=(D=D||{}).data||"",Lt=D.filters||Si(),Yt=D.alreadyAppliedFilters||[],br=D.addLength1||!1,Xr=Ge.length,En=D.objectId,Li=function(hs){return hs};if(Ze!==null&&En===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Ze!==null&&(Li=Fs.encryptor(En,0));var ta={};Lt===!0&&(Lt=["FlateEncode"]);var Pa=D.additionalKeyValues||[],Fa=(ta=Ai.API.processDataByFilters!==void 0?Ai.API.processDataByFilters(Ge,Lt):{data:Ge,reverseChain:[]}).reverseChain+(Array.isArray(Yt)?Yt.join(" "):Yt.toString());if(ta.data.length!==0&&(Pa.push({key:"Length",value:ta.data.length}),br===!0&&Pa.push({key:"Length1",value:Xr})),Fa.length!=0)if(Fa.split("/").length-1==1)Pa.push({key:"Filter",value:Fa});else{Pa.push({key:"Filter",value:"["+Fa+"]"});for(var co=0;co<Pa.length;co+=1)if(Pa[co].key==="DecodeParms"){for(var aa=[],bs=0;bs<ta.reverseChain.split("/").length-1;bs+=1)aa.push("null");aa.push(Pa[co].value),Pa[co].value="["+aa.join(" ")+"]"}}vt("<<");for(var Ts=0;Ts<Pa.length;Ts++)vt("/"+Pa[Ts].key+" "+Pa[Ts].value);vt(">>"),ta.data.length!==0&&(vt("stream"),vt(Li(ta.data)),vt("endstream"))},Ko=ye.__private__.putPage=function(D){var Ge=D.number,Lt=D.data,Yt=D.objId,br=D.contentsObjId;Cs(Yt,!0),vt("<</Type /Page"),vt("/Parent "+D.rootDictionaryObjId+" 0 R"),vt("/Resources "+D.resourceDictionaryObjId+" 0 R"),vt("/MediaBox ["+parseFloat(Lr(D.mediaBox.bottomLeftX))+" "+parseFloat(Lr(D.mediaBox.bottomLeftY))+" "+Lr(D.mediaBox.topRightX)+" "+Lr(D.mediaBox.topRightY)+"]"),D.cropBox!==null&&vt("/CropBox ["+Lr(D.cropBox.bottomLeftX)+" "+Lr(D.cropBox.bottomLeftY)+" "+Lr(D.cropBox.topRightX)+" "+Lr(D.cropBox.topRightY)+"]"),D.bleedBox!==null&&vt("/BleedBox ["+Lr(D.bleedBox.bottomLeftX)+" "+Lr(D.bleedBox.bottomLeftY)+" "+Lr(D.bleedBox.topRightX)+" "+Lr(D.bleedBox.topRightY)+"]"),D.trimBox!==null&&vt("/TrimBox ["+Lr(D.trimBox.bottomLeftX)+" "+Lr(D.trimBox.bottomLeftY)+" "+Lr(D.trimBox.topRightX)+" "+Lr(D.trimBox.topRightY)+"]"),D.artBox!==null&&vt("/ArtBox ["+Lr(D.artBox.bottomLeftX)+" "+Lr(D.artBox.bottomLeftY)+" "+Lr(D.artBox.topRightX)+" "+Lr(D.artBox.topRightY)+"]"),typeof D.userUnit=="number"&&D.userUnit!==1&&vt("/UserUnit "+D.userUnit),kn.publish("putPage",{objId:Yt,pageContext:ai[Ge],pageNumber:Ge,page:Lt}),vt("/Contents "+br+" 0 R"),vt(">>"),vt("endobj");var Xr=Lt.join(`
`);return ir===Pt.ADVANCED&&(Xr+=`
Q`),Cs(br,!0),bo({data:Xr,filters:Si(),objectId:br}),vt("endobj"),Yt},Bs=ye.__private__.putPages=function(){var D,Ge,Lt=[];for(D=1;D<=$n;D++)ai[D].objId=no(),ai[D].contentsObjId=no();for(D=1;D<=$n;D++)Lt.push(Ko({number:D,data:Ar[D],objId:ai[D].objId,contentsObjId:ai[D].contentsObjId,mediaBox:ai[D].mediaBox,cropBox:ai[D].cropBox,bleedBox:ai[D].bleedBox,trimBox:ai[D].trimBox,artBox:ai[D].artBox,userUnit:ai[D].userUnit,rootDictionaryObjId:en,resourceDictionaryObjId:fa}));Cs(en,!0),vt("<</Type /Pages");var Yt="/Kids [";for(Ge=0;Ge<$n;Ge++)Yt+=Lt[Ge]+" 0 R ";vt(Yt+"]"),vt("/Count "+$n),vt(">>"),vt("endobj"),kn.publish("postPutPages")},gs=function(D){kn.publish("putFont",{font:D,out:vt,newObject:bn,putStream:bo}),D.isAlreadyPutted!==!0&&(D.objectNumber=bn(),vt("<<"),vt("/Type /Font"),vt("/BaseFont /"+Zi(D.postScriptName)),vt("/Subtype /Type1"),typeof D.encoding=="string"&&vt("/Encoding /"+D.encoding),vt("/FirstChar 32"),vt("/LastChar 255"),vt(">>"),vt("endobj"))},is=function(){for(var D in ia)ia.hasOwnProperty(D)&&(Ve===!1||Ve===!0&&it.hasOwnProperty(D))&&gs(ia[D])},us=function(D){D.objectNumber=bn();var Ge=[];Ge.push({key:"Type",value:"/XObject"}),Ge.push({key:"Subtype",value:"/Form"}),Ge.push({key:"BBox",value:"["+[Lr(D.x),Lr(D.y),Lr(D.x+D.width),Lr(D.y+D.height)].join(" ")+"]"}),Ge.push({key:"Matrix",value:"["+D.matrix.toString()+"]"});var Lt=D.pages[1].join(`
`);bo({data:Lt,additionalKeyValues:Ge,objectId:D.objectNumber}),vt("endobj")},bl=function(){for(var D in Xi)Xi.hasOwnProperty(D)&&us(Xi[D])},as=function(D,Ge){var Lt,Yt=[],br=1/(Ge-1);for(Lt=0;Lt<1;Lt+=br)Yt.push(Lt);if(Yt.push(1),D[0].offset!=0){var Xr={offset:0,color:D[0].color};D.unshift(Xr)}if(D[D.length-1].offset!=1){var En={offset:1,color:D[D.length-1].color};D.push(En)}for(var Li="",ta=0,Pa=0;Pa<Yt.length;Pa++){for(Lt=Yt[Pa];Lt>D[ta+1].offset;)ta++;var Fa=D[ta].offset,co=(Lt-Fa)/(D[ta+1].offset-Fa),aa=D[ta].color,bs=D[ta+1].color;Li+=et(Math.round((1-co)*aa[0]+co*bs[0]).toString(16))+et(Math.round((1-co)*aa[1]+co*bs[1]).toString(16))+et(Math.round((1-co)*aa[2]+co*bs[2]).toString(16))}return Li.trim()},$s=function(D,Ge){Ge||(Ge=21);var Lt=bn(),Yt=as(D.colors,Ge),br=[];br.push({key:"FunctionType",value:"0"}),br.push({key:"Domain",value:"[0.0 1.0]"}),br.push({key:"Size",value:"["+Ge+"]"}),br.push({key:"BitsPerSample",value:"8"}),br.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),br.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bo({data:Yt,additionalKeyValues:br,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Lt}),vt("endobj"),D.objectNumber=bn(),vt("<< /ShadingType "+D.type),vt("/ColorSpace /DeviceRGB");var Xr="/Coords ["+Lr(parseFloat(D.coords[0]))+" "+Lr(parseFloat(D.coords[1]))+" ";D.type===2?Xr+=Lr(parseFloat(D.coords[2]))+" "+Lr(parseFloat(D.coords[3])):Xr+=Lr(parseFloat(D.coords[2]))+" "+Lr(parseFloat(D.coords[3]))+" "+Lr(parseFloat(D.coords[4]))+" "+Lr(parseFloat(D.coords[5])),vt(Xr+="]"),D.matrix&&vt("/Matrix ["+D.matrix.toString()+"]"),vt("/Function "+Lt+" 0 R"),vt("/Extend [true true]"),vt(">>"),vt("endobj")},ds=function(D,Ge){var Lt=no(),Yt=bn();Ge.push({resourcesOid:Lt,objectOid:Yt}),D.objectNumber=Yt;var br=[];br.push({key:"Type",value:"/Pattern"}),br.push({key:"PatternType",value:"1"}),br.push({key:"PaintType",value:"1"}),br.push({key:"TilingType",value:"1"}),br.push({key:"BBox",value:"["+D.boundingBox.map(Lr).join(" ")+"]"}),br.push({key:"XStep",value:Lr(D.xStep)}),br.push({key:"YStep",value:Lr(D.yStep)}),br.push({key:"Resources",value:Lt+" 0 R"}),D.matrix&&br.push({key:"Matrix",value:"["+D.matrix.toString()+"]"}),bo({data:D.stream,additionalKeyValues:br,objectId:D.objectNumber}),vt("endobj")},Lo=function(D){var Ge;for(Ge in Gi)Gi.hasOwnProperty(Ge)&&(Gi[Ge]instanceof vo?$s(Gi[Ge]):Gi[Ge]instanceof ba&&ds(Gi[Ge],D))},wo=function(D){for(var Ge in D.objectNumber=bn(),vt("<<"),D)switch(Ge){case"opacity":vt("/ca "+Jr(D[Ge]));break;case"stroke-opacity":vt("/CA "+Jr(D[Ge]))}vt(">>"),vt("endobj")},qs=function(){var D;for(D in Sn)Sn.hasOwnProperty(D)&&wo(Sn[D])},Ol=function(){for(var D in vt("/XObject <<"),Xi)Xi.hasOwnProperty(D)&&Xi[D].objectNumber>=0&&vt("/"+D+" "+Xi[D].objectNumber+" 0 R");kn.publish("putXobjectDict"),vt(">>")},zl=function(){Fs.oid=bn(),vt("<<"),vt("/Filter /Standard"),vt("/V "+Fs.v),vt("/R "+Fs.r),vt("/U <"+Fs.toHexString(Fs.U)+">"),vt("/O <"+Fs.toHexString(Fs.O)+">"),vt("/P "+Fs.P),vt(">>"),vt("endobj")},wl=function(){for(var D in vt("/Font <<"),ia)ia.hasOwnProperty(D)&&(Ve===!1||Ve===!0&&it.hasOwnProperty(D))&&vt("/"+D+" "+ia[D].objectNumber+" 0 R");vt(">>")},BA=function(){if(Object.keys(Gi).length>0){for(var D in vt("/Shading <<"),Gi)Gi.hasOwnProperty(D)&&Gi[D]instanceof vo&&Gi[D].objectNumber>=0&&vt("/"+D+" "+Gi[D].objectNumber+" 0 R");kn.publish("putShadingPatternDict"),vt(">>")}},Xc=function(D){if(Object.keys(Gi).length>0){for(var Ge in vt("/Pattern <<"),Gi)Gi.hasOwnProperty(Ge)&&Gi[Ge]instanceof ye.TilingPattern&&Gi[Ge].objectNumber>=0&&Gi[Ge].objectNumber<D&&vt("/"+Ge+" "+Gi[Ge].objectNumber+" 0 R");kn.publish("putTilingPatternDict"),vt(">>")}},xa=function(){if(Object.keys(Sn).length>0){var D;for(D in vt("/ExtGState <<"),Sn)Sn.hasOwnProperty(D)&&Sn[D].objectNumber>=0&&vt("/"+D+" "+Sn[D].objectNumber+" 0 R");kn.publish("putGStateDict"),vt(">>")}},ea=function(D){Cs(D.resourcesOid,!0),vt("<<"),vt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),wl(),BA(),Xc(D.objectOid),xa(),Ol(),vt(">>"),vt("endobj")},vs=function(){var D=[];is(),qs(),bl(),Lo(D),kn.publish("putResources"),D.forEach(ea),ea({resourcesOid:fa,objectOid:Number.MAX_SAFE_INTEGER}),kn.publish("postPutResources")},go=function(){kn.publish("putAdditionalObjects");for(var D=0;D<lr.length;D++){var Ge=lr[D];Cs(Ge.objId,!0),vt(Ge.content),vt("endobj")}kn.publish("postPutAdditionalObjects")},fs=function(D){Ki[D.fontName]=Ki[D.fontName]||{},Ki[D.fontName][D.fontStyle]=D.id},Ss=function(D,Ge,Lt,Yt,br){var Xr={id:"F"+(Object.keys(ia).length+1).toString(10),postScriptName:D,fontName:Ge,fontStyle:Lt,encoding:Yt,isStandardFont:br||!1,metadata:{}};return kn.publish("addFont",{font:Xr,instance:this}),ia[Xr.id]=Xr,fs(Xr),Xr.id},Es=function(D){for(var Ge=0,Lt=yr.length;Ge<Lt;Ge++){var Yt=Ss.call(this,D[Ge][0],D[Ge][1],D[Ge][2],yr[Ge][3],!0);Ve===!1&&(it[Yt]=!0);var br=D[Ge][0].split("-");fs({id:Yt,fontName:br[0],fontStyle:br[1]||""})}kn.publish("addFonts",{fonts:ia,dictionary:Ki})},_s=function(D){return D.foo=function(){try{return D.apply(this,arguments)}catch(Yt){var Ge=Yt.stack||"";~Ge.indexOf(" at ")&&(Ge=Ge.split(" at ")[1]);var Lt="Error in function "+Ge.split(`
`)[0].split("<")[0]+": "+Yt.message;if(!on.console)throw new Error(Lt);on.console.error(Lt,Yt),on.alert&&alert(Lt)}},D.foo.bar=D,D.foo},Dc=function(D,Ge){var Lt,Yt,br,Xr,En,Li,ta,Pa,Fa;if(br=(Ge=Ge||{}).sourceEncoding||"Unicode",En=Ge.outputEncoding,(Ge.autoencode||En)&&ia[Ii].metadata&&ia[Ii].metadata[br]&&ia[Ii].metadata[br].encoding&&(Xr=ia[Ii].metadata[br].encoding,!En&&ia[Ii].encoding&&(En=ia[Ii].encoding),!En&&Xr.codePages&&(En=Xr.codePages[0]),typeof En=="string"&&(En=Xr[En]),En)){for(ta=!1,Li=[],Lt=0,Yt=D.length;Lt<Yt;Lt++)(Pa=En[D.charCodeAt(Lt)])?Li.push(String.fromCharCode(Pa)):Li.push(D[Lt]),Li[Lt].charCodeAt(0)>>8&&(ta=!0);D=Li.join("")}for(Lt=D.length;ta===void 0&&Lt!==0;)D.charCodeAt(Lt-1)>>8&&(ta=!0),Lt--;if(!ta)return D;for(Li=Ge.noBOM?[]:[254,255],Lt=0,Yt=D.length;Lt<Yt;Lt++){if((Fa=(Pa=D.charCodeAt(Lt))>>8)>>8)throw new Error("Character at position "+Lt+" of string '"+D+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Li.push(Fa),Li.push(Pa-(Fa<<8))}return String.fromCharCode.apply(void 0,Li)},ll=ye.__private__.pdfEscape=ye.pdfEscape=function(D,Ge){return Dc(D,Ge).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gc=ye.__private__.beginPage=function(D){Ar[++$n]=[],ai[$n]={objId:0,contentsObjId:0,userUnit:Number($),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(D[0]),topRightY:Number(D[1])}},xl($n),ar(Ar[Re])},Ca=function(D,Ge){var Lt,Yt,br;switch(l=Ge||l,typeof D=="string"&&(Lt=ht(D.toLowerCase()),Array.isArray(Lt)&&(Yt=Lt[0],br=Lt[1])),Array.isArray(D)&&(Yt=D[0]*vn,br=D[1]*vn),isNaN(Yt)&&(Yt=I[0],br=I[1]),(Yt>14400||br>14400)&&(Ln.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Yt=Math.min(14400,Yt),br=Math.min(14400,br)),I=[Yt,br],l.substr(0,1)){case"l":br>Yt&&(I=[br,Yt]);break;case"p":Yt>br&&(I=[br,Yt])}gc(I),Wl(Ba),vt(la),Qu!==0&&vt(Qu+" J"),WA!==0&&vt(WA+" j"),kn.publish("addPage",{pageNumber:$n})},So=function(D){D>0&&D<=$n&&(Ar.splice(D,1),ai.splice(D,1),$n--,Re>$n&&(Re=$n),this.setPage(Re))},xl=function(D){D>0&&D<=$n&&(Re=D)},rc=ye.__private__.getNumberOfPages=ye.getNumberOfPages=function(){return Ar.length-1},Os=function(D,Ge,Lt){var Yt,br=void 0;return Lt=Lt||{},D=D!==void 0?D:ia[Ii].fontName,Ge=Ge!==void 0?Ge:ia[Ii].fontStyle,Yt=D.toLowerCase(),Ki[Yt]!==void 0&&Ki[Yt][Ge]!==void 0?br=Ki[Yt][Ge]:Ki[D]!==void 0&&Ki[D][Ge]!==void 0?br=Ki[D][Ge]:Lt.disableWarning===!1&&Ln.warn("Unable to look up font label for font '"+D+"', '"+Ge+"'. Refer to getFontList() for available fonts."),br||Lt.noFallback||(br=Ki.times[Ge])==null&&(br=Ki.times.normal),br},HA=ye.__private__.putInfo=function(){var D=bn(),Ge=function(Yt){return Yt};for(var Lt in Ze!==null&&(Ge=Fs.encryptor(D,0)),vt("<<"),vt("/Producer ("+ll(Ge("jsPDF "+Ai.version))+")"),zn)zn.hasOwnProperty(Lt)&&zn[Lt]&&vt("/"+Lt.substr(0,1).toUpperCase()+Lt.substr(1)+" ("+ll(Ge(zn[Lt]))+")");vt("/CreationDate ("+ll(Ge(re))+")"),vt(">>"),vt("endobj")},Cl=ye.__private__.putCatalog=function(D){var Ge=(D=D||{}).rootDictionaryObjId||en;switch(bn(),vt("<<"),vt("/Type /Catalog"),vt("/Pages "+Ge+" 0 R"),Rr||(Rr="fullwidth"),Rr){case"fullwidth":vt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":vt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":vt("/OpenAction [3 0 R /Fit]");break;case"original":vt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Lt=""+Rr;Lt.substr(Lt.length-1)==="%"&&(Rr=parseInt(Rr)/100),typeof Rr=="number"&&vt("/OpenAction [3 0 R /XYZ null null "+Jr(Rr)+"]")}switch(Zn||(Zn="continuous"),Zn){case"continuous":vt("/PageLayout /OneColumn");break;case"single":vt("/PageLayout /SinglePage");break;case"two":case"twoleft":vt("/PageLayout /TwoColumnLeft");break;case"tworight":vt("/PageLayout /TwoColumnRight")}Cn&&vt("/PageMode /"+Cn),kn.publish("putCatalog"),vt(">>"),vt("endobj")},jA=ye.__private__.putTrailer=function(){vt("trailer"),vt("<<"),vt("/Size "+(yt+1)),vt("/Root "+yt+" 0 R"),vt("/Info "+(yt-1)+" 0 R"),Ze!==null&&vt("/Encrypt "+Fs.oid+" 0 R"),vt("/ID [ <"+Be+"> <"+Be+"> ]"),vt(">>")},zA=ye.__private__.putHeader=function(){vt("%PDF-"+kt),vt("%\xBA\xDF\xAC\xE0")},Jc=ye.__private__.putXRef=function(){var D="0000000000";vt("xref"),vt("0 "+(yt+1)),vt("0000000000 65535 f ");for(var Ge=1;Ge<=yt;Ge++)typeof _t[Ge]=="function"?vt((D+_t[Ge]()).slice(-10)+" 00000 n "):_t[Ge]!==void 0?vt((D+_t[Ge]).slice(-10)+" 00000 n "):vt("0000000000 00000 n ")},$l=ye.__private__.buildDocument=function(){dn(),ar(Mt),kn.publish("buildDocument"),zA(),Bs(),go(),vs(),Ze!==null&&zl(),HA(),Cl();var D=Rt;return Jc(),jA(),vt("startxref"),vt(""+D),vt("%%EOF"),ar(Ar[Re]),Mt.join(`
`)},vc=ye.__private__.getBlob=function(D){return new Blob([gn(D)],{type:"application/pdf"})},nc=ye.output=ye.__private__.output=_s(function(D,Ge){switch(typeof(Ge=Ge||{})=="string"?Ge={filename:Ge}:Ge.filename=Ge.filename||"generated.pdf",D){case void 0:return $l();case"save":ye.save(Ge.filename);break;case"arraybuffer":return gn($l());case"blob":return vc($l());case"bloburi":case"bloburl":if(on.URL!==void 0&&typeof on.URL.createObjectURL=="function")return on.URL&&on.URL.createObjectURL(vc($l()))||void 0;Ln.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Lt="",Yt=$l();try{Lt=Bi(Yt)}catch(bs){Lt=Bi(unescape(encodeURIComponent(Yt)))}return"data:application/pdf;filename="+Ge.filename+";base64,"+Lt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(on)==="[object Window]"){var br="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Xr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Ge.pdfObjectUrl&&(br=Ge.pdfObjectUrl,Xr="");var En='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+br+'"'+Xr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Ge)+");<\/script></body></html>",Li=on.open();return Li!==null&&Li.document.write(En),Li}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(on)==="[object Window]"){var ta='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Ge.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Ge.filename+'" width="500px" height="400px" /></body></html>',Pa=on.open();if(Pa!==null){Pa.document.write(ta);var Fa=this;Pa.document.documentElement.querySelector("#pdfViewer").onload=function(){Pa.document.title=Ge.filename,Pa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Fa.output("bloburl"))}}return Pa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(on)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var co='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Ge)+'"></iframe></body></html>',aa=on.open();if(aa!==null&&(aa.document.write(co),aa.document.title=Ge.filename),aa||typeof safari=="undefined")return aa;break;case"datauri":case"dataurl":return on.document.location.href=this.output("datauristring",Ge);default:return null}}),fn=function(D){return Array.isArray(Qi)===!0&&Qi.indexOf(D)>-1};switch(b){case"pt":vn=1;break;case"mm":vn=72/25.4;break;case"cm":vn=72/2.54;break;case"in":vn=72;break;case"px":vn=fn("px_scaling")==1?.75:96/72;break;case"pc":case"em":vn=12;break;case"ex":vn=6;break;default:if(typeof b!="number")throw new Error("Invalid unit: "+b);vn=b}var Fs=null;Et(),Ke();var SA=function(D){return Ze!==null?Fs.encryptor(D,0):function(Ge){return Ge}},AA=ye.__private__.getPageInfo=ye.getPageInfo=function(D){if(isNaN(D)||D%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ai[D].objId,pageNumber:D,pageContext:ai[D]}},sa=ye.__private__.getPageInfoByObjId=function(D){if(isNaN(D)||D%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Ge in ai)if(ai[Ge].objId===D)break;return AA(Ge)},EA=ye.__private__.getCurrentPageInfo=ye.getCurrentPageInfo=function(){return{objId:ai[Re].objId,pageNumber:Re,pageContext:ai[Re]}};ye.addPage=function(){return Ca.apply(this,arguments),this},ye.setPage=function(){return xl.apply(this,arguments),ar.call(this,Ar[Re]),this},ye.insertPage=function(D){return this.addPage(),this.movePage(Re,D),this},ye.movePage=function(D,Ge){var Lt,Yt;if(D>Ge){Lt=Ar[D],Yt=ai[D];for(var br=D;br>Ge;br--)Ar[br]=Ar[br-1],ai[br]=ai[br-1];Ar[Ge]=Lt,ai[Ge]=Yt,this.setPage(Ge)}else if(D<Ge){Lt=Ar[D],Yt=ai[D];for(var Xr=D;Xr<Ge;Xr++)Ar[Xr]=Ar[Xr+1],ai[Xr]=ai[Xr+1];Ar[Ge]=Lt,ai[Ge]=Yt,this.setPage(Ge)}return this},ye.deletePage=function(){return So.apply(this,arguments),this},ye.__private__.text=ye.text=function(D,Ge,Lt,Yt,br){var Xr,En,Li,ta,Pa,Fa,co,aa,bs,Ts=(Yt=Yt||{}).scope||this;if(typeof D=="number"&&typeof Ge=="number"&&(typeof Lt=="string"||Array.isArray(Lt))){var hs=Lt;Lt=Ge,Ge=D,D=hs}if(arguments[3]instanceof Mi?(Vt("The transform parameter of text() with a Matrix value"),bs=br):(Li=arguments[4],ta=arguments[5],(0,pe.Z)(co=arguments[3])==="object"&&co!==null||(typeof Li=="string"&&(ta=Li,Li=null),typeof co=="string"&&(ta=co,co=null),typeof co=="number"&&(Li=co,co=null),Yt={flags:co,angle:Li,align:ta})),isNaN(Ge)||isNaN(Lt)||D==null)throw new Error("Invalid arguments passed to jsPDF.text");if(D.length===0)return Ts;var el="",Bl=!1,sc=typeof Yt.lineHeightFactor=="number"?Yt.lineHeightFactor:va,Xl=Ts.internal.scaleFactor;function LA(Jo){return Jo=Jo.split(" ").join(Array(Yt.TabLen||9).join(" ")),ll(Jo,co)}function qc(Jo){for(var Ho,Us=Jo.concat(),Rs=[],Ua=Us.length;Ua--;)typeof(Ho=Us.shift())=="string"?Rs.push(Ho):Array.isArray(Jo)&&(Ho.length===1||Ho[1]===void 0&&Ho[2]===void 0)?Rs.push(Ho[0]):Rs.push([Ho[0],Ho[1],Ho[2]]);return Rs}function uu(Jo,Ho){var Us;if(typeof Jo=="string")Us=Ho(Jo)[0];else if(Array.isArray(Jo)){for(var Rs,Ua,hi=Jo.concat(),ec=[],tu=hi.length;tu--;)typeof(Rs=hi.shift())=="string"?ec.push(Ho(Rs)[0]):Array.isArray(Rs)&&typeof Rs[0]=="string"&&(Ua=Ho(Rs[0],Rs[1],Rs[2]),ec.push([Ua[0],Ua[1],Ua[2]]));Us=ec}return Us}var XA=!1,kA=!0;if(typeof D=="string")XA=!0;else if(Array.isArray(D)){var JA=D.concat();En=[];for(var du,pl=JA.length;pl--;)(typeof(du=JA.shift())!="string"||Array.isArray(du)&&typeof du[0]!="string")&&(kA=!1);XA=kA}if(XA===!1)throw new Error('Type of text must be string or Array. "'+D+'" is not recognized.');typeof D=="string"&&(D=D.match(/[\r?\n]/)?D.split(/\r\n|\r|\n/g):[D]);var Qc=Ur/Ts.internal.scaleFactor,YA=Qc*(sc-1);switch(Yt.baseline){case"bottom":Lt-=YA;break;case"top":Lt+=Qc-YA;break;case"hanging":Lt+=Qc-2*YA;break;case"middle":Lt+=Qc/2-YA}if((Fa=Yt.maxWidth||0)>0&&(typeof D=="string"?D=Ts.splitTextToSize(D,Fa):Object.prototype.toString.call(D)==="[object Array]"&&(D=D.reduce(function(Jo,Ho){return Jo.concat(Ts.splitTextToSize(Ho,Fa))},[]))),Xr={text:D,x:Ge,y:Lt,options:Yt,mutex:{pdfEscape:ll,activeFontKey:Ii,fonts:ia,activeFontSize:Ur}},kn.publish("preProcessText",Xr),D=Xr.text,Li=(Yt=Xr.options).angle,!(bs instanceof Mi)&&Li&&typeof Li=="number"){Li*=Math.PI/180,Yt.rotationDirection===0&&(Li=-Li),ir===Pt.ADVANCED&&(Li=-Li);var rs=Math.cos(Li),Kc=Math.sin(Li);bs=new Mi(rs,Kc,-Kc,rs,0,0)}else Li&&Li instanceof Mi&&(bs=Li);ir!==Pt.ADVANCED||bs||(bs=ro),(Pa=Yt.charSpace||zr)!==void 0&&(el+=Lr(Ct(Pa))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(aa=Yt.horizontalScale)!==void 0&&(el+=Lr(100*aa)+` Tz
`),Yt.lang;var tl=-1,eA=Yt.renderingMode!==void 0?Yt.renderingMode:Yt.stroke,rl=Ts.internal.getCurrentPageInfo().pageContext;switch(eA){case 0:case!1:case"fill":tl=0;break;case 1:case!0:case"stroke":tl=1;break;case 2:case"fillThenStroke":tl=2;break;case 3:case"invisible":tl=3;break;case 4:case"fillAndAddForClipping":tl=4;break;case 5:case"strokeAndAddPathForClipping":tl=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":tl=6;break;case 7:case"addToPathForClipping":tl=7}var Jl=rl.usedRenderingMode!==void 0?rl.usedRenderingMode:-1;tl!==-1?el+=tl+` Tr
`:Jl!==-1&&(el+=`0 Tr
`),tl!==-1&&(rl.usedRenderingMode=tl),ta=Yt.align||"left";var ss,Tl=Ur*sc,lc=Ts.internal.pageSize.getWidth(),wc=ia[Ii];Pa=Yt.charSpace||zr,Fa=Yt.maxWidth||0,co=Object.assign({autoencode:!0,noBOM:!0},Yt.flags);var cc=[],Yl=function(Jo){return Ts.getStringUnitWidth(Jo,{font:wc,charSpace:Pa,fontSize:Ur,doKerning:!1})*Ur/Xl};if(Object.prototype.toString.call(D)==="[object Array]"){var cl;En=qc(D),ta!=="left"&&(ss=En.map(Yl));var nl,xc=0;if(ta==="right"){Ge-=ss[0],D=[],pl=En.length;for(var tA=0;tA<pl;tA++)tA===0?(nl=ys(Ge),cl=ac(Lt)):(nl=Ct(xc-ss[tA]),cl=-Tl),D.push([En[tA],nl,cl]),xc=ss[tA]}else if(ta==="center"){Ge-=ss[0]/2,D=[],pl=En.length;for(var rA=0;rA<pl;rA++)rA===0?(nl=ys(Ge),cl=ac(Lt)):(nl=Ct((xc-ss[rA])/2),cl=-Tl),D.push([En[rA],nl,cl]),xc=ss[rA]}else if(ta==="left"){D=[],pl=En.length;for(var qA=0;qA<pl;qA++)D.push(En[qA])}else if(ta==="justify"&&wc.encoding==="Identity-H"){D=[],pl=En.length,Fa=Fa!==0?Fa:lc;for(var uA=0,Ms=0;Ms<pl;Ms++)if(cl=Ms===0?ac(Lt):-Tl,nl=Ms===0?ys(Ge):uA,Ms<pl-1){var eu=Ct((Fa-ss[Ms])/(En[Ms].split(" ").length-1)),Ul=En[Ms].split(" ");D.push([Ul[0]+" ",nl,cl]),uA=0;for(var Cc=1;Cc<Ul.length;Cc++){var fu=(Yl(Ul[Cc-1]+" "+Ul[Cc])-Yl(Ul[Cc]))*Xl+eu;Cc==Ul.length-1?D.push([Ul[Cc],fu,0]):D.push([Ul[Cc]+" ",fu,0]),uA-=fu}}else D.push([En[Ms],nl,cl]);D.push(["",uA,0])}else{if(ta!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(D=[],pl=En.length,Fa=Fa!==0?Fa:lc,Ms=0;Ms<pl;Ms++)cl=Ms===0?ac(Lt):-Tl,nl=Ms===0?ys(Ge):0,Ms<pl-1?cc.push(Lr(Ct((Fa-ss[Ms])/(En[Ms].split(" ").length-1)))):cc.push(0),D.push([En[Ms],nl,cl])}}var rd=typeof Yt.R2L=="boolean"?Yt.R2L:Zr;rd===!0&&(D=uu(D,function(Jo,Ho,Us){return[Jo.split("").reverse().join(""),Ho,Us]})),Xr={text:D,x:Ge,y:Lt,options:Yt,mutex:{pdfEscape:ll,activeFontKey:Ii,fonts:ia,activeFontSize:Ur}},kn.publish("postProcessText",Xr),D=Xr.text,Bl=Xr.mutex.isHex||!1;var ju=ia[Ii].encoding;ju!=="WinAnsiEncoding"&&ju!=="StandardEncoding"||(D=uu(D,function(Jo,Ho,Us){return[LA(Jo),Ho,Us]})),En=qc(D),D=[];for(var dA,Bc,Ac,uc=0,ql=1,fA=Array.isArray(En[0])?ql:uc,hA="",hu=function(Jo,Ho,Us){var Rs="";return Us instanceof Mi?(Us=typeof Yt.angle=="number"?ns(Us,new Mi(1,0,0,1,Jo,Ho)):ns(new Mi(1,0,0,1,Jo,Ho),Us),ir===Pt.ADVANCED&&(Us=ns(new Mi(1,0,0,-1,0,0),Us)),Rs=Us.join(" ")+` Tm
`):Rs=Lr(Jo)+" "+Lr(Ho)+` Td
`,Rs},Sc=0;Sc<En.length;Sc++){switch(hA="",fA){case ql:Ac=(Bl?"<":"(")+En[Sc][0]+(Bl?">":")"),dA=parseFloat(En[Sc][1]),Bc=parseFloat(En[Sc][2]);break;case uc:Ac=(Bl?"<":"(")+En[Sc]+(Bl?">":")"),dA=ys(Ge),Bc=ac(Lt)}cc!==void 0&&cc[Sc]!==void 0&&(hA=cc[Sc]+` Tw
`),Sc===0?D.push(hA+hu(dA,Bc,bs)+Ac):fA===uc?D.push(hA+Ac):fA===ql&&D.push(hA+hu(dA,Bc,bs)+Ac)}D=fA===uc?D.join(` Tj
T* `):D.join(` Tj
`),D+=` Tj
`;var Ec=`BT
/`;return Ec+=Ii+" "+Ur+` Tf
`,Ec+=Lr(Ur*sc)+` TL
`,Ec+=Gl+`
`,Ec+=el,Ec+=D,vt(Ec+="ET"),it[Ii]=!0,Ts};var $A=ye.__private__.clip=ye.clip=function(D){return vt(D==="evenodd"?"W*":"W"),this};ye.clipEvenOdd=function(){return $A("evenodd")},ye.__private__.discardPath=ye.discardPath=function(){return vt("n"),this};var Zl=ye.__private__.isValidStyle=function(D){var Ge=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(D)!==-1&&(Ge=!0),Ge};ye.__private__.setDefaultPathOperation=ye.setDefaultPathOperation=function(D){return Zl(D)&&(_e=D),this};var Xo=ye.__private__.getStyle=ye.getStyle=function(D){var Ge=_e;switch(D){case"D":case"S":Ge="S";break;case"F":Ge="f";break;case"FD":case"DF":Ge="B";break;case"f":case"f*":case"B":case"B*":Ge=D}return Ge},ZA=ye.close=function(){return vt("h"),this};ye.stroke=function(){return vt("S"),this},ye.fill=function(D){return Pc("f",D),this},ye.fillEvenOdd=function(D){return Pc("f*",D),this},ye.fillStroke=function(D){return Pc("B",D),this},ye.fillStrokeEvenOdd=function(D){return Pc("B*",D),this};var Pc=function(D,Ge){(0,pe.Z)(Ge)==="object"?Vl(Ge,D):vt(D)},yc=function(D){D===null||ir===Pt.ADVANCED&&D===void 0||(D=Xo(D),vt(D))};function _A(D,Ge,Lt,Yt,br){var Xr=new ba(Ge||this.boundingBox,Lt||this.xStep,Yt||this.yStep,this.gState,br||this.matrix);Xr.stream=this.stream;var En=D+"$$"+this.cloneIndex+++"$$";return Qo(En,Xr),Xr}var Vl=function(D,Ge){var Lt=As[D.key],Yt=Gi[Lt];if(Yt instanceof vo)vt("q"),vt(ic(Ge)),Yt.gState&&ye.setGState(Yt.gState),vt(D.matrix.toString()+" cm"),vt("/"+Lt+" sh"),vt("Q");else if(Yt instanceof ba){var br=new Mi(1,0,0,-1,0,Rc());D.matrix&&(br=br.multiply(D.matrix||ro),Lt=_A.call(Yt,D.key,D.boundingBox,D.xStep,D.yStep,br).id),vt("q"),vt("/Pattern cs"),vt("/"+Lt+" scn"),Yt.gState&&ye.setGState(Yt.gState),vt(Ge),vt("Q")}},ic=function(D){switch(D){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},lo=ye.moveTo=function(D,Ge){return vt(Lr(Ct(D))+" "+Lr(T(Ge))+" m"),this},Ns=ye.lineTo=function(D,Ge){return vt(Lr(Ct(D))+" "+Lr(T(Ge))+" l"),this},ts=ye.curveTo=function(D,Ge,Lt,Yt,br,Xr){return vt([Lr(Ct(D)),Lr(T(Ge)),Lr(Ct(Lt)),Lr(T(Yt)),Lr(Ct(br)),Lr(T(Xr)),"c"].join(" ")),this};ye.__private__.line=ye.line=function(D,Ge,Lt,Yt,br){if(isNaN(D)||isNaN(Ge)||isNaN(Lt)||isNaN(Yt)||!Zl(br))throw new Error("Invalid arguments passed to jsPDF.line");return ir===Pt.COMPAT?this.lines([[Lt-D,Yt-Ge]],D,Ge,[1,1],br||"S"):this.lines([[Lt-D,Yt-Ge]],D,Ge,[1,1]).stroke()},ye.__private__.lines=ye.lines=function(D,Ge,Lt,Yt,br,Xr){var En,Li,ta,Pa,Fa,co,aa,bs,Ts,hs,el,Bl;if(typeof D=="number"&&(Bl=Lt,Lt=Ge,Ge=D,D=Bl),Yt=Yt||[1,1],Xr=Xr||!1,isNaN(Ge)||isNaN(Lt)||!Array.isArray(D)||!Array.isArray(Yt)||!Zl(br)||typeof Xr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(lo(Ge,Lt),En=Yt[0],Li=Yt[1],Pa=D.length,hs=Ge,el=Lt,ta=0;ta<Pa;ta++)(Fa=D[ta]).length===2?(hs=Fa[0]*En+hs,el=Fa[1]*Li+el,Ns(hs,el)):(co=Fa[0]*En+hs,aa=Fa[1]*Li+el,bs=Fa[2]*En+hs,Ts=Fa[3]*Li+el,hs=Fa[4]*En+hs,el=Fa[5]*Li+el,ts(co,aa,bs,Ts,hs,el));return Xr&&ZA(),yc(br),this},ye.path=function(D){for(var Ge=0;Ge<D.length;Ge++){var Lt=D[Ge],Yt=Lt.c;switch(Lt.op){case"m":lo(Yt[0],Yt[1]);break;case"l":Ns(Yt[0],Yt[1]);break;case"c":ts.apply(this,Yt);break;case"h":ZA()}}return this},ye.__private__.rect=ye.rect=function(D,Ge,Lt,Yt,br){if(isNaN(D)||isNaN(Ge)||isNaN(Lt)||isNaN(Yt)||!Zl(br))throw new Error("Invalid arguments passed to jsPDF.rect");return ir===Pt.COMPAT&&(Yt=-Yt),vt([Lr(Ct(D)),Lr(T(Ge)),Lr(Ct(Lt)),Lr(Ct(Yt)),"re"].join(" ")),yc(br),this},ye.__private__.triangle=ye.triangle=function(D,Ge,Lt,Yt,br,Xr,En){if(isNaN(D)||isNaN(Ge)||isNaN(Lt)||isNaN(Yt)||isNaN(br)||isNaN(Xr)||!Zl(En))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Lt-D,Yt-Ge],[br-Lt,Xr-Yt],[D-br,Ge-Xr]],D,Ge,[1,1],En,!0),this},ye.__private__.roundedRect=ye.roundedRect=function(D,Ge,Lt,Yt,br,Xr,En){if(isNaN(D)||isNaN(Ge)||isNaN(Lt)||isNaN(Yt)||isNaN(br)||isNaN(Xr)||!Zl(En))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Li=4/3*(Math.SQRT2-1);return br=Math.min(br,.5*Lt),Xr=Math.min(Xr,.5*Yt),this.lines([[Lt-2*br,0],[br*Li,0,br,Xr-Xr*Li,br,Xr],[0,Yt-2*Xr],[0,Xr*Li,-br*Li,Xr,-br,Xr],[2*br-Lt,0],[-br*Li,0,-br,-Xr*Li,-br,-Xr],[0,2*Xr-Yt],[0,-Xr*Li,br*Li,-Xr,br,-Xr]],D+br,Ge,[1,1],En,!0),this},ye.__private__.ellipse=ye.ellipse=function(D,Ge,Lt,Yt,br){if(isNaN(D)||isNaN(Ge)||isNaN(Lt)||isNaN(Yt)||!Zl(br))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Xr=4/3*(Math.SQRT2-1)*Lt,En=4/3*(Math.SQRT2-1)*Yt;return lo(D+Lt,Ge),ts(D+Lt,Ge-En,D+Xr,Ge-Yt,D,Ge-Yt),ts(D-Xr,Ge-Yt,D-Lt,Ge-En,D-Lt,Ge),ts(D-Lt,Ge+En,D-Xr,Ge+Yt,D,Ge+Yt),ts(D+Xr,Ge+Yt,D+Lt,Ge+En,D+Lt,Ge),yc(br),this},ye.__private__.circle=ye.circle=function(D,Ge,Lt,Yt){if(isNaN(D)||isNaN(Ge)||isNaN(Lt)||!Zl(Yt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(D,Ge,Lt,Lt,Yt)},ye.setFont=function(D,Ge,Lt){return Lt&&(Ge=hn(Ge,Lt)),Ii=Os(D,Ge,{disableWarning:!1}),this};var bc=ye.__private__.getFont=ye.getFont=function(){return ia[Os.apply(ye,arguments)]};ye.__private__.getFontList=ye.getFontList=function(){var D,Ge,Lt={};for(D in Ki)if(Ki.hasOwnProperty(D))for(Ge in Lt[D]=[],Ki[D])Ki[D].hasOwnProperty(Ge)&&Lt[D].push(Ge);return Lt},ye.addFont=function(D,Ge,Lt,Yt,br){var Xr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Xr.indexOf(arguments[3])!==-1?br=arguments[3]:arguments[3]&&Xr.indexOf(arguments[3])==-1&&(Lt=hn(Lt,Yt)),br=br||"Identity-H",Ss.call(this,D,Ge,Lt,br)};var va,Ba=c.lineWidth||.200025,Zs=ye.__private__.getLineWidth=ye.getLineWidth=function(){return Ba},Wl=ye.__private__.setLineWidth=ye.setLineWidth=function(D){return Ba=D,vt(Lr(Ct(D))+" w"),this};ye.__private__.setLineDash=Ai.API.setLineDash=Ai.API.setLineDashPattern=function(D,Ge){if(D=D||[],Ge=Ge||0,isNaN(Ge)||!Array.isArray(D))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return D=D.map(function(Lt){return Lr(Ct(Lt))}).join(" "),Ge=Lr(Ct(Ge)),vt("["+D+"] "+Ge+" d"),this};var Nl=ye.__private__.getLineHeight=ye.getLineHeight=function(){return Ur*va};ye.__private__.getLineHeight=ye.getLineHeight=function(){return Ur*va};var VA=ye.__private__.setLineHeightFactor=ye.setLineHeightFactor=function(D){return typeof(D=D||1.15)=="number"&&(va=D),this},os=ye.__private__.getLineHeightFactor=ye.getLineHeightFactor=function(){return va};VA(c.lineHeight);var ys=ye.__private__.getHorizontalCoordinate=function(D){return Ct(D)},ac=ye.__private__.getVerticalCoordinate=function(D){return ir===Pt.ADVANCED?D:ai[Re].mediaBox.topRightY-ai[Re].mediaBox.bottomLeftY-Ct(D)},FA=ye.__private__.getHorizontalCoordinateString=ye.getHorizontalCoordinateString=function(D){return Lr(ys(D))},Oc=ye.__private__.getVerticalCoordinateString=ye.getVerticalCoordinateString=function(D){return Lr(ac(D))},la=c.strokeColor||"0 G";ye.__private__.getStrokeColor=ye.getDrawColor=function(){return so(la)},ye.__private__.setStrokeColor=ye.setDrawColor=function(D,Ge,Lt,Yt){return la=Va({ch1:D,ch2:Ge,ch3:Lt,ch4:Yt,pdfColorType:"draw",precision:2}),vt(la),this};var Nc=c.fillColor||"0 g";ye.__private__.getFillColor=ye.getFillColor=function(){return so(Nc)},ye.__private__.setFillColor=ye.setFillColor=function(D,Ge,Lt,Yt){return Nc=Va({ch1:D,ch2:Ge,ch3:Lt,ch4:Yt,pdfColorType:"fill",precision:2}),vt(Nc),this};var Gl=c.textColor||"0 g",IA=ye.__private__.getTextColor=ye.getTextColor=function(){return so(Gl)};ye.__private__.setTextColor=ye.setTextColor=function(D,Ge,Lt,Yt){return Gl=Va({ch1:D,ch2:Ge,ch3:Lt,ch4:Yt,pdfColorType:"text",precision:3}),this};var zr=c.charSpace,yd=ye.__private__.getCharSpace=ye.getCharSpace=function(){return parseFloat(zr||0)};ye.__private__.setCharSpace=ye.setCharSpace=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return zr=D,this};var Qu=0;ye.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},ye.__private__.setLineCap=ye.setLineCap=function(D){var Ge=ye.CapJoinStyles[D];if(Ge===void 0)throw new Error("Line cap style of '"+D+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Qu=Ge,vt(Ge+" J"),this};var WA=0;ye.__private__.setLineJoin=ye.setLineJoin=function(D){var Ge=ye.CapJoinStyles[D];if(Ge===void 0)throw new Error("Line join style of '"+D+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return WA=Ge,vt(Ge+" j"),this},ye.__private__.setLineMiterLimit=ye.__private__.setMiterLimit=ye.setLineMiterLimit=ye.setMiterLimit=function(D){if(D=D||0,isNaN(D))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return vt(Lr(Ct(D))+" M"),this},ye.GState=Ma,ye.setGState=function(D){(D=typeof D=="string"?Sn[fi[D]]:GA(null,D)).equals(mi)||(vt("/"+D.id+" gs"),mi=D)};var GA=function(D,Ge){if(!D||!fi[D]){var Lt=!1;for(var Yt in Sn)if(Sn.hasOwnProperty(Yt)&&Sn[Yt].equals(Ge)){Lt=!0;break}if(Lt)Ge=Sn[Yt];else{var br="GS"+(Object.keys(Sn).length+1).toString(10);Sn[br]=Ge,Ge.id=br}return D&&(fi[D]=Ge.id),kn.publish("addGState",Ge),Ge}};ye.addGState=function(D,Ge){return GA(D,Ge),this},ye.saveGraphicsState=function(){return vt("q"),Qa.push({key:Ii,size:Ur,color:Gl}),this},ye.restoreGraphicsState=function(){vt("Q");var D=Qa.pop();return Ii=D.key,Ur=D.size,Gl=D.color,mi=null,this},ye.setCurrentTransformationMatrix=function(D){return vt(D.toString()+" cm"),this},ye.comment=function(D){return vt("#"+D),this};var oc=function(D,Ge){var Lt=D||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Lt},set:function(Xr){isNaN(Xr)||(Lt=parseFloat(Xr))}});var Yt=Ge||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Yt},set:function(Xr){isNaN(Xr)||(Yt=parseFloat(Xr))}});var br="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return br},set:function(Xr){br=Xr.toString()}}),this},Ku=function(D,Ge,Lt,Yt){oc.call(this,D,Ge),this.type="rect";var br=Lt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return br},set:function(En){isNaN(En)||(br=parseFloat(En))}});var Xr=Yt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Xr},set:function(En){isNaN(En)||(Xr=parseFloat(En))}}),this},Au=function(){this.page=$n,this.currentPage=Re,this.pages=Ar.slice(0),this.pagesContext=ai.slice(0),this.x=_a,this.y=Hi,this.matrix=Ri,this.width=Uc(Re),this.height=Rc(Re),this.outputDestination=_r,this.id="",this.objectNumber=-1};Au.prototype.restore=function(){$n=this.page,Re=this.currentPage,ai=this.pagesContext,Ar=this.pages,_a=this.x,Hi=this.y,Ri=this.matrix,Hu(Re,this.width),MA(Re,this.height),_r=this.outputDestination};var Is=function(D,Ge,Lt,Yt,br){Mo.push(new Au),$n=Re=0,Ar=[],_a=D,Hi=Ge,Ri=br,gc([Lt,Yt])},Tc=function(D){if(qi[D])Mo.pop().restore();else{var Ge=new Au,Lt="Xo"+(Object.keys(Xi).length+1).toString(10);Ge.id=Lt,qi[D]=Lt,Xi[Lt]=Ge,kn.publish("addFormObject",Ge),Mo.pop().restore()}};for(var Yc in ye.beginFormObject=function(D,Ge,Lt,Yt,br){return Is(D,Ge,Lt,Yt,br),this},ye.endFormObject=function(D){return Tc(D),this},ye.doFormObject=function(D,Ge){var Lt=Xi[qi[D]];return vt("q"),vt(Ge.toString()+" cm"),vt("/"+Lt.id+" Do"),vt("Q"),this},ye.getFormObject=function(D){var Ge=Xi[qi[D]];return{x:Ge.x,y:Ge.y,width:Ge.width,height:Ge.height,matrix:Ge.matrix}},ye.save=function(D,Ge){return D=D||"generated.pdf",(Ge=Ge||{}).returnPromise=Ge.returnPromise||!1,Ge.returnPromise===!1?(ra(vc($l()),D),typeof ra.unload=="function"&&on.setTimeout&&setTimeout(ra.unload,911),this):new Promise(function(Lt,Yt){try{var br=ra(vc($l()),D);typeof ra.unload=="function"&&on.setTimeout&&setTimeout(ra.unload,911),Lt(br)}catch(Xr){Yt(Xr.message)}})},Ai.API)Ai.API.hasOwnProperty(Yc)&&(Yc==="events"&&Ai.API.events.length?function(D,Ge){var Lt,Yt,br;for(br=Ge.length-1;br!==-1;br--)Lt=Ge[br][0],Yt=Ge[br][1],D.subscribe.apply(D,[Lt].concat(typeof Yt=="function"?[Yt]:Yt))}(kn,Ai.API.events):ye[Yc]=Ai.API[Yc]);var Uc=ye.getPageWidth=function(D){return(ai[D=D||Re].mediaBox.topRightX-ai[D].mediaBox.bottomLeftX)/vn},Hu=ye.setPageWidth=function(D,Ge){ai[D].mediaBox.topRightX=Ge*vn+ai[D].mediaBox.bottomLeftX},Rc=ye.getPageHeight=function(D){return(ai[D=D||Re].mediaBox.topRightY-ai[D].mediaBox.bottomLeftY)/vn},MA=ye.setPageHeight=function(D,Ge){ai[D].mediaBox.topRightY=Ge*vn+ai[D].mediaBox.bottomLeftY};return ye.internal={pdfEscape:ll,getStyle:Xo,getFont:bc,getFontSize:wr,getCharSpace:yd,getTextColor:IA,getLineHeight:Nl,getLineHeightFactor:os,getLineWidth:Zs,write:Fn,getHorizontalCoordinate:ys,getVerticalCoordinate:ac,getCoordinateString:FA,getVerticalCoordinateString:Oc,collections:{},newObject:bn,newAdditionalObject:ga,newObjectDeferred:no,newObjectDeferredBegin:Cs,getFilters:Si,putStream:bo,events:kn,scaleFactor:vn,pageSize:{getWidth:function(){return Uc(Re)},setWidth:function(D){Hu(Re,D)},getHeight:function(){return Rc(Re)},setHeight:function(D){MA(Re,D)}},encryptionOptions:Ze,encryption:Fs,getEncryptor:SA,output:nc,getNumberOfPages:rc,pages:Ar,out:vt,f2:Jr,f3:gt,getPageInfo:AA,getPageInfoByObjId:sa,getCurrentPageInfo:EA,getPDFVersion:bt,Point:oc,Rectangle:Ku,Matrix:Mi,hasHotfix:fn},Object.defineProperty(ye.internal.pageSize,"width",{get:function(){return Uc(Re)},set:function(D){Hu(Re,D)},enumerable:!0,configurable:!0}),Object.defineProperty(ye.internal.pageSize,"height",{get:function(){return Rc(Re)},set:function(D){MA(Re,D)},enumerable:!0,configurable:!0}),Es.call(ye,yr),Ii="F1",Ca(I,l),kn.publish("initialized"),ye}na.prototype.lsbFirstWord=function(c){return String.fromCharCode(c>>0&255,c>>8&255,c>>16&255,c>>24&255)},na.prototype.toHexString=function(c){return c.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},na.prototype.hexToBytes=function(c){for(var o=[],l=0;l<c.length;l+=2)o.push(String.fromCharCode(parseInt(c.substr(l,2),16)));return o.join("")},na.prototype.processOwnerPassword=function(c,o){return ha(On(o).substr(0,5),c)},na.prototype.encryptor=function(c,o){var l=On(this.encryptionKey+String.fromCharCode(255&c,c>>8&255,c>>16&255,255&o,o>>8&255)).substr(0,10);return function(b){return ha(l,b)}},Ma.prototype.equals=function(c){var o,l="id,objectNumber,equals";if(!c||(0,pe.Z)(c)!==(0,pe.Z)(this))return!1;var b=0;for(o in this)if(!(l.indexOf(o)>=0)){if(this.hasOwnProperty(o)&&!c.hasOwnProperty(o)||this[o]!==c[o])return!1;b++}for(o in c)c.hasOwnProperty(o)&&l.indexOf(o)<0&&b--;return b===0},Ai.API={events:[]},Ai.version="3.0.1";var ua=Ai.API,Do=1,uo=function(c){return c.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Xa=function(c){return c.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Di=function(c){return c.toFixed(2)},Po=function(c){return c.toFixed(5)};ua.__acroform__={};var fo=function(c,o){c.prototype=Object.create(o.prototype),c.prototype.constructor=c},il=function(c){return c*Do},$o=function(c){var o=new wa,l=Kn.internal.getHeight(c)||0,b=Kn.internal.getWidth(c)||0;return o.BBox=[0,0,Number(Di(b)),Number(Di(l))],o},Hs=ua.__acroform__.setBit=function(c,o){if(c=c||0,o=o||0,isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return c|=1<<o},Zo=ua.__acroform__.clearBit=function(c,o){if(c=c||0,o=o||0,isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return c&=~(1<<o)},vl=ua.__acroform__.getBit=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return c&1<<o?1:0},za=ua.__acroform__.getBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return vl(c,o-1)},Ra=ua.__acroform__.setBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hs(c,o-1)},Ea=ua.__acroform__.clearBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Zo(c,o-1)},js=ua.__acroform__.calculateCoordinates=function(c,o){var l=o.internal.getHorizontalCoordinate,b=o.internal.getVerticalCoordinate,I=c[0],C=c[1],N=c[2],$=c[3],ae={};return ae.lowerLeft_X=l(I)||0,ae.lowerLeft_Y=b(C+$)||0,ae.upperRight_X=l(I+N)||0,ae.upperRight_Y=b(C)||0,[Number(Di(ae.lowerLeft_X)),Number(Di(ae.lowerLeft_Y)),Number(Di(ae.upperRight_X)),Number(Di(ae.upperRight_Y))]},yi=function(c){if(c.appearanceStreamContent)return c.appearanceStreamContent;if(c.V||c.DV){var o=[],l=c._V||c.DV,b=Vi(c,l),I=c.scope.internal.getFont(c.fontName,c.fontStyle).id;o.push("/Tx BMC"),o.push("q"),o.push("BT"),o.push(c.scope.__private__.encodeColorString(c.color)),o.push("/"+I+" "+Di(b.fontSize)+" Tf"),o.push("1 0 0 1 0 0 Tm"),o.push(b.text),o.push("ET"),o.push("Q"),o.push("EMC");var C=$o(c);return C.scope=c.scope,C.stream=o.join(`
`),C}},Vi=function(c,o){var l=c.fontSize===0?c.maxFontSize:c.fontSize,b={text:"",fontSize:""},I=(o=(o=o.substr(0,1)=="("?o.substr(1):o).substr(o.length-1)==")"?o.substr(0,o.length-1):o).split(" ");I=c.multiline?I.map(function(gt){return gt.split(`
`)}):I.map(function(gt){return[gt]});var C=l,N=Kn.internal.getHeight(c)||0;N=N<0?-N:N;var $=Kn.internal.getWidth(c)||0;$=$<0?-$:$;var ae=function(gt,Ct,rr){if(gt+1<I.length){var T=Ct+" "+I[gt+1][0];return Oi(T,c,rr).width<=$-4}return!1};C++;e:for(;C>0;){o="",C--;var _e,Ze,Ve=Oi("3",c,C).height,it=c.multiline?N-C:(N-Ve)/2,ye=it+=2,kt=0,bt=0,Dt=0;if(C<=0){o=`(...) Tj
`,o+="% Width of Text: "+Oi(o,c,C=12).width+", FieldWidth:"+$+`
`;break}for(var ht="",Pt=0,ir=0;ir<I.length;ir++)if(I.hasOwnProperty(ir)){var xr=!1;if(I[ir].length!==1&&Dt!==I[ir].length-1){if((Ve+2)*(Pt+2)+2>N)continue e;ht+=I[ir][Dt],xr=!0,bt=ir,ir--}else{ht=(ht+=I[ir][Dt]+" ").substr(ht.length-1)==" "?ht.substr(0,ht.length-1):ht;var Hr=parseInt(ir),hn=ae(Hr,ht,C),Lr=ir>=I.length-1;if(hn&&!Lr){ht+=" ",Dt=0;continue}if(hn||Lr){if(Lr)bt=Hr;else if(c.multiline&&(Ve+2)*(Pt+2)+2>N)continue e}else{if(!c.multiline||(Ve+2)*(Pt+2)+2>N)continue e;bt=Hr}}for(var Vt="",Or=kt;Or<=bt;Or++){var Jr=I[Or];if(c.multiline){if(Or===bt){Vt+=Jr[Dt]+" ",Dt=(Dt+1)%Jr.length;continue}if(Or===kt){Vt+=Jr[Jr.length-1]+" ";continue}}Vt+=Jr[0]+" "}switch(Vt=Vt.substr(Vt.length-1)==" "?Vt.substr(0,Vt.length-1):Vt,Ze=Oi(Vt,c,C).width,c.textAlign){case"right":_e=$-Ze-2;break;case"center":_e=($-Ze)/2;break;case"left":default:_e=2}o+=Di(_e)+" "+Di(ye)+` Td
`,o+="("+uo(Vt)+`) Tj
`,o+=-Di(_e)+` 0 Td
`,ye=-(C+2),Ze=0,kt=xr?bt:bt+1,Pt++,ht=""}break}return b.text=o,b.fontSize=C,b},Oi=function(c,o,l){var b=o.scope.internal.getFont(o.fontName,o.fontStyle),I=o.scope.getStringUnitWidth(c,{font:b,fontSize:parseFloat(l),charSpace:0})*parseFloat(l);return{height:o.scope.getStringUnitWidth("3",{font:b,fontSize:parseFloat(l),charSpace:0})*parseFloat(l)*1.5,width:I}},Wi={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},da=function(c,o){var l={type:"reference",object:c};o.internal.getPageInfo(c.page).pageContext.annotations.find(function(b){return b.type===l.type&&b.object===l.object})===void 0&&o.internal.getPageInfo(c.page).pageContext.annotations.push(l)},La=function(c,o){for(var l in c)if(c.hasOwnProperty(l)){var b=l,I=c[l];o.internal.newObjectDeferredBegin(I.objId,!0),(0,pe.Z)(I)==="object"&&typeof I.putStream=="function"&&I.putStream(),delete c[b]}},Vo=function(c,o){if(o.scope=c,c.internal!==void 0&&(c.internal.acroformPlugin===void 0||c.internal.acroformPlugin.isInitialized===!1)){if(Oa.FieldNum=0,c.internal.acroformPlugin=JSON.parse(JSON.stringify(Wi)),c.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Do=c.internal.scaleFactor,c.internal.acroformPlugin.acroFormDictionaryRoot=new pa,c.internal.acroformPlugin.acroFormDictionaryRoot.scope=c,c.internal.acroformPlugin.acroFormDictionaryRoot._eventID=c.internal.events.subscribe("postPutResources",function(){(function(l){l.internal.events.unsubscribe(l.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete l.internal.acroformPlugin.acroFormDictionaryRoot._eventID,l.internal.acroformPlugin.printedOut=!0})(c)}),c.internal.events.subscribe("buildDocument",function(){(function(l){l.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var b=l.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var I in b)if(b.hasOwnProperty(I)){var C=b[I];C.objId=void 0,C.hasAnnotation&&da(C,l)}})(c)}),c.internal.events.subscribe("putCatalog",function(){(function(l){if(l.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");l.internal.write("/AcroForm "+l.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(c)}),c.internal.events.subscribe("postPutPages",function(l){(function(b,I){var C=!b;for(var N in b||(I.internal.newObjectDeferredBegin(I.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),I.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),b=b||I.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(b.hasOwnProperty(N)){var $=b[N],ae=[],_e=$.Rect;if($.Rect&&($.Rect=js($.Rect,I)),I.internal.newObjectDeferredBegin($.objId,!0),$.DA=Kn.createDefaultAppearanceStream($),(0,pe.Z)($)==="object"&&typeof $.getKeyValueListForStream=="function"&&(ae=$.getKeyValueListForStream()),$.Rect=_e,$.hasAppearanceStream&&!$.appearanceStreamContent){var Ze=yi($);ae.push({key:"AP",value:"<</N "+Ze+">>"}),I.internal.acroformPlugin.xForms.push(Ze)}if($.appearanceStreamContent){var Ve="";for(var it in $.appearanceStreamContent)if($.appearanceStreamContent.hasOwnProperty(it)){var ye=$.appearanceStreamContent[it];if(Ve+="/"+it+" ",Ve+="<<",Object.keys(ye).length>=1||Array.isArray(ye)){for(var N in ye)if(ye.hasOwnProperty(N)){var kt=ye[N];typeof kt=="function"&&(kt=kt.call(I,$)),Ve+="/"+N+" "+kt+" ",I.internal.acroformPlugin.xForms.indexOf(kt)>=0||I.internal.acroformPlugin.xForms.push(kt)}}else typeof(kt=ye)=="function"&&(kt=kt.call(I,$)),Ve+="/"+N+" "+kt,I.internal.acroformPlugin.xForms.indexOf(kt)>=0||I.internal.acroformPlugin.xForms.push(kt);Ve+=">>"}ae.push({key:"AP",value:`<<
`+Ve+">>"})}I.internal.putStream({additionalKeyValues:ae,objectId:$.objId}),I.internal.out("endobj")}C&&La(I.internal.acroformPlugin.xForms,I)})(l,c)}),c.internal.acroformPlugin.isInitialized=!0}},_o=ua.__acroform__.arrayToPdfArray=function(c,o,l){var b=function(N){return N};if(Array.isArray(c)){for(var I="[",C=0;C<c.length;C++)switch(C!==0&&(I+=" "),(0,pe.Z)(c[C])){case"boolean":case"number":case"object":I+=c[C].toString();break;case"string":c[C].substr(0,1)!=="/"?(o!==void 0&&l&&(b=l.internal.getEncryptor(o)),I+="("+uo(b(c[C].toString()))+")"):I+=c[C].toString()}return I+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Bo=function(c,o,l){var b=function(I){return I};return o!==void 0&&l&&(b=l.internal.getEncryptor(o)),(c=c||"").toString(),c="("+uo(b(c))+")"},$a=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(c){this._objId=c}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};$a.prototype.toString=function(){return this.objId+" 0 R"},$a.prototype.putStream=function(){var c=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:c,objectId:this.objId}),this.scope.internal.out("endobj")},$a.prototype.getKeyValueListForStream=function(){var c=[],o=Object.getOwnPropertyNames(this).filter(function(C){return C!="content"&&C!="appearanceStreamContent"&&C!="scope"&&C!="objId"&&C.substring(0,1)!="_"});for(var l in o)if(Object.getOwnPropertyDescriptor(this,o[l]).configurable===!1){var b=o[l],I=this[b];I&&(Array.isArray(I)?c.push({key:b,value:_o(I,this.objId,this.scope)}):I instanceof $a?(I.scope=this.scope,c.push({key:b,value:I.objId+" 0 R"})):typeof I!="function"&&c.push({key:b,value:I}))}return c};var wa=function(){$a.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 c,o=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return o},set:function(l){o=l}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(l){c=l.trim()},get:function(){return c||null}})};fo(wa,$a);var pa=function(){$a.call(this);var c,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(c){var l=function(b){return b};return this.scope&&(l=this.scope.internal.getEncryptor(this.objId)),"("+uo(l(c))+")"}},set:function(l){c=l}})};fo(pa,$a);var Oa=function c(){$a.call(this);var o=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return o},set:function(ht){if(isNaN(ht))throw new Error('Invalid value "'+ht+'" for attribute F supplied.');o=ht}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!za(o,3)},set:function(ht){ht?this.F=Ra(o,3):this.F=Ea(o,3)}});var l=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return l},set:function(ht){if(isNaN(ht))throw new Error('Invalid value "'+ht+'" for attribute Ff supplied.');l=ht}});var b=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(b.length!==0)return b},set:function(ht){b=ht!==void 0?ht:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[0])?0:b[0]},set:function(ht){b[0]=ht}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[1])?0:b[1]},set:function(ht){b[1]=ht}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[2])?0:b[2]},set:function(ht){b[2]=ht}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[3])?0:b[3]},set:function(ht){b[3]=ht}});var I="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return I},set:function(ht){switch(ht){case"/Btn":case"/Tx":case"/Ch":case"/Sig":I=ht;break;default:throw new Error('Invalid value "'+ht+'" for attribute FT supplied.')}}});var C=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!C||C.length<1){if(this instanceof dl)return;C="FieldObject"+c.FieldNum++}var ht=function(Pt){return Pt};return this.scope&&(ht=this.scope.internal.getEncryptor(this.objId)),"("+uo(ht(C))+")"},set:function(ht){C=ht.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return C},set:function(ht){C=ht}});var N="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return N},set:function(ht){N=ht}});var $="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return $},set:function(ht){$=ht}});var ae=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ae},set:function(ht){ae=ht}});var _e=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return _e===void 0?50/Do:_e},set:function(ht){_e=ht}});var Ze="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Ze},set:function(ht){Ze=ht}});var Ve="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ve||this instanceof dl||this instanceof ks))return Bo(Ve,this.objId,this.scope)},set:function(ht){ht=ht.toString(),Ve=ht}});var it=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(it)return this instanceof Fo?it:Bo(it,this.objId,this.scope)},set:function(ht){ht=ht.toString(),it=this instanceof Fo?ht:ht.substr(0,1)==="("?Xa(ht.substr(1,ht.length-2)):Xa(ht)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fo?Xa(it.substr(1,it.length-1)):it},set:function(ht){ht=ht.toString(),it=this instanceof Fo?"/"+ht:ht}});var ye=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ye)return ye},set:function(ht){this.V=ht}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ye)return this instanceof Fo?ye:Bo(ye,this.objId,this.scope)},set:function(ht){ht=ht.toString(),ye=this instanceof Fo?ht:ht.substr(0,1)==="("?Xa(ht.substr(1,ht.length-2)):Xa(ht)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fo?Xa(ye.substr(1,ye.length-1)):ye},set:function(ht){ht=ht.toString(),ye=this instanceof Fo?"/"+ht:ht}}),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 kt,bt=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return bt},set:function(ht){ht=!!ht,bt=ht}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(kt)return kt},set:function(ht){kt=ht}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,1)},set:function(ht){ht?this.Ff=Ra(this.Ff,1):this.Ff=Ea(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,2)},set:function(ht){ht?this.Ff=Ra(this.Ff,2):this.Ff=Ea(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,3)},set:function(ht){ht?this.Ff=Ra(this.Ff,3):this.Ff=Ea(this.Ff,3)}});var Dt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Dt!==null)return Dt},set:function(ht){if([0,1,2].indexOf(ht)===-1)throw new Error('Invalid value "'+ht+'" for attribute Q supplied.');Dt=ht}}),Object.defineProperty(this,"textAlign",{get:function(){var ht;switch(Dt){case 0:default:ht="left";break;case 1:ht="center";break;case 2:ht="right"}return ht},configurable:!0,enumerable:!0,set:function(ht){switch(ht){case"right":case 2:Dt=2;break;case"center":case 1:Dt=1;break;case"left":case 0:default:Dt=0}}})};fo(Oa,$a);var Ja=function(){Oa.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var c=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return c},set:function(l){c=l}});var o=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return _o(o,this.objId,this.scope)},set:function(l){var b,I;I=[],typeof(b=l)=="string"&&(I=function(C,N,$){$||($=1);for(var ae,_e=[];ae=N.exec(C);)_e.push(ae[$]);return _e}(b,/\((.*?)\)/g)),o=I}}),this.getOptions=function(){return o},this.setOptions=function(l){o=l,this.sort&&o.sort()},this.addOption=function(l){l=(l=l||"").toString(),o.push(l),this.sort&&o.sort()},this.removeOption=function(l,b){for(b=b||!1,l=(l=l||"").toString();o.indexOf(l)!==-1&&(o.splice(o.indexOf(l),1),b!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,18)},set:function(l){l?this.Ff=Ra(this.Ff,18):this.Ff=Ea(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,19)},set:function(l){this.combo===!0&&(l?this.Ff=Ra(this.Ff,19):this.Ff=Ea(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,20)},set:function(l){l?(this.Ff=Ra(this.Ff,20),o.sort()):this.Ff=Ea(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,22)},set:function(l){l?this.Ff=Ra(this.Ff,22):this.Ff=Ea(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,23)},set:function(l){l?this.Ff=Ra(this.Ff,23):this.Ff=Ea(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,27)},set:function(l){l?this.Ff=Ra(this.Ff,27):this.Ff=Ea(this.Ff,27)}}),this.hasAppearanceStream=!1};fo(Ja,Oa);var oo=function(){Ja.call(this),this.fontName="helvetica",this.combo=!1};fo(oo,Ja);var Ta=function(){oo.call(this),this.combo=!0};fo(Ta,oo);var ka=function(){Ta.call(this),this.edit=!0};fo(ka,Ta);var Fo=function(){Oa.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,15)},set:function(l){l?this.Ff=Ra(this.Ff,15):this.Ff=Ea(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,16)},set:function(l){l?this.Ff=Ra(this.Ff,16):this.Ff=Ea(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,17)},set:function(l){l?this.Ff=Ra(this.Ff,17):this.Ff=Ea(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,26)},set:function(l){l?this.Ff=Ra(this.Ff,26):this.Ff=Ea(this.Ff,26)}});var c,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var l=function(C){return C};if(this.scope&&(l=this.scope.internal.getEncryptor(this.objId)),Object.keys(o).length!==0){var b,I=[];for(b in I.push("<<"),o)I.push("/"+b+" ("+uo(l(o[b]))+")");return I.push(">>"),I.join(`
`)}},set:function(l){(0,pe.Z)(l)==="object"&&(o=l)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(l){typeof l=="string"&&(o.CA=l)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return c.substr(1,c.length-1)},set:function(l){c="/"+l}})};fo(Fo,Oa);var Ll=function(){Fo.call(this),this.pushButton=!0};fo(Ll,Fo);var cs=function(){Fo.call(this),this.radio=!0,this.pushButton=!1;var c=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return c},set:function(o){c=o!==void 0?o:[]}})};fo(cs,Fo);var dl=function(){var c,o;Oa.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return c},set:function(I){c=I}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(I){o=I}});var l,b={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var I=function($){return $};this.scope&&(I=this.scope.internal.getEncryptor(this.objId));var C,N=[];for(C in N.push("<<"),b)N.push("/"+C+" ("+uo(I(b[C]))+")");return N.push(">>"),N.join(`
`)},set:function(I){(0,pe.Z)(I)==="object"&&(b=I)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return b.CA||""},set:function(I){typeof I=="string"&&(b.CA=I)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return l},set:function(I){l=I}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return l.substr(1,l.length-1)},set:function(I){l="/"+I}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Kn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};fo(dl,Oa),cs.prototype.setAppearance=function(c){if(!("createAppearanceStream"in c)||!("getCA"in c))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var o in this.Kids)if(this.Kids.hasOwnProperty(o)){var l=this.Kids[o];l.appearanceStreamContent=c.createAppearanceStream(l.optionName),l.caption=c.getCA()}},cs.prototype.createOption=function(c){var o=new dl;return o.Parent=this,o.optionName=c,this.Kids.push(o),kl.call(this.scope,o),o};var No=function(){Fo.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Kn.CheckBox.createAppearanceStream()};fo(No,Fo);var ks=function(){Oa.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,13)},set:function(o){o?this.Ff=Ra(this.Ff,13):this.Ff=Ea(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,21)},set:function(o){o?this.Ff=Ra(this.Ff,21):this.Ff=Ea(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,23)},set:function(o){o?this.Ff=Ra(this.Ff,23):this.Ff=Ea(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,24)},set:function(o){o?this.Ff=Ra(this.Ff,24):this.Ff=Ea(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,25)},set:function(o){o?this.Ff=Ra(this.Ff,25):this.Ff=Ea(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,26)},set:function(o){o?this.Ff=Ra(this.Ff,26):this.Ff=Ea(this.Ff,26)}});var c=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return c},set:function(o){c=o}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return c},set:function(o){Number.isInteger(o)&&(c=o)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};fo(ks,Oa);var Io=function(){ks.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,14)},set:function(c){c?this.Ff=Ra(this.Ff,14):this.Ff=Ea(this.Ff,14)}}),this.password=!0};fo(Io,ks);var Kn={CheckBox:{createAppearanceStream:function(){return{N:{On:Kn.CheckBox.YesNormal},D:{On:Kn.CheckBox.YesPushDown,Off:Kn.CheckBox.OffPushDown}}},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=c.scope.internal.getFont(c.fontName,c.fontStyle).id,I=c.scope.__private__.encodeColorString(c.color),C=Vi(c,c.caption);return l.push("0.749023 g"),l.push("0 0 "+Di(Kn.internal.getWidth(c))+" "+Di(Kn.internal.getHeight(c))+" re"),l.push("f"),l.push("BMC"),l.push("q"),l.push("0 0 1 rg"),l.push("/"+b+" "+Di(C.fontSize)+" Tf "+I),l.push("BT"),l.push(C.text),l.push("ET"),l.push("Q"),l.push("EMC"),o.stream=l.join(`
`),o},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=c.scope.internal.getFont(c.fontName,c.fontStyle).id,b=c.scope.__private__.encodeColorString(c.color),I=[],C=Kn.internal.getHeight(c),N=Kn.internal.getWidth(c),$=Vi(c,c.caption);return I.push("1 g"),I.push("0 0 "+Di(N)+" "+Di(C)+" re"),I.push("f"),I.push("q"),I.push("0 0 1 rg"),I.push("0 0 "+Di(N-1)+" "+Di(C-1)+" re"),I.push("W"),I.push("n"),I.push("0 g"),I.push("BT"),I.push("/"+l+" "+Di($.fontSize)+" Tf "+b),I.push($.text),I.push("ET"),I.push("Q"),o.stream=I.join(`
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[];return l.push("0.749023 g"),l.push("0 0 "+Di(Kn.internal.getWidth(c))+" "+Di(Kn.internal.getHeight(c))+" re"),l.push("f"),o.stream=l.join(`
`),o}},RadioButton:{Circle:{createAppearanceStream:function(c){var o={D:{Off:Kn.RadioButton.Circle.OffPushDown},N:{}};return o.N[c]=Kn.RadioButton.Circle.YesNormal,o.D[c]=Kn.RadioButton.Circle.YesPushDown,o},getCA:function(){return"l"},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var I=Kn.internal.Bezier_C,C=Number((b*I).toFixed(5));return l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(b+" 0 m"),l.push(b+" "+C+" "+C+" "+b+" 0 "+b+" c"),l.push("-"+C+" "+b+" -"+b+" "+C+" -"+b+" 0 c"),l.push("-"+b+" -"+C+" -"+C+" -"+b+" 0 -"+b+" c"),l.push(C+" -"+b+" "+b+" -"+C+" "+b+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
`),o},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var I=Number((2*b).toFixed(5)),C=Number((I*Kn.internal.Bezier_C).toFixed(5)),N=Number((b*Kn.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(I+" 0 m"),l.push(I+" "+C+" "+C+" "+I+" 0 "+I+" c"),l.push("-"+C+" "+I+" -"+I+" "+C+" -"+I+" 0 c"),l.push("-"+I+" -"+C+" -"+C+" -"+I+" 0 -"+I+" c"),l.push(C+" -"+I+" "+I+" -"+C+" "+I+" 0 c"),l.push("f"),l.push("Q"),l.push("0 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(b+" 0 m"),l.push(b+" "+N+" "+N+" "+b+" 0 "+b+" c"),l.push("-"+N+" "+b+" -"+b+" "+N+" -"+b+" 0 c"),l.push("-"+b+" -"+N+" -"+N+" -"+b+" 0 -"+b+" c"),l.push(N+" -"+b+" "+b+" -"+N+" "+b+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var I=Number((2*b).toFixed(5)),C=Number((I*Kn.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(I+" 0 m"),l.push(I+" "+C+" "+C+" "+I+" 0 "+I+" c"),l.push("-"+C+" "+I+" -"+I+" "+C+" -"+I+" 0 c"),l.push("-"+I+" -"+C+" -"+C+" -"+I+" 0 -"+I+" c"),l.push(C+" -"+I+" "+I+" -"+C+" "+I+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
`),o}},Cross:{createAppearanceStream:function(c){var o={D:{Off:Kn.RadioButton.Cross.OffPushDown},N:{}};return o.N[c]=Kn.RadioButton.Cross.YesNormal,o.D[c]=Kn.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.calculateCross(c);return l.push("q"),l.push("1 1 "+Di(Kn.internal.getWidth(c)-2)+" "+Di(Kn.internal.getHeight(c)-2)+" re"),l.push("W"),l.push("n"),l.push(Di(b.x1.x)+" "+Di(b.x1.y)+" m"),l.push(Di(b.x2.x)+" "+Di(b.x2.y)+" l"),l.push(Di(b.x4.x)+" "+Di(b.x4.y)+" m"),l.push(Di(b.x3.x)+" "+Di(b.x3.y)+" l"),l.push("s"),l.push("Q"),o.stream=l.join(`
`),o},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=Kn.internal.calculateCross(c),b=[];return b.push("0.749023 g"),b.push("0 0 "+Di(Kn.internal.getWidth(c))+" "+Di(Kn.internal.getHeight(c))+" re"),b.push("f"),b.push("q"),b.push("1 1 "+Di(Kn.internal.getWidth(c)-2)+" "+Di(Kn.internal.getHeight(c)-2)+" re"),b.push("W"),b.push("n"),b.push(Di(l.x1.x)+" "+Di(l.x1.y)+" m"),b.push(Di(l.x2.x)+" "+Di(l.x2.y)+" l"),b.push(Di(l.x4.x)+" "+Di(l.x4.y)+" m"),b.push(Di(l.x3.x)+" "+Di(l.x3.y)+" l"),b.push("s"),b.push("Q"),o.stream=b.join(`
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[];return l.push("0.749023 g"),l.push("0 0 "+Di(Kn.internal.getWidth(c))+" "+Di(Kn.internal.getHeight(c))+" re"),l.push("f"),o.stream=l.join(`
`),o}}},createDefaultAppearanceStream:function(c){var o=c.scope.internal.getFont(c.fontName,c.fontStyle).id,l=c.scope.__private__.encodeColorString(c.color);return"/"+o+" "+c.fontSize+" Tf "+l}};Kn.internal={Bezier_C:.551915024494,calculateCross:function(c){var o=Kn.internal.getWidth(c),l=Kn.internal.getHeight(c),b=Math.min(o,l);return{x1:{x:(o-b)/2,y:(l-b)/2+b},x2:{x:(o-b)/2+b,y:(l-b)/2},x3:{x:(o-b)/2,y:(l-b)/2},x4:{x:(o-b)/2+b,y:(l-b)/2+b}}}},Kn.internal.getWidth=function(c){var o=0;return(0,pe.Z)(c)==="object"&&(o=il(c.Rect[2])),o},Kn.internal.getHeight=function(c){var o=0;return(0,pe.Z)(c)==="object"&&(o=il(c.Rect[3])),o};var kl=ua.addField=function(c){if(Vo(this,c),!(c instanceof Oa))throw new Error("Invalid argument passed to jsPDF.addField.");var o;return(o=c).scope.internal.acroformPlugin.printedOut&&(o.scope.internal.acroformPlugin.printedOut=!1,o.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),o.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(o),c.page=c.scope.internal.getCurrentPageInfo().pageNumber,this};ua.AcroFormChoiceField=Ja,ua.AcroFormListBox=oo,ua.AcroFormComboBox=Ta,ua.AcroFormEditBox=ka,ua.AcroFormButton=Fo,ua.AcroFormPushButton=Ll,ua.AcroFormRadioButton=cs,ua.AcroFormCheckBox=No,ua.AcroFormTextField=ks,ua.AcroFormPasswordField=Io,ua.AcroFormAppearance=Kn,ua.AcroForm={ChoiceField:Ja,ListBox:oo,ComboBox:Ta,EditBox:ka,Button:Fo,PushButton:Ll,RadioButton:cs,CheckBox:No,TextField:ks,PasswordField:Io,Appearance:Kn},Ai.AcroForm={ChoiceField:Ja,ListBox:oo,ComboBox:Ta,EditBox:ka,Button:Fo,PushButton:Ll,RadioButton:cs,CheckBox:No,TextField:ks,PasswordField:Io,Appearance:Kn};var To=Ai.AcroForm;function Hl(c){return c.reduce(function(o,l,b){return o[l]=b,o},{})}(function(c){c.__addimage__={};var o="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]]},b=c.__addimage__.getImageFileTypeByImageData=function(gt,Ct){var rr,T,re,Be,Ue,Ke=o;if((Ct=Ct||o)==="RGBA"||gt.data!==void 0&&gt.data instanceof Uint8ClampedArray&&"height"in gt&&"width"in gt)return"RGBA";if(hn(gt))for(Ue in l)for(re=l[Ue],rr=0;rr<re.length;rr+=1){for(Be=!0,T=0;T<re[rr].length;T+=1)if(re[rr][T]!==void 0&&re[rr][T]!==gt[T]){Be=!1;break}if(Be===!0){Ke=Ue;break}}else for(Ue in l)for(re=l[Ue],rr=0;rr<re.length;rr+=1){for(Be=!0,T=0;T<re[rr].length;T+=1)if(re[rr][T]!==void 0&&re[rr][T]!==gt.charCodeAt(T)){Be=!1;break}if(Be===!0){Ke=Ue;break}}return Ke===o&&Ct!==o&&(Ke=Ct),Ke},I=function gt(Ct){for(var rr=this.internal.write,T=this.internal.putStream,re=(0,this.internal.getFilters)();re.indexOf("FlateEncode")!==-1;)re.splice(re.indexOf("FlateEncode"),1);Ct.objectId=this.internal.newObject();var Be=[];if(Be.push({key:"Type",value:"/XObject"}),Be.push({key:"Subtype",value:"/Image"}),Be.push({key:"Width",value:Ct.width}),Be.push({key:"Height",value:Ct.height}),Ct.colorSpace===Dt.INDEXED?Be.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ct.palette.length/3-1)+" "+("sMask"in Ct&&Ct.sMask!==void 0?Ct.objectId+2:Ct.objectId+1)+" 0 R]"}):(Be.push({key:"ColorSpace",value:"/"+Ct.colorSpace}),Ct.colorSpace===Dt.DEVICE_CMYK&&Be.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Be.push({key:"BitsPerComponent",value:Ct.bitsPerComponent}),"decodeParameters"in Ct&&Ct.decodeParameters!==void 0&&Be.push({key:"DecodeParms",value:"<<"+Ct.decodeParameters+">>"}),"transparency"in Ct&&Array.isArray(Ct.transparency)){for(var Ue="",Ke=0,Xe=Ct.transparency.length;Ke<Xe;Ke++)Ue+=Ct.transparency[Ke]+" "+Ct.transparency[Ke]+" ";Be.push({key:"Mask",value:"["+Ue+"]"})}Ct.sMask!==void 0&&Be.push({key:"SMask",value:Ct.objectId+1+" 0 R"});var ut=Ct.filter!==void 0?["/"+Ct.filter]:void 0;if(T({data:Ct.data,additionalKeyValues:Be,alreadyAppliedFilters:ut,objectId:Ct.objectId}),rr("endobj"),"sMask"in Ct&&Ct.sMask!==void 0){var Et="/Predictor "+Ct.predictor+" /Colors 1 /BitsPerComponent "+Ct.bitsPerComponent+" /Columns "+Ct.width,le={width:Ct.width,height:Ct.height,colorSpace:"DeviceGray",bitsPerComponent:Ct.bitsPerComponent,decodeParameters:Et,data:Ct.sMask};"filter"in Ct&&(le.filter=Ct.filter),gt.call(this,le)}if(Ct.colorSpace===Dt.INDEXED){var Re=this.internal.newObject();T({data:Vt(new Uint8Array(Ct.palette)),objectId:Re}),rr("endobj")}},C=function(){var gt=this.internal.collections.addImage_images;for(var Ct in gt)I.call(this,gt[Ct])},N=function(){var gt,Ct=this.internal.collections.addImage_images,rr=this.internal.write;for(var T in Ct)rr("/I"+(gt=Ct[T]).index,gt.objectId,"0","R")},$=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",C),this.internal.events.subscribe("putXobjectDict",N))},ae=function(){var gt=this.internal.collections.addImage_images;return $.call(this),gt},_e=function(){return Object.keys(this.internal.collections.addImage_images).length},Ze=function(gt){return typeof c["process"+gt.toUpperCase()]=="function"},Ve=function(gt){return(0,pe.Z)(gt)==="object"&&gt.nodeType===1},it=function(gt,Ct){if(gt.nodeName==="IMG"&&gt.hasAttribute("src")){var rr=""+gt.getAttribute("src");if(rr.indexOf("data:image/")===0)return Xn(unescape(rr).split("base64,").pop());var T=c.loadFile(rr,!0);if(T!==void 0)return T}if(gt.nodeName==="CANVAS"){if(gt.width===0||gt.height===0)throw new Error("Given canvas must have data. Canvas width: "+gt.width+", height: "+gt.height);var re;switch(Ct){case"PNG":re="image/png";break;case"WEBP":re="image/webp";break;case"JPEG":case"JPG":default:re="image/jpeg"}return Xn(gt.toDataURL(re,1).split("base64,").pop())}},ye=function(gt){var Ct=this.internal.collections.addImage_images;if(Ct){for(var rr in Ct)if(gt===Ct[rr].alias)return Ct[rr]}},kt=function(gt,Ct,rr){return gt||Ct||(gt=-96,Ct=-96),gt<0&&(gt=-1*rr.width*72/gt/this.internal.scaleFactor),Ct<0&&(Ct=-1*rr.height*72/Ct/this.internal.scaleFactor),gt===0&&(gt=Ct*rr.width/rr.height),Ct===0&&(Ct=gt*rr.height/rr.width),[gt,Ct]},bt=function(gt,Ct,rr,T,re,Be){var Ue=kt.call(this,rr,T,re),Ke=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString,ut=ae.call(this);if(rr=Ue[0],T=Ue[1],ut[re.index]=re,Be){Be*=Math.PI/180;var Et=Math.cos(Be),le=Math.sin(Be),Re=function(et){return et.toFixed(4)},Ye=[Re(Et),Re(le),Re(-1*le),Re(Et),0,0,"cm"]}this.internal.write("q"),Be?(this.internal.write([1,"0","0",1,Ke(gt),Xe(Ct+T),"cm"].join(" ")),this.internal.write(Ye.join(" ")),this.internal.write([Ke(rr),"0","0",Ke(T),"0","0","cm"].join(" "))):this.internal.write([Ke(rr),"0","0",Ke(T),Ke(gt),Xe(Ct+T),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+re.index+" Do"),this.internal.write("Q")},Dt=c.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"};c.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 ht=c.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Pt=c.__addimage__.sHashCode=function(gt){var Ct,rr,T=0;if(typeof gt=="string")for(rr=gt.length,Ct=0;Ct<rr;Ct++)T=(T<<5)-T+gt.charCodeAt(Ct),T|=0;else if(hn(gt))for(rr=gt.byteLength/2,Ct=0;Ct<rr;Ct++)T=(T<<5)-T+gt[Ct],T|=0;return T},ir=c.__addimage__.validateStringAsBase64=function(gt){(gt=gt||"").toString().trim();var Ct=!0;return gt.length===0&&(Ct=!1),gt.length%4!=0&&(Ct=!1),/^[A-Za-z0-9+/]+$/.test(gt.substr(0,gt.length-2))===!1&&(Ct=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(gt.substr(-2))===!1&&(Ct=!1),Ct},xr=c.__addimage__.extractImageFromDataUrl=function(gt){if(gt==null||!(gt=gt.trim()).startsWith("data:"))return null;var Ct=gt.indexOf(",");return Ct<0?null:gt.substring(0,Ct).trim().endsWith("base64")?gt.substring(Ct+1):null},Hr=c.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};c.__addimage__.isArrayBuffer=function(gt){return Hr()&&gt instanceof ArrayBuffer};var hn=c.__addimage__.isArrayBufferView=function(gt){return Hr()&&typeof Uint32Array!="undefined"&&(gt instanceof Int8Array||gt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&gt instanceof Uint8ClampedArray||gt instanceof Int16Array||gt instanceof Uint16Array||gt instanceof Int32Array||gt instanceof Uint32Array||gt instanceof Float32Array||gt instanceof Float64Array)},Lr=c.__addimage__.binaryStringToUint8Array=function(gt){for(var Ct=gt.length,rr=new Uint8Array(Ct),T=0;T<Ct;T++)rr[T]=gt.charCodeAt(T);return rr},Vt=c.__addimage__.arrayBufferToBinaryString=function(gt){for(var Ct="",rr=hn(gt)?gt:new Uint8Array(gt),T=0;T<rr.length;T+=8192)Ct+=String.fromCharCode.apply(null,rr.subarray(T,T+8192));return Ct};c.addImage=function(){var gt,Ct,rr,T,re,Be,Ue,Ke,Xe;if(typeof arguments[1]=="number"?(Ct=o,rr=arguments[1],T=arguments[2],re=arguments[3],Be=arguments[4],Ue=arguments[5],Ke=arguments[6],Xe=arguments[7]):(Ct=arguments[1],rr=arguments[2],T=arguments[3],re=arguments[4],Be=arguments[5],Ue=arguments[6],Ke=arguments[7],Xe=arguments[8]),(0,pe.Z)(gt=arguments[0])==="object"&&!Ve(gt)&&"imageData"in gt){var ut=gt;gt=ut.imageData,Ct=ut.format||Ct||o,rr=ut.x||rr||0,T=ut.y||T||0,re=ut.w||ut.width||re,Be=ut.h||ut.height||Be,Ue=ut.alias||Ue,Ke=ut.compression||Ke,Xe=ut.rotation||ut.angle||Xe}var Et=this.internal.getFilters();if(Ke===void 0&&Et.indexOf("FlateEncode")!==-1&&(Ke="SLOW"),isNaN(rr)||isNaN(T))throw new Error("Invalid coordinates passed to jsPDF.addImage");$.call(this);var le=Or.call(this,gt,Ct,Ue,Ke);return bt.call(this,rr,T,re,Be,le,Xe),this};var Or=function(gt,Ct,rr,T){var re,Be,Ue;if(typeof gt=="string"&&b(gt)===o){gt=unescape(gt);var Ke=Jr(gt,!1);(Ke!==""||(Ke=c.loadFile(gt,!0))!==void 0)&&(gt=Ke)}if(Ve(gt)&&(gt=it(gt,Ct)),Ct=b(gt,Ct),!Ze(Ct))throw new Error("addImage does not support files of type '"+Ct+"', please ensure that a plugin for '"+Ct+"' support is added.");if(((Ue=rr)==null||Ue.length===0)&&(rr=function(Xe){return typeof Xe=="string"||hn(Xe)?Pt(Xe):hn(Xe.data)?Pt(Xe.data):null}(gt)),(re=ye.call(this,rr))||(Hr()&&(gt instanceof Uint8Array||Ct==="RGBA"||(Be=gt,gt=Lr(gt))),re=this["process"+Ct.toUpperCase()](gt,_e.call(this),rr,function(Xe){return Xe&&typeof Xe=="string"&&(Xe=Xe.toUpperCase()),Xe in c.image_compression?Xe:ht.NONE}(T),Be)),!re)throw new Error("An unknown error occurred whilst processing the image.");return re},Jr=c.__addimage__.convertBase64ToBinaryString=function(gt,Ct){Ct=typeof Ct!="boolean"||Ct;var rr,T="";if(typeof gt=="string"){var re;rr=(re=xr(gt))!==null&&re!==void 0?re:gt;try{T=Xn(rr)}catch(Be){if(Ct)throw ir(rr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Be.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return T};c.getImageProperties=function(gt){var Ct,rr,T="";if(Ve(gt)&&(gt=it(gt)),typeof gt=="string"&&b(gt)===o&&((T=Jr(gt,!1))===""&&(T=c.loadFile(gt)||""),gt=T),rr=b(gt),!Ze(rr))throw new Error("addImage does not support files of type '"+rr+"', please ensure that a plugin for '"+rr+"' support is added.");if(!Hr()||gt instanceof Uint8Array||(gt=Lr(gt)),!(Ct=this["process"+rr.toUpperCase()](gt)))throw new Error("An unknown error occurred whilst processing the image");return Ct.fileType=rr,Ct}})(Ai.API),function(c){var o=function(l){if(l!==void 0&&l!="")return!0};Ai.API.events.push(["addPage",function(l){this.internal.getPageInfo(l.pageNumber).pageContext.annotations=[]}]),c.events.push(["putPage",function(l){for(var b,I,C,N=this.internal.getCoordinateString,$=this.internal.getVerticalCoordinateString,ae=this.internal.getPageInfoByObjId(l.objId),_e=l.pageContext.annotations,Ze=!1,Ve=0;Ve<_e.length&&!Ze;Ve++)switch((b=_e[Ve]).type){case"link":(o(b.options.url)||o(b.options.pageNumber))&&(Ze=!0);break;case"reference":case"text":case"freetext":Ze=!0}if(Ze!=0){this.internal.write("/Annots [");for(var it=0;it<_e.length;it++){b=_e[it];var ye=this.internal.pdfEscape,kt=this.internal.getEncryptor(l.objId);switch(b.type){case"reference":this.internal.write(" "+b.object.objId+" 0 R ");break;case"text":var bt=this.internal.newAdditionalObject(),Dt=this.internal.newAdditionalObject(),ht=this.internal.getEncryptor(bt.objId),Pt=b.title||"Note";C="<</Type /Annot /Subtype /Text "+(I="/Rect ["+N(b.bounds.x)+" "+$(b.bounds.y+b.bounds.h)+" "+N(b.bounds.x+b.bounds.w)+" "+$(b.bounds.y)+"] ")+"/Contents ("+ye(ht(b.contents))+")",C+=" /Popup "+Dt.objId+" 0 R",C+=" /P "+ae.objId+" 0 R",C+=" /T ("+ye(ht(Pt))+") >>",bt.content=C;var ir=bt.objId+" 0 R";C="<</Type /Annot /Subtype /Popup "+(I="/Rect ["+N(b.bounds.x+30)+" "+$(b.bounds.y+b.bounds.h)+" "+N(b.bounds.x+b.bounds.w+30)+" "+$(b.bounds.y)+"] ")+" /Parent "+ir,b.open&&(C+=" /Open true"),C+=" >>",Dt.content=C,this.internal.write(bt.objId,"0 R",Dt.objId,"0 R");break;case"freetext":I="/Rect ["+N(b.bounds.x)+" "+$(b.bounds.y)+" "+N(b.bounds.x+b.bounds.w)+" "+$(b.bounds.y+b.bounds.h)+"] ";var xr=b.color||"#000000";C="<</Type /Annot /Subtype /FreeText "+I+"/Contents ("+ye(kt(b.contents))+")",C+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+xr+")",C+=" /Border [0 0 0]",C+=" >>",this.internal.write(C);break;case"link":if(b.options.name){var Hr=this.annotations._nameMap[b.options.name];b.options.pageNumber=Hr.page,b.options.top=Hr.y}else b.options.top||(b.options.top=0);if(I="/Rect ["+b.finalBounds.x+" "+b.finalBounds.y+" "+b.finalBounds.w+" "+b.finalBounds.h+"] ",C="",b.options.url)C="<</Type /Annot /Subtype /Link "+I+"/Border [0 0 0] /A <</S /URI /URI ("+ye(kt(b.options.url))+") >>";else if(b.options.pageNumber)switch(C="<</Type /Annot /Subtype /Link "+I+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(b.options.pageNumber).objId+" 0 R",b.options.magFactor=b.options.magFactor||"XYZ",b.options.magFactor){case"Fit":C+=" /Fit]";break;case"FitH":C+=" /FitH "+b.options.top+"]";break;case"FitV":b.options.left=b.options.left||0,C+=" /FitV "+b.options.left+"]";break;case"XYZ":default:var hn=$(b.options.top);b.options.left=b.options.left||0,b.options.zoom===void 0&&(b.options.zoom=0),C+=" /XYZ "+b.options.left+" "+hn+" "+b.options.zoom+"]"}C!=""&&(C+=" >>",this.internal.write(C))}}this.internal.write("]")}}]),c.createAnnotation=function(l){var b=this.internal.getCurrentPageInfo();switch(l.type){case"link":this.link(l.bounds.x,l.bounds.y,l.bounds.w,l.bounds.h,l);break;case"text":case"freetext":b.pageContext.annotations.push(l)}},c.link=function(l,b,I,C,N){var $=this.internal.getCurrentPageInfo(),ae=this.internal.getCoordinateString,_e=this.internal.getVerticalCoordinateString;$.pageContext.annotations.push({finalBounds:{x:ae(l),y:_e(b),w:ae(l+I),h:_e(b+C)},options:N,type:"link"})},c.textWithLink=function(l,b,I,C){var N,$,ae=this.getTextWidth(l),_e=this.internal.getLineHeight()/this.internal.scaleFactor;if(C.maxWidth!==void 0){$=C.maxWidth;var Ze=this.splitTextToSize(l,$).length;N=Math.ceil(_e*Ze)}else $=ae,N=_e;return this.text(l,b,I,C),I+=.2*_e,C.align==="center"&&(b-=ae/2),C.align==="right"&&(b-=ae),this.link(b,I-_e,$,N,C),ae},c.getTextWidth=function(l){var b=this.internal.getFontSize();return this.getStringUnitWidth(l)*b/this.internal.scaleFactor}}(Ai.API),function(c){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]},l={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}},b={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},I=[1570,1571,1573,1575];c.__arabicParser__={};var C=c.__arabicParser__.isInArabicSubstitutionA=function(bt){return o[bt.charCodeAt(0)]!==void 0},N=c.__arabicParser__.isArabicLetter=function(bt){return typeof bt=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(bt)},$=c.__arabicParser__.isArabicEndLetter=function(bt){return N(bt)&&C(bt)&&o[bt.charCodeAt(0)].length<=2},ae=c.__arabicParser__.isArabicAlfLetter=function(bt){return N(bt)&&I.indexOf(bt.charCodeAt(0))>=0};c.__arabicParser__.arabicLetterHasIsolatedForm=function(bt){return N(bt)&&C(bt)&&o[bt.charCodeAt(0)].length>=1};var _e=c.__arabicParser__.arabicLetterHasFinalForm=function(bt){return N(bt)&&C(bt)&&o[bt.charCodeAt(0)].length>=2};c.__arabicParser__.arabicLetterHasInitialForm=function(bt){return N(bt)&&C(bt)&&o[bt.charCodeAt(0)].length>=3};var Ze=c.__arabicParser__.arabicLetterHasMedialForm=function(bt){return N(bt)&&C(bt)&&o[bt.charCodeAt(0)].length==4},Ve=c.__arabicParser__.resolveLigatures=function(bt){var Dt=0,ht=l,Pt="",ir=0;for(Dt=0;Dt<bt.length;Dt+=1)ht[bt.charCodeAt(Dt)]!==void 0?(ir++,typeof(ht=ht[bt.charCodeAt(Dt)])=="number"&&(Pt+=String.fromCharCode(ht),ht=l,ir=0),Dt===bt.length-1&&(ht=l,Pt+=bt.charAt(Dt-(ir-1)),Dt-=ir-1,ir=0)):(ht=l,Pt+=bt.charAt(Dt-ir),Dt-=ir,ir=0);return Pt};c.__arabicParser__.isArabicDiacritic=function(bt){return bt!==void 0&&b[bt.charCodeAt(0)]!==void 0};var it=c.__arabicParser__.getCorrectForm=function(bt,Dt,ht){return N(bt)?C(bt)===!1?-1:!_e(bt)||!N(Dt)&&!N(ht)||!N(ht)&&$(Dt)||$(bt)&&!N(Dt)||$(bt)&&ae(Dt)||$(bt)&&$(Dt)?0:Ze(bt)&&N(Dt)&&!$(Dt)&&N(ht)&&_e(ht)?3:$(bt)||!N(ht)?1:2:-1},ye=function(bt){var Dt=0,ht=0,Pt=0,ir="",xr="",Hr="",hn=(bt=bt||"").split("\\s+"),Lr=[];for(Dt=0;Dt<hn.length;Dt+=1){for(Lr.push(""),ht=0;ht<hn[Dt].length;ht+=1)ir=hn[Dt][ht],xr=hn[Dt][ht-1],Hr=hn[Dt][ht+1],N(ir)?(Pt=it(ir,xr,Hr),Lr[Dt]+=Pt!==-1?String.fromCharCode(o[ir.charCodeAt(0)][Pt]):ir):Lr[Dt]+=ir;Lr[Dt]=Ve(Lr[Dt])}return Lr.join(" ")},kt=c.__arabicParser__.processArabic=c.processArabic=function(){var bt,Dt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,ht=[];if(Array.isArray(Dt)){var Pt=0;for(ht=[],Pt=0;Pt<Dt.length;Pt+=1)Array.isArray(Dt[Pt])?ht.push([ye(Dt[Pt][0]),Dt[Pt][1],Dt[Pt][2]]):ht.push([ye(Dt[Pt])]);bt=ht}else bt=ye(Dt);return typeof arguments[0]=="string"?bt:(arguments[0].text=bt,arguments[0])};c.events.push(["preProcessText",kt])}(Ai.API),Ai.API.autoPrint=function(c){var o;switch((c=c||{}).variant=c.variant||"non-conform",c.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default: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")})}return this},function(c){var o=function(){var l=void 0;Object.defineProperty(this,"pdf",{get:function(){return l},set:function($){l=$}});var b=150;Object.defineProperty(this,"width",{get:function(){return b},set:function($){b=isNaN($)||Number.isInteger($)===!1||$<0?150:$,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=b+1)}});var I=300;Object.defineProperty(this,"height",{get:function(){return I},set:function($){I=isNaN($)||Number.isInteger($)===!1||$<0?300:$,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=I+1)}});var C=[];Object.defineProperty(this,"childNodes",{get:function(){return C},set:function($){C=$}});var N={};Object.defineProperty(this,"style",{get:function(){return N},set:function($){N=$}}),Object.defineProperty(this,"parentNode",{})};o.prototype.getContext=function(l,b){var I;if((l=l||"2d")!=="2d")return null;for(I in b)this.pdf.context2d.hasOwnProperty(I)&&(this.pdf.context2d[I]=b[I]);return this.pdf.context2d._canvas=this,this.pdf.context2d},o.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},c.events.push(["initialized",function(){this.canvas=new o,this.canvas.pdf=this}])}(Ai.API),function(c){var o={left:0,top:0,bottom:0,right:0},l=!1,b=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(),I.call(this))},I=function(){this.internal.__cell__.lastCell=new C,this.internal.__cell__.pages=1},C=function(){var ae=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ae},set:function(bt){ae=bt}});var _e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _e},set:function(bt){_e=bt}});var Ze=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Ze},set:function(bt){Ze=bt}});var Ve=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Ve},set:function(bt){Ve=bt}});var it=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return it},set:function(bt){it=bt}});var ye=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ye},set:function(bt){ye=bt}});var kt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return kt},set:function(bt){kt=bt}}),this};C.prototype.clone=function(){return new C(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},C.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},c.setHeaderFunction=function(ae){return b.call(this),this.internal.__cell__.headerFunction=typeof ae=="function"?ae:void 0,this},c.getTextDimensions=function(ae,_e){b.call(this);var Ze=(_e=_e||{}).fontSize||this.getFontSize(),Ve=_e.font||this.getFont(),it=_e.scaleFactor||this.internal.scaleFactor,ye=0,kt=0,bt=0,Dt=this;if(!Array.isArray(ae)&&typeof ae!="string"){if(typeof ae!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ae=String(ae)}var ht=_e.maxWidth;ht>0?typeof ae=="string"?ae=this.splitTextToSize(ae,ht):Object.prototype.toString.call(ae)==="[object Array]"&&(ae=ae.reduce(function(ir,xr){return ir.concat(Dt.splitTextToSize(xr,ht))},[])):ae=Array.isArray(ae)?ae:[ae];for(var Pt=0;Pt<ae.length;Pt++)ye<(bt=this.getStringUnitWidth(ae[Pt],{font:Ve})*Ze)&&(ye=bt);return ye!==0&&(kt=ae.length),{w:ye/=it,h:Math.max((kt*Ze*this.getLineHeightFactor()-Ze*(this.getLineHeightFactor()-1))/it,0)}},c.cellAddPage=function(){b.call(this),this.addPage();var ae=this.internal.__cell__.margins||o;return this.internal.__cell__.lastCell=new C(ae.left,ae.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var N=c.cell=function(){var ae;ae=arguments[0]instanceof C?arguments[0]:new C(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),b.call(this);var _e=this.internal.__cell__.lastCell,Ze=this.internal.__cell__.padding,Ve=this.internal.__cell__.margins||o,it=this.internal.__cell__.tableHeaderRow,ye=this.internal.__cell__.printHeaders;return _e.lineNumber!==void 0&&(_e.lineNumber===ae.lineNumber?(ae.x=(_e.x||0)+(_e.width||0),ae.y=_e.y||0):_e.y+_e.height+ae.height+Ve.bottom>this.getPageHeight()?(this.cellAddPage(),ae.y=Ve.top,ye&&it&&(this.printHeaderRow(ae.lineNumber,!0),ae.y+=it[0].height)):ae.y=_e.y+_e.height||ae.y),ae.text[0]!==void 0&&(this.rect(ae.x,ae.y,ae.width,ae.height,l===!0?"FD":void 0),ae.align==="right"?this.text(ae.text,ae.x+ae.width-Ze,ae.y+Ze,{align:"right",baseline:"top"}):ae.align==="center"?this.text(ae.text,ae.x+ae.width/2,ae.y+Ze,{align:"center",baseline:"top",maxWidth:ae.width-Ze-Ze}):this.text(ae.text,ae.x+Ze,ae.y+Ze,{align:"left",baseline:"top",maxWidth:ae.width-Ze-Ze})),this.internal.__cell__.lastCell=ae,this};c.table=function(ae,_e,Ze,Ve,it){if(b.call(this),!Ze)throw new Error("No data for PDF table.");var ye,kt,bt,Dt,ht=[],Pt=[],ir=[],xr={},Hr={},hn=[],Lr=[],Vt=(it=it||{}).autoSize||!1,Or=it.printHeaders!==!1,Jr=it.css&&it.css["font-size"]!==void 0?16*it.css["font-size"]:it.fontSize||12,gt=it.margins||Object.assign({width:this.getPageWidth()},o),Ct=typeof it.padding=="number"?it.padding:3,rr=it.headerBackgroundColor||"#c8c8c8",T=it.headerTextColor||"#000";if(I.call(this),this.internal.__cell__.printHeaders=Or,this.internal.__cell__.margins=gt,this.internal.__cell__.table_font_size=Jr,this.internal.__cell__.padding=Ct,this.internal.__cell__.headerBackgroundColor=rr,this.internal.__cell__.headerTextColor=T,this.setFontSize(Jr),Ve==null)Pt=ht=Object.keys(Ze[0]),ir=ht.map(function(){return"left"});else if(Array.isArray(Ve)&&(0,pe.Z)(Ve[0])==="object")for(ht=Ve.map(function(ut){return ut.name}),Pt=Ve.map(function(ut){return ut.prompt||ut.name||""}),ir=Ve.map(function(ut){return ut.align||"left"}),ye=0;ye<Ve.length;ye+=1)Hr[Ve[ye].name]=Ve[ye].width*(19.049976/25.4);else Array.isArray(Ve)&&typeof Ve[0]=="string"&&(Pt=ht=Ve,ir=ht.map(function(){return"left"}));if(Vt||Array.isArray(Ve)&&typeof Ve[0]=="string")for(ye=0;ye<ht.length;ye+=1){for(xr[Dt=ht[ye]]=Ze.map(function(ut){return ut[Dt]}),this.setFont(void 0,"bold"),hn.push(this.getTextDimensions(Pt[ye],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),kt=xr[Dt],this.setFont(void 0,"normal"),bt=0;bt<kt.length;bt+=1)hn.push(this.getTextDimensions(kt[bt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Hr[Dt]=Math.max.apply(null,hn)+Ct+Ct,hn=[]}if(Or){var re={};for(ye=0;ye<ht.length;ye+=1)re[ht[ye]]={},re[ht[ye]].text=Pt[ye],re[ht[ye]].align=ir[ye];var Be=$.call(this,re,Hr);Lr=ht.map(function(ut){return new C(ae,_e,Hr[ut],Be,re[ut].text,void 0,re[ut].align)}),this.setTableHeaderRow(Lr),this.printHeaderRow(1,!1)}var Ue=Ve.reduce(function(ut,Et){return ut[Et.name]=Et.align,ut},{});for(ye=0;ye<Ze.length;ye+=1){"rowStart"in it&&it.rowStart instanceof Function&&it.rowStart({row:ye,data:Ze[ye]},this);var Ke=$.call(this,Ze[ye],Hr);for(bt=0;bt<ht.length;bt+=1){var Xe=Ze[ye][ht[bt]];"cellStart"in it&&it.cellStart instanceof Function&&it.cellStart({row:ye,col:bt,data:Xe},this),N.call(this,new C(ae,_e,Hr[ht[bt]],Ke,Xe,ye+2,Ue[ht[bt]]))}}return this.internal.__cell__.table_x=ae,this.internal.__cell__.table_y=_e,this};var $=function(ae,_e){var Ze=this.internal.__cell__.padding,Ve=this.internal.__cell__.table_font_size,it=this.internal.scaleFactor;return Object.keys(ae).map(function(ye){var kt=ae[ye];return this.splitTextToSize(kt.hasOwnProperty("text")?kt.text:kt,_e[ye]-Ze-Ze)},this).map(function(ye){return this.getLineHeightFactor()*ye.length*Ve/it+Ze+Ze},this).reduce(function(ye,kt){return Math.max(ye,kt)},0)};c.setTableHeaderRow=function(ae){b.call(this),this.internal.__cell__.tableHeaderRow=ae},c.printHeaderRow=function(ae,_e){if(b.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Ze;if(l=!0,typeof this.internal.__cell__.headerFunction=="function"){var Ve=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new C(Ve[0],Ve[1],Ve[2],Ve[3],void 0,-1)}this.setFont(void 0,"bold");for(var it=[],ye=0;ye<this.internal.__cell__.tableHeaderRow.length;ye+=1){Ze=this.internal.__cell__.tableHeaderRow[ye].clone(),_e&&(Ze.y=this.internal.__cell__.margins.top||0,it.push(Ze)),Ze.lineNumber=ae;var kt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),N.call(this,Ze),this.setTextColor(kt)}it.length>0&&this.setTableHeaderRow(it),this.setFont(void 0,"normal"),l=!1}}(Ai.API);var zs={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ms=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Da=Hl(ms),Uo=[100,200,300,400,500,600,700,800,900],jl=Hl(Uo);function tc(c){var o=c.family.replace(/"|'/g,"").toLowerCase(),l=function(C){return zs[C=C||"normal"]?C:"normal"}(c.style),b=function(C){if(!C)return 400;if(typeof C=="number")return C>=100&&C<=900&&C%100==0?C:400;if(/^\d00$/.test(C))return parseInt(C);switch(C){case"bold":return 700;case"normal":default:return 400}}(c.weight),I=function(C){return typeof Da[C=C||"normal"]=="number"?C:"normal"}(c.stretch);return{family:o,style:l,weight:b,stretch:I,src:c.src||[],ref:c.ref||{name:o,style:[I,l,b].join(" ")}}}function fl(c,o,l,b){var I;for(I=l;I>=0&&I<o.length;I+=b)if(c[o[I]])return c[o[I]];for(I=l;I>=0&&I<o.length;I-=b)if(c[o[I]])return c[o[I]]}var ma={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},oa={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ho(c){return[c.stretch,c.style,c.weight,c.family].join(" ")}function Za(c,o,l){for(var b=(l=l||{}).defaultFontFamily||"times",I=Object.assign({},ma,l.genericFontFamilies||{}),C=null,N=null,$=0;$<o.length;++$)if(I[(C=tc(o[$])).family]&&(C.family=I[C.family]),c.hasOwnProperty(C.family)){N=c[C.family];break}if(!(N=N||c[b]))throw new Error("Could not find a font-family for the rule '"+ho(C)+"' and default family '"+b+"'.");if(N=function(ae,_e){if(_e[ae])return _e[ae];var Ze=Da[ae],Ve=Ze<=Da.normal?-1:1,it=fl(_e,ms,Ze,Ve);if(!it)throw new Error("Could not find a matching font-stretch value for "+ae);return it}(C.stretch,N),N=function(ae,_e){if(_e[ae])return _e[ae];for(var Ze=zs[ae],Ve=0;Ve<Ze.length;++Ve)if(_e[Ze[Ve]])return _e[Ze[Ve]];throw new Error("Could not find a matching font-style for "+ae)}(C.style,N),!(N=function(ae,_e){if(_e[ae])return _e[ae];if(ae===400&&_e[500])return _e[500];if(ae===500&&_e[400])return _e[400];var Ze=jl[ae],Ve=fl(_e,Uo,Ze,ae<400?-1:1);if(!Ve)throw new Error("Could not find a matching font-weight for value "+ae);return Ve}(C.weight,N)))throw new Error("Failed to resolve a font for the rule '"+ho(C)+"'.");return N}function to(c){return c.trimLeft()}function Ro(c,o){for(var l=0;l<c.length;){if(c.charAt(l)===o)return[c.substring(0,l),c.substring(l+1)];l+=1}return null}function Ya(c){var o=c.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return o===null?null:[o[0],c.substring(o[0].length)]}var Wo,Ds,hl,Xs=["times"];(function(c){var o,l,b,I,C,N,$,ae,_e,Ze=function(le){return le=le||{},this.isStrokeTransparent=le.isStrokeTransparent||!1,this.strokeOpacity=le.strokeOpacity||1,this.strokeStyle=le.strokeStyle||"#000000",this.fillStyle=le.fillStyle||"#000000",this.isFillTransparent=le.isFillTransparent||!1,this.fillOpacity=le.fillOpacity||1,this.font=le.font||"10px sans-serif",this.textBaseline=le.textBaseline||"alphabetic",this.textAlign=le.textAlign||"left",this.lineWidth=le.lineWidth||1,this.lineJoin=le.lineJoin||"miter",this.lineCap=le.lineCap||"butt",this.path=le.path||[],this.transform=le.transform!==void 0?le.transform.clone():new ae,this.globalCompositeOperation=le.globalCompositeOperation||"normal",this.globalAlpha=le.globalAlpha||1,this.clip_path=le.clip_path||[],this.currentPoint=le.currentPoint||new N,this.miterLimit=le.miterLimit||10,this.lastPoint=le.lastPoint||new N,this.lineDashOffset=le.lineDashOffset||0,this.lineDash=le.lineDash||[],this.margin=le.margin||[0,0,0,0],this.prevPageLastElemOffset=le.prevPageLastElemOffset||0,this.ignoreClearRect=typeof le.ignoreClearRect!="boolean"||le.ignoreClearRect,this};c.events.push(["initialized",function(){this.context2d=new Ve(this),o=this.internal.f2,l=this.internal.getCoordinateString,b=this.internal.getVerticalCoordinateString,I=this.internal.getHorizontalCoordinate,C=this.internal.getVerticalCoordinate,N=this.internal.Point,$=this.internal.Rectangle,ae=this.internal.Matrix,_e=new Ze}]);var Ve=function(le){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Re=le;Object.defineProperty(this,"pdf",{get:function(){return Re}});var Ye=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ye},set:function(ar){Ye=!!ar}});var et=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return et},set:function(ar){et=!!ar}});var yt=0;Object.defineProperty(this,"posX",{get:function(){return yt},set:function(ar){isNaN(ar)||(yt=ar)}});var _t=0;Object.defineProperty(this,"posY",{get:function(){return _t},set:function(ar){isNaN(ar)||(_t=ar)}}),Object.defineProperty(this,"margin",{get:function(){return _e.margin},set:function(ar){var vt;typeof ar=="number"?vt=[ar,ar,ar,ar]:((vt=new Array(4))[0]=ar[0],vt[1]=ar.length>=2?ar[1]:vt[0],vt[2]=ar.length>=3?ar[2]:vt[0],vt[3]=ar.length>=4?ar[3]:vt[1]),_e.margin=vt}});var Mt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Mt},set:function(ar){Mt=ar}});var Rt=0;Object.defineProperty(this,"lastBreak",{get:function(){return Rt},set:function(ar){Rt=ar}});var lr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return lr},set:function(ar){lr=ar}}),Object.defineProperty(this,"ctx",{get:function(){return _e},set:function(ar){ar instanceof Ze&&(_e=ar)}}),Object.defineProperty(this,"path",{get:function(){return _e.path},set:function(ar){_e.path=ar}});var Ar=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ar},set:function(ar){Ar=ar}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ar){var vt;vt=it(ar),this.ctx.fillStyle=vt.style,this.ctx.isFillTransparent=vt.a===0,this.ctx.fillOpacity=vt.a,this.pdf.setFillColor(vt.r,vt.g,vt.b,{a:vt.a}),this.pdf.setTextColor(vt.r,vt.g,vt.b,{a:vt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ar){var vt=it(ar);this.ctx.strokeStyle=vt.style,this.ctx.isStrokeTransparent=vt.a===0,this.ctx.strokeOpacity=vt.a,vt.a===0?this.pdf.setDrawColor(255,255,255):(vt.a,this.pdf.setDrawColor(vt.r,vt.g,vt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ar){["butt","round","square"].indexOf(ar)!==-1&&(this.ctx.lineCap=ar,this.pdf.setLineCap(ar))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ar){isNaN(ar)||(this.ctx.lineWidth=ar,this.pdf.setLineWidth(ar))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ar){["bevel","round","miter"].indexOf(ar)!==-1&&(this.ctx.lineJoin=ar,this.pdf.setLineJoin(ar))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ar){isNaN(ar)||(this.ctx.miterLimit=ar,this.pdf.setMiterLimit(ar))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ar){this.ctx.textBaseline=ar}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ar){["right","end","center","left","start"].indexOf(ar)!==-1&&(this.ctx.textAlign=ar)}});var gr=null;function _r(ar,vt){if(gr===null){var Fn=function(gn){var yr=[];return Object.keys(gn).forEach(function(Ur){gn[Ur].forEach(function(Rr){var wr=null;switch(Rr){case"bold":wr={family:Ur,weight:"bold"};break;case"italic":wr={family:Ur,style:"italic"};break;case"bolditalic":wr={family:Ur,weight:"bold",style:"italic"};break;case"":case"normal":wr={family:Ur}}wr!==null&&(wr.ref={name:Ur,style:Rr},yr.push(wr))})}),yr}(ar.getFontList());gr=function(gn){for(var yr={},Ur=0;Ur<gn.length;++Ur){var Rr=tc(gn[Ur]),wr=Rr.family,Zr=Rr.stretch,Cn=Rr.style,Gn=Rr.weight;yr[wr]=yr[wr]||{},yr[wr][Zr]=yr[wr][Zr]||{},yr[wr][Zr][Cn]=yr[wr][Zr][Cn]||{},yr[wr][Zr][Cn][Gn]=Rr}return yr}(Fn.concat(vt))}return gr}var dn=null;Object.defineProperty(this,"fontFaces",{get:function(){return dn},set:function(ar){gr=null,dn=ar}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ar){var vt;if(this.ctx.font=ar,(vt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ar))!==null){var Fn=vt[1];vt[2];var gn=vt[3],yr=vt[4];vt[5];var Ur=vt[6],Rr=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yr)[2];yr=Math.floor(Rr==="px"?parseFloat(yr)*this.pdf.internal.scaleFactor:Rr==="em"?parseFloat(yr)*this.pdf.getFontSize():parseFloat(yr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yr);var wr=function(zn){var Ii,vn,_a=[],Hi=zn.trim();if(Hi==="")return Xs;if(Hi in oa)return[oa[Hi]];for(;Hi!=="";){switch(vn=null,Ii=(Hi=to(Hi)).charAt(0)){case'"':case"'":vn=Ro(Hi.substring(1),Ii);break;default:vn=Ya(Hi)}if(vn===null||(_a.push(vn[0]),(Hi=to(vn[1]))!==""&&Hi.charAt(0)!==","))return Xs;Hi=Hi.replace(/^,/,"")}return _a}(Ur);if(this.fontFaces){var Zr=Za(_r(this.pdf,this.fontFaces),wr.map(function(zn){return{family:zn,stretch:"normal",weight:gn,style:Fn}}));this.pdf.setFont(Zr.ref.name,Zr.ref.style)}else{var Cn="";(gn==="bold"||parseInt(gn,10)>=700||Fn==="bold")&&(Cn="bold"),Fn==="italic"&&(Cn+="italic"),Cn.length===0&&(Cn="normal");for(var Gn="",Zn={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"},Nn=0;Nn<wr.length;Nn++){if(this.pdf.internal.getFont(wr[Nn],Cn,{noFallback:!0,disableWarning:!0})!==void 0){Gn=wr[Nn];break}if(Cn==="bolditalic"&&this.pdf.internal.getFont(wr[Nn],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Gn=wr[Nn],Cn="bold";else if(this.pdf.internal.getFont(wr[Nn],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Gn=wr[Nn],Cn="normal";break}}if(Gn===""){for(var di=0;di<wr.length;di++)if(Zn[wr[di]]){Gn=Zn[wr[di]];break}}Gn=Gn===""?"Times":Gn,this.pdf.setFont(Gn,Cn)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ar){this.ctx.globalCompositeOperation=ar}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ar){this.ctx.globalAlpha=ar}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ar){this.ctx.lineDashOffset=ar,Et.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ar){this.ctx.lineDash=ar,Et.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ar){this.ctx.ignoreClearRect=!!ar}})};Ve.prototype.setLineDash=function(le){this.lineDash=le},Ve.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Ve.prototype.fill=function(){xr.call(this,"fill",!1)},Ve.prototype.stroke=function(){xr.call(this,"stroke",!1)},Ve.prototype.beginPath=function(){this.path=[{type:"begin"}]},Ve.prototype.moveTo=function(le,Re){if(isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ye=this.ctx.transform.applyToPoint(new N(le,Re));this.path.push({type:"mt",x:Ye.x,y:Ye.y}),this.ctx.lastPoint=new N(le,Re)},Ve.prototype.closePath=function(){var le=new N(0,0),Re=0;for(Re=this.path.length-1;Re!==-1;Re--)if(this.path[Re].type==="begin"&&(0,pe.Z)(this.path[Re+1])==="object"&&typeof this.path[Re+1].x=="number"){le=new N(this.path[Re+1].x,this.path[Re+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new N(le.x,le.y)},Ve.prototype.lineTo=function(le,Re){if(isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ye=this.ctx.transform.applyToPoint(new N(le,Re));this.path.push({type:"lt",x:Ye.x,y:Ye.y}),this.ctx.lastPoint=new N(Ye.x,Ye.y)},Ve.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),xr.call(this,null,!0)},Ve.prototype.quadraticCurveTo=function(le,Re,Ye,et){if(isNaN(Ye)||isNaN(et)||isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var yt=this.ctx.transform.applyToPoint(new N(Ye,et)),_t=this.ctx.transform.applyToPoint(new N(le,Re));this.path.push({type:"qct",x1:_t.x,y1:_t.y,x:yt.x,y:yt.y}),this.ctx.lastPoint=new N(yt.x,yt.y)},Ve.prototype.bezierCurveTo=function(le,Re,Ye,et,yt,_t){if(isNaN(yt)||isNaN(_t)||isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Mt=this.ctx.transform.applyToPoint(new N(yt,_t)),Rt=this.ctx.transform.applyToPoint(new N(le,Re)),lr=this.ctx.transform.applyToPoint(new N(Ye,et));this.path.push({type:"bct",x1:Rt.x,y1:Rt.y,x2:lr.x,y2:lr.y,x:Mt.x,y:Mt.y}),this.ctx.lastPoint=new N(Mt.x,Mt.y)},Ve.prototype.arc=function(le,Re,Ye,et,yt,_t){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et)||isNaN(yt))throw Ln.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(_t=!!_t,!this.ctx.transform.isIdentity){var Mt=this.ctx.transform.applyToPoint(new N(le,Re));le=Mt.x,Re=Mt.y;var Rt=this.ctx.transform.applyToPoint(new N(0,Ye)),lr=this.ctx.transform.applyToPoint(new N(0,0));Ye=Math.sqrt(Math.pow(Rt.x-lr.x,2)+Math.pow(Rt.y-lr.y,2))}Math.abs(yt-et)>=2*Math.PI&&(et=0,yt=2*Math.PI),this.path.push({type:"arc",x:le,y:Re,radius:Ye,startAngle:et,endAngle:yt,counterclockwise:_t})},Ve.prototype.arcTo=function(le,Re,Ye,et,yt){throw new Error("arcTo not implemented.")},Ve.prototype.rect=function(le,Re,Ye,et){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(le,Re),this.lineTo(le+Ye,Re),this.lineTo(le+Ye,Re+et),this.lineTo(le,Re+et),this.lineTo(le,Re),this.lineTo(le+Ye,Re),this.lineTo(le,Re)},Ve.prototype.fillRect=function(le,Re,Ye,et){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ye.call(this)){var yt={};this.lineCap!=="butt"&&(yt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(yt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(le,Re,Ye,et),this.fill(),yt.hasOwnProperty("lineCap")&&(this.lineCap=yt.lineCap),yt.hasOwnProperty("lineJoin")&&(this.lineJoin=yt.lineJoin)}},Ve.prototype.strokeRect=function(le,Re,Ye,et){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");kt.call(this)||(this.beginPath(),this.rect(le,Re,Ye,et),this.stroke())},Ve.prototype.clearRect=function(le,Re,Ye,et){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(le,Re,Ye,et))},Ve.prototype.save=function(le){le=typeof le!="boolean"||le;for(var Re=this.pdf.internal.getCurrentPageInfo().pageNumber,Ye=0;Ye<this.pdf.internal.getNumberOfPages();Ye++)this.pdf.setPage(Ye+1),this.pdf.internal.out("q");if(this.pdf.setPage(Re),le){this.ctx.fontSize=this.pdf.internal.getFontSize();var et=new Ze(this.ctx);this.ctxStack.push(this.ctx),this.ctx=et}},Ve.prototype.restore=function(le){le=typeof le!="boolean"||le;for(var Re=this.pdf.internal.getCurrentPageInfo().pageNumber,Ye=0;Ye<this.pdf.internal.getNumberOfPages();Ye++)this.pdf.setPage(Ye+1),this.pdf.internal.out("Q");this.pdf.setPage(Re),le&&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)},Ve.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var it=function(le){var Re,Ye,et,yt;if(le.isCanvasGradient===!0&&(le=le.getColor()),!le)return{r:0,g:0,b:0,a:0,style:le};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(le))Re=0,Ye=0,et=0,yt=0;else{var _t=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(le);if(_t!==null)Re=parseInt(_t[1]),Ye=parseInt(_t[2]),et=parseInt(_t[3]),yt=1;else if((_t=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(le))!==null)Re=parseInt(_t[1]),Ye=parseInt(_t[2]),et=parseInt(_t[3]),yt=parseFloat(_t[4]);else{if(yt=1,typeof le=="string"&&le.charAt(0)!=="#"){var Mt=new ii(le);le=Mt.ok?Mt.toHex():"#000000"}le.length===4?(Re=le.substring(1,2),Re+=Re,Ye=le.substring(2,3),Ye+=Ye,et=le.substring(3,4),et+=et):(Re=le.substring(1,3),Ye=le.substring(3,5),et=le.substring(5,7)),Re=parseInt(Re,16),Ye=parseInt(Ye,16),et=parseInt(et,16)}}return{r:Re,g:Ye,b:et,a:yt,style:le}},ye=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},kt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Ve.prototype.fillText=function(le,Re,Ye,et){if(isNaN(Re)||isNaN(Ye)||typeof le!="string")throw Ln.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(et=isNaN(et)?void 0:et,!ye.call(this)){var yt=Ke(this.ctx.transform.rotation),_t=this.ctx.transform.scaleX;Ct.call(this,{text:le,x:Re,y:Ye,scale:_t,angle:yt,align:this.textAlign,maxWidth:et})}},Ve.prototype.strokeText=function(le,Re,Ye,et){if(isNaN(Re)||isNaN(Ye)||typeof le!="string")throw Ln.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!kt.call(this)){et=isNaN(et)?void 0:et;var yt=Ke(this.ctx.transform.rotation),_t=this.ctx.transform.scaleX;Ct.call(this,{text:le,x:Re,y:Ye,scale:_t,renderingMode:"stroke",angle:yt,align:this.textAlign,maxWidth:et})}},Ve.prototype.measureText=function(le){if(typeof le!="string")throw Ln.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Re=this.pdf,Ye=this.pdf.internal.scaleFactor,et=Re.internal.getFontSize(),yt=Re.getStringUnitWidth(le)*et/Re.internal.scaleFactor,_t=function(Mt){var Rt=(Mt=Mt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Rt}}),this};return new _t({width:yt*=Math.round(96*Ye/72*1e4)/1e4})},Ve.prototype.scale=function(le,Re){if(isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ye=new ae(le,0,0,Re,0,0);this.ctx.transform=this.ctx.transform.multiply(Ye)},Ve.prototype.rotate=function(le){if(isNaN(le))throw Ln.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Re=new ae(Math.cos(le),Math.sin(le),-Math.sin(le),Math.cos(le),0,0);this.ctx.transform=this.ctx.transform.multiply(Re)},Ve.prototype.translate=function(le,Re){if(isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ye=new ae(1,0,0,1,le,Re);this.ctx.transform=this.ctx.transform.multiply(Ye)},Ve.prototype.transform=function(le,Re,Ye,et,yt,_t){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et)||isNaN(yt)||isNaN(_t))throw Ln.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Mt=new ae(le,Re,Ye,et,yt,_t);this.ctx.transform=this.ctx.transform.multiply(Mt)},Ve.prototype.setTransform=function(le,Re,Ye,et,yt,_t){le=isNaN(le)?1:le,Re=isNaN(Re)?0:Re,Ye=isNaN(Ye)?0:Ye,et=isNaN(et)?1:et,yt=isNaN(yt)?0:yt,_t=isNaN(_t)?0:_t,this.ctx.transform=new ae(le,Re,Ye,et,yt,_t)};var bt=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Ve.prototype.drawImage=function(le,Re,Ye,et,yt,_t,Mt,Rt,lr){var Ar=this.pdf.getImageProperties(le),gr=1,_r=1,dn=1,ar=1;et!==void 0&&Rt!==void 0&&(dn=Rt/et,ar=lr/yt,gr=Ar.width/et*Rt/et,_r=Ar.height/yt*lr/yt),_t===void 0&&(_t=Re,Mt=Ye,Re=0,Ye=0),et!==void 0&&Rt===void 0&&(Rt=et,lr=yt),et===void 0&&Rt===void 0&&(Rt=Ar.width,lr=Ar.height);for(var vt,Fn=this.ctx.transform.decompose(),gn=Ke(Fn.rotate.shx),yr=new ae,Ur=(yr=(yr=(yr=yr.multiply(Fn.translate)).multiply(Fn.skew)).multiply(Fn.scale)).applyToRectangle(new $(_t-Re*dn,Mt-Ye*ar,et*gr,yt*_r)),Rr=Dt.call(this,Ur),wr=[],Zr=0;Zr<Rr.length;Zr+=1)wr.indexOf(Rr[Zr])===-1&&wr.push(Rr[Zr]);if(ir(wr),this.autoPaging)for(var Cn=wr[0],Gn=wr[wr.length-1],Zn=Cn;Zn<Gn+1;Zn++){this.pdf.setPage(Zn);var Nn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],di=Zn===1?this.posY+this.margin[0]:this.margin[0],zn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ii=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],vn=Zn===1?0:zn+(Zn-2)*Ii;if(this.ctx.clip_path.length!==0){var _a=this.path;vt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(vt,this.posX+this.margin[3],-vn+di+this.ctx.prevPageLastElemOffset),Hr.call(this,"fill",!0),this.path=_a}var Hi=JSON.parse(JSON.stringify(Ur));Hi=Pt([Hi],this.posX+this.margin[3],-vn+di+this.ctx.prevPageLastElemOffset)[0];var Ri=(Zn>Cn||Zn<Gn)&&bt.call(this);Ri&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Nn,Ii,null).clip().discardPath()),this.pdf.addImage(le,"JPEG",Hi.x,Hi.y,Hi.w,Hi.h,null,null,gn),Ri&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(le,"JPEG",Ur.x,Ur.y,Ur.w,Ur.h,null,null,gn)};var Dt=function(le,Re,Ye){var et=[];Re=Re||this.pdf.internal.pageSize.width,Ye=Ye||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var yt=this.posY+this.ctx.prevPageLastElemOffset;switch(le.type){default:case"mt":case"lt":et.push(Math.floor((le.y+yt)/Ye)+1);break;case"arc":et.push(Math.floor((le.y+yt-le.radius)/Ye)+1),et.push(Math.floor((le.y+yt+le.radius)/Ye)+1);break;case"qct":var _t=Xe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,le.x1,le.y1,le.x,le.y);et.push(Math.floor((_t.y+yt)/Ye)+1),et.push(Math.floor((_t.y+_t.h+yt)/Ye)+1);break;case"bct":var Mt=ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,le.x1,le.y1,le.x2,le.y2,le.x,le.y);et.push(Math.floor((Mt.y+yt)/Ye)+1),et.push(Math.floor((Mt.y+Mt.h+yt)/Ye)+1);break;case"rect":et.push(Math.floor((le.y+yt)/Ye)+1),et.push(Math.floor((le.y+le.h+yt)/Ye)+1)}for(var Rt=0;Rt<et.length;Rt+=1)for(;this.pdf.internal.getNumberOfPages()<et[Rt];)ht.call(this);return et},ht=function(){var le=this.fillStyle,Re=this.strokeStyle,Ye=this.font,et=this.lineCap,yt=this.lineWidth,_t=this.lineJoin;this.pdf.addPage(),this.fillStyle=le,this.strokeStyle=Re,this.font=Ye,this.lineCap=et,this.lineWidth=yt,this.lineJoin=_t},Pt=function(le,Re,Ye){for(var et=0;et<le.length;et++)switch(le[et].type){case"bct":le[et].x2+=Re,le[et].y2+=Ye;case"qct":le[et].x1+=Re,le[et].y1+=Ye;case"mt":case"lt":case"arc":default:le[et].x+=Re,le[et].y+=Ye}return le},ir=function(le){return le.sort(function(Re,Ye){return Re-Ye})},xr=function(le,Re){for(var Ye,et,yt=this.fillStyle,_t=this.strokeStyle,Mt=this.lineCap,Rt=this.lineWidth,lr=Math.abs(Rt*this.ctx.transform.scaleX),Ar=this.lineJoin,gr=JSON.parse(JSON.stringify(this.path)),_r=JSON.parse(JSON.stringify(this.path)),dn=[],ar=0;ar<_r.length;ar++)if(_r[ar].x!==void 0)for(var vt=Dt.call(this,_r[ar]),Fn=0;Fn<vt.length;Fn+=1)dn.indexOf(vt[Fn])===-1&&dn.push(vt[Fn]);for(var gn=0;gn<dn.length;gn++)for(;this.pdf.internal.getNumberOfPages()<dn[gn];)ht.call(this);if(ir(dn),this.autoPaging)for(var yr=dn[0],Ur=dn[dn.length-1],Rr=yr;Rr<Ur+1;Rr++){this.pdf.setPage(Rr),this.fillStyle=yt,this.strokeStyle=_t,this.lineCap=Mt,this.lineWidth=lr,this.lineJoin=Ar;var wr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Zr=Rr===1?this.posY+this.margin[0]:this.margin[0],Cn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Zn=Rr===1?0:Cn+(Rr-2)*Gn;if(this.ctx.clip_path.length!==0){var Nn=this.path;Ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(Ye,this.posX+this.margin[3],-Zn+Zr+this.ctx.prevPageLastElemOffset),Hr.call(this,le,!0),this.path=Nn}if(et=JSON.parse(JSON.stringify(gr)),this.path=Pt(et,this.posX+this.margin[3],-Zn+Zr+this.ctx.prevPageLastElemOffset),Re===!1||Rr===0){var di=(Rr>yr||Rr<Ur)&&bt.call(this);di&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],wr,Gn,null).clip().discardPath()),Hr.call(this,le,Re),di&&this.pdf.restoreGraphicsState()}this.lineWidth=Rt}else this.lineWidth=lr,Hr.call(this,le,Re),this.lineWidth=Rt;this.path=gr},Hr=function(le,Re){if((le!=="stroke"||Re||!kt.call(this))&&(le==="stroke"||Re||!ye.call(this))){for(var Ye,et,yt=[],_t=this.path,Mt=0;Mt<_t.length;Mt++){var Rt=_t[Mt];switch(Rt.type){case"begin":yt.push({begin:!0});break;case"close":yt.push({close:!0});break;case"mt":yt.push({start:Rt,deltas:[],abs:[]});break;case"lt":var lr=yt.length;if(_t[Mt-1]&&!isNaN(_t[Mt-1].x)&&(Ye=[Rt.x-_t[Mt-1].x,Rt.y-_t[Mt-1].y],lr>0)){for(;lr>=0;lr--)if(yt[lr-1].close!==!0&&yt[lr-1].begin!==!0){yt[lr-1].deltas.push(Ye),yt[lr-1].abs.push(Rt);break}}break;case"bct":Ye=[Rt.x1-_t[Mt-1].x,Rt.y1-_t[Mt-1].y,Rt.x2-_t[Mt-1].x,Rt.y2-_t[Mt-1].y,Rt.x-_t[Mt-1].x,Rt.y-_t[Mt-1].y],yt[yt.length-1].deltas.push(Ye);break;case"qct":var Ar=_t[Mt-1].x+2/3*(Rt.x1-_t[Mt-1].x),gr=_t[Mt-1].y+2/3*(Rt.y1-_t[Mt-1].y),_r=Rt.x+2/3*(Rt.x1-Rt.x),dn=Rt.y+2/3*(Rt.y1-Rt.y),ar=Rt.x,vt=Rt.y;Ye=[Ar-_t[Mt-1].x,gr-_t[Mt-1].y,_r-_t[Mt-1].x,dn-_t[Mt-1].y,ar-_t[Mt-1].x,vt-_t[Mt-1].y],yt[yt.length-1].deltas.push(Ye);break;case"arc":yt.push({deltas:[],abs:[],arc:!0}),Array.isArray(yt[yt.length-1].abs)&&yt[yt.length-1].abs.push(Rt)}}et=Re?null:le==="stroke"?"stroke":"fill";for(var Fn=!1,gn=0;gn<yt.length;gn++)if(yt[gn].arc)for(var yr=yt[gn].abs,Ur=0;Ur<yr.length;Ur++){var Rr=yr[Ur];Rr.type==="arc"?Vt.call(this,Rr.x,Rr.y,Rr.radius,Rr.startAngle,Rr.endAngle,Rr.counterclockwise,void 0,Re,!Fn):rr.call(this,Rr.x,Rr.y),Fn=!0}else if(yt[gn].close===!0)this.pdf.internal.out("h"),Fn=!1;else if(yt[gn].begin!==!0){var wr=yt[gn].start.x,Zr=yt[gn].start.y;T.call(this,yt[gn].deltas,wr,Zr),Fn=!0}et&&Or.call(this,et),Re&&Jr.call(this)}},hn=function(le){var Re=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ye=Re*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return le-Ye;case"top":return le+Re-Ye;case"hanging":return le+Re-2*Ye;case"middle":return le+Re/2-Ye;case"ideographic":return le;case"alphabetic":default:return le}},Lr=function(le){return le+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Ve.prototype.createLinearGradient=function(){var le=function(){};return le.colorStops=[],le.addColorStop=function(Re,Ye){this.colorStops.push([Re,Ye])},le.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},le.isCanvasGradient=!0,le},Ve.prototype.createPattern=function(){return this.createLinearGradient()},Ve.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Vt=function(le,Re,Ye,et,yt,_t,Mt,Rt,lr){for(var Ar=Be.call(this,Ye,et,yt,_t),gr=0;gr<Ar.length;gr++){var _r=Ar[gr];gr===0&&(lr?gt.call(this,_r.x1+le,_r.y1+Re):rr.call(this,_r.x1+le,_r.y1+Re)),re.call(this,le,Re,_r.x2,_r.y2,_r.x3,_r.y3,_r.x4,_r.y4)}Rt?Jr.call(this):Or.call(this,Mt)},Or=function(le){switch(le){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Jr=function(){this.pdf.clip(),this.pdf.discardPath()},gt=function(le,Re){this.pdf.internal.out(l(le)+" "+b(Re)+" m")},Ct=function(le){var Re;switch(le.align){case"right":case"end":Re="right";break;case"center":Re="center";break;case"left":case"start":default:Re="left"}var Ye=this.pdf.getTextDimensions(le.text),et=hn.call(this,le.y),yt=Lr.call(this,et)-Ye.h,_t=this.ctx.transform.applyToPoint(new N(le.x,et)),Mt=this.ctx.transform.decompose(),Rt=new ae;Rt=(Rt=(Rt=Rt.multiply(Mt.translate)).multiply(Mt.skew)).multiply(Mt.scale);for(var lr,Ar,gr,_r=this.ctx.transform.applyToRectangle(new $(le.x,et,Ye.w,Ye.h)),dn=Rt.applyToRectangle(new $(le.x,yt,Ye.w,Ye.h)),ar=Dt.call(this,dn),vt=[],Fn=0;Fn<ar.length;Fn+=1)vt.indexOf(ar[Fn])===-1&&vt.push(ar[Fn]);if(ir(vt),this.autoPaging)for(var gn=vt[0],yr=vt[vt.length-1],Ur=gn;Ur<yr+1;Ur++){this.pdf.setPage(Ur);var Rr=Ur===1?this.posY+this.margin[0]:this.margin[0],wr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Zr=this.pdf.internal.pageSize.height-this.margin[2],Cn=Zr-this.margin[0],Gn=this.pdf.internal.pageSize.width-this.margin[1],Zn=Gn-this.margin[3],Nn=Ur===1?0:wr+(Ur-2)*Cn;if(this.ctx.clip_path.length!==0){var di=this.path;lr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(lr,this.posX+this.margin[3],-1*Nn+Rr),Hr.call(this,"fill",!0),this.path=di}var zn=Pt([JSON.parse(JSON.stringify(dn))],this.posX+this.margin[3],-Nn+Rr+this.ctx.prevPageLastElemOffset)[0];le.scale>=.01&&(Ar=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ar*le.scale),gr=this.lineWidth,this.lineWidth=gr*le.scale);var Ii=this.autoPaging!=="text";if(Ii||zn.y+zn.h<=Zr){if(Ii||zn.y>=Rr&&zn.x<=Gn){var vn=Ii?le.text:this.pdf.splitTextToSize(le.text,le.maxWidth||Gn-zn.x)[0],_a=Pt([JSON.parse(JSON.stringify(_r))],this.posX+this.margin[3],-Nn+Rr+this.ctx.prevPageLastElemOffset)[0],Hi=Ii&&(Ur>gn||Ur<yr)&&bt.call(this);Hi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zn,Cn,null).clip().discardPath()),this.pdf.text(vn,_a.x,_a.y,{angle:le.angle,align:Re,renderingMode:le.renderingMode}),Hi&&this.pdf.restoreGraphicsState()}}else zn.y<Zr&&(this.ctx.prevPageLastElemOffset+=Zr-zn.y);le.scale>=.01&&(this.pdf.setFontSize(Ar),this.lineWidth=gr)}else le.scale>=.01&&(Ar=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ar*le.scale),gr=this.lineWidth,this.lineWidth=gr*le.scale),this.pdf.text(le.text,_t.x+this.posX,_t.y+this.posY,{angle:le.angle,align:Re,renderingMode:le.renderingMode,maxWidth:le.maxWidth}),le.scale>=.01&&(this.pdf.setFontSize(Ar),this.lineWidth=gr)},rr=function(le,Re,Ye,et){Ye=Ye||0,et=et||0,this.pdf.internal.out(l(le+Ye)+" "+b(Re+et)+" l")},T=function(le,Re,Ye){return this.pdf.lines(le,Re,Ye,null,null)},re=function(le,Re,Ye,et,yt,_t,Mt,Rt){this.pdf.internal.out([o(I(Ye+le)),o(C(et+Re)),o(I(yt+le)),o(C(_t+Re)),o(I(Mt+le)),o(C(Rt+Re)),"c"].join(" "))},Be=function(le,Re,Ye,et){for(var yt=2*Math.PI,_t=Math.PI/2;Re>Ye;)Re-=yt;var Mt=Math.abs(Ye-Re);Mt<yt&&et&&(Mt=yt-Mt);for(var Rt=[],lr=et?-1:1,Ar=Re;Mt>1e-5;){var gr=Ar+lr*Math.min(Mt,_t);Rt.push(Ue.call(this,le,Ar,gr)),Mt-=Math.abs(gr-Ar),Ar=gr}return Rt},Ue=function(le,Re,Ye){var et=(Ye-Re)/2,yt=le*Math.cos(et),_t=le*Math.sin(et),Mt=yt,Rt=-_t,lr=Mt*Mt+Rt*Rt,Ar=lr+Mt*yt+Rt*_t,gr=4/3*(Math.sqrt(2*lr*Ar)-Ar)/(Mt*_t-Rt*yt),_r=Mt-gr*Rt,dn=Rt+gr*Mt,ar=_r,vt=-dn,Fn=et+Re,gn=Math.cos(Fn),yr=Math.sin(Fn);return{x1:le*Math.cos(Re),y1:le*Math.sin(Re),x2:_r*gn-dn*yr,y2:_r*yr+dn*gn,x3:ar*gn-vt*yr,y3:ar*yr+vt*gn,x4:le*Math.cos(Ye),y4:le*Math.sin(Ye)}},Ke=function(le){return 180*le/Math.PI},Xe=function(le,Re,Ye,et,yt,_t){var Mt=le+.5*(Ye-le),Rt=Re+.5*(et-Re),lr=yt+.5*(Ye-yt),Ar=_t+.5*(et-_t),gr=Math.min(le,yt,Mt,lr),_r=Math.max(le,yt,Mt,lr),dn=Math.min(Re,_t,Rt,Ar),ar=Math.max(Re,_t,Rt,Ar);return new $(gr,dn,_r-gr,ar-dn)},ut=function(le,Re,Ye,et,yt,_t,Mt,Rt){var lr,Ar,gr,_r,dn,ar,vt,Fn,gn,yr,Ur,Rr,wr,Zr,Cn=Ye-le,Gn=et-Re,Zn=yt-Ye,Nn=_t-et,di=Mt-yt,zn=Rt-_t;for(Ar=0;Ar<41;Ar++)gn=(vt=(gr=le+(lr=Ar/40)*Cn)+lr*((dn=Ye+lr*Zn)-gr))+lr*(dn+lr*(yt+lr*di-dn)-vt),yr=(Fn=(_r=Re+lr*Gn)+lr*((ar=et+lr*Nn)-_r))+lr*(ar+lr*(_t+lr*zn-ar)-Fn),Ar==0?(Ur=gn,Rr=yr,wr=gn,Zr=yr):(Ur=Math.min(Ur,gn),Rr=Math.min(Rr,yr),wr=Math.max(wr,gn),Zr=Math.max(Zr,yr));return new $(Math.round(Ur),Math.round(Rr),Math.round(wr-Ur),Math.round(Zr-Rr))},Et=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var le,Re,Ye=(le=this.ctx.lineDash,Re=this.ctx.lineDashOffset,JSON.stringify({lineDash:le,lineDashOffset:Re}));this.prevLineDash!==Ye&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ye)}}})(Ai.API),function(c){var o=function(C){var N,$,ae,_e,Ze,Ve,it,ye,kt,bt;for(/[^\x00-\xFF]/.test(C),$=[],ae=0,_e=(C+=N="\0\0\0\0".slice(C.length%4||4)).length;_e>ae;ae+=4)(Ze=(C.charCodeAt(ae)<<24)+(C.charCodeAt(ae+1)<<16)+(C.charCodeAt(ae+2)<<8)+C.charCodeAt(ae+3))!==0?(Ve=(Ze=((Ze=((Ze=((Ze=(Ze-(bt=Ze%85))/85)-(kt=Ze%85))/85)-(ye=Ze%85))/85)-(it=Ze%85))/85)%85,$.push(Ve+33,it+33,ye+33,kt+33,bt+33)):$.push(122);return function(Dt,ht){for(var Pt=ht;Pt>0;Pt--)Dt.pop()}($,N.length),String.fromCharCode.apply(String,$)+"~>"},l=function(C){var N,$,ae,_e,Ze,Ve=String,it="length",ye=255,kt="charCodeAt",bt="slice",Dt="replace";for(C[bt](-2),C=C[bt](0,-2)[Dt](/\s/g,"")[Dt]("z","!!!!!"),ae=[],_e=0,Ze=(C+=N="uuuuu"[bt](C[it]%5||5))[it];Ze>_e;_e+=5)$=52200625*(C[kt](_e)-33)+614125*(C[kt](_e+1)-33)+7225*(C[kt](_e+2)-33)+85*(C[kt](_e+3)-33)+(C[kt](_e+4)-33),ae.push(ye&$>>24,ye&$>>16,ye&$>>8,ye&$);return function(ht,Pt){for(var ir=Pt;ir>0;ir--)ht.pop()}(ae,N[it]),Ve.fromCharCode.apply(Ve,ae)},b=function(C){var N=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((C=C.replace(/\s/g,"")).indexOf(">")!==-1&&(C=C.substr(0,C.indexOf(">"))),C.length%2&&(C+="0"),N.test(C)===!1)return"";for(var $="",ae=0;ae<C.length;ae+=2)$+=String.fromCharCode("0x"+(C[ae]+C[ae+1]));return $},I=function(C){for(var N=new Uint8Array(C.length),$=C.length;$--;)N[$]=C.charCodeAt($);return C=(N=ki(N)).reduce(function(ae,_e){return ae+String.fromCharCode(_e)},"")};c.processDataByFilters=function(C,N){var $=0,ae=C||"",_e=[];for(typeof(N=N||[])=="string"&&(N=[N]),$=0;$<N.length;$+=1)switch(N[$]){case"ASCII85Decode":case"/ASCII85Decode":ae=l(ae),_e.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ae=o(ae),_e.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ae=b(ae),_e.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ae=ae.split("").map(function(Ze){return("0"+Ze.charCodeAt().toString(16)).slice(-2)}).join("")+">",_e.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ae=I(ae),_e.push("/FlateDecode");break;default:throw new Error('The filter: "'+N[$]+'" is not implemented')}return{data:ae,reverseChain:_e.reverse().join(" ")}}}(Ai.API),function(c){c.loadFile=function(o,l,b){return function(I,C,N){C=C!==!1,N=typeof N=="function"?N:function(){};var $=void 0;try{$=function(ae,_e,Ze){var Ve=new XMLHttpRequest,it=0,ye=function(kt){var bt=kt.length,Dt=[],ht=String.fromCharCode;for(it=0;it<bt;it+=1)Dt.push(ht(255&kt.charCodeAt(it)));return Dt.join("")};if(Ve.open("GET",ae,!_e),Ve.overrideMimeType("text/plain; charset=x-user-defined"),_e===!1&&(Ve.onload=function(){Ve.status===200?Ze(ye(this.responseText)):Ze(void 0)}),Ve.send(null),_e&&Ve.status===200)return ye(Ve.responseText)}(I,C,N)}catch(ae){}return $}(o,l,b)},c.loadImageFile=c.loadFile}(Ai.API),function(c){function o(){return(on.html2canvas?Promise.resolve(on.html2canvas):Promise.resolve().then(w.t.bind(w,64270,23))).catch(function(N){return Promise.reject(new Error("Could not load html2canvas: "+N))}).then(function(N){return N.default?N.default:N})}function l(){return(on.DOMPurify?Promise.resolve(on.DOMPurify):w.e(2364).then(w.bind(w,12364))).catch(function(N){return Promise.reject(new Error("Could not load dompurify: "+N))}).then(function(N){return N.default?N.default:N})}var b=function(N){var $=(0,pe.Z)(N);return $==="undefined"?"undefined":$==="string"||N instanceof String?"string":$==="number"||N instanceof Number?"number":$==="function"||N instanceof Function?"function":N&&N.constructor===Array?"array":N&&N.nodeType===1?"element":$==="object"?"object":"unknown"},I=function(N,$){var ae=document.createElement(N);for(var _e in $.className&&(ae.className=$.className),$.innerHTML&&$.dompurify&&(ae.innerHTML=$.dompurify.sanitize($.innerHTML)),$.style)ae.style[_e]=$.style[_e];return ae},C=function N($){var ae=Object.assign(N.convert(Promise.resolve()),JSON.parse(JSON.stringify(N.template))),_e=N.convert(Promise.resolve(),ae);return _e=(_e=_e.setProgress(1,N,1,[N])).set($)};(C.prototype=Object.create(Promise.prototype)).constructor=C,C.convert=function(N,$){return N.__proto__=$||C.prototype,N},C.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"}},C.prototype.from=function(N,$){return this.then(function(){switch($=$||function(ae){switch(b(ae)){case"string":return"string";case"element":return ae.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(N)){case"string":return this.then(l).then(function(ae){return this.set({src:I("div",{innerHTML:N,dompurify:ae})})});case"element":return this.set({src:N});case"canvas":return this.set({canvas:N});case"img":return this.set({img:N});default:return this.error("Unknown source type.")}})},C.prototype.to=function(N){switch(N){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.")}},C.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 N={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},$=function ae(_e,Ze){for(var Ve=_e.nodeType===3?document.createTextNode(_e.nodeValue):_e.cloneNode(!1),it=_e.firstChild;it;it=it.nextSibling)Ze!==!0&&it.nodeType===1&&it.nodeName==="SCRIPT"||Ve.appendChild(ae(it,Ze));return _e.nodeType===1&&(_e.nodeName==="CANVAS"?(Ve.width=_e.width,Ve.height=_e.height,Ve.getContext("2d").drawImage(_e,0,0)):_e.nodeName!=="TEXTAREA"&&_e.nodeName!=="SELECT"||(Ve.value=_e.value),Ve.addEventListener("load",function(){Ve.scrollTop=_e.scrollTop,Ve.scrollLeft=_e.scrollLeft},!0)),Ve}(this.prop.src,this.opt.html2canvas.javascriptEnabled);$.tagName==="BODY"&&(N.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=I("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=I("div",{className:"html2pdf__container",style:N}),this.prop.container.appendChild($),this.prop.container.firstChild.appendChild(I("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"})},C.prototype.toCanvas=function(){var N=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(N).then(o).then(function($){var ae=Object.assign({},this.opt.html2canvas);return delete ae.onrendered,$(this.prop.container,ae)}).then(function($){(this.opt.html2canvas.onrendered||function(){})($),this.prop.canvas=$,document.body.removeChild(this.prop.overlay)})},C.prototype.toContext2d=function(){var N=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(N).then(o).then(function($){var ae=this.opt.jsPDF,_e=this.opt.fontFaces,Ze=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,Ve=Object.assign({async:!0,allowTaint:!0,scale:Ze,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 Ve.onrendered,ae.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ae.context2d.posX=this.opt.x,ae.context2d.posY=this.opt.y,ae.context2d.margin=this.opt.margin,ae.context2d.fontFaces=_e,_e)for(var it=0;it<_e.length;++it){var ye=_e[it],kt=ye.src.find(function(bt){return bt.format==="truetype"});kt&&ae.addFont(kt.url,ye.ref.name,ye.ref.style)}return Ve.windowHeight=Ve.windowHeight||0,Ve.windowHeight=Ve.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Ve.windowHeight,ae.context2d.save(!0),$(this.prop.container,Ve)}).then(function($){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})($),this.prop.canvas=$,document.body.removeChild(this.prop.overlay)})},C.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var N=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=N})},C.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},C.prototype.output=function(N,$,ae){return(ae=ae||"pdf").toLowerCase()==="img"||ae.toLowerCase()==="image"?this.outputImg(N,$):this.outputPdf(N,$)},C.prototype.outputPdf=function(N,$){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(N,$)})},C.prototype.outputImg=function(N){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(N){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 "'+N+'" is not supported.'}})},C.prototype.save=function(N){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(N?{filename:N}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},C.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},C.prototype.set=function(N){if(b(N)!=="object")return this;var $=Object.keys(N||{}).map(function(ae){if(ae in C.template.prop)return function(){this.prop[ae]=N[ae]};switch(ae){case"margin":return this.setMargin.bind(this,N.margin);case"jsPDF":return function(){return this.opt.jsPDF=N.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,N.pageSize);default:return function(){this.opt[ae]=N[ae]}}},this);return this.then(function(){return this.thenList($)})},C.prototype.get=function(N,$){return this.then(function(){var ae=N in C.template.prop?this.prop[N]:this.opt[N];return $?$(ae):ae})},C.prototype.setMargin=function(N){return this.then(function(){switch(b(N)){case"number":N=[N,N,N,N];case"array":if(N.length===2&&(N=[N[0],N[1],N[0],N[1]]),N.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=N}).then(this.setPageSize)},C.prototype.setPageSize=function(N){function $(ae,_e){return Math.floor(ae*_e/72*96)}return this.then(function(){(N=N||Ai.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(N.inner={width:N.width-this.opt.margin[1]-this.opt.margin[3],height:N.height-this.opt.margin[0]-this.opt.margin[2]},N.inner.px={width:$(N.inner.width,N.k),height:$(N.inner.height,N.k)},N.inner.ratio=N.inner.height/N.inner.width),this.prop.pageSize=N})},C.prototype.setProgress=function(N,$,ae,_e){return N!=null&&(this.progress.val=N),$!=null&&(this.progress.state=$),ae!=null&&(this.progress.n=ae),_e!=null&&(this.progress.stack=_e),this.progress.ratio=this.progress.val/this.progress.state,this},C.prototype.updateProgress=function(N,$,ae,_e){return this.setProgress(N?this.progress.val+N:null,$||null,ae?this.progress.n+ae:null,_e?this.progress.stack.concat(_e):null)},C.prototype.then=function(N,$){var ae=this;return this.thenCore(N,$,function(_e,Ze){return ae.updateProgress(null,null,1,[_e]),Promise.prototype.then.call(this,function(Ve){return ae.updateProgress(null,_e),Ve}).then(_e,Ze).then(function(Ve){return ae.updateProgress(1),Ve})})},C.prototype.thenCore=function(N,$,ae){ae=ae||Promise.prototype.then,N&&(N=N.bind(this)),$&&($=$.bind(this));var _e=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:C.convert(Object.assign({},this),Promise.prototype),Ze=ae.call(_e,N,$);return C.convert(Ze,this.__proto__)},C.prototype.thenExternal=function(N,$){return Promise.prototype.then.call(this,N,$)},C.prototype.thenList=function(N){var $=this;return N.forEach(function(ae){$=$.thenCore(ae)}),$},C.prototype.catch=function(N){N&&(N=N.bind(this));var $=Promise.prototype.catch.call(this,N);return C.convert($,this)},C.prototype.catchExternal=function(N){return Promise.prototype.catch.call(this,N)},C.prototype.error=function(N){return this.then(function(){throw new Error(N)})},C.prototype.using=C.prototype.set,C.prototype.saveAs=C.prototype.save,C.prototype.export=C.prototype.output,C.prototype.run=C.prototype.then,Ai.getPageSize=function(N,$,ae){if((0,pe.Z)(N)==="object"){var _e=N;N=_e.orientation,$=_e.unit||$,ae=_e.format||ae}$=$||"mm",ae=ae||"a4",N=(""+(N||"P")).toLowerCase();var Ze,Ve=(""+ae).toLowerCase(),it={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($){case"pt":Ze=1;break;case"mm":Ze=72/25.4;break;case"cm":Ze=72/2.54;break;case"in":Ze=72;break;case"px":Ze=.75;break;case"pc":case"em":Ze=12;break;case"ex":Ze=6;break;default:throw"Invalid unit: "+$}var ye,kt=0,bt=0;if(it.hasOwnProperty(Ve))kt=it[Ve][1]/Ze,bt=it[Ve][0]/Ze;else try{kt=ae[1],bt=ae[0]}catch(Dt){throw new Error("Invalid format: "+ae)}if(N==="p"||N==="portrait")N="p",bt>kt&&(ye=bt,bt=kt,kt=ye);else{if(N!=="l"&&N!=="landscape")throw"Invalid orientation: "+N;N="l",kt>bt&&(ye=bt,bt=kt,kt=ye)}return{width:bt,height:kt,unit:$,k:Ze,orientation:N}},c.html=function(N,$){($=$||{}).callback=$.callback||function(){},$.html2canvas=$.html2canvas||{},$.html2canvas.canvas=$.html2canvas.canvas||this.canvas,$.jsPDF=$.jsPDF||this,$.fontFaces=$.fontFaces?$.fontFaces.map(tc):null;var ae=new C($);return $.worker?ae:ae.from(N).doCallback()}}(Ai.API),Ai.API.addJS=function(c){return hl=c,this.internal.events.subscribe("postPutResources",function(){Wo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Wo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ds=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+hl+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Wo!==void 0&&Ds!==void 0&&this.internal.out("/Names <</JavaScript "+Wo+" 0 R>>")}),this},function(c){var o;c.events.push(["postPutResources",function(){var l=this,b=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var I=l.outline.render().split(/\r\n/),C=0;C<I.length;C++){var N=I[C],$=b.exec(N);if($!=null){var ae=$[1];l.internal.newObjectDeferredBegin(ae,!1)}l.internal.write(N)}if(this.outline.createNamedDestinations){var _e=this.internal.pages.length,Ze=[];for(C=0;C<_e;C++){var Ve=l.internal.newObject();Ze.push(Ve);var it=l.internal.getPageInfo(C+1);l.internal.write("<< /D["+it.objId+" 0 R /XYZ null null null]>> endobj")}var ye=l.internal.newObject();for(l.internal.write("<< /Names [ "),C=0;C<Ze.length;C++)l.internal.write("(page_"+(C+1)+")"+Ze[C]+" 0 R");l.internal.write(" ] >>","endobj"),o=l.internal.newObject(),l.internal.write("<< /Dests "+ye+" 0 R"),l.internal.write(">>","endobj")}}]),c.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+o+" 0 R"))}]),c.events.push(["initialized",function(){var l=this;l.outline={createNamedDestinations:!1,root:{children:[]}},l.outline.add=function(b,I,C){var N={title:I,options:C,children:[]};return b==null&&(b=this.root),b.children.push(N),N},l.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=l,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},l.outline.genIds_r=function(b){b.id=l.internal.newObjectDeferred();for(var I=0;I<b.children.length;I++)this.genIds_r(b.children[I])},l.outline.renderRoot=function(b){this.objStart(b),this.line("/Type /Outlines"),b.children.length>0&&(this.line("/First "+this.makeRef(b.children[0])),this.line("/Last "+this.makeRef(b.children[b.children.length-1]))),this.line("/Count "+this.count_r({count:0},b)),this.objEnd()},l.outline.renderItems=function(b){for(var I=this.ctx.pdf.internal.getVerticalCoordinateString,C=0;C<b.children.length;C++){var N=b.children[C];this.objStart(N),this.line("/Title "+this.makeString(N.title)),this.line("/Parent "+this.makeRef(b)),C>0&&this.line("/Prev "+this.makeRef(b.children[C-1])),C<b.children.length-1&&this.line("/Next "+this.makeRef(b.children[C+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 $=this.count=this.count_r({count:0},N);if($>0&&this.line("/Count "+$),N.options&&N.options.pageNumber){var ae=l.internal.getPageInfo(N.options.pageNumber);this.line("/Dest ["+ae.objId+" 0 R /XYZ 0 "+I(0)+" 0]")}this.objEnd()}for(var _e=0;_e<b.children.length;_e++)this.renderItems(b.children[_e])},l.outline.line=function(b){this.ctx.val+=b+`\r
`},l.outline.makeRef=function(b){return b.id+" 0 R"},l.outline.makeString=function(b){return"("+l.internal.pdfEscape(b)+")"},l.outline.objStart=function(b){this.ctx.val+=`\r
`+b.id+` 0 obj\r
<<\r
`},l.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},l.outline.count_r=function(b,I){for(var C=0;C<I.children.length;C++)b.count++,this.count_r(b,I.children[C]);return b.count}}])}(Ai.API),function(c){var o=[192,193,194,195,196,197,198,199];c.processJPEG=function(l,b,I,C,N,$){var ae,_e=this.decode.DCT_DECODE,Ze=null;if(typeof l=="string"||this.__addimage__.isArrayBuffer(l)||this.__addimage__.isArrayBufferView(l)){switch(l=N||l,l=this.__addimage__.isArrayBuffer(l)?new Uint8Array(l):l,(ae=function(Ve){for(var it,ye=256*Ve.charCodeAt(4)+Ve.charCodeAt(5),kt=Ve.length,bt={width:0,height:0,numcomponents:1},Dt=4;Dt<kt;Dt+=2){if(Dt+=ye,o.indexOf(Ve.charCodeAt(Dt+1))!==-1){it=256*Ve.charCodeAt(Dt+5)+Ve.charCodeAt(Dt+6),bt={width:256*Ve.charCodeAt(Dt+7)+Ve.charCodeAt(Dt+8),height:it,numcomponents:Ve.charCodeAt(Dt+9)};break}ye=256*Ve.charCodeAt(Dt+2)+Ve.charCodeAt(Dt+3)}return bt}(l=this.__addimage__.isArrayBufferView(l)?this.__addimage__.arrayBufferToBinaryString(l):l)).numcomponents){case 1:$=this.color_spaces.DEVICE_GRAY;break;case 4:$=this.color_spaces.DEVICE_CMYK;break;case 3:$=this.color_spaces.DEVICE_RGB}Ze={data:l,width:ae.width,height:ae.height,colorSpace:$,bitsPerComponent:8,filter:_e,index:b,alias:I}}return Ze}}(Ai.API);var al,Wc,Dl,Js,lA,cA=function(){var c,o,l;function b(C){var N,$,ae,_e,Ze,Ve,it,ye,kt,bt,Dt,ht,Pt,ir;for(this.data=C,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Ve=null;;){switch(N=this.readUInt32(),kt=function(){var xr,Hr;for(Hr=[],xr=0;xr<4;++xr)Hr.push(String.fromCharCode(this.data[this.pos++]));return Hr}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(N);break;case"fcTL":Ve&&this.animation.frames.push(Ve),this.pos+=4,Ve={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Ze=this.readUInt16(),_e=this.readUInt16()||100,Ve.delay=1e3*Ze/_e,Ve.disposeOp=this.data[this.pos++],Ve.blendOp=this.data[this.pos++],Ve.data=[];break;case"IDAT":case"fdAT":for(kt==="fdAT"&&(this.pos+=4,N-=4),C=(Ve!=null?Ve.data:void 0)||this.imgData,ht=0;0<=N?ht<N:ht>N;0<=N?++ht:--ht)C.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ae=this.palette.length/3,this.transparency.indexed=this.read(N),this.transparency.indexed.length>ae)throw new Error("More transparent colors than palette size");if((bt=ae-this.transparency.indexed.length)>0)for(Pt=0;0<=bt?Pt<bt:Pt>bt;0<=bt?++Pt:--Pt)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(N)[0];break;case 2:this.transparency.rgb=this.read(N)}break;case"tEXt":it=(Dt=this.read(N)).indexOf(0),ye=String.fromCharCode.apply(String,Dt.slice(0,it)),this.text[ye]=String.fromCharCode.apply(String,Dt.slice(it+1));break;case"IEND":return Ve&&this.animation.frames.push(Ve),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ir=this.colorType)===4||ir===6,$=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*$,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=N}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}b.prototype.read=function(C){var N,$;for($=[],N=0;0<=C?N<C:N>C;0<=C?++N:--N)$.push(this.data[this.pos++]);return $},b.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},b.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},b.prototype.decodePixels=function(C){var N=this.pixelBitlength/8,$=new Uint8Array(this.width*this.height*N),ae=0,_e=this;if(C==null&&(C=this.imgData),C.length===0)return new Uint8Array(0);function Ze(Ve,it,ye,kt){var bt,Dt,ht,Pt,ir,xr,Hr,hn,Lr,Vt,Or,Jr,gt,Ct,rr,T,re,Be,Ue,Ke,Xe,ut=Math.ceil((_e.width-Ve)/ye),Et=Math.ceil((_e.height-it)/kt),le=_e.width==ut&&_e.height==Et;for(Ct=N*ut,Jr=le?$:new Uint8Array(Ct*Et),xr=C.length,gt=0,Dt=0;gt<Et&&ae<xr;){switch(C[ae++]){case 0:for(Pt=re=0;re<Ct;Pt=re+=1)Jr[Dt++]=C[ae++];break;case 1:for(Pt=Be=0;Be<Ct;Pt=Be+=1)bt=C[ae++],ir=Pt<N?0:Jr[Dt-N],Jr[Dt++]=(bt+ir)%256;break;case 2:for(Pt=Ue=0;Ue<Ct;Pt=Ue+=1)bt=C[ae++],ht=(Pt-Pt%N)/N,rr=gt&&Jr[(gt-1)*Ct+ht*N+Pt%N],Jr[Dt++]=(rr+bt)%256;break;case 3:for(Pt=Ke=0;Ke<Ct;Pt=Ke+=1)bt=C[ae++],ht=(Pt-Pt%N)/N,ir=Pt<N?0:Jr[Dt-N],rr=gt&&Jr[(gt-1)*Ct+ht*N+Pt%N],Jr[Dt++]=(bt+Math.floor((ir+rr)/2))%256;break;case 4:for(Pt=Xe=0;Xe<Ct;Pt=Xe+=1)bt=C[ae++],ht=(Pt-Pt%N)/N,ir=Pt<N?0:Jr[Dt-N],gt===0?rr=T=0:(rr=Jr[(gt-1)*Ct+ht*N+Pt%N],T=ht&&Jr[(gt-1)*Ct+(ht-1)*N+Pt%N]),Hr=ir+rr-T,hn=Math.abs(Hr-ir),Vt=Math.abs(Hr-rr),Or=Math.abs(Hr-T),Lr=hn<=Vt&&hn<=Or?ir:Vt<=Or?rr:T,Jr[Dt++]=(bt+Lr)%256;break;default:throw new Error("Invalid filter algorithm: "+C[ae-1])}if(!le){var Re=((it+gt*kt)*_e.width+Ve)*N,Ye=gt*Ct;for(Pt=0;Pt<ut;Pt+=1){for(var et=0;et<N;et+=1)$[Re++]=Jr[Ye++];Re+=(ye-1)*N}}gt++}}return C=ke(C),_e.interlaceMethod==1?(Ze(0,0,8,8),Ze(4,0,8,8),Ze(0,4,4,8),Ze(2,0,4,4),Ze(0,2,2,4),Ze(1,0,2,2),Ze(0,1,1,2)):Ze(0,0,1,1),$},b.prototype.decodePalette=function(){var C,N,$,ae,_e,Ze,Ve,it,ye;for($=this.palette,Ze=this.transparency.indexed||[],_e=new Uint8Array((Ze.length||0)+$.length),ae=0,C=0,N=Ve=0,it=$.length;Ve<it;N=Ve+=3)_e[ae++]=$[N],_e[ae++]=$[N+1],_e[ae++]=$[N+2],_e[ae++]=(ye=Ze[C++])!=null?ye:255;return _e},b.prototype.copyToImageData=function(C,N){var $,ae,_e,Ze,Ve,it,ye,kt,bt,Dt,ht;if(ae=this.colors,bt=null,$=this.hasAlphaChannel,this.palette.length&&(bt=(ht=this._decodedPalette)!=null?ht:this._decodedPalette=this.decodePalette(),ae=4,$=!0),kt=(_e=C.data||C).length,Ve=bt||N,Ze=it=0,ae===1)for(;Ze<kt;)ye=bt?4*N[Ze/4]:it,Dt=Ve[ye++],_e[Ze++]=Dt,_e[Ze++]=Dt,_e[Ze++]=Dt,_e[Ze++]=$?Ve[ye++]:255,it=ye;else for(;Ze<kt;)ye=bt?4*N[Ze/4]:it,_e[Ze++]=Ve[ye++],_e[Ze++]=Ve[ye++],_e[Ze++]=Ve[ye++],_e[Ze++]=$?Ve[ye++]:255,it=ye},b.prototype.decode=function(){var C;return C=new Uint8Array(this.width*this.height*4),this.copyToImageData(C,this.decodePixels()),C};var I=function(){if(Object.prototype.toString.call(on)==="[object Window]"){try{o=on.document.createElement("canvas"),l=o.getContext("2d")}catch(C){return!1}return!0}return!1};return I(),c=function(C){var N;if(I()===!0)return l.width=C.width,l.height=C.height,l.clearRect(0,0,C.width,C.height),l.putImageData(C,0,0),(N=new Image).src=o.toDataURL(),N;throw new Error("This method requires a Browser with Canvas-capability.")},b.prototype.decodeFrames=function(C){var N,$,ae,_e,Ze,Ve,it,ye;if(this.animation){for(ye=[],$=Ze=0,Ve=(it=this.animation.frames).length;Ze<Ve;$=++Ze)N=it[$],ae=C.createImageData(N.width,N.height),_e=this.decodePixels(new Uint8Array(N.data)),this.copyToImageData(ae,_e),N.imageData=ae,ye.push(N.image=c(ae));return ye}},b.prototype.renderFrame=function(C,N){var $,ae,_e;return $=(ae=this.animation.frames)[N],_e=ae[N-1],N===0&&C.clearRect(0,0,this.width,this.height),(_e!=null?_e.disposeOp:void 0)===1?C.clearRect(_e.xOffset,_e.yOffset,_e.width,_e.height):(_e!=null?_e.disposeOp:void 0)===2&&C.putImageData(_e.imageData,_e.xOffset,_e.yOffset),$.blendOp===0&&C.clearRect($.xOffset,$.yOffset,$.width,$.height),C.drawImage($.image,$.xOffset,$.yOffset)},b.prototype.animate=function(C){var N,$,ae,_e,Ze,Ve,it=this;return $=0,Ve=this.animation,_e=Ve.numFrames,ae=Ve.frames,Ze=Ve.numPlays,(N=function(){var ye,kt;if(ye=$++%_e,kt=ae[ye],it.renderFrame(C,ye),_e>1&&$/_e<Ze)return it.animation._timeout=setTimeout(N,kt.delay)})()},b.prototype.stopAnimation=function(){var C;return clearTimeout((C=this.animation)!=null?C._timeout:void 0)},b.prototype.render=function(C){var N,$;return C._png&&C._png.stopAnimation(),C._png=this,C.width=this.width,C.height=this.height,N=C.getContext("2d"),this.animation?(this.decodeFrames(N),this.animate(N)):($=N.createImageData(this.width,this.height),this.copyToImageData($,this.decodePixels()),N.putImageData($,0,0))},b}();function hc(c){var o=0;if(c[o++]!==71||c[o++]!==73||c[o++]!==70||c[o++]!==56||(c[o++]+1&253)!=56||c[o++]!==97)throw new Error("Invalid GIF 87a/89a header.");var l=c[o++]|c[o++]<<8,b=c[o++]|c[o++]<<8,I=c[o++],C=I>>7,N=1<<(7&I)+1;c[o++],c[o++];var $=null,ae=null;C&&($=o,ae=N,o+=3*N);var _e=!0,Ze=[],Ve=0,it=null,ye=0,kt=null;for(this.width=l,this.height=b;_e&&o<c.length;)switch(c[o++]){case 33:switch(c[o++]){case 255:if(c[o]!==11||c[o+1]==78&&c[o+2]==69&&c[o+3]==84&&c[o+4]==83&&c[o+5]==67&&c[o+6]==65&&c[o+7]==80&&c[o+8]==69&&c[o+9]==50&&c[o+10]==46&&c[o+11]==48&&c[o+12]==3&&c[o+13]==1&&c[o+16]==0)o+=14,kt=c[o++]|c[o++]<<8,o++;else for(o+=12;;){if(!((gt=c[o++])>=0))throw Error("Invalid block size");if(gt===0)break;o+=gt}break;case 249:if(c[o++]!==4||c[o+4]!==0)throw new Error("Invalid graphics extension block.");var bt=c[o++];Ve=c[o++]|c[o++]<<8,it=c[o++],!(1&bt)&&(it=null),ye=bt>>2&7,o++;break;case 254:for(;;){if(!((gt=c[o++])>=0))throw Error("Invalid block size");if(gt===0)break;o+=gt}break;default:throw new Error("Unknown graphic control label: 0x"+c[o-1].toString(16))}break;case 44:var Dt=c[o++]|c[o++]<<8,ht=c[o++]|c[o++]<<8,Pt=c[o++]|c[o++]<<8,ir=c[o++]|c[o++]<<8,xr=c[o++],Hr=xr>>6&1,hn=1<<(7&xr)+1,Lr=$,Vt=ae,Or=!1;xr>>7&&(Or=!0,Lr=o,Vt=hn,o+=3*hn);var Jr=o;for(o++;;){var gt;if(!((gt=c[o++])>=0))throw Error("Invalid block size");if(gt===0)break;o+=gt}Ze.push({x:Dt,y:ht,width:Pt,height:ir,has_local_palette:Or,palette_offset:Lr,palette_size:Vt,data_offset:Jr,data_length:o-Jr,transparent_index:it,interlaced:!!Hr,delay:Ve,disposal:ye});break;case 59:_e=!1;break;default:throw new Error("Unknown gif block: 0x"+c[o-1].toString(16))}this.numFrames=function(){return Ze.length},this.loopCount=function(){return kt},this.frameInfo=function(Ct){if(Ct<0||Ct>=Ze.length)throw new Error("Frame index out of range.");return Ze[Ct]},this.decodeAndBlitFrameBGRA=function(Ct,rr){var T=this.frameInfo(Ct),re=T.width*T.height,Be=new Uint8Array(re);wA(c,T.data_offset,Be,re);var Ue=T.palette_offset,Ke=T.transparent_index;Ke===null&&(Ke=256);var Xe=T.width,ut=l-Xe,Et=Xe,le=4*(T.y*l+T.x),Re=4*((T.y+T.height)*l+T.x),Ye=le,et=4*ut;T.interlaced===!0&&(et+=4*l*7);for(var yt=8,_t=0,Mt=Be.length;_t<Mt;++_t){var Rt=Be[_t];if(Et===0&&(Et=Xe,(Ye+=et)>=Re&&(et=4*ut+4*l*(yt-1),Ye=le+(Xe+ut)*(yt<<1),yt>>=1)),Rt===Ke)Ye+=4;else{var lr=c[Ue+3*Rt],Ar=c[Ue+3*Rt+1],gr=c[Ue+3*Rt+2];rr[Ye++]=gr,rr[Ye++]=Ar,rr[Ye++]=lr,rr[Ye++]=255}--Et}},this.decodeAndBlitFrameRGBA=function(Ct,rr){var T=this.frameInfo(Ct),re=T.width*T.height,Be=new Uint8Array(re);wA(c,T.data_offset,Be,re);var Ue=T.palette_offset,Ke=T.transparent_index;Ke===null&&(Ke=256);var Xe=T.width,ut=l-Xe,Et=Xe,le=4*(T.y*l+T.x),Re=4*((T.y+T.height)*l+T.x),Ye=le,et=4*ut;T.interlaced===!0&&(et+=4*l*7);for(var yt=8,_t=0,Mt=Be.length;_t<Mt;++_t){var Rt=Be[_t];if(Et===0&&(Et=Xe,(Ye+=et)>=Re&&(et=4*ut+4*l*(yt-1),Ye=le+(Xe+ut)*(yt<<1),yt>>=1)),Rt===Ke)Ye+=4;else{var lr=c[Ue+3*Rt],Ar=c[Ue+3*Rt+1],gr=c[Ue+3*Rt+2];rr[Ye++]=lr,rr[Ye++]=Ar,rr[Ye++]=gr,rr[Ye++]=255}--Et}}}function wA(c,o,l,b){for(var I=c[o++],C=1<<I,N=C+1,$=N+1,ae=I+1,_e=(1<<ae)-1,Ze=0,Ve=0,it=0,ye=c[o++],kt=new Int32Array(4096),bt=null;;){for(;Ze<16&&ye!==0;)Ve|=c[o++]<<Ze,Ze+=8,ye===1?ye=c[o++]:--ye;if(Ze<ae)break;var Dt=Ve&_e;if(Ve>>=ae,Ze-=ae,Dt!==C){if(Dt===N)break;for(var ht=Dt<$?Dt:bt,Pt=0,ir=ht;ir>C;)ir=kt[ir]>>8,++Pt;var xr=ir;if(it+Pt+(ht!==Dt?1:0)>b)return void Ln.log("Warning, gif stream longer than expected.");l[it++]=xr;var Hr=it+=Pt;for(ht!==Dt&&(l[it++]=xr),ir=ht;Pt--;)ir=kt[ir],l[--Hr]=255&ir,ir>>=8;bt!==null&&$<4096&&(kt[$++]=bt<<8|xr,$>=_e+1&&ae<12&&(++ae,_e=_e<<1|1)),bt=Dt}else $=N+1,_e=(1<<(ae=I+1))-1,bt=null}return it!==b&&Ln.log("Warning, gif stream shorter than expected."),l}function Pl(c){var o,l,b,I,C,N=Math.floor,$=new Array(64),ae=new Array(64),_e=new Array(64),Ze=new Array(64),Ve=new Array(65535),it=new Array(65535),ye=new Array(64),kt=new Array(64),bt=[],Dt=0,ht=7,Pt=new Array(64),ir=new Array(64),xr=new Array(64),Hr=new Array(256),hn=new Array(2048),Lr=[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],Vt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Or=[0,1,2,3,4,5,6,7,8,9,10,11],Jr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],gt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Ct=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],rr=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],re=[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 Be(le,Re){for(var Ye=0,et=0,yt=new Array,_t=1;_t<=16;_t++){for(var Mt=1;Mt<=le[_t];Mt++)yt[Re[et]]=[],yt[Re[et]][0]=Ye,yt[Re[et]][1]=_t,et++,Ye++;Ye*=2}return yt}function Ue(le){for(var Re=le[0],Ye=le[1]-1;Ye>=0;)Re&1<<Ye&&(Dt|=1<<ht),Ye--,--ht<0&&(Dt==255?(Ke(255),Ke(0)):Ke(Dt),ht=7,Dt=0)}function Ke(le){bt.push(le)}function Xe(le){Ke(le>>8&255),Ke(255&le)}function ut(le,Re,Ye,et,yt){for(var _t,Mt=yt[0],Rt=yt[240],lr=function(yr,Ur){var Rr,wr,Zr,Cn,Gn,Zn,Nn,di,zn,Ii,vn=0;for(zn=0;zn<8;++zn){Rr=yr[vn],wr=yr[vn+1],Zr=yr[vn+2],Cn=yr[vn+3],Gn=yr[vn+4],Zn=yr[vn+5],Nn=yr[vn+6];var _a=Rr+(di=yr[vn+7]),Hi=Rr-di,Ri=wr+Nn,ia=wr-Nn,Ki=Zr+Zn,Qa=Zr-Zn,Gi=Cn+Gn,As=Cn-Gn,Sn=_a+Gi,fi=_a-Gi,mi=Ri+Ki,$n=Ri-Ki;yr[vn]=Sn+mi,yr[vn+4]=Sn-mi;var ai=.707106781*($n+fi);yr[vn+2]=fi+ai,yr[vn+6]=fi-ai;var kn=.382683433*((Sn=As+Qa)-($n=ia+Hi)),Qi=.5411961*Sn+kn,Xi=1.306562965*$n+kn,qi=.707106781*(mi=Qa+ia),Mo=Hi+qi,Mi=Hi-qi;yr[vn+5]=Mi+Qi,yr[vn+3]=Mi-Qi,yr[vn+1]=Mo+Xi,yr[vn+7]=Mo-Xi,vn+=8}for(vn=0,zn=0;zn<8;++zn){Rr=yr[vn],wr=yr[vn+8],Zr=yr[vn+16],Cn=yr[vn+24],Gn=yr[vn+32],Zn=yr[vn+40],Nn=yr[vn+48];var ns=Rr+(di=yr[vn+56]),ro=Rr-di,Qo=wr+Nn,bn=wr-Nn,no=Zr+Zn,Cs=Zr-Zn,ga=Cn+Gn,en=Cn-Gn,fa=ns+ga,so=ns-ga,Va=Qo+no,Si=Qo-no;yr[vn]=fa+Va,yr[vn+32]=fa-Va;var bo=.707106781*(Si+so);yr[vn+16]=so+bo,yr[vn+48]=so-bo;var Ko=.382683433*((fa=en+Cs)-(Si=bn+ro)),Bs=.5411961*fa+Ko,gs=1.306562965*Si+Ko,is=.707106781*(Va=Cs+bn),us=ro+is,bl=ro-is;yr[vn+40]=bl+Bs,yr[vn+24]=bl-Bs,yr[vn+8]=us+gs,yr[vn+56]=us-gs,vn++}for(zn=0;zn<64;++zn)Ii=yr[zn]*Ur[zn],ye[zn]=Ii>0?Ii+.5|0:Ii-.5|0;return ye}(le,Re),Ar=0;Ar<64;++Ar)kt[Lr[Ar]]=lr[Ar];var gr=kt[0]-Ye;Ye=kt[0],gr==0?Ue(et[0]):(Ue(et[it[_t=32767+gr]]),Ue(Ve[_t]));for(var _r=63;_r>0&&kt[_r]==0;)_r--;if(_r==0)return Ue(Mt),Ye;for(var dn,ar=1;ar<=_r;){for(var vt=ar;kt[ar]==0&&ar<=_r;)++ar;var Fn=ar-vt;if(Fn>=16){dn=Fn>>4;for(var gn=1;gn<=dn;++gn)Ue(Rt);Fn&=15}_t=32767+kt[ar],Ue(yt[(Fn<<4)+it[_t]]),Ue(Ve[_t]),ar++}return _r!=63&&Ue(Mt),Ye}function Et(le){le=Math.min(Math.max(le,1),100),C!=le&&(function(Re){for(var Ye=[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],et=0;et<64;et++){var yt=N((Ye[et]*Re+50)/100);yt=Math.min(Math.max(yt,1),255),$[Lr[et]]=yt}for(var _t=[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],Mt=0;Mt<64;Mt++){var Rt=N((_t[Mt]*Re+50)/100);Rt=Math.min(Math.max(Rt,1),255),ae[Lr[Mt]]=Rt}for(var lr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ar=0,gr=0;gr<8;gr++)for(var _r=0;_r<8;_r++)_e[Ar]=1/($[Lr[Ar]]*lr[gr]*lr[_r]*8),Ze[Ar]=1/(ae[Lr[Ar]]*lr[gr]*lr[_r]*8),Ar++}(le<50?Math.floor(5e3/le):Math.floor(200-2*le)),C=le)}this.encode=function(le,Re){Re&&Et(Re),bt=new Array,Dt=0,ht=7,Xe(65496),Xe(65504),Xe(16),Ke(74),Ke(70),Ke(73),Ke(70),Ke(0),Ke(1),Ke(1),Ke(0),Xe(1),Xe(1),Ke(0),Ke(0),function(){Xe(65499),Xe(132),Ke(0);for(var wr=0;wr<64;wr++)Ke($[wr]);Ke(1);for(var Zr=0;Zr<64;Zr++)Ke(ae[Zr])}(),function(wr,Zr){Xe(65472),Xe(17),Ke(8),Xe(Zr),Xe(wr),Ke(3),Ke(1),Ke(17),Ke(0),Ke(2),Ke(17),Ke(1),Ke(3),Ke(17),Ke(1)}(le.width,le.height),function(){Xe(65476),Xe(418),Ke(0);for(var wr=0;wr<16;wr++)Ke(Vt[wr+1]);for(var Zr=0;Zr<=11;Zr++)Ke(Or[Zr]);Ke(16);for(var Cn=0;Cn<16;Cn++)Ke(Jr[Cn+1]);for(var Gn=0;Gn<=161;Gn++)Ke(gt[Gn]);Ke(1);for(var Zn=0;Zn<16;Zn++)Ke(Ct[Zn+1]);for(var Nn=0;Nn<=11;Nn++)Ke(rr[Nn]);Ke(17);for(var di=0;di<16;di++)Ke(T[di+1]);for(var zn=0;zn<=161;zn++)Ke(re[zn])}(),Xe(65498),Xe(12),Ke(3),Ke(1),Ke(0),Ke(2),Ke(17),Ke(3),Ke(17),Ke(0),Ke(63),Ke(0);var Ye=0,et=0,yt=0;Dt=0,ht=7,this.encode.displayName="_encode_";for(var _t,Mt,Rt,lr,Ar,gr,_r,dn,ar,vt=le.data,Fn=le.width,gn=le.height,yr=4*Fn,Ur=0;Ur<gn;){for(_t=0;_t<yr;){for(Ar=yr*Ur+_t,_r=-1,dn=0,ar=0;ar<64;ar++)gr=Ar+(dn=ar>>3)*yr+(_r=4*(7&ar)),Ur+dn>=gn&&(gr-=yr*(Ur+1+dn-gn)),_t+_r>=yr&&(gr-=_t+_r-yr+4),Mt=vt[gr++],Rt=vt[gr++],lr=vt[gr++],Pt[ar]=(hn[Mt]+hn[Rt+256>>0]+hn[lr+512>>0]>>16)-128,ir[ar]=(hn[Mt+768>>0]+hn[Rt+1024>>0]+hn[lr+1280>>0]>>16)-128,xr[ar]=(hn[Mt+1280>>0]+hn[Rt+1536>>0]+hn[lr+1792>>0]>>16)-128;Ye=ut(Pt,_e,Ye,o,b),et=ut(ir,Ze,et,l,I),yt=ut(xr,Ze,yt,l,I),_t+=32}Ur+=8}if(ht>=0){var Rr=[];Rr[1]=ht+1,Rr[0]=(1<<ht+1)-1,Ue(Rr)}return Xe(65497),new Uint8Array(bt)},c=c||50,function(){for(var le=String.fromCharCode,Re=0;Re<256;Re++)Hr[Re]=le(Re)}(),o=Be(Vt,Or),l=Be(Ct,rr),b=Be(Jr,gt),I=Be(T,re),function(){for(var le=1,Re=2,Ye=1;Ye<=15;Ye++){for(var et=le;et<Re;et++)it[32767+et]=Ye,Ve[32767+et]=[],Ve[32767+et][1]=Ye,Ve[32767+et][0]=et;for(var yt=-(Re-1);yt<=-le;yt++)it[32767+yt]=Ye,Ve[32767+yt]=[],Ve[32767+yt][1]=Ye,Ve[32767+yt][0]=Re-1+yt;le<<=1,Re<<=1}}(),function(){for(var le=0;le<256;le++)hn[le]=19595*le,hn[le+256>>0]=38470*le,hn[le+512>>0]=7471*le+32768,hn[le+768>>0]=-11059*le,hn[le+1024>>0]=-21709*le,hn[le+1280>>0]=32768*le+8421375,hn[le+1536>>0]=-27439*le,hn[le+1792>>0]=-5329*le}(),Et(c)}function Ys(c,o){if(this.pos=0,this.buffer=c,this.datav=new DataView(c.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 ol(c){function o(Vt){if(!Vt)throw Error("assert :P")}function l(Vt,Or,Jr){for(var gt=0;4>gt;gt++)if(Vt[Or+gt]!=Jr.charCodeAt(gt))return!0;return!1}function b(Vt,Or,Jr,gt,Ct){for(var rr=0;rr<Ct;rr++)Vt[Or+rr]=Jr[gt+rr]}function I(Vt,Or,Jr,gt){for(var Ct=0;Ct<gt;Ct++)Vt[Or+Ct]=Jr}function C(Vt){return new Int32Array(Vt)}function N(Vt,Or){for(var Jr=[],gt=0;gt<Vt;gt++)Jr.push(new Or);return Jr}function $(Vt,Or){var Jr=[];return function gt(Ct,rr,T){for(var re=T[rr],Be=0;Be<re&&(Ct.push(T.length>rr+1?[]:new Or),!(T.length<rr+1));Be++)gt(Ct[Be],rr+1,T)}(Jr,0,Vt),Jr}var ae=function(){var Vt=this;function Or(a,g){for(var O=1<<g-1>>>0;a&O;)O>>>=1;return O?(a&O-1)+O:a}function Jr(a,g,O,oe,Me){o(!(oe%O));do a[g+(oe-=O)]=Me;while(0<oe)}function gt(a,g,O,oe,Me){if(o(2328>=Me),512>=Me)var We=C(512);else if((We=C(Me))==null)return 0;return function(ze,Je,ot,mt,Tt,jt){var cr,Gt,Nr=Je,Tr=1<<ot,Xt=C(16),tr=C(16);for(o(Tt!=0),o(mt!=null),o(ze!=null),o(0<ot),Gt=0;Gt<Tt;++Gt){if(15<mt[Gt])return 0;++Xt[mt[Gt]]}if(Xt[0]==Tt)return 0;for(tr[1]=0,cr=1;15>cr;++cr){if(Xt[cr]>1<<cr)return 0;tr[cr+1]=tr[cr]+Xt[cr]}for(Gt=0;Gt<Tt;++Gt)cr=mt[Gt],0<mt[Gt]&&(jt[tr[cr]++]=Gt);if(tr[15]==1)return(mt=new Ct).g=0,mt.value=jt[0],Jr(ze,Nr,1,Tr,mt),Tr;var Qr,ln=-1,An=Tr-1,si=0,Wn=1,zi=1,ni=1<<ot;for(Gt=0,cr=1,Tt=2;cr<=ot;++cr,Tt<<=1){if(Wn+=zi<<=1,0>(zi-=Xt[cr]))return 0;for(;0<Xt[cr];--Xt[cr])(mt=new Ct).g=cr,mt.value=jt[Gt++],Jr(ze,Nr+si,Tt,ni,mt),si=Or(si,cr)}for(cr=ot+1,Tt=2;15>=cr;++cr,Tt<<=1){if(Wn+=zi<<=1,0>(zi-=Xt[cr]))return 0;for(;0<Xt[cr];--Xt[cr]){if(mt=new Ct,(si&An)!=ln){for(Nr+=ni,Qr=1<<(ln=cr)-ot;15>ln&&!(0>=(Qr-=Xt[ln]));)++ln,Qr<<=1;Tr+=ni=1<<(Qr=ln-ot),ze[Je+(ln=si&An)].g=Qr+ot,ze[Je+ln].value=Nr-Je-ln}mt.g=cr-ot,mt.value=jt[Gt++],Jr(ze,Nr+(si>>ot),Tt,ni,mt),si=Or(si,cr)}}return Wn!=2*tr[15]-1?0:Tr}(a,g,O,oe,Me,We)}function Ct(){this.value=this.g=0}function rr(){this.value=this.g=0}function T(){this.G=N(5,Ct),this.H=C(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=N(pl,rr)}function re(a,g,O,oe){o(a!=null),o(g!=null),o(2147483648>oe),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=g,a.pa=O,a.Jd=g,a.Yc=O+oe,a.Zc=4<=oe?O+oe-4+1:O,_t(a)}function Be(a,g){for(var O=0;0<g--;)O|=Rt(a,128)<<g;return O}function Ue(a,g){var O=Be(a,g);return Mt(a)?-O:O}function Ke(a,g,O,oe){var Me,We=0;for(o(a!=null),o(g!=null),o(4294967288>oe),a.Sb=oe,a.Ra=0,a.u=0,a.h=0,4<oe&&(oe=4),Me=0;Me<oe;++Me)We+=g[O+Me]<<8*Me;a.Ra=We,a.bb=oe,a.oa=g,a.pa=O}function Xe(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<rs-8>>>0,++a.bb,a.u-=8;Ye(a)&&(a.h=1,a.u=0)}function ut(a,g){if(o(0<=g),!a.h&&g<=YA){var O=Re(a)&Qc[g];return a.u+=g,Xe(a),O}return a.h=1,a.u=0}function Et(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function le(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Re(a){return a.Ra>>>(a.u&rs-1)>>>0}function Ye(a){return o(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>rs}function et(a,g){a.u=g,a.h=Ye(a)}function yt(a){a.u>=Kc&&(o(a.u>=Kc),Xe(a))}function _t(a){o(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(o(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function Mt(a){return Be(a,1)}function Rt(a,g){var O=a.Ca;0>a.b&&_t(a);var oe=a.b,Me=O*g>>>8,We=(a.I>>>oe>Me)+0;for(We?(O-=Me,a.I-=Me+1<<oe>>>0):O=Me+1,oe=O,Me=0;256<=oe;)Me+=8,oe>>=8;return oe=7^Me+tl[oe],a.b-=oe,a.Ca=(O<<oe)-1,We}function lr(a,g,O){a[g+0]=O>>24&255,a[g+1]=O>>16&255,a[g+2]=O>>8&255,a[g+3]=O>>0&255}function Ar(a,g){return a[g+0]<<0|a[g+1]<<8}function gr(a,g){return Ar(a,g)|a[g+2]<<16}function _r(a,g){return Ar(a,g)|Ar(a,g+2)<<16}function dn(a,g){var O=1<<g;return o(a!=null),o(0<g),a.X=C(O),a.X==null?0:(a.Mb=32-g,a.Xa=g,1)}function ar(a,g){o(a!=null),o(g!=null),o(a.Xa==g.Xa),b(g.X,0,a.X,0,1<<g.Xa)}function vt(){this.X=[],this.Xa=this.Mb=0}function Fn(a,g,O,oe){o(O!=null),o(oe!=null);var Me=O[0],We=oe[0];return Me==0&&(Me=(a*We+g/2)/g),We==0&&(We=(g*Me+a/2)/a),0>=Me||0>=We?0:(O[0]=Me,oe[0]=We,1)}function gn(a,g){return a+(1<<g)-1>>>g}function yr(a,g){return((4278255360&a)+(4278255360&g)>>>0&4278255360)+((16711935&a)+(16711935&g)>>>0&16711935)>>>0}function Ur(a,g){Vt[g]=function(O,oe,Me,We,ze,Je,ot){var mt;for(mt=0;mt<ze;++mt){var Tt=Vt[a](Je[ot+mt-1],Me,We+mt);Je[ot+mt]=yr(O[oe+mt],Tt)}}}function Rr(){this.ud=this.hd=this.jd=0}function wr(a,g){return((4278124286&(a^g))>>>1)+(a&g)>>>0}function Zr(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function Cn(a,g){return Zr(a+(a-g+.5>>1))}function Gn(a,g,O){return Math.abs(g-O)-Math.abs(a-O)}function Zn(a,g,O,oe,Me,We,ze){for(oe=We[ze-1],O=0;O<Me;++O)We[ze+O]=oe=yr(a[g+O],oe)}function Nn(a,g,O,oe,Me){var We;for(We=0;We<O;++We){var ze=a[g+We],Je=ze>>8&255,ot=16711935&(ot=(ot=16711935&ze)+((Je<<16)+Je));oe[Me+We]=(4278255360&ze)+ot>>>0}}function di(a,g){g.jd=a>>0&255,g.hd=a>>8&255,g.ud=a>>16&255}function zn(a,g,O,oe,Me,We){var ze;for(ze=0;ze<oe;++ze){var Je=g[O+ze],ot=Je>>>8,mt=Je,Tt=255&(Tt=(Tt=Je>>>16)+((a.jd<<24>>24)*(ot<<24>>24)>>>5));mt=255&(mt=(mt=mt+((a.hd<<24>>24)*(ot<<24>>24)>>>5))+((a.ud<<24>>24)*(Tt<<24>>24)>>>5)),Me[We+ze]=(4278255360&Je)+(Tt<<16)+mt}}function Ii(a,g,O,oe,Me){Vt[g]=function(We,ze,Je,ot,mt,Tt,jt,cr,Gt){for(ot=jt;ot<cr;++ot)for(jt=0;jt<Gt;++jt)mt[Tt++]=Me(Je[oe(We[ze++])])},Vt[a]=function(We,ze,Je,ot,mt,Tt,jt){var cr=8>>We.b,Gt=We.Ea,Nr=We.K[0],Tr=We.w;if(8>cr)for(We=(1<<We.b)-1,Tr=(1<<cr)-1;ze<Je;++ze){var Xt,tr=0;for(Xt=0;Xt<Gt;++Xt)Xt&We||(tr=oe(ot[mt++])),Tt[jt++]=Me(Nr[tr&Tr]),tr>>=cr}else Vt["VP8LMapColor"+O](ot,mt,Nr,Tr,Tt,jt,ze,Je,Gt)}}function vn(a,g,O,oe,Me){for(O=g+O;g<O;){var We=a[g++];oe[Me++]=We>>16&255,oe[Me++]=We>>8&255,oe[Me++]=We>>0&255}}function _a(a,g,O,oe,Me){for(O=g+O;g<O;){var We=a[g++];oe[Me++]=We>>16&255,oe[Me++]=We>>8&255,oe[Me++]=We>>0&255,oe[Me++]=We>>24&255}}function Hi(a,g,O,oe,Me){for(O=g+O;g<O;){var We=(ze=a[g++])>>16&240|ze>>12&15,ze=ze>>0&240|ze>>28&15;oe[Me++]=We,oe[Me++]=ze}}function Ri(a,g,O,oe,Me){for(O=g+O;g<O;){var We=(ze=a[g++])>>16&248|ze>>13&7,ze=ze>>5&224|ze>>3&31;oe[Me++]=We,oe[Me++]=ze}}function ia(a,g,O,oe,Me){for(O=g+O;g<O;){var We=a[g++];oe[Me++]=We>>0&255,oe[Me++]=We>>8&255,oe[Me++]=We>>16&255}}function Ki(a,g,O,oe,Me,We){if(We==0)for(O=g+O;g<O;)lr(oe,((We=a[g++])[0]>>24|We[1]>>8&65280|We[2]<<8&16711680|We[3]<<24)>>>0),Me+=32;else b(oe,Me,a,g,O)}function Qa(a,g){Vt[g][0]=Vt[a+"0"],Vt[g][1]=Vt[a+"1"],Vt[g][2]=Vt[a+"2"],Vt[g][3]=Vt[a+"3"],Vt[g][4]=Vt[a+"4"],Vt[g][5]=Vt[a+"5"],Vt[g][6]=Vt[a+"6"],Vt[g][7]=Vt[a+"7"],Vt[g][8]=Vt[a+"8"],Vt[g][9]=Vt[a+"9"],Vt[g][10]=Vt[a+"10"],Vt[g][11]=Vt[a+"11"],Vt[g][12]=Vt[a+"12"],Vt[g][13]=Vt[a+"13"],Vt[g][14]=Vt[a+"0"],Vt[g][15]=Vt[a+"0"]}function Gi(a){return a==Zu||a==Al||a==gu||a==id}function As(){this.eb=[],this.size=this.A=this.fb=0}function Sn(){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 fi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new As,this.f.kb=new Sn,this.sd=null}function mi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function $n(){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 ai(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function kn(a,g){var O=a.T,oe=g.ba.f.RGBA,Me=oe.eb,We=oe.fb+a.ka*oe.A,ze=dc[g.ba.S],Je=a.y,ot=a.O,mt=a.f,Tt=a.N,jt=a.ea,cr=a.W,Gt=g.cc,Nr=g.dc,Tr=g.Mc,Xt=g.Nc,tr=a.ka,Qr=a.ka+a.T,ln=a.U,An=ln+1>>1;for(tr==0?ze(Je,ot,null,null,mt,Tt,jt,cr,mt,Tt,jt,cr,Me,We,null,null,ln):(ze(g.ec,g.fc,Je,ot,Gt,Nr,Tr,Xt,mt,Tt,jt,cr,Me,We-oe.A,Me,We,ln),++O);tr+2<Qr;tr+=2)Gt=mt,Nr=Tt,Tr=jt,Xt=cr,Tt+=a.Rc,cr+=a.Rc,We+=2*oe.A,ze(Je,(ot+=2*a.fa)-a.fa,Je,ot,Gt,Nr,Tr,Xt,mt,Tt,jt,cr,Me,We-oe.A,Me,We,ln);return ot+=a.fa,a.j+Qr<a.o?(b(g.ec,g.fc,Je,ot,ln),b(g.cc,g.dc,mt,Tt,An),b(g.Mc,g.Nc,jt,cr,An),O--):1&Qr||ze(Je,ot,null,null,mt,Tt,jt,cr,mt,Tt,jt,cr,Me,We+oe.A,null,null,ln),O}function Qi(a,g,O){var oe=a.F,Me=[a.J];if(oe!=null){var We=a.U,ze=g.ba.S,Je=ze==DA||ze==gu;g=g.ba.f.RGBA;var ot=[0],mt=a.ka;ot[0]=a.T,a.Kb&&(mt==0?--ot[0]:(--mt,Me[0]-=a.width),a.j+a.ka+a.T==a.o&&(ot[0]=a.o-a.j-mt));var Tt=g.eb;mt=g.fb+mt*g.A,a=Ho(oe,Me[0],a.width,We,ot,Tt,mt+(Je?0:3),g.A),o(O==ot),a&&Gi(ze)&&Ec(Tt,mt,Je,We,ot,g.A)}return 0}function Xi(a){var g=a.ma,O=g.ba.S,oe=11>O,Me=O==$u||O==nd||O==DA||O==mu||O==12||Gi(O);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!kA(g.Oa,a,Me?11:12))return 0;if(Me&&Gi(O)&&En(),a.da)alert("todo:use_scaling");else{if(oe){if(g.Ib=ai,a.Kb){if(O=a.U+1>>1,g.memory=C(a.U+2*O),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+a.U,g.Mc=g.cc,g.Nc=g.dc+O,g.Ib=kn,En()}}else alert("todo:EmitYUV");Me&&(g.Jb=Qi,oe&&br())}if(oe&&!Wd){for(a=0;256>a;++a)m[a]=89858*(a-128)+xu>>Gu,v[a]=-22014*(a-128)+xu,y[a]=-45773*(a-128),d[a]=113618*(a-128)+xu>>Gu;for(a=Cu;a<Bd;++a)g=76283*(a-16)+xu>>Gu,ie[a-Cu]=sc(g,255),Fe[a-Cu]=sc(g+8>>4,15);Wd=1}return 1}function qi(a){var g=a.ma,O=a.U,oe=a.T;return o(!(1&a.ka)),0>=O||0>=oe?0:(O=g.Ib(a,g),g.Jb!=null&&g.Jb(a,g,O),g.Dc+=O,1)}function Mo(a){a.ma.memory=null}function Mi(a,g,O,oe){return ut(a,8)!=47?0:(g[0]=ut(a,14)+1,O[0]=ut(a,14)+1,oe[0]=ut(a,1),ut(a,3)!=0?0:!a.h)}function ns(a,g){if(4>a)return a+1;var O=a-2>>1;return(2+(1&a)<<O)+ut(g,O)+1}function ro(a,g){return 120<g?g-120:1<=(O=((O=wd[g-1])>>4)*a+(8-(15&O)))?O:1;var O}function Qo(a,g,O){var oe=Re(O),Me=a[g+=255&oe].g-8;return 0<Me&&(et(O,O.u+8),oe=Re(O),g+=a[g].value,g+=oe&(1<<Me)-1),et(O,O.u+a[g].g),a[g].value}function bn(a,g,O){return O.g+=a.g,O.value+=a.value<<g>>>0,o(8>=O.g),a.g}function no(a,g,O){var oe=a.xc;return o((g=oe==0?0:a.vc[a.md*(O>>oe)+(g>>oe)])<a.Wb),a.Ya[g]}function Cs(a,g,O,oe){var Me=a.ab,We=a.c*g,ze=a.C;g=ze+g;var Je=O,ot=oe;for(oe=a.Ta,O=a.Ua;0<Me--;){var mt=a.gc[Me],Tt=ze,jt=g,cr=Je,Gt=ot,Nr=(ot=oe,Je=O,mt.Ea);switch(o(Tt<jt),o(jt<=mt.nc),mt.hc){case 2:Jl(cr,Gt,(jt-Tt)*Nr,ot,Je);break;case 0:var Tr=Tt,Xt=jt,tr=ot,Qr=Je,ln=(ni=mt).Ea;Tr==0&&(eA(cr,Gt,null,null,1,tr,Qr),Zn(cr,Gt+1,0,0,ln-1,tr,Qr+1),Gt+=ln,Qr+=ln,++Tr);for(var An=1<<ni.b,si=An-1,Wn=gn(ln,ni.b),zi=ni.K,ni=ni.w+(Tr>>ni.b)*Wn;Tr<Xt;){var Ka=zi,qa=ni,Sa=1;for(rl(cr,Gt,tr,Qr-ln,1,tr,Qr);Sa<ln;){var Ia=(Sa&~si)+An;Ia>ln&&(Ia=ln),(0,cc[Ka[qa++]>>8&15])(cr,Gt+ +Sa,tr,Qr+Sa-ln,Ia-Sa,tr,Qr+Sa),Sa=Ia}Gt+=ln,Qr+=ln,++Tr&si||(ni+=Wn)}jt!=mt.nc&&b(ot,Je-Nr,ot,Je+(jt-Tt-1)*Nr,Nr);break;case 1:for(Nr=cr,Xt=Gt,ln=(cr=mt.Ea)-(Qr=cr&~(tr=(Gt=1<<mt.b)-1)),Tr=gn(cr,mt.b),An=mt.K,mt=mt.w+(Tt>>mt.b)*Tr;Tt<jt;){for(si=An,Wn=mt,zi=new Rr,ni=Xt+Qr,Ka=Xt+cr;Xt<ni;)di(si[Wn++],zi),Yl(zi,Nr,Xt,Gt,ot,Je),Xt+=Gt,Je+=Gt;Xt<Ka&&(di(si[Wn++],zi),Yl(zi,Nr,Xt,ln,ot,Je),Xt+=ln,Je+=ln),++Tt&tr||(mt+=Tr)}break;case 3:if(cr==ot&&Gt==Je&&0<mt.b){for(Xt=ot,cr=Nr=Je+(jt-Tt)*Nr-(Qr=(jt-Tt)*gn(mt.Ea,mt.b)),Gt=ot,tr=Je,Tr=[],Qr=(ln=Qr)-1;0<=Qr;--Qr)Tr[Qr]=Gt[tr+Qr];for(Qr=ln-1;0<=Qr;--Qr)Xt[cr+Qr]=Tr[Qr];ss(mt,Tt,jt,ot,Nr,ot,Je)}else ss(mt,Tt,jt,cr,Gt,ot,Je)}Je=oe,ot=O}ot!=O&&b(oe,O,Je,ot,We)}function ga(a,g){var O=a.V,oe=a.Ba+a.c*a.C,Me=g-a.C;if(o(g<=a.l.o),o(16>=Me),0<Me){var We=a.l,ze=a.Ta,Je=a.Ua,ot=We.width;if(Cs(a,Me,O,oe),Me=Je=[Je],o((O=a.C)<(oe=g)),o(We.v<We.va),oe>We.o&&(oe=We.o),O<We.j){var mt=We.j-O;O=We.j,Me[0]+=mt*ot}if(O>=oe?O=0:(Me[0]+=4*We.v,We.ka=O-We.j,We.U=We.va-We.v,We.T=oe-O,O=1),O){if(Je=Je[0],11>(O=a.ca).S){var Tt=O.f.RGBA,jt=(oe=O.S,Me=We.U,We=We.T,mt=Tt.eb,Tt.A),cr=We;for(Tt=Tt.fb+a.Ma*Tt.A;0<cr--;){var Gt=ze,Nr=Je,Tr=Me,Xt=mt,tr=Tt;switch(oe){case ko:cl(Gt,Nr,Tr,Xt,tr);break;case $u:nl(Gt,Nr,Tr,Xt,tr);break;case Zu:nl(Gt,Nr,Tr,Xt,tr),Ec(Xt,tr,0,Tr,1,0);break;case pu:rA(Gt,Nr,Tr,Xt,tr);break;case nd:Ki(Gt,Nr,Tr,Xt,tr,1);break;case Al:Ki(Gt,Nr,Tr,Xt,tr,1),Ec(Xt,tr,0,Tr,1,0);break;case DA:Ki(Gt,Nr,Tr,Xt,tr,0);break;case gu:Ki(Gt,Nr,Tr,Xt,tr,0),Ec(Xt,tr,1,Tr,1,0);break;case mu:xc(Gt,Nr,Tr,Xt,tr);break;case id:xc(Gt,Nr,Tr,Xt,tr),Jo(Xt,tr,Tr,1,0);break;case ru:tA(Gt,Nr,Tr,Xt,tr);break;default:o(0)}Je+=ot,Tt+=jt}a.Ma+=We}else alert("todo:EmitRescaledRowsYUVA");o(a.Ma<=O.height)}}a.C=g,o(a.C<=a.i)}function en(a){var g;if(0<a.ua)return 0;for(g=0;g<a.Wb;++g){var O=a.Ya[g].G,oe=a.Ya[g].H;if(0<O[1][oe[1]+0].g||0<O[2][oe[2]+0].g||0<O[3][oe[3]+0].g)return 0}return 1}function fa(a,g,O,oe,Me,We){if(a.Z!=0){var ze=a.qd,Je=a.rd;for(o(PA[a.Z]!=null);g<O;++g)PA[a.Z](ze,Je,oe,Me,oe,Me,We),ze=oe,Je=Me,Me+=We;a.qd=ze,a.rd=Je}}function so(a,g){var O=a.l.ma,oe=O.Z==0||O.Z==1?a.l.j:a.C;if(oe=a.C<oe?oe:a.C,o(g<=a.l.o),g>oe){var Me=a.l.width,We=O.ca,ze=O.tb+Me*oe,Je=a.V,ot=a.Ba+a.c*oe,mt=a.gc;o(a.ab==1),o(mt[0].hc==3),lc(mt[0],oe,g,Je,ot,We,ze),fa(O,oe,g,We,ze,Me)}a.C=a.Ma=g}function Va(a,g,O,oe,Me,We,ze){var Je=a.$/oe,ot=a.$%oe,mt=a.m,Tt=a.s,jt=O+a.$,cr=jt;Me=O+oe*Me;var Gt=O+oe*We,Nr=280+Tt.ua,Tr=a.Pb?Je:16777216,Xt=0<Tt.ua?Tt.Wa:null,tr=Tt.wc,Qr=jt<Gt?no(Tt,ot,Je):null;o(a.C<We),o(Gt<=Me);var ln=!1;e:for(;;){for(;ln||jt<Gt;){var An=0;if(Je>=Tr){var si=jt-O;o((Tr=a).Pb),Tr.wd=Tr.m,Tr.xd=si,0<Tr.s.ua&&ar(Tr.s.Wa,Tr.s.vb),Tr=Je+ad}if(ot&tr||(Qr=no(Tt,ot,Je)),o(Qr!=null),Qr.Qb&&(g[jt]=Qr.qb,ln=!0),!ln)if(yt(mt),Qr.jc){An=mt,si=g;var Wn=jt,zi=Qr.pd[Re(An)&pl-1];o(Qr.jc),256>zi.g?(et(An,An.u+zi.g),si[Wn]=zi.value,An=0):(et(An,An.u+zi.g-256),o(256<=zi.value),An=zi.value),An==0&&(ln=!0)}else An=Qo(Qr.G[0],Qr.H[0],mt);if(mt.h)break;if(ln||256>An){if(!ln)if(Qr.nd)g[jt]=(Qr.qb|An<<8)>>>0;else{if(yt(mt),ln=Qo(Qr.G[1],Qr.H[1],mt),yt(mt),si=Qo(Qr.G[2],Qr.H[2],mt),Wn=Qo(Qr.G[3],Qr.H[3],mt),mt.h)break;g[jt]=(Wn<<24|ln<<16|An<<8|si)>>>0}if(ln=!1,++jt,++ot>=oe&&(ot=0,++Je,ze!=null&&Je<=We&&!(Je%16)&&ze(a,Je),Xt!=null))for(;cr<jt;)An=g[cr++],Xt.X[(506832829*An&4294967295)>>>Xt.Mb]=An}else if(280>An){if(An=ns(An-256,mt),si=Qo(Qr.G[4],Qr.H[4],mt),yt(mt),si=ro(oe,si=ns(si,mt)),mt.h)break;if(jt-O<si||Me-jt<An)break e;for(Wn=0;Wn<An;++Wn)g[jt+Wn]=g[jt+Wn-si];for(jt+=An,ot+=An;ot>=oe;)ot-=oe,++Je,ze!=null&&Je<=We&&!(Je%16)&&ze(a,Je);if(o(jt<=Me),ot&tr&&(Qr=no(Tt,ot,Je)),Xt!=null)for(;cr<jt;)An=g[cr++],Xt.X[(506832829*An&4294967295)>>>Xt.Mb]=An}else{if(!(An<Nr))break e;for(ln=An-280,o(Xt!=null);cr<jt;)An=g[cr++],Xt.X[(506832829*An&4294967295)>>>Xt.Mb]=An;An=jt,o(!(ln>>>(si=Xt).Xa)),g[An]=si.X[ln],ln=!0}ln||o(mt.h==Ye(mt))}if(a.Pb&&mt.h&&jt<Me)o(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&ar(a.s.vb,a.s.Wa);else{if(mt.h)break e;ze!=null&&ze(a,Je>We?We:Je),a.a=0,a.$=jt-O}return 1}return a.a=3,0}function Si(a){o(a!=null),a.vc=null,a.yc=null,a.Ya=null;var g=a.Wa;g!=null&&(g.X=null),a.vb=null,o(a!=null)}function bo(){var a=new Tc;return a==null?null:(a.a=0,a.xb=bu,Qa("Predictor","VP8LPredictors"),Qa("Predictor","VP8LPredictors_C"),Qa("PredictorAdd","VP8LPredictorsAdd"),Qa("PredictorAdd","VP8LPredictorsAdd_C"),Jl=Nn,Yl=zn,cl=vn,nl=_a,xc=Hi,tA=Ri,rA=ia,Vt.VP8LMapColor32b=Tl,Vt.VP8LMapColor8b=wc,a)}function Ko(a,g,O,oe,Me){var We=1,ze=[a],Je=[g],ot=oe.m,mt=oe.s,Tt=null,jt=0;e:for(;;){if(O)for(;We&&ut(ot,1);){var cr=ze,Gt=Je,Nr=oe,Tr=1,Xt=Nr.m,tr=Nr.gc[Nr.ab],Qr=ut(Xt,2);if(Nr.Oc&1<<Qr)We=0;else{switch(Nr.Oc|=1<<Qr,tr.hc=Qr,tr.Ea=cr[0],tr.nc=Gt[0],tr.K=[null],++Nr.ab,o(4>=Nr.ab),Qr){case 0:case 1:tr.b=ut(Xt,3)+2,Tr=Ko(gn(tr.Ea,tr.b),gn(tr.nc,tr.b),0,Nr,tr.K),tr.K=tr.K[0];break;case 3:var ln,An=ut(Xt,8)+1,si=16<An?0:4<An?1:2<An?2:3;if(cr[0]=gn(tr.Ea,si),tr.b=si,ln=Tr=Ko(An,1,0,Nr,tr.K)){var Wn,zi=An,ni=tr,Ka=1<<(8>>ni.b),qa=C(Ka);if(qa==null)ln=0;else{var Sa=ni.K[0],Ia=ni.w;for(qa[0]=ni.K[0][0],Wn=1;Wn<1*zi;++Wn)qa[Wn]=yr(Sa[Ia+Wn],qa[Wn-1]);for(;Wn<4*Ka;++Wn)qa[Wn]=0;ni.K[0]=null,ni.K[0]=qa,ln=1}}Tr=ln;break;case 2:break;default:o(0)}We=Tr}}if(ze=ze[0],Je=Je[0],We&&ut(ot,1)&&!(We=1<=(jt=ut(ot,4))&&11>=jt)){oe.a=3;break e}var xo;if(xo=We)t:{var Wa,ca,Co,Fc=oe,ws=ze,fc=Je,Yo=jt,Hc=O,Ic=Fc.m,Sl=Fc.s,Rl=[null],Ql=1,iA=0,NA=Vu[Yo];r:for(;;){if(Hc&&ut(Ic,1)){var El=ut(Ic,3)+2,jc=gn(ws,El),Bu=gn(fc,El),iu=jc*Bu;if(!Ko(jc,Bu,0,Fc,Rl))break r;for(Rl=Rl[0],Sl.xc=El,Wa=0;Wa<iu;++Wa){var aA=Rl[Wa]>>8&65535;Rl[Wa]=aA,aA>=Ql&&(Ql=aA+1)}}if(Ic.h)break r;for(ca=0;5>ca;++ca){var Ks=bd[ca];!ca&&0<Yo&&(Ks+=1<<Yo),iA<Ks&&(iA=Ks)}var Su=N(Ql*NA,Ct),Sd=Ql,Gd=N(Sd,T);if(Gd==null)var Xd=null;else o(65536>=Sd),Xd=Gd;var Ed=C(iA);if(Xd==null||Ed==null||Su==null){Fc.a=1;break r}var ld=Su;for(Wa=Co=0;Wa<Ql;++Wa){var Mc=Xd[Wa],gA=Mc.G,cd=Mc.H,Hf=0,Jd=1,_d=0;for(ca=0;5>ca;++ca){Ks=bd[ca],gA[ca]=ld,cd[ca]=Co,!ca&&0<Yo&&(Ks+=1<<Yo);i:{var Fd,Yd=Ks,Ad=Fc,ud=Ed,m0=ld,zc=Co,xf=0,vA=Ad.m,g0=ut(vA,1);if(I(ud,0,0,Yd),g0){var xs=ut(vA,1)+1,v0=ut(vA,1),Cf=ut(vA,v0==0?1:8);ud[Cf]=1,xs==2&&(ud[Cf=ut(vA,8)]=1);var TA=1}else{var Id=C(19),jf=ut(vA,4)+4;if(19<jf){Ad.a=3;var Md=0;break i}for(Fd=0;Fd<jf;++Fd)Id[Zd[Fd]]=ut(vA,3);var oA=void 0,_l=void 0,qd=Ad,dd=Id,ef=Yd,zf=ud,Bf=0,Eu=qd.m,Ld=8,tf=N(128,Ct);n:for(;gt(tf,0,7,dd,19);){if(ut(Eu,1)){var y0=2+2*ut(Eu,3);if((oA=2+ut(Eu,y0))>ef)break n}else oA=ef;for(_l=0;_l<ef&&oA--;){yt(Eu);var Sf=tf[0+(127&Re(Eu))];et(Eu,Eu.u+Sf.g);var au=Sf.value;if(16>au)zf[_l++]=au,au!=0&&(Ld=au);else{var kd=au==16,Ef=au-16,Dd=jo[Ef],$f=ut(Eu,yn[Ef])+Dd;if(_l+$f>ef)break n;for(var Zf=kd?Ld:0;0<$f--;)zf[_l++]=Zf}}Bf=1;break n}Bf||(qd.a=3),TA=Bf}(TA=TA&&!vA.h)&&(xf=gt(m0,zc,8,ud,Yd)),TA&&xf!=0?Md=xf:(Ad.a=3,Md=0)}if(Md==0)break r;if(Jd&&gf[ca]==1&&(Jd=ld[Co].g==0),Hf+=ld[Co].g,Co+=Md,3>=ca){var Pd,_f=Ed[0];for(Pd=1;Pd<Ks;++Pd)Ed[Pd]>_f&&(_f=Ed[Pd]);_d+=_f}}if(Mc.nd=Jd,Mc.Qb=0,Jd&&(Mc.qb=(gA[3][cd[3]+0].value<<24|gA[1][cd[1]+0].value<<16|gA[2][cd[2]+0].value)>>>0,Hf==0&&256>gA[0][cd[0]+0].value&&(Mc.Qb=1,Mc.qb+=gA[0][cd[0]+0].value<<8)),Mc.jc=!Mc.Qb&&6>_d,Mc.jc){var rf,$c=Mc;for(rf=0;rf<pl;++rf){var sA=rf,_u=$c.pd[sA],Od=$c.G[0][$c.H[0]+sA];256<=Od.value?(_u.g=Od.g+256,_u.value=Od.value):(_u.g=0,_u.value=0,sA>>=bn(Od,8,_u),sA>>=bn($c.G[1][$c.H[1]+sA],16,_u),sA>>=bn($c.G[2][$c.H[2]+sA],0,_u),bn($c.G[3][$c.H[3]+sA],24,_u))}}}Sl.vc=Rl,Sl.Wb=Ql,Sl.Ya=Xd,Sl.yc=Su,xo=1;break t}xo=0}if(!(We=xo)){oe.a=3;break e}if(0<jt){if(mt.ua=1<<jt,!dn(mt.Wa,jt)){oe.a=1,We=0;break e}}else mt.ua=0;var Ff=oe,Vf=ze,b0=Je,If=Ff.s,Mf=If.xc;if(Ff.c=Vf,Ff.i=b0,If.md=gn(Vf,Mf),If.wc=Mf==0?-1:(1<<Mf)-1,O){oe.xb=vf;break e}if((Tt=C(ze*Je))==null){oe.a=1,We=0;break e}We=(We=Va(oe,Tt,0,ze,Je,Je,null))&&!ot.h;break e}return We?(Me!=null?Me[0]=Tt:(o(Tt==null),o(O)),oe.$=0,O||Si(mt)):Si(mt),We}function Bs(a,g){var O=a.c*a.i,oe=O+g+16*g;return o(a.c<=g),a.V=C(oe),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+O+g,1)}function gs(a,g){var O=a.C,oe=g-O,Me=a.V,We=a.Ba+a.c*O;for(o(g<=a.l.o);0<oe;){var ze=16<oe?16:oe,Je=a.l.ma,ot=a.l.width,mt=ot*ze,Tt=Je.ca,jt=Je.tb+ot*O,cr=a.Ta,Gt=a.Ua;Cs(a,ze,Me,We),Us(cr,Gt,Tt,jt,mt),fa(Je,O,O+ze,Tt,jt,ot),oe-=ze,Me+=ze*a.c,O+=ze}o(O==g),a.C=a.Ma=g}function is(){this.ub=this.yd=this.td=this.Rb=0}function us(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function bl(){this.Fb=this.Bb=this.Cb=0,this.Zb=C(4),this.Lb=C(4)}function as(){this.Yb=function(){var a=[];return function g(O,oe,Me){for(var We=Me[oe],ze=0;ze<We&&(O.push(Me.length>oe+1?[]:0),!(Me.length<oe+1));ze++)g(O[ze],oe+1,Me)}(a,0,[3,11]),a}()}function $s(){this.jb=C(3),this.Wc=$([4,8],as),this.Xc=$([4,17],as)}function ds(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new C(4),this.od=new C(4)}function Lo(){this.ld=this.La=this.dd=this.tc=0}function wo(){this.Na=this.la=0}function qs(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ol(){this.ad=C(384),this.Za=0,this.Ob=C(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zl(){this.uc=this.M=this.Nb=0,this.wa=Array(new Lo),this.Y=0,this.ya=Array(new Ol),this.aa=0,this.l=new Xc}function wl(){this.y=C(16),this.f=C(8),this.ea=C(8)}function BA(){this.cb=this.a=0,this.sc="",this.m=new Et,this.Od=new is,this.Kc=new us,this.ed=new ds,this.Qa=new bl,this.Ic=this.$c=this.Aa=0,this.D=new zl,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=N(8,Et),this.ia=0,this.pb=N(4,qs),this.Pa=new $s,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new wl),this.Hd=0,this.rb=Array(new wo),this.sb=0,this.wa=Array(new Lo),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 Ol),this.L=this.aa=0,this.gd=$([4,2],Lo),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 Xc(){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 xa(){var a=new BA;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,ml||(ml=fs)),a}function ea(a,g,O){return a.a==0&&(a.a=g,a.sc=O,a.cb=0),0}function vs(a,g,O){return 3<=O&&a[g+0]==157&&a[g+1]==1&&a[g+2]==42}function go(a,g){if(a==null)return 0;if(a.a=0,a.sc="OK",g==null)return ea(a,2,"null VP8Io passed to VP8GetHeaders()");var O=g.data,oe=g.w,Me=g.ha;if(4>Me)return ea(a,7,"Truncated header.");var We=O[oe+0]|O[oe+1]<<8|O[oe+2]<<16,ze=a.Od;if(ze.Rb=!(1&We),ze.td=We>>1&7,ze.yd=We>>4&1,ze.ub=We>>5,3<ze.td)return ea(a,3,"Incorrect keyframe parameters.");if(!ze.yd)return ea(a,4,"Frame not displayable.");oe+=3,Me-=3;var Je=a.Kc;if(ze.Rb){if(7>Me)return ea(a,7,"cannot parse picture header");if(!vs(O,oe,Me))return ea(a,3,"Bad code word");Je.c=16383&(O[oe+4]<<8|O[oe+3]),Je.Td=O[oe+4]>>6,Je.i=16383&(O[oe+6]<<8|O[oe+5]),Je.Ud=O[oe+6]>>6,oe+=7,Me-=7,a.za=Je.c+15>>4,a.Ub=Je.i+15>>4,g.width=Je.c,g.height=Je.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,I((We=a.Pa).jb,0,255,We.jb.length),o((We=a.Qa)!=null),We.Cb=0,We.Bb=0,We.Fb=1,I(We.Zb,0,0,We.Zb.length),I(We.Lb,0,0,We.Lb)}if(ze.ub>Me)return ea(a,7,"bad partition length");re(We=a.m,O,oe,ze.ub),oe+=ze.ub,Me-=ze.ub,ze.Rb&&(Je.Ld=Mt(We),Je.Kd=Mt(We)),Je=a.Qa;var ot,mt=a.Pa;if(o(We!=null),o(Je!=null),Je.Cb=Mt(We),Je.Cb){if(Je.Bb=Mt(We),Mt(We)){for(Je.Fb=Mt(We),ot=0;4>ot;++ot)Je.Zb[ot]=Mt(We)?Ue(We,7):0;for(ot=0;4>ot;++ot)Je.Lb[ot]=Mt(We)?Ue(We,6):0}if(Je.Bb)for(ot=0;3>ot;++ot)mt.jb[ot]=Mt(We)?Be(We,8):255}else Je.Bb=0;if(We.Ka)return ea(a,3,"cannot parse segment header");if((Je=a.ed).zd=Mt(We),Je.Tb=Be(We,6),Je.wb=Be(We,3),Je.Pc=Mt(We),Je.Pc&&Mt(We)){for(mt=0;4>mt;++mt)Mt(We)&&(Je.vd[mt]=Ue(We,6));for(mt=0;4>mt;++mt)Mt(We)&&(Je.od[mt]=Ue(We,6))}if(a.L=Je.Tb==0?0:Je.zd?1:2,We.Ka)return ea(a,3,"cannot parse filter header");var Tt=Me;if(Me=ot=oe,oe=ot+Tt,Je=Tt,a.Xb=(1<<Be(a.m,2))-1,Tt<3*(mt=a.Xb))O=7;else{for(ot+=3*mt,Je-=3*mt,Tt=0;Tt<mt;++Tt){var jt=O[Me+0]|O[Me+1]<<8|O[Me+2]<<16;jt>Je&&(jt=Je),re(a.Jc[+Tt],O,ot,jt),ot+=jt,Je-=jt,Me+=3}re(a.Jc[+mt],O,ot,Je),O=ot<oe?0:5}if(O!=0)return ea(a,O,"cannot parse partitions");for(O=Be(ot=a.m,7),Me=Mt(ot)?Ue(ot,4):0,oe=Mt(ot)?Ue(ot,4):0,Je=Mt(ot)?Ue(ot,4):0,mt=Mt(ot)?Ue(ot,4):0,ot=Mt(ot)?Ue(ot,4):0,Tt=a.Qa,jt=0;4>jt;++jt){if(Tt.Cb){var cr=Tt.Zb[jt];Tt.Fb||(cr+=O)}else{if(0<jt){a.pb[jt]=a.pb[0];continue}cr=O}var Gt=a.pb[jt];Gt.Sc[0]=xd[sc(cr+Me,127)],Gt.Sc[1]=vu[sc(cr+0,127)],Gt.Eb[0]=2*xd[sc(cr+oe,127)],Gt.Eb[1]=101581*vu[sc(cr+Je,127)]>>16,8>Gt.Eb[1]&&(Gt.Eb[1]=8),Gt.Qc[0]=xd[sc(cr+mt,117)],Gt.Qc[1]=vu[sc(cr+ot,127)],Gt.lc=cr+ot}if(!ze.Rb)return ea(a,4,"Not a key frame.");for(Mt(We),ze=a.Pa,O=0;4>O;++O){for(Me=0;8>Me;++Me)for(oe=0;3>oe;++oe)for(Je=0;11>Je;++Je)mt=Rt(We,gl[O][Me][oe][Je])?Be(We,8):Cd[O][Me][oe][Je],ze.Wc[O][Me].Yb[oe][Je]=mt;for(Me=0;17>Me;++Me)ze.Xc[O][Me]=ze.Wc[O][od[Me]]}return a.kc=Mt(We),a.kc&&(a.Bd=Be(We,8)),a.cb=1}function fs(a,g,O,oe,Me,We,ze){var Je=g[Me].Yb[O];for(O=0;16>Me;++Me){if(!Rt(a,Je[O+0]))return Me;for(;!Rt(a,Je[O+1]);)if(Je=g[++Me].Yb[0],O=0,Me==16)return 16;var ot=g[Me+1].Yb;if(Rt(a,Je[O+2])){var mt=a,Tt=0;if(Rt(mt,(cr=Je)[(jt=O)+3]))if(Rt(mt,cr[jt+6])){for(Je=0,jt=2*(Tt=Rt(mt,cr[jt+8]))+(cr=Rt(mt,cr[jt+9+Tt])),Tt=0,cr=nu[jt];cr[Je];++Je)Tt+=Tt+Rt(mt,cr[Je]);Tt+=3+(8<<jt)}else Rt(mt,cr[jt+7])?(Tt=7+2*Rt(mt,165),Tt+=Rt(mt,145)):Tt=5+Rt(mt,159);else Tt=Rt(mt,cr[jt+4])?3+Rt(mt,cr[jt+5]):2;Je=ot[2]}else Tt=1,Je=ot[1];ot=ze+Ls[Me],0>(mt=a).b&&_t(mt);var jt,cr=mt.b,Gt=(jt=mt.Ca>>1)-(mt.I>>cr)>>31;--mt.b,mt.Ca+=Gt,mt.Ca|=1,mt.I-=(jt+1&Gt)<<cr,We[ot]=((Tt^Gt)-Gt)*oe[(0<Me)+0]}return 16}function Ss(a){var g=a.rb[a.sb-1];g.la=0,g.Na=0,I(a.zc,0,0,a.zc.length),a.ja=0}function Es(a,g){if(a==null)return 0;if(g==null)return ea(a,2,"NULL VP8Io parameter in VP8Decode().");if(!a.cb&&!go(a,g))return 0;if(o(a.cb),g.ac==null||g.ac(g)){g.ob&&(a.L=0);var O=xt[a.L];if(a.L==2?(a.yb=0,a.zb=0):(a.yb=g.v-O>>4,a.zb=g.j-O>>4,0>a.yb&&(a.yb=0),0>a.zb&&(a.zb=0)),a.Va=g.o+15+O>>4,a.Hb=g.va+15+O>>4,a.Hb>a.za&&(a.Hb=a.za),a.Va>a.Ub&&(a.Va=a.Ub),0<a.L){var oe=a.ed;for(O=0;4>O;++O){var Me;if(a.Qa.Cb){var We=a.Qa.Lb[O];a.Qa.Fb||(We+=oe.Tb)}else We=oe.Tb;for(Me=0;1>=Me;++Me){var ze=a.gd[O][Me],Je=We;if(oe.Pc&&(Je+=oe.vd[0],Me&&(Je+=oe.od[0])),0<(Je=0>Je?0:63<Je?63:Je)){var ot=Je;0<oe.wb&&(ot=4<oe.wb?ot>>2:ot>>1)>9-oe.wb&&(ot=9-oe.wb),1>ot&&(ot=1),ze.dd=ot,ze.tc=2*Je+ot,ze.ld=40<=Je?2:15<=Je?1:0}else ze.tc=0;ze.La=Me}}}O=0}else ea(a,6,"Frame setup failed"),O=a.a;if(O=O==0){if(O){a.$c=0,0<a.Aa||(a.Ic=nr);e:{O=a.Ic,oe=4*(ot=a.za);var mt=32*ot,Tt=ot+1,jt=0<a.L?ot*(0<a.Aa?2:1):0,cr=(a.Aa==2?2:1)*ot;if((ze=oe+832+(Me=3*(16*O+xt[a.L])/2*mt)+(We=a.Fa!=null&&0<a.Fa.length?a.Kc.c*a.Kc.i:0))!=ze)O=0;else{if(ze>a.Vb){if(a.Vb=0,a.Ec=C(ze),a.Fc=0,a.Ec==null){O=ea(a,1,"no memory during frame initialization.");break e}a.Vb=ze}ze=a.Ec,Je=a.Fc,a.Ac=ze,a.Bc=Je,Je+=oe,a.Gd=N(mt,wl),a.Hd=0,a.rb=N(Tt+1,wo),a.sb=1,a.wa=jt?N(jt,Lo):null,a.Y=0,a.D.Nb=0,a.D.wa=a.wa,a.D.Y=a.Y,0<a.Aa&&(a.D.Y+=ot),o(!0),a.oc=ze,a.pc=Je,Je+=832,a.ya=N(cr,Ol),a.aa=0,a.D.ya=a.ya,a.D.aa=a.aa,a.Aa==2&&(a.D.aa+=ot),a.R=16*ot,a.B=8*ot,ot=(mt=xt[a.L])*a.R,mt=mt/2*a.B,a.sa=ze,a.ta=Je+ot,a.qa=a.sa,a.ra=a.ta+16*O*a.R+mt,a.Ha=a.qa,a.Ia=a.ra+8*O*a.B+mt,a.$c=0,Je+=Me,a.mb=We?ze:null,a.nb=We?Je:null,o(Je+We<=a.Fc+a.Vb),Ss(a),I(a.Ac,a.Bc,0,oe),O=1}}if(O){if(g.ka=0,g.y=a.sa,g.O=a.ta,g.f=a.qa,g.N=a.ra,g.ea=a.Ha,g.Vd=a.Ia,g.fa=a.R,g.Rc=a.B,g.F=null,g.J=0,!tu){for(O=-255;255>=O;++O)Rs[255+O]=0>O?-O:O;for(O=-1020;1020>=O;++O)Ua[1020+O]=-128>O?-128:127<O?127:O;for(O=-112;112>=O;++O)hi[112+O]=-16>O?-16:15<O?15:O;for(O=-255;510>=O;++O)ec[255+O]=0>O?0:255<O?255:O;tu=1}qA=HA,uA=So,eu=xl,Ul=rc,Cc=Os,Ms=Ca,fu=Nc,rd=Gl,ju=yd,dA=Qu,Bc=IA,Ac=zr,uc=WA,ql=GA,fA=os,hA=ys,hu=ac,Sc=FA,Vs[0]=Zl,Vs[1]=jA,Vs[2]=EA,Vs[3]=$A,Vs[4]=Xo,Vs[5]=Pc,Vs[6]=ZA,Vs[7]=yc,Vs[8]=Vl,Vs[9]=_A,_c[0]=fn,_c[1]=Jc,_c[2]=$l,_c[3]=vc,_c[4]=Fs,_c[5]=SA,_c[6]=AA,nA[0]=ts,nA[1]=zA,nA[2]=ic,nA[3]=lo,nA[4]=va,nA[5]=bc,nA[6]=Ba,O=1}else O=0}O&&(O=function(Gt,Nr){for(Gt.M=0;Gt.M<Gt.Va;++Gt.M){var Tr,Xt=Gt.Jc[Gt.M&Gt.Xb],tr=Gt.m,Qr=Gt;for(Tr=0;Tr<Qr.za;++Tr){var ln=tr,An=Qr,si=An.Ac,Wn=An.Bc+4*Tr,zi=An.zc,ni=An.ya[An.aa+Tr];if(An.Qa.Bb?ni.$b=Rt(ln,An.Pa.jb[0])?2+Rt(ln,An.Pa.jb[2]):Rt(ln,An.Pa.jb[1]):ni.$b=0,An.kc&&(ni.Ad=Rt(ln,An.Bd)),ni.Za=!Rt(ln,145)+0,ni.Za){var Ka=ni.Ob,qa=0;for(An=0;4>An;++An){var Sa,Ia=zi[0+An];for(Sa=0;4>Sa;++Sa){Ia=pA[si[Wn+Sa]][Ia];for(var xo=yu[Rt(ln,Ia[0])];0<xo;)xo=yu[2*xo+Rt(ln,Ia[xo])];Ia=-xo,si[Wn+Sa]=Ia}b(Ka,qa,si,Wn,4),qa+=4,zi[0+An]=Ia}}else Ia=Rt(ln,156)?Rt(ln,128)?1:3:Rt(ln,163)?2:0,ni.Ob[0]=Ia,I(si,Wn,Ia,4),I(zi,0,Ia,4);ni.Dd=Rt(ln,142)?Rt(ln,114)?Rt(ln,183)?1:3:2:0}if(Qr.m.Ka)return ea(Gt,7,"Premature end-of-partition0 encountered.");for(;Gt.ja<Gt.za;++Gt.ja){if(Qr=Xt,ln=(tr=Gt).rb[tr.sb-1],si=tr.rb[tr.sb+tr.ja],Tr=tr.ya[tr.aa+tr.ja],Wn=tr.kc?Tr.Ad:0)ln.la=si.la=0,Tr.Za||(ln.Na=si.Na=0),Tr.Hc=0,Tr.Gc=0,Tr.ia=0;else{var Wa,ca;if(ln=si,si=Qr,Wn=tr.Pa.Xc,zi=tr.ya[tr.aa+tr.ja],ni=tr.pb[zi.$b],An=zi.ad,Ka=0,qa=tr.rb[tr.sb-1],Ia=Sa=0,I(An,Ka,0,384),zi.Za)var Co=0,Fc=Wn[3];else{xo=C(16);var ws=ln.Na+qa.Na;if(ws=ml(si,Wn[1],ws,ni.Eb,0,xo,0),ln.Na=qa.Na=(0<ws)+0,1<ws)qA(xo,0,An,Ka);else{var fc=xo[0]+3>>3;for(xo=0;256>xo;xo+=16)An[Ka+xo]=fc}Co=1,Fc=Wn[0]}var Yo=15&ln.la,Hc=15&qa.la;for(xo=0;4>xo;++xo){var Ic=1&Hc;for(fc=ca=0;4>fc;++fc)Yo=Yo>>1|(Ic=(ws=ml(si,Fc,ws=Ic+(1&Yo),ni.Sc,Co,An,Ka))>Co)<<7,ca=ca<<2|(3<ws?3:1<ws?2:An[Ka+0]!=0),Ka+=16;Yo>>=4,Hc=Hc>>1|Ic<<7,Sa=(Sa<<8|ca)>>>0}for(Fc=Yo,Co=Hc>>4,Wa=0;4>Wa;Wa+=2){for(ca=0,Yo=ln.la>>4+Wa,Hc=qa.la>>4+Wa,xo=0;2>xo;++xo){for(Ic=1&Hc,fc=0;2>fc;++fc)ws=Ic+(1&Yo),Yo=Yo>>1|(Ic=0<(ws=ml(si,Wn[2],ws,ni.Qc,0,An,Ka)))<<3,ca=ca<<2|(3<ws?3:1<ws?2:An[Ka+0]!=0),Ka+=16;Yo>>=2,Hc=Hc>>1|Ic<<5}Ia|=ca<<4*Wa,Fc|=Yo<<4<<Wa,Co|=(240&Hc)<<Wa}ln.la=Fc,qa.la=Co,zi.Hc=Sa,zi.Gc=Ia,zi.ia=43690&Ia?0:ni.ia,Wn=!(Sa|Ia)}if(0<tr.L&&(tr.wa[tr.Y+tr.ja]=tr.gd[Tr.$b][Tr.Za],tr.wa[tr.Y+tr.ja].La|=!Wn),Qr.Ka)return ea(Gt,7,"Premature end-of-file encountered.")}if(Ss(Gt),tr=Nr,Qr=1,Tr=(Xt=Gt).D,ln=0<Xt.L&&Xt.M>=Xt.zb&&Xt.M<=Xt.Va,Xt.Aa==0)e:{if(Tr.M=Xt.M,Tr.uc=ln,uu(Xt,Tr),Qr=1,Tr=(ca=Xt.D).Nb,ln=(Ia=xt[Xt.L])*Xt.R,si=Ia/2*Xt.B,xo=16*Tr*Xt.R,fc=8*Tr*Xt.B,Wn=Xt.sa,zi=Xt.ta-ln+xo,ni=Xt.qa,An=Xt.ra-si+fc,Ka=Xt.Ha,qa=Xt.Ia-si+fc,Hc=(Yo=ca.M)==0,Sa=Yo>=Xt.Va-1,Xt.Aa==2&&uu(Xt,ca),ca.uc)for(Ic=(ws=Xt).D.M,o(ws.D.uc),ca=ws.yb;ca<ws.Hb;++ca){Co=ca,Fc=Ic;var Sl=(Rl=(Ks=ws).D).Nb;Wa=Ks.R;var Rl=Rl.wa[Rl.Y+Co],Ql=Ks.sa,iA=Ks.ta+16*Sl*Wa+16*Co,NA=Rl.dd,El=Rl.tc;if(El!=0)if(o(3<=El),Ks.L==1)0<Co&&hA(Ql,iA,Wa,El+4),Rl.La&&Sc(Ql,iA,Wa,El),0<Fc&&fA(Ql,iA,Wa,El+4),Rl.La&&hu(Ql,iA,Wa,El);else{var jc=Ks.B,Bu=Ks.qa,iu=Ks.ra+8*Sl*jc+8*Co,aA=Ks.Ha,Ks=Ks.Ia+8*Sl*jc+8*Co;Sl=Rl.ld,0<Co&&(rd(Ql,iA,Wa,El+4,NA,Sl),dA(Bu,iu,aA,Ks,jc,El+4,NA,Sl)),Rl.La&&(Ac(Ql,iA,Wa,El,NA,Sl),ql(Bu,iu,aA,Ks,jc,El,NA,Sl)),0<Fc&&(fu(Ql,iA,Wa,El+4,NA,Sl),ju(Bu,iu,aA,Ks,jc,El+4,NA,Sl)),Rl.La&&(Bc(Ql,iA,Wa,El,NA,Sl),uc(Bu,iu,aA,Ks,jc,El,NA,Sl))}}if(Xt.ia&&alert("todo:DitherRow"),tr.put!=null){if(ca=16*Yo,Yo=16*(Yo+1),Hc?(tr.y=Xt.sa,tr.O=Xt.ta+xo,tr.f=Xt.qa,tr.N=Xt.ra+fc,tr.ea=Xt.Ha,tr.W=Xt.Ia+fc):(ca-=Ia,tr.y=Wn,tr.O=zi,tr.f=ni,tr.N=An,tr.ea=Ka,tr.W=qa),Sa||(Yo-=Ia),Yo>tr.o&&(Yo=tr.o),tr.F=null,tr.J=null,Xt.Fa!=null&&0<Xt.Fa.length&&ca<Yo&&(tr.J=MA(Xt,tr,ca,Yo-ca),tr.F=Xt.mb,tr.F==null&&tr.F.length==0)){Qr=ea(Xt,3,"Could not decode alpha data.");break e}ca<tr.j&&(Ia=tr.j-ca,ca=tr.j,o(!(1&Ia)),tr.O+=Xt.R*Ia,tr.N+=Xt.B*(Ia>>1),tr.W+=Xt.B*(Ia>>1),tr.F!=null&&(tr.J+=tr.width*Ia)),ca<Yo&&(tr.O+=tr.v,tr.N+=tr.v>>1,tr.W+=tr.v>>1,tr.F!=null&&(tr.J+=tr.v),tr.ka=ca-tr.j,tr.U=tr.va-tr.v,tr.T=Yo-ca,Qr=tr.put(tr))}Tr+1!=Xt.Ic||Sa||(b(Xt.sa,Xt.ta-ln,Wn,zi+16*Xt.R,ln),b(Xt.qa,Xt.ra-si,ni,An+8*Xt.B,si),b(Xt.Ha,Xt.Ia-si,Ka,qa+8*Xt.B,si))}if(!Qr)return ea(Gt,6,"Output aborted.")}return 1}(a,g)),g.bc!=null&&g.bc(g),O&=1}return O?(a.cb=0,O):0}function _s(a,g,O,oe,Me){Me=a[g+O+32*oe]+(Me>>3),a[g+O+32*oe]=-256&Me?0>Me?0:255:Me}function Dc(a,g,O,oe,Me,We){_s(a,g,0,O,oe+Me),_s(a,g,1,O,oe+We),_s(a,g,2,O,oe-We),_s(a,g,3,O,oe-Me)}function ll(a){return(20091*a>>16)+a}function gc(a,g,O,oe){var Me,We=0,ze=C(16);for(Me=0;4>Me;++Me){var Je=a[g+0]+a[g+8],ot=a[g+0]-a[g+8],mt=(35468*a[g+4]>>16)-ll(a[g+12]),Tt=ll(a[g+4])+(35468*a[g+12]>>16);ze[We+0]=Je+Tt,ze[We+1]=ot+mt,ze[We+2]=ot-mt,ze[We+3]=Je-Tt,We+=4,g++}for(Me=We=0;4>Me;++Me)Je=(a=ze[We+0]+4)+ze[We+8],ot=a-ze[We+8],mt=(35468*ze[We+4]>>16)-ll(ze[We+12]),_s(O,oe,0,0,Je+(Tt=ll(ze[We+4])+(35468*ze[We+12]>>16))),_s(O,oe,1,0,ot+mt),_s(O,oe,2,0,ot-mt),_s(O,oe,3,0,Je-Tt),We++,oe+=32}function Ca(a,g,O,oe){var Me=a[g+0]+4,We=35468*a[g+4]>>16,ze=ll(a[g+4]),Je=35468*a[g+1]>>16;Dc(O,oe,0,Me+ze,a=ll(a[g+1]),Je),Dc(O,oe,1,Me+We,a,Je),Dc(O,oe,2,Me-We,a,Je),Dc(O,oe,3,Me-ze,a,Je)}function So(a,g,O,oe,Me){gc(a,g,O,oe),Me&&gc(a,g+16,O,oe+4)}function xl(a,g,O,oe){uA(a,g+0,O,oe,1),uA(a,g+32,O,oe+128,1)}function rc(a,g,O,oe){var Me;for(a=a[g+0]+4,Me=0;4>Me;++Me)for(g=0;4>g;++g)_s(O,oe,g,Me,a)}function Os(a,g,O,oe){a[g+0]&&Ul(a,g+0,O,oe),a[g+16]&&Ul(a,g+16,O,oe+4),a[g+32]&&Ul(a,g+32,O,oe+128),a[g+48]&&Ul(a,g+48,O,oe+128+4)}function HA(a,g,O,oe){var Me,We=C(16);for(Me=0;4>Me;++Me){var ze=a[g+0+Me]+a[g+12+Me],Je=a[g+4+Me]+a[g+8+Me],ot=a[g+4+Me]-a[g+8+Me],mt=a[g+0+Me]-a[g+12+Me];We[0+Me]=ze+Je,We[8+Me]=ze-Je,We[4+Me]=mt+ot,We[12+Me]=mt-ot}for(Me=0;4>Me;++Me)ze=(a=We[0+4*Me]+3)+We[3+4*Me],Je=We[1+4*Me]+We[2+4*Me],ot=We[1+4*Me]-We[2+4*Me],mt=a-We[3+4*Me],O[oe+0]=ze+Je>>3,O[oe+16]=mt+ot>>3,O[oe+32]=ze-Je>>3,O[oe+48]=mt-ot>>3,oe+=64}function Cl(a,g,O){var oe,Me=g-32,We=ya,ze=255-a[Me-1];for(oe=0;oe<O;++oe){var Je,ot=We,mt=ze+a[g-1];for(Je=0;Je<O;++Je)a[g+Je]=ot[mt+a[Me+Je]];g+=32}}function jA(a,g){Cl(a,g,4)}function zA(a,g){Cl(a,g,8)}function Jc(a,g){Cl(a,g,16)}function $l(a,g){var O;for(O=0;16>O;++O)b(a,g+32*O,a,g-32,16)}function vc(a,g){var O;for(O=16;0<O;--O)I(a,g,a[g-1],16),g+=32}function nc(a,g,O){var oe;for(oe=0;16>oe;++oe)I(g,O+32*oe,a,16)}function fn(a,g){var O,oe=16;for(O=0;16>O;++O)oe+=a[g-1+32*O]+a[g+O-32];nc(oe>>5,a,g)}function Fs(a,g){var O,oe=8;for(O=0;16>O;++O)oe+=a[g-1+32*O];nc(oe>>4,a,g)}function SA(a,g){var O,oe=8;for(O=0;16>O;++O)oe+=a[g+O-32];nc(oe>>4,a,g)}function AA(a,g){nc(128,a,g)}function sa(a,g,O){return a+2*g+O+2>>2}function EA(a,g){var O,oe=g-32;for(oe=new Uint8Array([sa(a[oe-1],a[oe+0],a[oe+1]),sa(a[oe+0],a[oe+1],a[oe+2]),sa(a[oe+1],a[oe+2],a[oe+3]),sa(a[oe+2],a[oe+3],a[oe+4])]),O=0;4>O;++O)b(a,g+32*O,oe,0,oe.length)}function $A(a,g){var O=a[g-1],oe=a[g-1+32],Me=a[g-1+64],We=a[g-1+96];lr(a,g+0,16843009*sa(a[g-1-32],O,oe)),lr(a,g+32,16843009*sa(O,oe,Me)),lr(a,g+64,16843009*sa(oe,Me,We)),lr(a,g+96,16843009*sa(Me,We,We))}function Zl(a,g){var O,oe=4;for(O=0;4>O;++O)oe+=a[g+O-32]+a[g-1+32*O];for(oe>>=3,O=0;4>O;++O)I(a,g+32*O,oe,4)}function Xo(a,g){var O=a[g-1+0],oe=a[g-1+32],Me=a[g-1+64],We=a[g-1-32],ze=a[g+0-32],Je=a[g+1-32],ot=a[g+2-32],mt=a[g+3-32];a[g+0+96]=sa(oe,Me,a[g-1+96]),a[g+1+96]=a[g+0+64]=sa(O,oe,Me),a[g+2+96]=a[g+1+64]=a[g+0+32]=sa(We,O,oe),a[g+3+96]=a[g+2+64]=a[g+1+32]=a[g+0+0]=sa(ze,We,O),a[g+3+64]=a[g+2+32]=a[g+1+0]=sa(Je,ze,We),a[g+3+32]=a[g+2+0]=sa(ot,Je,ze),a[g+3+0]=sa(mt,ot,Je)}function ZA(a,g){var O=a[g+1-32],oe=a[g+2-32],Me=a[g+3-32],We=a[g+4-32],ze=a[g+5-32],Je=a[g+6-32],ot=a[g+7-32];a[g+0+0]=sa(a[g+0-32],O,oe),a[g+1+0]=a[g+0+32]=sa(O,oe,Me),a[g+2+0]=a[g+1+32]=a[g+0+64]=sa(oe,Me,We),a[g+3+0]=a[g+2+32]=a[g+1+64]=a[g+0+96]=sa(Me,We,ze),a[g+3+32]=a[g+2+64]=a[g+1+96]=sa(We,ze,Je),a[g+3+64]=a[g+2+96]=sa(ze,Je,ot),a[g+3+96]=sa(Je,ot,ot)}function Pc(a,g){var O=a[g-1+0],oe=a[g-1+32],Me=a[g-1+64],We=a[g-1-32],ze=a[g+0-32],Je=a[g+1-32],ot=a[g+2-32],mt=a[g+3-32];a[g+0+0]=a[g+1+64]=We+ze+1>>1,a[g+1+0]=a[g+2+64]=ze+Je+1>>1,a[g+2+0]=a[g+3+64]=Je+ot+1>>1,a[g+3+0]=ot+mt+1>>1,a[g+0+96]=sa(Me,oe,O),a[g+0+64]=sa(oe,O,We),a[g+0+32]=a[g+1+96]=sa(O,We,ze),a[g+1+32]=a[g+2+96]=sa(We,ze,Je),a[g+2+32]=a[g+3+96]=sa(ze,Je,ot),a[g+3+32]=sa(Je,ot,mt)}function yc(a,g){var O=a[g+0-32],oe=a[g+1-32],Me=a[g+2-32],We=a[g+3-32],ze=a[g+4-32],Je=a[g+5-32],ot=a[g+6-32],mt=a[g+7-32];a[g+0+0]=O+oe+1>>1,a[g+1+0]=a[g+0+64]=oe+Me+1>>1,a[g+2+0]=a[g+1+64]=Me+We+1>>1,a[g+3+0]=a[g+2+64]=We+ze+1>>1,a[g+0+32]=sa(O,oe,Me),a[g+1+32]=a[g+0+96]=sa(oe,Me,We),a[g+2+32]=a[g+1+96]=sa(Me,We,ze),a[g+3+32]=a[g+2+96]=sa(We,ze,Je),a[g+3+64]=sa(ze,Je,ot),a[g+3+96]=sa(Je,ot,mt)}function _A(a,g){var O=a[g-1+0],oe=a[g-1+32],Me=a[g-1+64],We=a[g-1+96];a[g+0+0]=O+oe+1>>1,a[g+2+0]=a[g+0+32]=oe+Me+1>>1,a[g+2+32]=a[g+0+64]=Me+We+1>>1,a[g+1+0]=sa(O,oe,Me),a[g+3+0]=a[g+1+32]=sa(oe,Me,We),a[g+3+32]=a[g+1+64]=sa(Me,We,We),a[g+3+64]=a[g+2+64]=a[g+0+96]=a[g+1+96]=a[g+2+96]=a[g+3+96]=We}function Vl(a,g){var O=a[g-1+0],oe=a[g-1+32],Me=a[g-1+64],We=a[g-1+96],ze=a[g-1-32],Je=a[g+0-32],ot=a[g+1-32],mt=a[g+2-32];a[g+0+0]=a[g+2+32]=O+ze+1>>1,a[g+0+32]=a[g+2+64]=oe+O+1>>1,a[g+0+64]=a[g+2+96]=Me+oe+1>>1,a[g+0+96]=We+Me+1>>1,a[g+3+0]=sa(Je,ot,mt),a[g+2+0]=sa(ze,Je,ot),a[g+1+0]=a[g+3+32]=sa(O,ze,Je),a[g+1+32]=a[g+3+64]=sa(oe,O,ze),a[g+1+64]=a[g+3+96]=sa(Me,oe,O),a[g+1+96]=sa(We,Me,oe)}function ic(a,g){var O;for(O=0;8>O;++O)b(a,g+32*O,a,g-32,8)}function lo(a,g){var O;for(O=0;8>O;++O)I(a,g,a[g-1],8),g+=32}function Ns(a,g,O){var oe;for(oe=0;8>oe;++oe)I(g,O+32*oe,a,8)}function ts(a,g){var O,oe=8;for(O=0;8>O;++O)oe+=a[g+O-32]+a[g-1+32*O];Ns(oe>>4,a,g)}function bc(a,g){var O,oe=4;for(O=0;8>O;++O)oe+=a[g+O-32];Ns(oe>>3,a,g)}function va(a,g){var O,oe=4;for(O=0;8>O;++O)oe+=a[g-1+32*O];Ns(oe>>3,a,g)}function Ba(a,g){Ns(128,a,g)}function Zs(a,g,O){var oe=a[g-O],Me=a[g+0],We=3*(Me-oe)+Qs[1020+a[g-2*O]-a[g+O]],ze=zu[112+(We+4>>3)];a[g-O]=ya[255+oe+zu[112+(We+3>>3)]],a[g+0]=ya[255+Me-ze]}function Wl(a,g,O,oe){var Me=a[g+0],We=a[g+O];return Ao[255+a[g-2*O]-a[g-O]]>oe||Ao[255+We-Me]>oe}function Nl(a,g,O,oe){return 4*Ao[255+a[g-O]-a[g+0]]+Ao[255+a[g-2*O]-a[g+O]]<=oe}function VA(a,g,O,oe,Me){var We=a[g-3*O],ze=a[g-2*O],Je=a[g-O],ot=a[g+0],mt=a[g+O],Tt=a[g+2*O],jt=a[g+3*O];return 4*Ao[255+Je-ot]+Ao[255+ze-mt]>oe?0:Ao[255+a[g-4*O]-We]<=Me&&Ao[255+We-ze]<=Me&&Ao[255+ze-Je]<=Me&&Ao[255+jt-Tt]<=Me&&Ao[255+Tt-mt]<=Me&&Ao[255+mt-ot]<=Me}function os(a,g,O,oe){var Me=2*oe+1;for(oe=0;16>oe;++oe)Nl(a,g+oe,O,Me)&&Zs(a,g+oe,O)}function ys(a,g,O,oe){var Me=2*oe+1;for(oe=0;16>oe;++oe)Nl(a,g+oe*O,1,Me)&&Zs(a,g+oe*O,1)}function ac(a,g,O,oe){var Me;for(Me=3;0<Me;--Me)os(a,g+=4*O,O,oe)}function FA(a,g,O,oe){var Me;for(Me=3;0<Me;--Me)ys(a,g+=4,O,oe)}function Oc(a,g,O,oe,Me,We,ze,Je){for(We=2*We+1;0<Me--;){if(VA(a,g,O,We,ze))if(Wl(a,g,O,Je))Zs(a,g,O);else{var ot=a,mt=g,Tt=O,jt=ot[mt-2*Tt],cr=ot[mt-Tt],Gt=ot[mt+0],Nr=ot[mt+Tt],Tr=ot[mt+2*Tt],Xt=27*(Qr=Qs[1020+3*(Gt-cr)+Qs[1020+jt-Nr]])+63>>7,tr=18*Qr+63>>7,Qr=9*Qr+63>>7;ot[mt-3*Tt]=ya[255+ot[mt-3*Tt]+Qr],ot[mt-2*Tt]=ya[255+jt+tr],ot[mt-Tt]=ya[255+cr+Xt],ot[mt+0]=ya[255+Gt-Xt],ot[mt+Tt]=ya[255+Nr-tr],ot[mt+2*Tt]=ya[255+Tr-Qr]}g+=oe}}function la(a,g,O,oe,Me,We,ze,Je){for(We=2*We+1;0<Me--;){if(VA(a,g,O,We,ze))if(Wl(a,g,O,Je))Zs(a,g,O);else{var ot=a,mt=g,Tt=O,jt=ot[mt-Tt],cr=ot[mt+0],Gt=ot[mt+Tt],Nr=zu[112+((Tr=3*(cr-jt))+4>>3)],Tr=zu[112+(Tr+3>>3)],Xt=Nr+1>>1;ot[mt-2*Tt]=ya[255+ot[mt-2*Tt]+Xt],ot[mt-Tt]=ya[255+jt+Tr],ot[mt+0]=ya[255+cr-Nr],ot[mt+Tt]=ya[255+Gt-Xt]}g+=oe}}function Nc(a,g,O,oe,Me,We){Oc(a,g,O,1,16,oe,Me,We)}function Gl(a,g,O,oe,Me,We){Oc(a,g,1,O,16,oe,Me,We)}function IA(a,g,O,oe,Me,We){var ze;for(ze=3;0<ze;--ze)la(a,g+=4*O,O,1,16,oe,Me,We)}function zr(a,g,O,oe,Me,We){var ze;for(ze=3;0<ze;--ze)la(a,g+=4,1,O,16,oe,Me,We)}function yd(a,g,O,oe,Me,We,ze,Je){Oc(a,g,Me,1,8,We,ze,Je),Oc(O,oe,Me,1,8,We,ze,Je)}function Qu(a,g,O,oe,Me,We,ze,Je){Oc(a,g,1,Me,8,We,ze,Je),Oc(O,oe,1,Me,8,We,ze,Je)}function WA(a,g,O,oe,Me,We,ze,Je){la(a,g+4*Me,Me,1,8,We,ze,Je),la(O,oe+4*Me,Me,1,8,We,ze,Je)}function GA(a,g,O,oe,Me,We,ze,Je){la(a,g+4,1,Me,8,We,ze,Je),la(O,oe+4,1,Me,8,We,ze,Je)}function oc(){this.ba=new fi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new $n,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ku(){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 Au(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Is(){this.ua=0,this.Wa=new vt,this.vb=new vt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new T,this.yc=new Ct}function Tc(){this.xb=this.a=0,this.l=new Xc,this.ca=new fi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new le,this.Pb=0,this.wd=new le,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Is,this.ab=0,this.gc=N(4,Au),this.Oc=0}function Yc(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Xc,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Uc(a,g,O,oe,Me,We,ze){for(a=a==null?0:a[g+0],g=0;g<ze;++g)Me[We+g]=a+O[oe+g]&255,a=Me[We+g]}function Hu(a,g,O,oe,Me,We,ze){var Je;if(a==null)Uc(null,null,O,oe,Me,We,ze);else for(Je=0;Je<ze;++Je)Me[We+Je]=a[g+Je]+O[oe+Je]&255}function Rc(a,g,O,oe,Me,We,ze){if(a==null)Uc(null,null,O,oe,Me,We,ze);else{var Je,ot=a[g+0],mt=ot,Tt=ot;for(Je=0;Je<ze;++Je)mt=Tt+(ot=a[g+Je])-mt,Tt=O[oe+Je]+(-256&mt?0>mt?0:255:mt)&255,mt=ot,Me[We+Je]=Tt}}function MA(a,g,O,oe){var Me=g.width,We=g.o;if(o(a!=null&&g!=null),0>O||0>=oe||O+oe>We)return null;if(!a.Cc){if(a.ga==null){var ze;if(a.ga=new Yc,(ze=a.ga==null)||(ze=g.width*g.o,o(a.Gb.length==0),a.Gb=C(ze),a.Uc=0,a.Gb==null?ze=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,ze=1),ze=!ze),!ze){ze=a.ga;var Je=a.Fa,ot=a.P,mt=a.qc,Tt=a.mb,jt=a.nb,cr=ot+1,Gt=mt-1,Nr=ze.l;if(o(Je!=null&&Tt!=null&&g!=null),PA[0]=null,PA[1]=Uc,PA[2]=Hu,PA[3]=Rc,ze.ca=Tt,ze.tb=jt,ze.c=g.width,ze.i=g.height,o(0<ze.c&&0<ze.i),1>=mt)g=0;else if(ze.$a=Je[ot+0]>>0&3,ze.Z=Je[ot+0]>>2&3,ze.Lc=Je[ot+0]>>4&3,ot=Je[ot+0]>>6&3,0>ze.$a||1<ze.$a||4<=ze.Z||1<ze.Lc||ot)g=0;else if(Nr.put=qi,Nr.ac=Xi,Nr.bc=Mo,Nr.ma=ze,Nr.width=g.width,Nr.height=g.height,Nr.Da=g.Da,Nr.v=g.v,Nr.va=g.va,Nr.j=g.j,Nr.o=g.o,ze.$a)e:{o(ze.$a==1),g=bo();t:for(;;){if(g==null){g=0;break e}if(o(ze!=null),ze.mc=g,g.c=ze.c,g.i=ze.i,g.l=ze.l,g.l.ma=ze,g.l.width=ze.c,g.l.height=ze.i,g.a=0,Ke(g.m,Je,cr,Gt),!Ko(ze.c,ze.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&en(g.s)?(ze.ic=1,Je=g.c*g.i,g.Ta=null,g.Ua=0,g.V=C(Je),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(ze.ic=0,g=Bs(g,ze.c)),!g))break t;g=1;break e}ze.mc=null,g=0}else g=Gt>=ze.c*ze.i;ze=!g}if(ze)return null;a.ga.Lc!=1?a.Ga=0:oe=We-O}o(a.ga!=null),o(O+oe<=We);e:{if(g=(Je=a.ga).c,We=Je.l.o,Je.$a==0){if(cr=a.rc,Gt=a.Vc,Nr=a.Fa,ot=a.P+1+O*g,mt=a.mb,Tt=a.nb+O*g,o(ot<=a.P+a.qc),Je.Z!=0)for(o(PA[Je.Z]!=null),ze=0;ze<oe;++ze)PA[Je.Z](cr,Gt,Nr,ot,mt,Tt,g),cr=mt,Gt=Tt,Tt+=g,ot+=g;else for(ze=0;ze<oe;++ze)b(mt,Tt,Nr,ot,g),cr=mt,Gt=Tt,Tt+=g,ot+=g;a.rc=cr,a.Vc=Gt}else{if(o(Je.mc!=null),g=O+oe,o((ze=Je.mc)!=null),o(g<=ze.i),ze.C>=g)g=1;else if(Je.ic||br(),Je.ic){Je=ze.V,cr=ze.Ba,Gt=ze.c;var Tr=ze.i,Xt=(Nr=1,ot=ze.$/Gt,mt=ze.$%Gt,Tt=ze.m,jt=ze.s,ze.$),tr=Gt*Tr,Qr=Gt*g,ln=jt.wc,An=Xt<Qr?no(jt,mt,ot):null;o(Xt<=tr),o(g<=Tr),o(en(jt));t:for(;;){for(;!Tt.h&&Xt<Qr;){if(mt&ln||(An=no(jt,mt,ot)),o(An!=null),yt(Tt),256>(Tr=Qo(An.G[0],An.H[0],Tt)))Je[cr+Xt]=Tr,++Xt,++mt>=Gt&&(mt=0,++ot<=g&&!(ot%16)&&so(ze,ot));else{if(!(280>Tr)){Nr=0;break t}Tr=ns(Tr-256,Tt);var si,Wn=Qo(An.G[4],An.H[4],Tt);if(yt(Tt),!(Xt>=(Wn=ro(Gt,Wn=ns(Wn,Tt)))&&tr-Xt>=Tr)){Nr=0;break t}for(si=0;si<Tr;++si)Je[cr+Xt+si]=Je[cr+Xt+si-Wn];for(Xt+=Tr,mt+=Tr;mt>=Gt;)mt-=Gt,++ot<=g&&!(ot%16)&&so(ze,ot);Xt<Qr&&mt&ln&&(An=no(jt,mt,ot))}o(Tt.h==Ye(Tt))}so(ze,ot>g?g:ot);break t}!Nr||Tt.h&&Xt<tr?(Nr=0,ze.a=Tt.h?5:3):ze.$=Xt,g=Nr}else g=Va(ze,ze.V,ze.Ba,ze.c,ze.i,g,gs);if(!g){oe=0;break e}}O+oe>=We&&(a.Cc=1),oe=1}if(!oe)return null;if(a.Cc&&((oe=a.ga)!=null&&(oe.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+O*Me}function D(a,g,O,oe,Me,We){for(;0<Me--;){var ze,Je=a,ot=g+(O?1:0),mt=a,Tt=g+(O?0:3);for(ze=0;ze<oe;++ze){var jt=mt[Tt+4*ze];jt!=255&&(jt*=32897,Je[ot+4*ze+0]=Je[ot+4*ze+0]*jt>>23,Je[ot+4*ze+1]=Je[ot+4*ze+1]*jt>>23,Je[ot+4*ze+2]=Je[ot+4*ze+2]*jt>>23)}g+=We}}function Ge(a,g,O,oe,Me){for(;0<oe--;){var We;for(We=0;We<O;++We){var ze=a[g+2*We+0],Je=15&(mt=a[g+2*We+1]),ot=4369*Je,mt=(240&mt|mt>>4)*ot>>16;a[g+2*We+0]=(240&ze|ze>>4)*ot>>16&240|(15&ze|ze<<4)*ot>>16>>4&15,a[g+2*We+1]=240&mt|Je}g+=Me}}function Lt(a,g,O,oe,Me,We,ze,Je){var ot,mt,Tt=255;for(mt=0;mt<Me;++mt){for(ot=0;ot<oe;++ot){var jt=a[g+ot];We[ze+4*ot]=jt,Tt&=jt}g+=O,ze+=Je}return Tt!=255}function Yt(a,g,O,oe,Me){var We;for(We=0;We<Me;++We)O[oe+We]=a[g+We]>>8}function br(){Ec=D,Jo=Ge,Ho=Lt,Us=Yt}function Xr(a,g,O){Vt[a]=function(oe,Me,We,ze,Je,ot,mt,Tt,jt,cr,Gt,Nr,Tr,Xt,tr,Qr,ln){var An,si=ln-1>>1,Wn=Je[ot+0]|mt[Tt+0]<<16,zi=jt[cr+0]|Gt[Nr+0]<<16;o(oe!=null);var ni=3*Wn+zi+131074>>2;for(g(oe[Me+0],255&ni,ni>>16,Tr,Xt),We!=null&&(ni=3*zi+Wn+131074>>2,g(We[ze+0],255&ni,ni>>16,tr,Qr)),An=1;An<=si;++An){var Ka=Je[ot+An]|mt[Tt+An]<<16,qa=jt[cr+An]|Gt[Nr+An]<<16,Sa=Wn+Ka+zi+qa+524296,Ia=Sa+2*(Ka+zi)>>3;ni=Ia+Wn>>1,Wn=(Sa=Sa+2*(Wn+qa)>>3)+Ka>>1,g(oe[Me+2*An-1],255&ni,ni>>16,Tr,Xt+(2*An-1)*O),g(oe[Me+2*An-0],255&Wn,Wn>>16,Tr,Xt+(2*An-0)*O),We!=null&&(ni=Sa+zi>>1,Wn=Ia+qa>>1,g(We[ze+2*An-1],255&ni,ni>>16,tr,Qr+(2*An-1)*O),g(We[ze+2*An+0],255&Wn,Wn>>16,tr,Qr+(2*An+0)*O)),Wn=Ka,zi=qa}1&ln||(ni=3*Wn+zi+131074>>2,g(oe[Me+ln-1],255&ni,ni>>16,Tr,Xt+(ln-1)*O),We!=null&&(ni=3*zi+Wn+131074>>2,g(We[ze+ln-1],255&ni,ni>>16,tr,Qr+(ln-1)*O)))}}function En(){dc[ko]=yf,dc[$u]=wu,dc[pu]=Wu,dc[nd]=sd,dc[DA]=OA,dc[mu]=mA,dc[ru]=bf,dc[Zu]=wu,dc[Al]=sd,dc[gu]=OA,dc[id]=mA}function Li(a){return a&~wf?0>a?0:255:a>>Vd}function ta(a,g){return Li((19077*a>>8)+(26149*g>>8)-14234)}function Pa(a,g,O){return Li((19077*a>>8)-(6419*g>>8)-(13320*O>>8)+8708)}function Fa(a,g){return Li((19077*a>>8)+(33050*g>>8)-17685)}function co(a,g,O,oe,Me){oe[Me+0]=ta(a,O),oe[Me+1]=Pa(a,g,O),oe[Me+2]=Fa(a,g)}function aa(a,g,O,oe,Me){oe[Me+0]=Fa(a,g),oe[Me+1]=Pa(a,g,O),oe[Me+2]=ta(a,O)}function bs(a,g,O,oe,Me){var We=Pa(a,g,O);g=We<<3&224|Fa(a,g)>>3,oe[Me+0]=248&ta(a,O)|We>>5,oe[Me+1]=g}function Ts(a,g,O,oe,Me){var We=240&Fa(a,g)|15;oe[Me+0]=240&ta(a,O)|Pa(a,g,O)>>4,oe[Me+1]=We}function hs(a,g,O,oe,Me){oe[Me+0]=255,co(a,g,O,oe,Me+1)}function el(a,g,O,oe,Me){aa(a,g,O,oe,Me),oe[Me+3]=255}function Bl(a,g,O,oe,Me){co(a,g,O,oe,Me),oe[Me+3]=255}function sc(a,g){return 0>a?0:a>g?g:a}function Xl(a,g,O){Vt[a]=function(oe,Me,We,ze,Je,ot,mt,Tt,jt){for(var cr=Tt+(-2&jt)*O;Tt!=cr;)g(oe[Me+0],We[ze+0],Je[ot+0],mt,Tt),g(oe[Me+1],We[ze+0],Je[ot+0],mt,Tt+O),Me+=2,++ze,++ot,Tt+=2*O;1&jt&&g(oe[Me+0],We[ze+0],Je[ot+0],mt,Tt)}}function LA(a,g,O){return O==0?a==0?g==0?6:5:g==0?4:0:O}function qc(a,g,O,oe,Me){switch(a>>>30){case 3:uA(g,O,oe,Me,0);break;case 2:Ms(g,O,oe,Me);break;case 1:Ul(g,O,oe,Me)}}function uu(a,g){var O,oe,Me=g.M,We=g.Nb,ze=a.oc,Je=a.pc+40,ot=a.oc,mt=a.pc+584,Tt=a.oc,jt=a.pc+600;for(O=0;16>O;++O)ze[Je+32*O-1]=129;for(O=0;8>O;++O)ot[mt+32*O-1]=129,Tt[jt+32*O-1]=129;for(0<Me?ze[Je-1-32]=ot[mt-1-32]=Tt[jt-1-32]=129:(I(ze,Je-32-1,127,21),I(ot,mt-32-1,127,9),I(Tt,jt-32-1,127,9)),oe=0;oe<a.za;++oe){var cr=g.ya[g.aa+oe];if(0<oe){for(O=-1;16>O;++O)b(ze,Je+32*O-4,ze,Je+32*O+12,4);for(O=-1;8>O;++O)b(ot,mt+32*O-4,ot,mt+32*O+4,4),b(Tt,jt+32*O-4,Tt,jt+32*O+4,4)}var Gt=a.Gd,Nr=a.Hd+oe,Tr=cr.ad,Xt=cr.Hc;if(0<Me&&(b(ze,Je-32,Gt[Nr].y,0,16),b(ot,mt-32,Gt[Nr].f,0,8),b(Tt,jt-32,Gt[Nr].ea,0,8)),cr.Za){var tr=ze,Qr=Je-32+16;for(0<Me&&(oe>=a.za-1?I(tr,Qr,Gt[Nr].y[15],4):b(tr,Qr,Gt[Nr+1].y,0,4)),O=0;4>O;O++)tr[Qr+128+O]=tr[Qr+256+O]=tr[Qr+384+O]=tr[Qr+0+O];for(O=0;16>O;++O,Xt<<=2)tr=ze,Qr=Je+tt[O],Vs[cr.Ob[O]](tr,Qr),qc(Xt,Tr,16*+O,tr,Qr)}else if(tr=LA(oe,Me,cr.Ob[0]),_c[tr](ze,Je),Xt!=0)for(O=0;16>O;++O,Xt<<=2)qc(Xt,Tr,16*+O,ze,Je+tt[O]);for(O=cr.Gc,tr=LA(oe,Me,cr.Dd),nA[tr](ot,mt),nA[tr](Tt,jt),Xt=Tr,tr=ot,Qr=mt,255&(cr=O>>0)&&(170&cr?eu(Xt,256,tr,Qr):Cc(Xt,256,tr,Qr)),cr=Tt,Xt=jt,255&(O>>=8)&&(170&O?eu(Tr,320,cr,Xt):Cc(Tr,320,cr,Xt)),Me<a.Ub-1&&(b(Gt[Nr].y,0,ze,Je+480,16),b(Gt[Nr].f,0,ot,mt+224,8),b(Gt[Nr].ea,0,Tt,jt+224,8)),O=8*We*a.B,Gt=a.sa,Nr=a.ta+16*oe+16*We*a.R,Tr=a.qa,cr=a.ra+8*oe+O,Xt=a.Ha,tr=a.Ia+8*oe+O,O=0;16>O;++O)b(Gt,Nr+O*a.R,ze,Je+32*O,16);for(O=0;8>O;++O)b(Tr,cr+O*a.B,ot,mt+32*O,8),b(Xt,tr+O*a.B,Tt,jt+32*O,8)}}function XA(a,g,O,oe,Me,We,ze,Je,ot){var mt=[0],Tt=[0],jt=0,cr=ot!=null?ot.kd:0,Gt=ot!=null?ot:new Ku;if(a==null||12>O)return 7;Gt.data=a,Gt.w=g,Gt.ha=O,g=[g],O=[O],Gt.gb=[Gt.gb];e:{var Nr=g,Tr=O,Xt=Gt.gb;if(o(a!=null),o(Tr!=null),o(Xt!=null),Xt[0]=0,12<=Tr[0]&&!l(a,Nr[0],"RIFF")){if(l(a,Nr[0]+8,"WEBP")){Xt=3;break e}var tr=_r(a,Nr[0]+4);if(12>tr||4294967286<tr){Xt=3;break e}if(cr&&tr>Tr[0]-8){Xt=7;break e}Xt[0]=tr,Nr[0]+=12,Tr[0]-=12}Xt=0}if(Xt!=0)return Xt;for(tr=0<Gt.gb[0],O=O[0];;){e:{var Qr=a;Tr=g,Xt=O;var ln=mt,An=Tt,si=Nr=[0];if((ni=jt=[jt])[0]=0,8>Xt[0])Xt=7;else{if(!l(Qr,Tr[0],"VP8X")){if(_r(Qr,Tr[0]+4)!=10){Xt=3;break e}if(18>Xt[0]){Xt=7;break e}var Wn=_r(Qr,Tr[0]+8),zi=1+gr(Qr,Tr[0]+12);if(2147483648<=zi*(Qr=1+gr(Qr,Tr[0]+15))){Xt=3;break e}si!=null&&(si[0]=Wn),ln!=null&&(ln[0]=zi),An!=null&&(An[0]=Qr),Tr[0]+=18,Xt[0]-=18,ni[0]=1}Xt=0}}if(jt=jt[0],Nr=Nr[0],Xt!=0)return Xt;if(Tr=!!(2&Nr),!tr&&jt)return 3;if(We!=null&&(We[0]=!!(16&Nr)),ze!=null&&(ze[0]=Tr),Je!=null&&(Je[0]=0),ze=mt[0],Nr=Tt[0],jt&&Tr&&ot==null){Xt=0;break}if(4>O){Xt=7;break}if(tr&&jt||!tr&&!jt&&!l(a,g[0],"ALPH")){O=[O],Gt.na=[Gt.na],Gt.P=[Gt.P],Gt.Sa=[Gt.Sa];e:{Wn=a,Xt=g,tr=O;var ni=Gt.gb;ln=Gt.na,An=Gt.P,si=Gt.Sa,zi=22,o(Wn!=null),o(tr!=null),Qr=Xt[0];var Ka=tr[0];for(o(ln!=null),o(si!=null),ln[0]=null,An[0]=null,si[0]=0;;){if(Xt[0]=Qr,tr[0]=Ka,8>Ka){Xt=7;break e}var qa=_r(Wn,Qr+4);if(4294967286<qa){Xt=3;break e}var Sa=8+qa+1&-2;if(zi+=Sa,0<ni&&zi>ni){Xt=3;break e}if(!l(Wn,Qr,"VP8 ")||!l(Wn,Qr,"VP8L")){Xt=0;break e}if(Ka[0]<Sa){Xt=7;break e}l(Wn,Qr,"ALPH")||(ln[0]=Wn,An[0]=Qr+8,si[0]=qa),Qr+=Sa,Ka-=Sa}}if(O=O[0],Gt.na=Gt.na[0],Gt.P=Gt.P[0],Gt.Sa=Gt.Sa[0],Xt!=0)break}O=[O],Gt.Ja=[Gt.Ja],Gt.xa=[Gt.xa];e:if(ni=a,Xt=g,tr=O,ln=Gt.gb[0],An=Gt.Ja,si=Gt.xa,Wn=Xt[0],Qr=!l(ni,Wn,"VP8 "),zi=!l(ni,Wn,"VP8L"),o(ni!=null),o(tr!=null),o(An!=null),o(si!=null),8>tr[0])Xt=7;else{if(Qr||zi){if(ni=_r(ni,Wn+4),12<=ln&&ni>ln-12){Xt=3;break e}if(cr&&ni>tr[0]-8){Xt=7;break e}An[0]=ni,Xt[0]+=8,tr[0]-=8,si[0]=zi}else si[0]=5<=tr[0]&&ni[Wn+0]==47&&!(ni[Wn+4]>>5),An[0]=tr[0];Xt=0}if(O=O[0],Gt.Ja=Gt.Ja[0],Gt.xa=Gt.xa[0],g=g[0],Xt!=0)break;if(4294967286<Gt.Ja)return 3;if(Je==null||Tr||(Je[0]=Gt.xa?2:1),ze=[ze],Nr=[Nr],Gt.xa){if(5>O){Xt=7;break}Je=ze,cr=Nr,Tr=We,a==null||5>O?a=0:5<=O&&a[g+0]==47&&!(a[g+4]>>5)?(tr=[0],ni=[0],ln=[0],Ke(An=new le,a,g,O),Mi(An,tr,ni,ln)?(Je!=null&&(Je[0]=tr[0]),cr!=null&&(cr[0]=ni[0]),Tr!=null&&(Tr[0]=ln[0]),a=1):a=0):a=0}else{if(10>O){Xt=7;break}Je=Nr,a==null||10>O||!vs(a,g+3,O-3)?a=0:(cr=a[g+0]|a[g+1]<<8|a[g+2]<<16,Tr=16383&(a[g+7]<<8|a[g+6]),a=16383&(a[g+9]<<8|a[g+8]),1&cr||3<(cr>>1&7)||!(cr>>4&1)||cr>>5>=Gt.Ja||!Tr||!a?a=0:(ze&&(ze[0]=Tr),Je&&(Je[0]=a),a=1))}if(!a||(ze=ze[0],Nr=Nr[0],jt&&(mt[0]!=ze||Tt[0]!=Nr)))return 3;ot!=null&&(ot[0]=Gt,ot.offset=g-ot.w,o(4294967286>g-ot.w),o(ot.offset==ot.ha-O));break}return Xt==0||Xt==7&&jt&&ot==null?(We!=null&&(We[0]|=Gt.na!=null&&0<Gt.na.length),oe!=null&&(oe[0]=ze),Me!=null&&(Me[0]=Nr),0):Xt}function kA(a,g,O){var oe=g.width,Me=g.height,We=0,ze=0,Je=oe,ot=Me;if(g.Da=a!=null&&0<a.Da,g.Da&&(Je=a.cd,ot=a.bd,We=a.v,ze=a.j,11>O||(We&=-2,ze&=-2),0>We||0>ze||0>=Je||0>=ot||We+Je>oe||ze+ot>Me))return 0;if(g.v=We,g.j=ze,g.va=We+Je,g.o=ze+ot,g.U=Je,g.T=ot,g.da=a!=null&&0<a.da,g.da){if(!Fn(Je,ot,O=[a.ib],We=[a.hb]))return 0;g.ib=O[0],g.hb=We[0]}return g.ob=a!=null&&a.ob,g.Kb=a==null||!a.Sd,g.da&&(g.ob=g.ib<3*oe/4&&g.hb<3*Me/4,g.Kb=0),1}function JA(a){if(a==null)return 2;if(11>a.S){var g=a.f.RGBA;g.fb+=(a.height-1)*g.A,g.A=-g.A}else g=a.f.kb,a=a.height,g.O+=(a-1)*g.fa,g.fa=-g.fa,g.N+=(a-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(a-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(a-1)*g.lb,g.lb=-g.lb);return 0}function du(a,g,O,oe){if(oe==null||0>=a||0>=g)return 2;if(O!=null){if(O.Da){var Me=O.cd,We=O.bd,ze=-2&O.v,Je=-2&O.j;if(0>ze||0>Je||0>=Me||0>=We||ze+Me>a||Je+We>g)return 2;a=Me,g=We}if(O.da){if(!Fn(a,g,Me=[O.ib],We=[O.hb]))return 2;a=Me[0],g=We[0]}}oe.width=a,oe.height=g;e:{var ot=oe.width,mt=oe.height;if(a=oe.S,0>=ot||0>=mt||!(a>=ko&&13>a))a=2;else{if(0>=oe.Rd&&oe.sd==null){ze=We=Me=g=0;var Tt=(Je=ot*fr[a])*mt;if(11>a||(We=(mt+1)/2*(g=(ot+1)/2),a==12&&(ze=(Me=ot)*mt)),(mt=C(Tt+2*We+ze))==null){a=1;break e}oe.sd=mt,11>a?((ot=oe.f.RGBA).eb=mt,ot.fb=0,ot.A=Je,ot.size=Tt):((ot=oe.f.kb).y=mt,ot.O=0,ot.fa=Je,ot.Fd=Tt,ot.f=mt,ot.N=0+Tt,ot.Ab=g,ot.Cd=We,ot.ea=mt,ot.W=0+Tt+We,ot.Db=g,ot.Ed=We,a==12&&(ot.F=mt,ot.J=0+Tt+2*We),ot.Tc=ze,ot.lb=Me)}if(g=1,Me=oe.S,We=oe.width,ze=oe.height,Me>=ko&&13>Me)if(11>Me)a=oe.f.RGBA,g&=(Je=Math.abs(a.A))*(ze-1)+We<=a.size,g&=Je>=We*fr[Me],g&=a.eb!=null;else{a=oe.f.kb,Je=(We+1)/2,Tt=(ze+1)/2,ot=Math.abs(a.fa),mt=Math.abs(a.Ab);var jt=Math.abs(a.Db),cr=Math.abs(a.lb),Gt=cr*(ze-1)+We;g&=ot*(ze-1)+We<=a.Fd,g&=mt*(Tt-1)+Je<=a.Cd,g=(g&=jt*(Tt-1)+Je<=a.Ed)&ot>=We&mt>=Je&jt>=Je,g&=a.y!=null,g&=a.f!=null,g&=a.ea!=null,Me==12&&(g&=cr>=We,g&=Gt<=a.Tc,g&=a.F!=null)}else g=0;a=g?0:2}}return a!=0||O!=null&&O.fd&&(a=JA(oe)),a}var pl=64,Qc=[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],YA=24,rs=32,Kc=8,tl=[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];Ur("Predictor0","PredictorAdd0"),Vt.Predictor0=function(){return 4278190080},Vt.Predictor1=function(a){return a},Vt.Predictor2=function(a,g,O){return g[O+0]},Vt.Predictor3=function(a,g,O){return g[O+1]},Vt.Predictor4=function(a,g,O){return g[O-1]},Vt.Predictor5=function(a,g,O){return wr(wr(a,g[O+1]),g[O+0])},Vt.Predictor6=function(a,g,O){return wr(a,g[O-1])},Vt.Predictor7=function(a,g,O){return wr(a,g[O+0])},Vt.Predictor8=function(a,g,O){return wr(g[O-1],g[O+0])},Vt.Predictor9=function(a,g,O){return wr(g[O+0],g[O+1])},Vt.Predictor10=function(a,g,O){return wr(wr(a,g[O-1]),wr(g[O+0],g[O+1]))},Vt.Predictor11=function(a,g,O){var oe=g[O+0];return 0>=Gn(oe>>24&255,a>>24&255,(g=g[O-1])>>24&255)+Gn(oe>>16&255,a>>16&255,g>>16&255)+Gn(oe>>8&255,a>>8&255,g>>8&255)+Gn(255&oe,255&a,255&g)?oe:a},Vt.Predictor12=function(a,g,O){var oe=g[O+0];return(Zr((a>>24&255)+(oe>>24&255)-((g=g[O-1])>>24&255))<<24|Zr((a>>16&255)+(oe>>16&255)-(g>>16&255))<<16|Zr((a>>8&255)+(oe>>8&255)-(g>>8&255))<<8|Zr((255&a)+(255&oe)-(255&g)))>>>0},Vt.Predictor13=function(a,g,O){var oe=g[O-1];return(Cn((a=wr(a,g[O+0]))>>24&255,oe>>24&255)<<24|Cn(a>>16&255,oe>>16&255)<<16|Cn(a>>8&255,oe>>8&255)<<8|Cn(a>>0&255,oe>>0&255))>>>0};var eA=Vt.PredictorAdd0;Vt.PredictorAdd1=Zn,Ur("Predictor2","PredictorAdd2"),Ur("Predictor3","PredictorAdd3"),Ur("Predictor4","PredictorAdd4"),Ur("Predictor5","PredictorAdd5"),Ur("Predictor6","PredictorAdd6"),Ur("Predictor7","PredictorAdd7"),Ur("Predictor8","PredictorAdd8"),Ur("Predictor9","PredictorAdd9"),Ur("Predictor10","PredictorAdd10"),Ur("Predictor11","PredictorAdd11"),Ur("Predictor12","PredictorAdd12"),Ur("Predictor13","PredictorAdd13");var rl=Vt.PredictorAdd2;Ii("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),Ii("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var Jl,ss=Vt.ColorIndexInverseTransform,Tl=Vt.MapARGB,lc=Vt.VP8LColorIndexInverseTransformAlpha,wc=Vt.MapAlpha,cc=Vt.VP8LPredictorsAdd=[];cc.length=16,(Vt.VP8LPredictors=[]).length=16,(Vt.VP8LPredictorsAdd_C=[]).length=16,(Vt.VP8LPredictors_C=[]).length=16;var Yl,cl,nl,xc,tA,rA,qA,uA,Ms,eu,Ul,Cc,fu,rd,ju,dA,Bc,Ac,uc,ql,fA,hA,hu,Sc,Ec,Jo,Ho,Us,Rs=C(511),Ua=C(2041),hi=C(225),ec=C(767),tu=0,Qs=Ua,zu=hi,ya=ec,Ao=Rs,ko=0,$u=1,pu=2,nd=3,DA=4,mu=5,ru=6,Zu=7,Al=8,gu=9,id=10,yn=[2,3,7],jo=[3,3,11],bd=[280,256,256,256,40],gf=[0,1,1,1,0],Zd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],wd=[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],Vu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ad=8,xd=[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],vu=[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],ml=null,nu=[[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]],Ls=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],yu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Cd=[[[[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]]]],pA=[[[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]]],gl=[[[[255,255,255,255,255,255,255,255,255,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]]]],od=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],_c=[],Vs=[],nA=[],vf=1,bu=2,PA=[],dc=[];Xr("UpsampleRgbLinePair",co,3),Xr("UpsampleBgrLinePair",aa,3),Xr("UpsampleRgbaLinePair",Bl,4),Xr("UpsampleBgraLinePair",el,4),Xr("UpsampleArgbLinePair",hs,4),Xr("UpsampleRgba4444LinePair",Ts,2),Xr("UpsampleRgb565LinePair",bs,2);var yf=Vt.UpsampleRgbLinePair,Wu=Vt.UpsampleBgrLinePair,wu=Vt.UpsampleRgbaLinePair,sd=Vt.UpsampleBgraLinePair,OA=Vt.UpsampleArgbLinePair,mA=Vt.UpsampleRgba4444LinePair,bf=Vt.UpsampleRgb565LinePair,Gu=16,xu=1<<Gu-1,Cu=-227,Bd=482,Vd=6,wf=(256<<Vd)-1,Wd=0,m=C(256),d=C(256),y=C(256),v=C(256),ie=C(Bd-Cu),Fe=C(Bd-Cu);Xl("YuvToRgbRow",co,3),Xl("YuvToBgrRow",aa,3),Xl("YuvToRgbaRow",Bl,4),Xl("YuvToBgraRow",el,4),Xl("YuvToArgbRow",hs,4),Xl("YuvToRgba4444Row",Ts,2),Xl("YuvToRgb565Row",bs,2);var tt=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],xt=[0,2,8],Bt=[8,7,6,4,4,2,2,2,1,1,1,1],nr=1;this.WebPDecodeRGBA=function(a,g,O,oe,Me){var We=$u,ze=new oc,Je=new fi;ze.ba=Je,Je.S=We,Je.width=[Je.width],Je.height=[Je.height];var ot=Je.width,mt=Je.height,Tt=new mi;if(Tt==null||a==null)var jt=2;else o(Tt!=null),jt=XA(a,g,O,Tt.width,Tt.height,Tt.Pd,Tt.Qd,Tt.format,null);if(jt!=0?ot=0:(ot!=null&&(ot[0]=Tt.width[0]),mt!=null&&(mt[0]=Tt.height[0]),ot=1),ot){Je.width=Je.width[0],Je.height=Je.height[0],oe!=null&&(oe[0]=Je.width),Me!=null&&(Me[0]=Je.height);e:{if(oe=new Xc,(Me=new Ku).data=a,Me.w=g,Me.ha=O,Me.kd=1,g=[0],o(Me!=null),((a=XA(Me.data,Me.w,Me.ha,null,null,null,g,null,Me))==0||a==7)&&g[0]&&(a=4),(g=a)==0){if(o(ze!=null),oe.data=Me.data,oe.w=Me.w+Me.offset,oe.ha=Me.ha-Me.offset,oe.put=qi,oe.ac=Xi,oe.bc=Mo,oe.ma=ze,Me.xa){if((a=bo())==null){ze=1;break e}if(function(cr,Gt){var Nr=[0],Tr=[0],Xt=[0];t:for(;;){if(cr==null)return 0;if(Gt==null)return cr.a=2,0;if(cr.l=Gt,cr.a=0,Ke(cr.m,Gt.data,Gt.w,Gt.ha),!Mi(cr.m,Nr,Tr,Xt)){cr.a=3;break t}if(cr.xb=bu,Gt.width=Nr[0],Gt.height=Tr[0],!Ko(Nr[0],Tr[0],1,cr,null))break t;return 1}return o(cr.a!=0),0}(a,oe)){if(oe=(g=du(oe.width,oe.height,ze.Oa,ze.ba))==0){t:{oe=a;r:for(;;){if(oe==null){oe=0;break t}if(o(oe.s.yc!=null),o(oe.s.Ya!=null),o(0<oe.s.Wb),o((O=oe.l)!=null),o((Me=O.ma)!=null),oe.xb!=0){if(oe.ca=Me.ba,oe.tb=Me.tb,o(oe.ca!=null),!kA(Me.Oa,O,nd)){oe.a=2;break r}if(!Bs(oe,O.width)||O.da)break r;if((O.da||Gi(oe.ca.S))&&br(),11>oe.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),oe.ca.f.kb.F!=null&&br()),oe.Pb&&0<oe.s.ua&&oe.s.vb.X==null&&!dn(oe.s.vb,oe.s.Wa.Xa)){oe.a=1;break r}oe.xb=0}if(!Va(oe,oe.V,oe.Ba,oe.c,oe.i,O.o,ga))break r;Me.Dc=oe.Ma,oe=1;break t}o(oe.a!=0),oe=0}oe=!oe}oe&&(g=a.a)}else g=a.a}else{if((a=new xa)==null){ze=1;break e}if(a.Fa=Me.na,a.P=Me.P,a.qc=Me.Sa,go(a,oe)){if((g=du(oe.width,oe.height,ze.Oa,ze.ba))==0){if(a.Aa=0,O=ze.Oa,o((Me=a)!=null),O!=null){if(0<(ot=0>(ot=O.Md)?0:100<ot?255:255*ot/100)){for(mt=Tt=0;4>mt;++mt)12>(jt=Me.pb[mt]).lc&&(jt.ia=ot*Bt[0>jt.lc?0:jt.lc]>>3),Tt|=jt.ia;Tt&&(alert("todo:VP8InitRandom"),Me.ia=1)}Me.Ga=O.Id,100<Me.Ga?Me.Ga=100:0>Me.Ga&&(Me.Ga=0)}Es(a,oe)||(g=a.a)}}else g=a.a}g==0&&ze.Oa!=null&&ze.Oa.fd&&(g=JA(ze.ba))}ze=g}We=ze!=0?null:11>We?Je.f.RGBA.eb:Je.f.kb.y}else We=null;return We};var fr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function _e(Vt,Or){for(var Jr="",gt=0;gt<4;gt++)Jr+=String.fromCharCode(Vt[Or++]);return Jr}function Ze(Vt,Or){return(Vt[Or+0]<<0|Vt[Or+1]<<8|Vt[Or+2]<<16)>>>0}function Ve(Vt,Or){return(Vt[Or+0]<<0|Vt[Or+1]<<8|Vt[Or+2]<<16|Vt[Or+3]<<24)>>>0}new ae;var it=[0],ye=[0],kt=[],bt=new ae,Dt=c,ht=function(Vt,Or){var Jr={},gt=0,Ct=!1,rr=0,T=0;if(Jr.frames=[],!function(Re,Ye,et,yt){for(var _t=0;_t<yt;_t++)if(Re[Ye+_t]!=et.charCodeAt(_t))return!0;return!1}(Vt,Or,"RIFF",4)){for(Ve(Vt,Or+=4),Or+=8;Or<Vt.length;){var re=_e(Vt,Or),Be=Ve(Vt,Or+=4);Or+=4;var Ue=Be+(1&Be);switch(re){case"VP8 ":case"VP8L":Jr.frames[gt]===void 0&&(Jr.frames[gt]={}),(ut=Jr.frames[gt]).src_off=Ct?T:Or-8,ut.src_size=rr+Be+8,gt++,Ct&&(Ct=!1,rr=0,T=0);break;case"VP8X":(ut=Jr.header={}).feature_flags=Vt[Or];var Ke=Or+4;ut.canvas_width=1+Ze(Vt,Ke),Ke+=3,ut.canvas_height=1+Ze(Vt,Ke),Ke+=3;break;case"ALPH":Ct=!0,rr=Ue+8,T=Or-8;break;case"ANIM":(ut=Jr.header).bgcolor=Ve(Vt,Or),Ke=Or+4,ut.loop_count=(Et=Vt)[(le=Ke)+0]<<0|Et[le+1]<<8,Ke+=2;break;case"ANMF":var Xe,ut;(ut=Jr.frames[gt]={}).offset_x=2*Ze(Vt,Or),Or+=3,ut.offset_y=2*Ze(Vt,Or),Or+=3,ut.width=1+Ze(Vt,Or),Or+=3,ut.height=1+Ze(Vt,Or),Or+=3,ut.duration=Ze(Vt,Or),Or+=3,Xe=Vt[Or++],ut.dispose=1&Xe,ut.blend=Xe>>1&1}re!="ANMF"&&(Or+=Ue)}var Et,le;return Jr}}(Dt,0);ht.response=Dt,ht.rgbaoutput=!0,ht.dataurl=!1;var Pt=ht.header?ht.header:null,ir=ht.frames?ht.frames:null;if(Pt){Pt.loop_counter=Pt.loop_count,it=[Pt.canvas_height],ye=[Pt.canvas_width];for(var xr=0;xr<ir.length&&ir[xr].blend!=0;xr++);}var Hr=ir[0],hn=bt.WebPDecodeRGBA(Dt,Hr.src_off,Hr.src_size,ye,it);Hr.rgba=hn,Hr.imgwidth=ye[0],Hr.imgheight=it[0];for(var Lr=0;Lr<ye[0]*it[0]*4;Lr++)kt[Lr]=hn[Lr];return this.width=ye,this.height=it,this.data=kt,this}(function(c){var o=function(){return typeof ki=="function"},l=function(it,ye,kt,bt){var Dt=4,ht=N;switch(bt){case c.image_compression.FAST:Dt=1,ht=C;break;case c.image_compression.MEDIUM:Dt=6,ht=$;break;case c.image_compression.SLOW:Dt=9,ht=ae}it=b(it,ye,kt,ht);var Pt=ki(it,{level:Dt});return c.__addimage__.arrayBufferToBinaryString(Pt)},b=function(it,ye,kt,bt){for(var Dt,ht,Pt,ir=it.length/ye,xr=new Uint8Array(it.length+ir),Hr=Ze(),hn=0;hn<ir;hn+=1){if(Pt=hn*ye,Dt=it.subarray(Pt,Pt+ye),bt)xr.set(bt(Dt,kt,ht),Pt+hn);else{for(var Lr,Vt=Hr.length,Or=[];Lr<Vt;Lr+=1)Or[Lr]=Hr[Lr](Dt,kt,ht);var Jr=Ve(Or.concat());xr.set(Or[Jr],Pt+hn)}ht=Dt}return xr},I=function(it){var ye=Array.apply([],it);return ye.unshift(0),ye},C=function(it,ye){var kt,bt=[],Dt=it.length;bt[0]=1;for(var ht=0;ht<Dt;ht+=1)kt=it[ht-ye]||0,bt[ht+1]=it[ht]-kt+256&255;return bt},N=function(it,ye,kt){var bt,Dt=[],ht=it.length;Dt[0]=2;for(var Pt=0;Pt<ht;Pt+=1)bt=kt&&kt[Pt]||0,Dt[Pt+1]=it[Pt]-bt+256&255;return Dt},$=function(it,ye,kt){var bt,Dt,ht=[],Pt=it.length;ht[0]=3;for(var ir=0;ir<Pt;ir+=1)bt=it[ir-ye]||0,Dt=kt&&kt[ir]||0,ht[ir+1]=it[ir]+256-(bt+Dt>>>1)&255;return ht},ae=function(it,ye,kt){var bt,Dt,ht,Pt,ir=[],xr=it.length;ir[0]=4;for(var Hr=0;Hr<xr;Hr+=1)bt=it[Hr-ye]||0,Dt=kt&&kt[Hr]||0,ht=kt&&kt[Hr-ye]||0,Pt=_e(bt,Dt,ht),ir[Hr+1]=it[Hr]-Pt+256&255;return ir},_e=function(it,ye,kt){if(it===ye&&ye===kt)return it;var bt=Math.abs(ye-kt),Dt=Math.abs(it-kt),ht=Math.abs(it+ye-kt-kt);return bt<=Dt&&bt<=ht?it:Dt<=ht?ye:kt},Ze=function(){return[I,C,N,$,ae]},Ve=function(it){var ye=it.map(function(kt){return kt.reduce(function(bt,Dt){return bt+Math.abs(Dt)},0)});return ye.indexOf(Math.min.apply(null,ye))};c.processPNG=function(it,ye,kt,bt){var Dt,ht,Pt,ir,xr,Hr,hn,Lr,Vt,Or,Jr,gt,Ct,rr,T,re=this.decode.FLATE_DECODE,Be="";if(this.__addimage__.isArrayBuffer(it)&&(it=new Uint8Array(it)),this.__addimage__.isArrayBufferView(it)){if(it=(Pt=new cA(it)).imgData,ht=Pt.bits,Dt=Pt.colorSpace,xr=Pt.colors,[4,6].indexOf(Pt.colorType)!==-1){if(Pt.bits===8){Vt=(Lr=Pt.pixelBitlength==32?new Uint32Array(Pt.decodePixels().buffer):Pt.pixelBitlength==16?new Uint16Array(Pt.decodePixels().buffer):new Uint8Array(Pt.decodePixels().buffer)).length,Jr=new Uint8Array(Vt*Pt.colors),Or=new Uint8Array(Vt);var Ue,Ke=Pt.pixelBitlength-Pt.bits;for(rr=0,T=0;rr<Vt;rr++){for(Ct=Lr[rr],Ue=0;Ue<Ke;)Jr[T++]=Ct>>>Ue&255,Ue+=Pt.bits;Or[rr]=Ct>>>Ue&255}}if(Pt.bits===16){Vt=(Lr=new Uint32Array(Pt.decodePixels().buffer)).length,Jr=new Uint8Array(Vt*(32/Pt.pixelBitlength)*Pt.colors),Or=new Uint8Array(Vt*(32/Pt.pixelBitlength)),gt=Pt.colors>1,rr=0,T=0;for(var Xe=0;rr<Vt;)Ct=Lr[rr++],Jr[T++]=Ct>>>0&255,gt&&(Jr[T++]=Ct>>>16&255,Ct=Lr[rr++],Jr[T++]=Ct>>>0&255),Or[Xe++]=Ct>>>16&255;ht=8}bt!==c.image_compression.NONE&&o()?(it=l(Jr,Pt.width*Pt.colors,Pt.colors,bt),hn=l(Or,Pt.width,1,bt)):(it=Jr,hn=Or,re=void 0)}if(Pt.colorType===3&&(Dt=this.color_spaces.INDEXED,Hr=Pt.palette,Pt.transparency.indexed)){var ut=Pt.transparency.indexed,Et=0;for(rr=0,Vt=ut.length;rr<Vt;++rr)Et+=ut[rr];if((Et/=255)===Vt-1&&ut.indexOf(0)!==-1)ir=[ut.indexOf(0)];else if(Et!==Vt){for(Lr=Pt.decodePixels(),Or=new Uint8Array(Lr.length),rr=0,Vt=Lr.length;rr<Vt;rr++)Or[rr]=ut[Lr[rr]];hn=l(Or,Pt.width,1)}}var le=function(Re){var Ye;switch(Re){case c.image_compression.FAST:Ye=11;break;case c.image_compression.MEDIUM:Ye=13;break;case c.image_compression.SLOW:Ye=14;break;default:Ye=12}return Ye}(bt);return re===this.decode.FLATE_DECODE&&(Be="/Predictor "+le+" "),Be+="/Colors "+xr+" /BitsPerComponent "+ht+" /Columns "+Pt.width,(this.__addimage__.isArrayBuffer(it)||this.__addimage__.isArrayBufferView(it))&&(it=this.__addimage__.arrayBufferToBinaryString(it)),(hn&&this.__addimage__.isArrayBuffer(hn)||this.__addimage__.isArrayBufferView(hn))&&(hn=this.__addimage__.arrayBufferToBinaryString(hn)),{alias:kt,data:it,index:ye,filter:re,decodeParameters:Be,transparency:ir,palette:Hr,sMask:hn,predictor:le,width:Pt.width,height:Pt.height,bitsPerComponent:ht,colorSpace:Dt}}}})(Ai.API),function(c){c.processGIF89A=function(o,l,b,I){var C=new hc(o),N=C.width,$=C.height,ae=[];C.decodeAndBlitFrameRGBA(0,ae);var _e={data:ae,width:N,height:$},Ze=new Pl(100).encode(_e,100);return c.processJPEG.call(this,Ze,l,b,I)},c.processGIF87A=c.processGIF89A}(Ai.API),Ys.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 c=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(c);for(var o=0;o<c;o++){var l=this.datav.getUint8(this.pos++,!0),b=this.datav.getUint8(this.pos++,!0),I=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:I,green:b,blue:l,quad:C}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ys.prototype.parseBGR=function(){this.pos=this.offset;try{var c="bit"+this.bitPP,o=this.width*this.height*4;this.data=new Uint8Array(o),this[c]()}catch(l){Ln.log("bit decode error:"+l)}},Ys.prototype.bit1=function(){var c,o=Math.ceil(this.width/8),l=o%4;for(c=this.height-1;c>=0;c--){for(var b=this.bottom_up?c:this.height-1-c,I=0;I<o;I++)for(var C=this.datav.getUint8(this.pos++,!0),N=b*this.width*4+8*I*4,$=0;$<8&&8*I+$<this.width;$++){var ae=this.palette[C>>7-$&1];this.data[N+4*$]=ae.blue,this.data[N+4*$+1]=ae.green,this.data[N+4*$+2]=ae.red,this.data[N+4*$+3]=255}l!==0&&(this.pos+=4-l)}},Ys.prototype.bit4=function(){for(var c=Math.ceil(this.width/2),o=c%4,l=this.height-1;l>=0;l--){for(var b=this.bottom_up?l:this.height-1-l,I=0;I<c;I++){var C=this.datav.getUint8(this.pos++,!0),N=b*this.width*4+2*I*4,$=C>>4,ae=15&C,_e=this.palette[$];if(this.data[N]=_e.blue,this.data[N+1]=_e.green,this.data[N+2]=_e.red,this.data[N+3]=255,2*I+1>=this.width)break;_e=this.palette[ae],this.data[N+4]=_e.blue,this.data[N+4+1]=_e.green,this.data[N+4+2]=_e.red,this.data[N+4+3]=255}o!==0&&(this.pos+=4-o)}},Ys.prototype.bit8=function(){for(var c=this.width%4,o=this.height-1;o>=0;o--){for(var l=this.bottom_up?o:this.height-1-o,b=0;b<this.width;b++){var I=this.datav.getUint8(this.pos++,!0),C=l*this.width*4+4*b;if(I<this.palette.length){var N=this.palette[I];this.data[C]=N.red,this.data[C+1]=N.green,this.data[C+2]=N.blue,this.data[C+3]=255}else this.data[C]=255,this.data[C+1]=255,this.data[C+2]=255,this.data[C+3]=255}c!==0&&(this.pos+=4-c)}},Ys.prototype.bit15=function(){for(var c=this.width%3,o=parseInt("11111",2),l=this.height-1;l>=0;l--){for(var b=this.bottom_up?l:this.height-1-l,I=0;I<this.width;I++){var C=this.datav.getUint16(this.pos,!0);this.pos+=2;var N=(C&o)/o*255|0,$=(C>>5&o)/o*255|0,ae=(C>>10&o)/o*255|0,_e=C>>15?255:0,Ze=b*this.width*4+4*I;this.data[Ze]=ae,this.data[Ze+1]=$,this.data[Ze+2]=N,this.data[Ze+3]=_e}this.pos+=c}},Ys.prototype.bit16=function(){for(var c=this.width%3,o=parseInt("11111",2),l=parseInt("111111",2),b=this.height-1;b>=0;b--){for(var I=this.bottom_up?b:this.height-1-b,C=0;C<this.width;C++){var N=this.datav.getUint16(this.pos,!0);this.pos+=2;var $=(N&o)/o*255|0,ae=(N>>5&l)/l*255|0,_e=(N>>11)/o*255|0,Ze=I*this.width*4+4*C;this.data[Ze]=_e,this.data[Ze+1]=ae,this.data[Ze+2]=$,this.data[Ze+3]=255}this.pos+=c}},Ys.prototype.bit24=function(){for(var c=this.height-1;c>=0;c--){for(var o=this.bottom_up?c:this.height-1-c,l=0;l<this.width;l++){var b=this.datav.getUint8(this.pos++,!0),I=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0),N=o*this.width*4+4*l;this.data[N]=C,this.data[N+1]=I,this.data[N+2]=b,this.data[N+3]=255}this.pos+=this.width%4}},Ys.prototype.bit32=function(){for(var c=this.height-1;c>=0;c--)for(var o=this.bottom_up?c:this.height-1-c,l=0;l<this.width;l++){var b=this.datav.getUint8(this.pos++,!0),I=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0),N=this.datav.getUint8(this.pos++,!0),$=o*this.width*4+4*l;this.data[$]=C,this.data[$+1]=I,this.data[$+2]=b,this.data[$+3]=N}},Ys.prototype.getData=function(){return this.data},function(c){c.processBMP=function(o,l,b,I){var C=new Ys(o,!1),N=C.width,$=C.height,ae={data:C.getData(),width:N,height:$},_e=new Pl(100).encode(ae,100);return c.processJPEG.call(this,_e,l,b,I)}}(Ai.API),ol.prototype.getData=function(){return this.data},function(c){c.processWEBP=function(o,l,b,I){var C=new ol(o),N=C.width,$=C.height,ae={data:C.getData(),width:N,height:$},_e=new Pl(100).encode(ae,100);return c.processJPEG.call(this,_e,l,b,I)}}(Ai.API),Ai.API.processRGBA=function(c,o,l){for(var b=c.data,I=b.length,C=new Uint8Array(I/4*3),N=new Uint8Array(I/4),$=0,ae=0,_e=0;_e<I;_e+=4){var Ze=b[_e],Ve=b[_e+1],it=b[_e+2],ye=b[_e+3];C[$++]=Ze,C[$++]=Ve,C[$++]=it,N[ae++]=ye}var kt=this.__addimage__.arrayBufferToBinaryString(C);return{alpha:this.__addimage__.arrayBufferToBinaryString(N),data:kt,index:o,alias:l,colorSpace:"DeviceRGB",bitsPerComponent:8,width:c.width,height:c.height}},Ai.API.setLanguage=function(c){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"}[c]!==void 0&&(this.internal.languageSettings.languageCode=c,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},al=Ai.API,Wc=al.getCharWidthsArray=function(c,o){var l,b,I=(o=o||{}).font||this.internal.getFont(),C=o.fontSize||this.internal.getFontSize(),N=o.charSpace||this.internal.getCharSpace(),$=o.widths?o.widths:I.metadata.Unicode.widths,ae=$.fof?$.fof:1,_e=o.kerning?o.kerning:I.metadata.Unicode.kerning,Ze=_e.fof?_e.fof:1,Ve=o.doKerning!==!1,it=0,ye=c.length,kt=0,bt=$[0]||ae,Dt=[];for(l=0;l<ye;l++)b=c.charCodeAt(l),typeof I.metadata.widthOfString=="function"?Dt.push((I.metadata.widthOfGlyph(I.metadata.characterToGlyph(b))+N*(1e3/C)||0)/1e3):(it=Ve&&(0,pe.Z)(_e[b])==="object"&&!isNaN(parseInt(_e[b][kt],10))?_e[b][kt]/Ze:0,Dt.push(($[b]||bt)/ae+it)),kt=b;return Dt},Dl=al.getStringUnitWidth=function(c,o){var l=(o=o||{}).fontSize||this.internal.getFontSize(),b=o.font||this.internal.getFont(),I=o.charSpace||this.internal.getCharSpace();return al.processArabic&&(c=al.processArabic(c)),typeof b.metadata.widthOfString=="function"?b.metadata.widthOfString(c,l,I)/l:Wc.apply(this,arguments).reduce(function(C,N){return C+N},0)},Js=function(c,o,l,b){for(var I=[],C=0,N=c.length,$=0;C!==N&&$+o[C]<l;)$+=o[C],C++;I.push(c.slice(0,C));var ae=C;for($=0;C!==N;)$+o[C]>b&&(I.push(c.slice(ae,C)),$=0,ae=C),$+=o[C],C++;return ae!==C&&I.push(c.slice(ae,C)),I},lA=function(c,o,l){l||(l={});var b,I,C,N,$,ae,_e,Ze=[],Ve=[Ze],it=l.textIndent||0,ye=0,kt=0,bt=c.split(" "),Dt=Wc.apply(this,[" ",l])[0];if(ae=l.lineIndent===-1?bt[0].length+2:l.lineIndent||0){var ht=Array(ae).join(" "),Pt=[];bt.map(function(xr){(xr=xr.split(/\s*\n/)).length>1?Pt=Pt.concat(xr.map(function(Hr,hn){return(hn&&Hr.length?`
`:"")+Hr})):Pt.push(xr[0])}),bt=Pt,ae=Dl.apply(this,[ht,l])}for(C=0,N=bt.length;C<N;C++){var ir=0;if(b=bt[C],ae&&b[0]==`
`&&(b=b.substr(1),ir=1),it+ye+(kt=(I=Wc.apply(this,[b,l])).reduce(function(xr,Hr){return xr+Hr},0))>o||ir){if(kt>o){for($=Js.apply(this,[b,I,o-(it+ye),o]),Ze.push($.shift()),Ze=[$.pop()];$.length;)Ve.push([$.shift()]);kt=I.slice(b.length-(Ze[0]?Ze[0].length:0)).reduce(function(xr,Hr){return xr+Hr},0)}else Ze=[b];Ve.push(Ze),it=kt+ae,ye=Dt}else Ze.push(b),it+=ye+kt,ye=Dt}return _e=ae?function(xr,Hr){return(Hr?ht:"")+xr.join(" ")}:function(xr){return xr.join(" ")},Ve.map(_e)},al.splitTextToSize=function(c,o,l){var b,I=(l=l||{}).fontSize||this.internal.getFontSize(),C=function(Ze){if(Ze.widths&&Ze.kerning)return{widths:Ze.widths,kerning:Ze.kerning};var Ve=this.internal.getFont(Ze.fontName,Ze.fontStyle);return Ve.metadata.Unicode?{widths:Ve.metadata.Unicode.widths||{0:1},kerning:Ve.metadata.Unicode.kerning||{}}:{font:Ve.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,l);b=Array.isArray(c)?c:String(c).split(/\r?\n/);var N=1*this.internal.scaleFactor*o/I;C.textIndent=l.textIndent?1*l.textIndent*this.internal.scaleFactor/I:0,C.lineIndent=l.lineIndent;var $,ae,_e=[];for($=0,ae=b.length;$<ae;$++)_e=_e.concat(lA.apply(this,[b[$],N,C]));return _e},function(c){c.__fontmetrics__=c.__fontmetrics__||{};for(var o="klmnopqrstuvwxyz",l={},b={},I=0;I<o.length;I++)l[o[I]]="0123456789abcdef"[I],b["0123456789abcdef"[I]]=o[I];var C=function(Ve){return"0x"+parseInt(Ve,10).toString(16)},N=c.__fontmetrics__.compress=function(Ve){var it,ye,kt,bt,Dt=["{"];for(var ht in Ve){if(it=Ve[ht],isNaN(parseInt(ht,10))?ye="'"+ht+"'":(ht=parseInt(ht,10),ye=(ye=C(ht).slice(2)).slice(0,-1)+b[ye.slice(-1)]),typeof it=="number")it<0?(kt=C(it).slice(3),bt="-"):(kt=C(it).slice(2),bt=""),kt=bt+kt.slice(0,-1)+b[kt.slice(-1)];else{if((0,pe.Z)(it)!=="object")throw new Error("Don't know what to do with value type "+(0,pe.Z)(it)+".");kt=N(it)}Dt.push(ye+kt)}return Dt.push("}"),Dt.join("")},$=c.__fontmetrics__.uncompress=function(Ve){if(typeof Ve!="string")throw new Error("Invalid argument passed to uncompress.");for(var it,ye,kt,bt,Dt={},ht=1,Pt=Dt,ir=[],xr="",Hr="",hn=Ve.length-1,Lr=1;Lr<hn;Lr+=1)(bt=Ve[Lr])=="'"?it?(kt=it.join(""),it=void 0):it=[]:it?it.push(bt):bt=="{"?(ir.push([Pt,kt]),Pt={},kt=void 0):bt=="}"?((ye=ir.pop())[0][ye[1]]=Pt,kt=void 0,Pt=ye[0]):bt=="-"?ht=-1:kt===void 0?l.hasOwnProperty(bt)?(xr+=l[bt],kt=parseInt(xr,16)*ht,ht=1,xr=""):xr+=bt:l.hasOwnProperty(bt)?(Hr+=l[bt],Pt[kt]=parseInt(Hr,16)*ht,ht=1,kt=void 0,Hr=""):Hr+=bt;return Dt},ae={codePages:["WinAnsiEncoding"],WinAnsiEncoding:$("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},_e={Unicode:{Courier:ae,"Courier-Bold":ae,"Courier-BoldOblique":ae,"Courier-Oblique":ae,Helvetica:ae,"Helvetica-Bold":ae,"Helvetica-BoldOblique":ae,"Helvetica-Oblique":ae,"Times-Roman":ae,"Times-Bold":ae,"Times-BoldItalic":ae,"Times-Italic":ae}},Ze={Unicode:{"Courier-Oblique":$("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":$("{'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":$("{'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:$("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":$("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":$("{'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:$("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:$("{'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":$("{'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:$("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":$("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":$("{'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":$("{'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":$("{'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}}}")}};c.events.push(["addFont",function(Ve){var it=Ve.font,ye=Ze.Unicode[it.postScriptName];ye&&(it.metadata.Unicode={},it.metadata.Unicode.widths=ye.widths,it.metadata.Unicode.kerning=ye.kerning);var kt=_e.Unicode[it.postScriptName];kt&&(it.metadata.Unicode.encoding=kt,it.encoding=kt.codePages[0])}])}(Ai.API),function(c){var o=function(l){for(var b=l.length,I=new Uint8Array(b),C=0;C<b;C++)I[C]=l.charCodeAt(C);return I};c.API.events.push(["addFont",function(l){var b=void 0,I=l.font,C=l.instance;if(!I.isStandardFont){if(C===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+I.postScriptName+"').");if(typeof(b=C.existsFileInVFS(I.postScriptName)===!1?C.loadFile(I.postScriptName):C.getFileFromVFS(I.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+I.postScriptName+"').");(function(N,$){$=/^\x00\x01\x00\x00/.test($)?o($):o(Xn($)),N.metadata=c.API.TTFFont.open($),N.metadata.Unicode=N.metadata.Unicode||{encoding:{},kerning:{},widths:[]},N.metadata.glyIdsUsed=[0]})(I,b)}}])}(Ai),function(c){function o(){return(on.canvg?Promise.resolve(on.canvg):w.e(3754).then(w.bind(w,63754))).catch(function(l){return Promise.reject(new Error("Could not load canvg: "+l))}).then(function(l){return l.default?l.default:l})}Ai.API.addSvgAsImage=function(l,b,I,C,N,$,ae,_e){if(isNaN(b)||isNaN(I))throw Ln.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(C)||isNaN(N))throw Ln.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Ze=document.createElement("canvas");Ze.width=C,Ze.height=N;var Ve=Ze.getContext("2d");Ve.fillStyle="#fff",Ve.fillRect(0,0,Ze.width,Ze.height);var it={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},ye=this;return o().then(function(kt){return kt.fromString(Ve,l,it)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(kt){return kt.render(it)}).then(function(){ye.addImage(Ze.toDataURL("image/jpeg",1),b,I,C,N,ae,_e)})}}(),Ai.API.putTotalPages=function(c){var o,l=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(c,"g"),l=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(c,this.internal.getFont()),"g"),l=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var b=1;b<=this.internal.getNumberOfPages();b++)for(var I=0;I<this.internal.pages[b].length;I++)this.internal.pages[b][I]=this.internal.pages[b][I].replace(o,l);return this},Ai.API.viewerPreferences=function(c,o){var l;c=c||{},o=o||!1;var b,I,C,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}},$=Object.keys(N),ae=[],_e=0,Ze=0,Ve=0;function it(kt,bt){var Dt,ht=!1;for(Dt=0;Dt<kt.length;Dt+=1)kt[Dt]===bt&&(ht=!0);return ht}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(N)),this.internal.viewerpreferences.isSubscribed=!1),l=this.internal.viewerpreferences.configuration,c==="reset"||o===!0){var ye=$.length;for(Ve=0;Ve<ye;Ve+=1)l[$[Ve]].value=l[$[Ve]].defaultValue,l[$[Ve]].explicitSet=!1}if((0,pe.Z)(c)==="object"){for(I in c)if(C=c[I],it($,I)&&C!==void 0){if(l[I].type==="boolean"&&typeof C=="boolean")l[I].value=C;else if(l[I].type==="name"&&it(l[I].valueSet,C))l[I].value=C;else if(l[I].type==="integer"&&Number.isInteger(C))l[I].value=C;else if(l[I].type==="array"){for(_e=0;_e<C.length;_e+=1)if(b=!0,C[_e].length===1&&typeof C[_e][0]=="number")ae.push(String(C[_e]-1));else if(C[_e].length>1){for(Ze=0;Ze<C[_e].length;Ze+=1)typeof C[_e][Ze]!="number"&&(b=!1);b===!0&&ae.push([C[_e][0]-1,C[_e][1]-1].join(" "))}l[I].value="["+ae.join(" ")+"]"}else l[I].value=l[I].defaultValue;l[I].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var kt,bt=[];for(kt in l)l[kt].explicitSet===!0&&(l[kt].type==="name"?bt.push("/"+kt+" /"+l[kt].value):bt.push("/"+kt+" "+l[kt].value));bt.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+bt.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=l,this},function(c){var o=function(){var b='<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>',I=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),C=unescape(encodeURIComponent(b)),N=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),$=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ae=unescape(encodeURIComponent("</x:xmpmeta>")),_e=C.length+N.length+$.length+I.length+ae.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+_e+" >>"),this.internal.write("stream"),this.internal.write(I+C+N+$+ae),this.internal.write("endstream"),this.internal.write("endobj")},l=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};c.addMetadata=function(b,I){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:b,namespaceuri:I||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",l),this.internal.events.subscribe("postPutResources",o)),this}}(Ai.API),function(c){var o=c.API,l=o.pdfEscape16=function(C,N){for(var $,ae=N.metadata.Unicode.widths,_e=["","0","00","000","0000"],Ze=[""],Ve=0,it=C.length;Ve<it;++Ve){if($=N.metadata.characterToGlyph(C.charCodeAt(Ve)),N.metadata.glyIdsUsed.push($),N.metadata.toUnicode[$]=C.charCodeAt(Ve),ae.indexOf($)==-1&&(ae.push($),ae.push([parseInt(N.metadata.widthOfGlyph($),10)])),$=="0")return Ze.join("");$=$.toString(16),Ze.push(_e[4-$.length],$)}return Ze.join("")},b=function(C){var N,$,ae,_e,Ze,Ve,it;for(Ze=`/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`,ae=[],Ve=0,it=($=Object.keys(C).sort(function(ye,kt){return ye-kt})).length;Ve<it;Ve++)N=$[Ve],ae.length>=100&&(Ze+=`
`+ae.length+` beginbfchar
`+ae.join(`
`)+`
endbfchar`,ae=[]),C[N]!==void 0&&C[N]!==null&&typeof C[N].toString=="function"&&(_e=("0000"+C[N].toString(16)).slice(-4),N=("0000"+(+N).toString(16)).slice(-4),ae.push("<"+N+"><"+_e+">"));return ae.length&&(Ze+=`
`+ae.length+` beginbfchar
`+ae.join(`
`)+`
endbfchar
`),Ze+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};o.events.push(["putFont",function(C){(function(N){var $=N.font,ae=N.out,_e=N.newObject,Ze=N.putStream;if($.metadata instanceof c.API.TTFFont&&$.encoding==="Identity-H"){for(var Ve=$.metadata.Unicode.widths,it=$.metadata.subset.encode($.metadata.glyIdsUsed,1),ye="",kt=0;kt<it.length;kt++)ye+=String.fromCharCode(it[kt]);var bt=_e();Ze({data:ye,addLength1:!0,objectId:bt}),ae("endobj");var Dt=_e();Ze({data:b($.metadata.toUnicode),addLength1:!0,objectId:Dt}),ae("endobj");var ht=_e();ae("<<"),ae("/Type /FontDescriptor"),ae("/FontName /"+Zi($.fontName)),ae("/FontFile2 "+bt+" 0 R"),ae("/FontBBox "+c.API.PDFObject.convert($.metadata.bbox)),ae("/Flags "+$.metadata.flags),ae("/StemV "+$.metadata.stemV),ae("/ItalicAngle "+$.metadata.italicAngle),ae("/Ascent "+$.metadata.ascender),ae("/Descent "+$.metadata.decender),ae("/CapHeight "+$.metadata.capHeight),ae(">>"),ae("endobj");var Pt=_e();ae("<<"),ae("/Type /Font"),ae("/BaseFont /"+Zi($.fontName)),ae("/FontDescriptor "+ht+" 0 R"),ae("/W "+c.API.PDFObject.convert(Ve)),ae("/CIDToGIDMap /Identity"),ae("/DW 1000"),ae("/Subtype /CIDFontType2"),ae("/CIDSystemInfo"),ae("<<"),ae("/Supplement 0"),ae("/Registry (Adobe)"),ae("/Ordering ("+$.encoding+")"),ae(">>"),ae(">>"),ae("endobj"),$.objectNumber=_e(),ae("<<"),ae("/Type /Font"),ae("/Subtype /Type0"),ae("/ToUnicode "+Dt+" 0 R"),ae("/BaseFont /"+Zi($.fontName)),ae("/Encoding /"+$.encoding),ae("/DescendantFonts ["+Pt+" 0 R]"),ae(">>"),ae("endobj"),$.isAlreadyPutted=!0}})(C)}]),o.events.push(["putFont",function(C){(function(N){var $=N.font,ae=N.out,_e=N.newObject,Ze=N.putStream;if($.metadata instanceof c.API.TTFFont&&$.encoding==="WinAnsiEncoding"){for(var Ve=$.metadata.rawData,it="",ye=0;ye<Ve.length;ye++)it+=String.fromCharCode(Ve[ye]);var kt=_e();Ze({data:it,addLength1:!0,objectId:kt}),ae("endobj");var bt=_e();Ze({data:b($.metadata.toUnicode),addLength1:!0,objectId:bt}),ae("endobj");var Dt=_e();ae("<<"),ae("/Descent "+$.metadata.decender),ae("/CapHeight "+$.metadata.capHeight),ae("/StemV "+$.metadata.stemV),ae("/Type /FontDescriptor"),ae("/FontFile2 "+kt+" 0 R"),ae("/Flags 96"),ae("/FontBBox "+c.API.PDFObject.convert($.metadata.bbox)),ae("/FontName /"+Zi($.fontName)),ae("/ItalicAngle "+$.metadata.italicAngle),ae("/Ascent "+$.metadata.ascender),ae(">>"),ae("endobj"),$.objectNumber=_e();for(var ht=0;ht<$.metadata.hmtx.widths.length;ht++)$.metadata.hmtx.widths[ht]=parseInt($.metadata.hmtx.widths[ht]*(1e3/$.metadata.head.unitsPerEm));ae("<</Subtype/TrueType/Type/Font/ToUnicode "+bt+" 0 R/BaseFont/"+Zi($.fontName)+"/FontDescriptor "+Dt+" 0 R/Encoding/"+$.encoding+" /FirstChar 29 /LastChar 255 /Widths "+c.API.PDFObject.convert($.metadata.hmtx.widths)+">>"),ae("endobj"),$.isAlreadyPutted=!0}})(C)}]);var I=function(C){var N,$=C.text||"",ae=C.x,_e=C.y,Ze=C.options||{},Ve=C.mutex||{},it=Ve.pdfEscape,ye=Ve.activeFontKey,kt=Ve.fonts,bt=ye,Dt="",ht=0,Pt="",ir=kt[bt].encoding;if(kt[bt].encoding!=="Identity-H")return{text:$,x:ae,y:_e,options:Ze,mutex:Ve};for(Pt=$,bt=ye,Array.isArray($)&&(Pt=$[0]),ht=0;ht<Pt.length;ht+=1)kt[bt].metadata.hasOwnProperty("cmap")&&(N=kt[bt].metadata.cmap.unicode.codeMap[Pt[ht].charCodeAt(0)]),N||Pt[ht].charCodeAt(0)<256&&kt[bt].metadata.hasOwnProperty("Unicode")?Dt+=Pt[ht]:Dt+="";var xr="";return parseInt(bt.slice(1))<14||ir==="WinAnsiEncoding"?xr=it(Dt,bt).split("").map(function(Hr){return Hr.charCodeAt(0).toString(16)}).join(""):ir==="Identity-H"&&(xr=l(Dt,kt[bt])),Ve.isHex=!0,{text:xr,x:ae,y:_e,options:Ze,mutex:Ve}};o.events.push(["postProcessText",function(C){var N=C.text||"",$=[],ae={text:N,x:C.x,y:C.y,options:C.options,mutex:C.mutex};if(Array.isArray(N)){var _e=0;for(_e=0;_e<N.length;_e+=1)Array.isArray(N[_e])&&N[_e].length===3?$.push([I(Object.assign({},ae,{text:N[_e][0]})).text,N[_e][1],N[_e][2]]):$.push(I(Object.assign({},ae,{text:N[_e]})).text);C.text=$}else C.text=I(Object.assign({},ae,{text:N})).text}])}(Ai),function(c){var o=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};c.existsFileInVFS=function(l){return o.call(this),this.internal.vFS[l]!==void 0},c.addFileToVFS=function(l,b){return o.call(this),this.internal.vFS[l]=b,this},c.getFileFromVFS=function(l){return o.call(this),this.internal.vFS[l]!==void 0?this.internal.vFS[l]:null}}(Ai.API),function(c){c.__bidiEngine__=c.prototype.__bidiEngine__=function(b){var I,C,N,$,ae,_e,Ze,Ve=o,it=[[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]],ye=[[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]],kt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},bt={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Dt=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],ht=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)$/),Pt=!1,ir=0;this.__bidiEngine__={};var xr=function(gt){var Ct=gt.charCodeAt(),rr=Ct>>8,T=bt[rr];return T!==void 0?Ve[256*T+(255&Ct)]:rr===252||rr===253?"AL":ht.test(rr)?"L":rr===8?"R":"N"},Hr=function(gt){for(var Ct,rr=0;rr<gt.length;rr++){if((Ct=xr(gt.charAt(rr)))==="L")return!1;if(Ct==="R")return!0}return!1},hn=function(gt,Ct,rr,T){var re,Be,Ue,Ke,Xe=Ct[T];switch(Xe){case"L":case"R":Pt=!1;break;case"N":case"AN":break;case"EN":Pt&&(Xe="AN");break;case"AL":Pt=!0,Xe="R";break;case"WS":Xe="N";break;case"CS":T<1||T+1>=Ct.length||(re=rr[T-1])!=="EN"&&re!=="AN"||(Be=Ct[T+1])!=="EN"&&Be!=="AN"?Xe="N":Pt&&(Be="AN"),Xe=Be===re?Be:"N";break;case"ES":Xe=(re=T>0?rr[T-1]:"B")==="EN"&&T+1<Ct.length&&Ct[T+1]==="EN"?"EN":"N";break;case"ET":if(T>0&&rr[T-1]==="EN"){Xe="EN";break}if(Pt){Xe="N";break}for(Ue=T+1,Ke=Ct.length;Ue<Ke&&Ct[Ue]==="ET";)Ue++;Xe=Ue<Ke&&Ct[Ue]==="EN"?"EN":"N";break;case"NSM":if(N&&!$){for(Ke=Ct.length,Ue=T+1;Ue<Ke&&Ct[Ue]==="NSM";)Ue++;if(Ue<Ke){var ut=gt[T],Et=ut>=1425&&ut<=2303||ut===64286;if(re=Ct[Ue],Et&&(re==="R"||re==="AL")){Xe="R";break}}}Xe=T<1||(re=Ct[T-1])==="B"?"N":rr[T-1];break;case"B":Pt=!1,I=!0,Xe=ir;break;case"S":C=!0,Xe="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Pt=!1;break;case"BN":Xe="N"}return Xe},Lr=function(gt,Ct,rr){var T=gt.split("");return rr&&Vt(T,rr,{hiLevel:ir}),T.reverse(),Ct&&Ct.reverse(),T.join("")},Vt=function(gt,Ct,rr){var T,re,Be,Ue,Ke,Xe=-1,ut=gt.length,Et=0,le=[],Re=ir?ye:it,Ye=[];for(Pt=!1,I=!1,C=!1,re=0;re<ut;re++)Ye[re]=xr(gt[re]);for(Be=0;Be<ut;Be++){if(Ke=Et,le[Be]=hn(gt,Ye,le,Be),T=240&(Et=Re[Ke][kt[le[Be]]]),Et&=15,Ct[Be]=Ue=Re[Et][5],T>0)if(T===16){for(re=Xe;re<Be;re++)Ct[re]=1;Xe=-1}else Xe=-1;if(Re[Et][6])Xe===-1&&(Xe=Be);else if(Xe>-1){for(re=Xe;re<Be;re++)Ct[re]=Ue;Xe=-1}Ye[Be]==="B"&&(Ct[Be]=0),rr.hiLevel|=Ue}C&&function(et,yt,_t){for(var Mt=0;Mt<_t;Mt++)if(et[Mt]==="S"){yt[Mt]=ir;for(var Rt=Mt-1;Rt>=0&&et[Rt]==="WS";Rt--)yt[Rt]=ir}}(Ye,Ct,ut)},Or=function(gt,Ct,rr,T,re){if(!(re.hiLevel<gt)){if(gt===1&&ir===1&&!I)return Ct.reverse(),void(rr&&rr.reverse());for(var Be,Ue,Ke,Xe,ut=Ct.length,Et=0;Et<ut;){if(T[Et]>=gt){for(Ke=Et+1;Ke<ut&&T[Ke]>=gt;)Ke++;for(Xe=Et,Ue=Ke-1;Xe<Ue;Xe++,Ue--)Be=Ct[Xe],Ct[Xe]=Ct[Ue],Ct[Ue]=Be,rr&&(Be=rr[Xe],rr[Xe]=rr[Ue],rr[Ue]=Be);Et=Ke}Et++}}},Jr=function(gt,Ct,rr){var T=gt.split(""),re={hiLevel:ir};return rr||(rr=[]),Vt(T,rr,re),function(Be,Ue,Ke){if(Ke.hiLevel!==0&&Ze)for(var Xe,ut=0;ut<Be.length;ut++)Ue[ut]===1&&(Xe=Dt.indexOf(Be[ut]))>=0&&(Be[ut]=Dt[Xe+1])}(T,rr,re),Or(2,T,Ct,rr,re),Or(1,T,Ct,rr,re),T.join("")};return this.__bidiEngine__.doBidiReorder=function(gt,Ct,rr){if(function(re,Be){if(Be)for(var Ue=0;Ue<re.length;Ue++)Be[Ue]=Ue;$===void 0&&($=Hr(re)),_e===void 0&&(_e=Hr(re))}(gt,Ct),N||!ae||_e)if(N&&ae&&$^_e)ir=$?1:0,gt=Lr(gt,Ct,rr);else if(!N&&ae&&_e)ir=$?1:0,gt=Jr(gt,Ct,rr),gt=Lr(gt,Ct);else if(!N||$||ae||_e){if(N&&!ae&&$^_e)gt=Lr(gt,Ct),$?(ir=0,gt=Jr(gt,Ct,rr)):(ir=1,gt=Jr(gt,Ct,rr),gt=Lr(gt,Ct));else if(N&&$&&!ae&&_e)ir=1,gt=Jr(gt,Ct,rr),gt=Lr(gt,Ct);else if(!N&&!ae&&$^_e){var T=Ze;$?(ir=1,gt=Jr(gt,Ct,rr),ir=0,Ze=!1,gt=Jr(gt,Ct,rr),Ze=T):(ir=0,gt=Jr(gt,Ct,rr),gt=Lr(gt,Ct),ir=1,Ze=!1,gt=Jr(gt,Ct,rr),Ze=T,gt=Lr(gt,Ct))}}else ir=0,gt=Jr(gt,Ct,rr);else ir=$?1:0,gt=Jr(gt,Ct,rr);return gt},this.__bidiEngine__.setOptions=function(gt){gt&&(N=gt.isInputVisual,ae=gt.isOutputVisual,$=gt.isInputRtl,_e=gt.isOutputRtl,Ze=gt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(b),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"],l=new c.__bidiEngine__({isInputVisual:!0});c.API.events.push(["postProcessText",function(b){var I=b.text;b.x,b.y;var C=b.options||{};b.mutex,C.lang;var N=[];if(C.isInputVisual=typeof C.isInputVisual!="boolean"||C.isInputVisual,l.setOptions(C),Object.prototype.toString.call(I)==="[object Array]"){var $=0;for(N=[],$=0;$<I.length;$+=1)Object.prototype.toString.call(I[$])==="[object Array]"?N.push([l.doBidiReorder(I[$][0]),I[$][1],I[$][2]]):N.push([l.doBidiReorder(I[$])]);b.text=N}else b.text=l.doBidiReorder(I);l.setOptions({isInputVisual:!0})}])}(Ai),Ai.API.TTFFont=function(){function c(o){var l;if(this.rawData=o,l=this.contents=new Na(o),this.contents.pos=4,l.readString(4)==="ttcf")throw new Error("TTCF not supported.");l.pos=0,this.parse(),this.subset=new cu(this),this.registerTTF()}return c.open=function(o){return new c(o)},c.prototype.parse=function(){return this.directory=new po(this.contents),this.head=new Ps(this),this.name=new mc(this),this.cmap=new yl(this),this.toUnicode={},this.hhea=new Gc(this),this.maxp=new Uu(this),this.hmtx=new KA(this),this.post=new CA(this),this.os2=new xA(this),this.loca=new Ru(this),this.glyf=new td(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]},c.prototype.registerTTF=function(){var o,l,b,I,C;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var N,$,ae,_e;for(_e=[],N=0,$=(ae=this.bbox).length;N<$;N++)o=ae[N],_e.push(Math.round(o*this.scaleFactor));return _e}.call(this),this.stemV=0,this.post.exists?(b=255&(I=this.post.italic_angle),32768&(l=I>>16)&&(l=-(1+(65535^l))),this.italicAngle=+(l+"."+b)):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=(C=this.familyClass)===1||C===2||C===3||C===4||C===5||C===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")},c.prototype.characterToGlyph=function(o){var l;return((l=this.cmap.unicode)!=null?l.codeMap[o]:void 0)||0},c.prototype.widthOfGlyph=function(o){var l;return l=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(o).advance*l},c.prototype.widthOfString=function(o,l,b){var I,C,N,$;for(N=0,C=0,$=(o=""+o).length;0<=$?C<$:C>$;C=0<=$?++C:--C)I=o.charCodeAt(C),N+=this.widthOfGlyph(this.characterToGlyph(I))+b*(1e3/l)||0;return N*(l/1e3)},c.prototype.lineHeight=function(o,l){var b;return l==null&&(l=!1),b=l?this.lineGap:0,(this.ascender+b-this.decender)/1e3*o},c}();var sl,Na=function(){function c(o){this.data=o!=null?o:[],this.pos=0,this.length=this.data.length}return c.prototype.readByte=function(){return this.data[this.pos++]},c.prototype.writeByte=function(o){return this.data[this.pos++]=o},c.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},c.prototype.writeUInt32=function(o){return this.writeByte(o>>>24&255),this.writeByte(o>>16&255),this.writeByte(o>>8&255),this.writeByte(255&o)},c.prototype.readInt32=function(){var o;return(o=this.readUInt32())>=2147483648?o-4294967296:o},c.prototype.writeInt32=function(o){return o<0&&(o+=4294967296),this.writeUInt32(o)},c.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},c.prototype.writeUInt16=function(o){return this.writeByte(o>>8&255),this.writeByte(255&o)},c.prototype.readInt16=function(){var o;return(o=this.readUInt16())>=32768?o-65536:o},c.prototype.writeInt16=function(o){return o<0&&(o+=65536),this.writeUInt16(o)},c.prototype.readString=function(o){var l,b;for(b=[],l=0;0<=o?l<o:l>o;l=0<=o?++l:--l)b[l]=String.fromCharCode(this.readByte());return b.join("")},c.prototype.writeString=function(o){var l,b,I;for(I=[],l=0,b=o.length;0<=b?l<b:l>b;l=0<=b?++l:--l)I.push(this.writeByte(o.charCodeAt(l)));return I},c.prototype.readShort=function(){return this.readInt16()},c.prototype.writeShort=function(o){return this.writeInt16(o)},c.prototype.readLongLong=function(){var o,l,b,I,C,N,$,ae;return o=this.readByte(),l=this.readByte(),b=this.readByte(),I=this.readByte(),C=this.readByte(),N=this.readByte(),$=this.readByte(),ae=this.readByte(),128&o?-1*(72057594037927940*(255^o)+281474976710656*(255^l)+1099511627776*(255^b)+4294967296*(255^I)+16777216*(255^C)+65536*(255^N)+256*(255^$)+(255^ae)+1):72057594037927940*o+281474976710656*l+1099511627776*b+4294967296*I+16777216*C+65536*N+256*$+ae},c.prototype.writeLongLong=function(o){var l,b;return l=Math.floor(o/4294967296),b=4294967295&o,this.writeByte(l>>24&255),this.writeByte(l>>16&255),this.writeByte(l>>8&255),this.writeByte(255&l),this.writeByte(b>>24&255),this.writeByte(b>>16&255),this.writeByte(b>>8&255),this.writeByte(255&b)},c.prototype.readInt=function(){return this.readInt32()},c.prototype.writeInt=function(o){return this.writeInt32(o)},c.prototype.read=function(o){var l,b;for(l=[],b=0;0<=o?b<o:b>o;b=0<=o?++b:--b)l.push(this.readByte());return l},c.prototype.write=function(o){var l,b,I,C;for(C=[],b=0,I=o.length;b<I;b++)l=o[b],C.push(this.writeByte(l));return C},c}(),po=function(){var c;function o(l){var b,I,C;for(this.scalarType=l.readInt(),this.tableCount=l.readShort(),this.searchRange=l.readShort(),this.entrySelector=l.readShort(),this.rangeShift=l.readShort(),this.tables={},I=0,C=this.tableCount;0<=C?I<C:I>C;I=0<=C?++I:--I)b={tag:l.readString(4),checksum:l.readInt(),offset:l.readInt(),length:l.readInt()},this.tables[b.tag]=b}return o.prototype.encode=function(l){var b,I,C,N,$,ae,_e,Ze,Ve,it,ye,kt,bt;for(bt in ye=Object.keys(l).length,ae=Math.log(2),Ve=16*Math.floor(Math.log(ye)/ae),N=Math.floor(Ve/ae),Ze=16*ye-Ve,(I=new Na).writeInt(this.scalarType),I.writeShort(ye),I.writeShort(Ve),I.writeShort(N),I.writeShort(Ze),C=16*ye,_e=I.pos+C,$=null,kt=[],l)for(it=l[bt],I.writeString(bt),I.writeInt(c(it)),I.writeInt(_e),I.writeInt(it.length),kt=kt.concat(it),bt==="head"&&($=_e),_e+=it.length;_e%4;)kt.push(0),_e++;return I.write(kt),b=2981146554-c(I.data),I.pos=$+8,I.writeUInt32(b),I.data},c=function(l){var b,I,C,N;for(l=ed.call(l);l.length%4;)l.push(0);for(C=new Na(l),I=0,b=0,N=l.length;b<N;b=b+=4)I+=C.readUInt32();return 4294967295&I},o}(),mo={}.hasOwnProperty,Go=function(c,o){for(var l in o)mo.call(o,l)&&(c[l]=o[l]);function b(){this.constructor=c}return b.prototype=o.prototype,c.prototype=new b,c.__super__=o.prototype,c};sl=function(){function c(o){var l;this.file=o,l=this.file.directory.tables[this.tag],this.exists=!!l,l&&(this.offset=l.offset,this.length=l.length,this.parse(this.file.contents))}return c.prototype.parse=function(){},c.prototype.encode=function(){},c.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},c}();var Ps=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="head",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.revision=l.readInt(),this.checkSumAdjustment=l.readInt(),this.magicNumber=l.readInt(),this.flags=l.readShort(),this.unitsPerEm=l.readShort(),this.created=l.readLongLong(),this.modified=l.readLongLong(),this.xMin=l.readShort(),this.yMin=l.readShort(),this.xMax=l.readShort(),this.yMax=l.readShort(),this.macStyle=l.readShort(),this.lowestRecPPEM=l.readShort(),this.fontDirectionHint=l.readShort(),this.indexToLocFormat=l.readShort(),this.glyphDataFormat=l.readShort()},o.prototype.encode=function(l){var b;return(b=new Na).writeInt(this.version),b.writeInt(this.revision),b.writeInt(this.checkSumAdjustment),b.writeInt(this.magicNumber),b.writeShort(this.flags),b.writeShort(this.unitsPerEm),b.writeLongLong(this.created),b.writeLongLong(this.modified),b.writeShort(this.xMin),b.writeShort(this.yMin),b.writeShort(this.xMax),b.writeShort(this.yMax),b.writeShort(this.macStyle),b.writeShort(this.lowestRecPPEM),b.writeShort(this.fontDirectionHint),b.writeShort(l),b.writeShort(this.glyphDataFormat),b.data},o}(),kc=function(){function c(o,l){var b,I,C,N,$,ae,_e,Ze,Ve,it,ye,kt,bt,Dt,ht,Pt,ir;switch(this.platformID=o.readUInt16(),this.encodingID=o.readShort(),this.offset=l+o.readInt(),Ve=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(ae=0;ae<256;++ae)this.codeMap[ae]=o.readByte();break;case 4:for(ye=o.readUInt16(),it=ye/2,o.pos+=6,C=function(){var xr,Hr;for(Hr=[],ae=xr=0;0<=it?xr<it:xr>it;ae=0<=it?++xr:--xr)Hr.push(o.readUInt16());return Hr}(),o.pos+=2,bt=function(){var xr,Hr;for(Hr=[],ae=xr=0;0<=it?xr<it:xr>it;ae=0<=it?++xr:--xr)Hr.push(o.readUInt16());return Hr}(),_e=function(){var xr,Hr;for(Hr=[],ae=xr=0;0<=it?xr<it:xr>it;ae=0<=it?++xr:--xr)Hr.push(o.readUInt16());return Hr}(),Ze=function(){var xr,Hr;for(Hr=[],ae=xr=0;0<=it?xr<it:xr>it;ae=0<=it?++xr:--xr)Hr.push(o.readUInt16());return Hr}(),I=(this.length-o.pos+this.offset)/2,$=function(){var xr,Hr;for(Hr=[],ae=xr=0;0<=I?xr<I:xr>I;ae=0<=I?++xr:--xr)Hr.push(o.readUInt16());return Hr}(),ae=ht=0,ir=C.length;ht<ir;ae=++ht)for(Dt=C[ae],b=Pt=kt=bt[ae];kt<=Dt?Pt<=Dt:Pt>=Dt;b=kt<=Dt?++Pt:--Pt)Ze[ae]===0?N=b+_e[ae]:(N=$[Ze[ae]/2+(b-kt)-(it-ae)]||0)!==0&&(N+=_e[ae]),this.codeMap[b]=65535&N}o.pos=Ve}return c.encode=function(o,l){var b,I,C,N,$,ae,_e,Ze,Ve,it,ye,kt,bt,Dt,ht,Pt,ir,xr,Hr,hn,Lr,Vt,Or,Jr,gt,Ct,rr,T,re,Be,Ue,Ke,Xe,ut,Et,le,Re,Ye,et,yt,_t,Mt,Rt,lr,Ar,gr;switch(T=new Na,N=Object.keys(o).sort(function(_r,dn){return _r-dn}),l){case"macroman":for(bt=0,Dt=function(){var _r=[];for(kt=0;kt<256;++kt)_r.push(0);return _r}(),Pt={0:0},C={},re=0,Xe=N.length;re<Xe;re++)Pt[Rt=o[I=N[re]]]==null&&(Pt[Rt]=++bt),C[I]={old:o[I],new:Pt[o[I]]},Dt[I]=Pt[o[I]];return T.writeUInt16(1),T.writeUInt16(0),T.writeUInt32(12),T.writeUInt16(0),T.writeUInt16(262),T.writeUInt16(0),T.write(Dt),{charMap:C,subtable:T.data,maxGlyphID:bt+1};case"unicode":for(Ct=[],Ve=[],ir=0,Pt={},b={},ht=_e=null,Be=0,ut=N.length;Be<ut;Be++)Pt[Hr=o[I=N[Be]]]==null&&(Pt[Hr]=++ir),b[I]={old:Hr,new:Pt[Hr]},$=Pt[Hr]-I,ht!=null&&$===_e||(ht&&Ve.push(ht),Ct.push(I),_e=$),ht=I;for(ht&&Ve.push(ht),Ve.push(65535),Ct.push(65535),Jr=2*(Or=Ct.length),Vt=2*Math.pow(Math.log(Or)/Math.LN2,2),it=Math.log(Vt/2)/Math.LN2,Lr=2*Or-Vt,ae=[],hn=[],ye=[],kt=Ue=0,Et=Ct.length;Ue<Et;kt=++Ue){if(gt=Ct[kt],Ze=Ve[kt],gt===65535){ae.push(0),hn.push(0);break}if(gt-(rr=b[gt].new)>=32768)for(ae.push(0),hn.push(2*(ye.length+Or-kt)),I=Ke=gt;gt<=Ze?Ke<=Ze:Ke>=Ze;I=gt<=Ze?++Ke:--Ke)ye.push(b[I].new);else ae.push(rr-gt),hn.push(0)}for(T.writeUInt16(3),T.writeUInt16(1),T.writeUInt32(12),T.writeUInt16(4),T.writeUInt16(16+8*Or+2*ye.length),T.writeUInt16(0),T.writeUInt16(Jr),T.writeUInt16(Vt),T.writeUInt16(it),T.writeUInt16(Lr),_t=0,le=Ve.length;_t<le;_t++)I=Ve[_t],T.writeUInt16(I);for(T.writeUInt16(0),Mt=0,Re=Ct.length;Mt<Re;Mt++)I=Ct[Mt],T.writeUInt16(I);for(lr=0,Ye=ae.length;lr<Ye;lr++)$=ae[lr],T.writeUInt16($);for(Ar=0,et=hn.length;Ar<et;Ar++)xr=hn[Ar],T.writeUInt16(xr);for(gr=0,yt=ye.length;gr<yt;gr++)bt=ye[gr],T.writeUInt16(bt);return{charMap:b,subtable:T.data,maxGlyphID:ir+1}}},c}(),yl=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="cmap",o.prototype.parse=function(l){var b,I,C;for(l.pos=this.offset,this.version=l.readUInt16(),C=l.readUInt16(),this.tables=[],this.unicode=null,I=0;0<=C?I<C:I>C;I=0<=C?++I:--I)b=new kc(l,this.offset),this.tables.push(b),b.isUnicode&&this.unicode==null&&(this.unicode=b);return!0},o.encode=function(l,b){var I,C;return b==null&&(b="macroman"),I=kc.encode(l,b),(C=new Na).writeUInt16(0),C.writeUInt16(1),I.table=C.data.concat(I.subtable),I},o}(),Gc=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="hhea",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.ascender=l.readShort(),this.decender=l.readShort(),this.lineGap=l.readShort(),this.advanceWidthMax=l.readShort(),this.minLeftSideBearing=l.readShort(),this.minRightSideBearing=l.readShort(),this.xMaxExtent=l.readShort(),this.caretSlopeRise=l.readShort(),this.caretSlopeRun=l.readShort(),this.caretOffset=l.readShort(),l.pos+=8,this.metricDataFormat=l.readShort(),this.numberOfMetrics=l.readUInt16()},o}(),xA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="OS/2",o.prototype.parse=function(l){if(l.pos=this.offset,this.version=l.readUInt16(),this.averageCharWidth=l.readShort(),this.weightClass=l.readUInt16(),this.widthClass=l.readUInt16(),this.type=l.readShort(),this.ySubscriptXSize=l.readShort(),this.ySubscriptYSize=l.readShort(),this.ySubscriptXOffset=l.readShort(),this.ySubscriptYOffset=l.readShort(),this.ySuperscriptXSize=l.readShort(),this.ySuperscriptYSize=l.readShort(),this.ySuperscriptXOffset=l.readShort(),this.ySuperscriptYOffset=l.readShort(),this.yStrikeoutSize=l.readShort(),this.yStrikeoutPosition=l.readShort(),this.familyClass=l.readShort(),this.panose=function(){var b,I;for(I=[],b=0;b<10;++b)I.push(l.readByte());return I}(),this.charRange=function(){var b,I;for(I=[],b=0;b<4;++b)I.push(l.readInt());return I}(),this.vendorID=l.readString(4),this.selection=l.readShort(),this.firstCharIndex=l.readShort(),this.lastCharIndex=l.readShort(),this.version>0&&(this.ascent=l.readShort(),this.descent=l.readShort(),this.lineGap=l.readShort(),this.winAscent=l.readShort(),this.winDescent=l.readShort(),this.codePageRange=function(){var b,I;for(I=[],b=0;b<2;b=++b)I.push(l.readInt());return I}(),this.version>1))return this.xHeight=l.readShort(),this.capHeight=l.readShort(),this.defaultChar=l.readShort(),this.breakChar=l.readShort(),this.maxContext=l.readShort()},o}(),CA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="post",o.prototype.parse=function(l){var b,I,C;switch(l.pos=this.offset,this.format=l.readInt(),this.italicAngle=l.readInt(),this.underlinePosition=l.readShort(),this.underlineThickness=l.readShort(),this.isFixedPitch=l.readInt(),this.minMemType42=l.readInt(),this.maxMemType42=l.readInt(),this.minMemType1=l.readInt(),this.maxMemType1=l.readInt(),this.format){case 65536:break;case 131072:var N;for(I=l.readUInt16(),this.glyphNameIndex=[],N=0;0<=I?N<I:N>I;N=0<=I?++N:--N)this.glyphNameIndex.push(l.readUInt16());for(this.names=[],C=[];l.pos<this.offset+this.length;)b=l.readByte(),C.push(this.names.push(l.readString(b)));return C;case 151552:return I=l.readUInt16(),this.offsets=l.read(I);case 196608:break;case 262144:return this.map=function(){var $,ae,_e;for(_e=[],N=$=0,ae=this.file.maxp.numGlyphs;0<=ae?$<ae:$>ae;N=0<=ae?++$:--$)_e.push(l.readUInt32());return _e}.call(this)}},o}(),pc=function(c,o){this.raw=c,this.length=c.length,this.platformID=o.platformID,this.encodingID=o.encodingID,this.languageID=o.languageID},mc=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="name",o.prototype.parse=function(l){var b,I,C,N,$,ae,_e,Ze,Ve,it,ye;for(l.pos=this.offset,l.readShort(),b=l.readShort(),ae=l.readShort(),I=[],N=0;0<=b?N<b:N>b;N=0<=b?++N:--N)I.push({platformID:l.readShort(),encodingID:l.readShort(),languageID:l.readShort(),nameID:l.readShort(),length:l.readShort(),offset:this.offset+ae+l.readShort()});for(_e={},N=Ve=0,it=I.length;Ve<it;N=++Ve)C=I[N],l.pos=C.offset,Ze=l.readString(C.length),$=new pc(Ze,C),_e[ye=C.nameID]==null&&(_e[ye]=[]),_e[C.nameID].push($);this.strings=_e,this.copyright=_e[0],this.fontFamily=_e[1],this.fontSubfamily=_e[2],this.uniqueSubfamily=_e[3],this.fontName=_e[4],this.version=_e[5];try{this.postscriptName=_e[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(kt){this.postscriptName=_e[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=_e[7],this.manufacturer=_e[8],this.designer=_e[9],this.description=_e[10],this.vendorUrl=_e[11],this.designerUrl=_e[12],this.license=_e[13],this.licenseUrl=_e[14],this.preferredFamily=_e[15],this.preferredSubfamily=_e[17],this.compatibleFull=_e[18],this.sampleText=_e[19]},o}(),Uu=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="maxp",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.numGlyphs=l.readUInt16(),this.maxPoints=l.readUInt16(),this.maxContours=l.readUInt16(),this.maxCompositePoints=l.readUInt16(),this.maxComponentContours=l.readUInt16(),this.maxZones=l.readUInt16(),this.maxTwilightPoints=l.readUInt16(),this.maxStorage=l.readUInt16(),this.maxFunctionDefs=l.readUInt16(),this.maxInstructionDefs=l.readUInt16(),this.maxStackElements=l.readUInt16(),this.maxSizeOfInstructions=l.readUInt16(),this.maxComponentElements=l.readUInt16(),this.maxComponentDepth=l.readUInt16()},o}(),KA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="hmtx",o.prototype.parse=function(l){var b,I,C,N,$,ae,_e;for(l.pos=this.offset,this.metrics=[],b=0,ae=this.file.hhea.numberOfMetrics;0<=ae?b<ae:b>ae;b=0<=ae?++b:--b)this.metrics.push({advance:l.readUInt16(),lsb:l.readInt16()});for(C=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Ze,Ve;for(Ve=[],b=Ze=0;0<=C?Ze<C:Ze>C;b=0<=C?++Ze:--Ze)Ve.push(l.readInt16());return Ve}(),this.widths=function(){var Ze,Ve,it,ye;for(ye=[],Ze=0,Ve=(it=this.metrics).length;Ze<Ve;Ze++)N=it[Ze],ye.push(N.advance);return ye}.call(this),I=this.widths[this.widths.length-1],_e=[],b=$=0;0<=C?$<C:$>C;b=0<=C?++$:--$)_e.push(this.widths.push(I));return _e},o.prototype.forGlyph=function(l){return l in this.metrics?this.metrics[l]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[l-this.metrics.length]}},o}(),ed=[].slice,td=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="glyf",o.prototype.parse=function(){return this.cache={}},o.prototype.glyphFor=function(l){var b,I,C,N,$,ae,_e,Ze,Ve,it;return l in this.cache?this.cache[l]:(N=this.file.loca,b=this.file.contents,I=N.indexOf(l),(C=N.lengthOf(l))===0?this.cache[l]=null:(b.pos=this.offset+I,$=(ae=new Na(b.read(C))).readShort(),Ze=ae.readShort(),it=ae.readShort(),_e=ae.readShort(),Ve=ae.readShort(),this.cache[l]=$===-1?new vd(ae,Ze,it,_e,Ve):new lu(ae,$,Ze,it,_e,Ve),this.cache[l]))},o.prototype.encode=function(l,b,I){var C,N,$,ae,_e;for($=[],N=[],ae=0,_e=b.length;ae<_e;ae++)C=l[b[ae]],N.push($.length),C&&($=$.concat(C.encode(I)));return N.push($.length),{table:$,offsets:N}},o}(),lu=function(){function c(o,l,b,I,C,N){this.raw=o,this.numberOfContours=l,this.xMin=b,this.yMin=I,this.xMax=C,this.yMax=N,this.compound=!1}return c.prototype.encode=function(){return this.raw.data},c}(),vd=function(){function c(o,l,b,I,C){var N,$;for(this.raw=o,this.xMin=l,this.yMin=b,this.xMax=I,this.yMax=C,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],N=this.raw;$=N.readShort(),this.glyphOffsets.push(N.pos),this.glyphIDs.push(N.readUInt16()),32&$;)N.pos+=1&$?4:2,128&$?N.pos+=8:64&$?N.pos+=4:8&$&&(N.pos+=2)}return c.prototype.encode=function(){var o,l,b;for(l=new Na(ed.call(this.raw.data)),o=0,b=this.glyphIDs.length;o<b;++o)l.pos=this.glyphOffsets[o];return l.data},c}(),Ru=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="loca",o.prototype.parse=function(l){var b,I;return l.pos=this.offset,b=this.file.head.indexToLocFormat,this.offsets=b===0?function(){var C,N;for(N=[],I=0,C=this.length;I<C;I+=2)N.push(2*l.readUInt16());return N}.call(this):function(){var C,N;for(N=[],I=0,C=this.length;I<C;I+=4)N.push(l.readUInt32());return N}.call(this)},o.prototype.indexOf=function(l){return this.offsets[l]},o.prototype.lengthOf=function(l){return this.offsets[l+1]-this.offsets[l]},o.prototype.encode=function(l,b){for(var I=new Uint32Array(this.offsets.length),C=0,N=0,$=0;$<I.length;++$)if(I[$]=C,N<b.length&&b[N]==$){++N,I[$]=C;var ae=this.offsets[$],_e=this.offsets[$+1]-ae;_e>0&&(C+=_e)}for(var Ze=new Array(4*I.length),Ve=0;Ve<I.length;++Ve)Ze[4*Ve+3]=255&I[Ve],Ze[4*Ve+2]=(65280&I[Ve])>>8,Ze[4*Ve+1]=(16711680&I[Ve])>>16,Ze[4*Ve]=(4278190080&I[Ve])>>24;return Ze},o}(),cu=function(){function c(o){this.font=o,this.subset={},this.unicodes={},this.next=33}return c.prototype.generateCmap=function(){var o,l,b,I,C;for(l in I=this.font.cmap.tables[0].codeMap,o={},C=this.subset)b=C[l],o[l]=I[b];return o},c.prototype.glyphsFor=function(o){var l,b,I,C,N,$,ae;for(I={},N=0,$=o.length;N<$;N++)I[C=o[N]]=this.font.glyf.glyphFor(C);for(C in l=[],I)(b=I[C])!=null&&b.compound&&l.push.apply(l,b.glyphIDs);if(l.length>0)for(C in ae=this.glyphsFor(l))b=ae[C],I[C]=b;return I},c.prototype.encode=function(o,l){var b,I,C,N,$,ae,_e,Ze,Ve,it,ye,kt,bt,Dt,ht;for(I in b=yl.encode(this.generateCmap(),"unicode"),N=this.glyphsFor(o),ye={0:0},ht=b.charMap)ye[(ae=ht[I]).old]=ae.new;for(kt in it=b.maxGlyphID,N)kt in ye||(ye[kt]=it++);return Ze=function(Pt){var ir,xr;for(ir in xr={},Pt)xr[Pt[ir]]=ir;return xr}(ye),Ve=Object.keys(Ze).sort(function(Pt,ir){return Pt-ir}),bt=function(){var Pt,ir,xr;for(xr=[],Pt=0,ir=Ve.length;Pt<ir;Pt++)$=Ve[Pt],xr.push(Ze[$]);return xr}(),C=this.font.glyf.encode(N,bt,ye),_e=this.font.loca.encode(C.offsets,bt),Dt={cmap:this.font.cmap.raw(),glyf:C.table,loca:_e,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(l)},this.font.os2.exists&&(Dt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Dt)},c}();Ai.API.PDFObject=function(){var c;function o(){}return c=function(l,b){return(Array(b+1).join("0")+l).slice(-b)},o.convert=function(l){var b,I,C,N;if(Array.isArray(l))return"["+function(){var $,ae,_e;for(_e=[],$=0,ae=l.length;$<ae;$++)b=l[$],_e.push(o.convert(b));return _e}().join(" ")+"]";if(typeof l=="string")return"/"+l;if(l!=null&&l.isString)return"("+l+")";if(l instanceof Date)return"(D:"+c(l.getUTCFullYear(),4)+c(l.getUTCMonth(),2)+c(l.getUTCDate(),2)+c(l.getUTCHours(),2)+c(l.getUTCMinutes(),2)+c(l.getUTCSeconds(),2)+"Z)";if({}.toString.call(l)==="[object Object]"){for(I in C=["<<"],l)N=l[I],C.push("/"+I+" "+o.convert(N));return C.push(">>"),C.join(`
`)}return""+l},o}()},86129:function(xn,Jt,w){var pe=w(19208).lW,ue=w(97671);(function(U){xn.exports=U()})(function(){return function U(Ne,te,Z){function B(p,j){if(!te[p]){if(!Ne[p]){var S=void 0;if(!j&&S)return require(p,!0);if(h)return h(p,!0);var F=new Error("Cannot find module '"+p+"'");throw F.code="MODULE_NOT_FOUND",F}var P=te[p]={exports:{}};Ne[p][0].call(P.exports,function(R){var M=Ne[p][1][R];return B(M||R)},P,P.exports,U,Ne,te,Z)}return te[p].exports}for(var h=void 0,E=0;E<Z.length;E++)B(Z[E]);return B}({1:[function(U,Ne,te){"use strict";var Z=U("./utils"),B=U("./support"),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";te.encode=function(E){for(var p,j,S,F,P,R,M,Y=[],Q=0,ce=E.length,W=ce,J=Z.getTypeOf(E)!=="string";Q<E.length;)W=ce-Q,S=J?(p=E[Q++],j=Q<ce?E[Q++]:0,Q<ce?E[Q++]:0):(p=E.charCodeAt(Q++),j=Q<ce?E.charCodeAt(Q++):0,Q<ce?E.charCodeAt(Q++):0),F=p>>2,P=(3&p)<<4|j>>4,R=1<W?(15&j)<<2|S>>6:64,M=2<W?63&S:64,Y.push(h.charAt(F)+h.charAt(P)+h.charAt(R)+h.charAt(M));return Y.join("")},te.decode=function(E){var p,j,S,F,P,R,M=0,Y=0,Q="data:";if(E.substr(0,Q.length)===Q)throw new Error("Invalid base64 input, it looks like a data url.");var ce,W=3*(E=E.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(E.charAt(E.length-1)===h.charAt(64)&&W--,E.charAt(E.length-2)===h.charAt(64)&&W--,W%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ce=B.uint8array?new Uint8Array(0|W):new Array(0|W);M<E.length;)p=h.indexOf(E.charAt(M++))<<2|(F=h.indexOf(E.charAt(M++)))>>4,j=(15&F)<<4|(P=h.indexOf(E.charAt(M++)))>>2,S=(3&P)<<6|(R=h.indexOf(E.charAt(M++))),ce[Y++]=p,P!==64&&(ce[Y++]=j),R!==64&&(ce[Y++]=S);return ce}},{"./support":30,"./utils":32}],2:[function(U,Ne,te){"use strict";var Z=U("./external"),B=U("./stream/DataWorker"),h=U("./stream/Crc32Probe"),E=U("./stream/DataLengthProbe");function p(j,S,F,P,R){this.compressedSize=j,this.uncompressedSize=S,this.crc32=F,this.compression=P,this.compressedContent=R}p.prototype={getContentWorker:function(){var j=new B(Z.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new E("data_length")),S=this;return j.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),j},getCompressedWorker:function(){return new B(Z.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(j,S,F){return j.pipe(new h).pipe(new E("uncompressedSize")).pipe(S.compressWorker(F)).pipe(new E("compressedSize")).withStreamInfo("compression",S)},Ne.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(U,Ne,te){"use strict";var Z=U("./stream/GenericWorker");te.STORE={magic:"\0\0",compressWorker:function(){return new Z("STORE compression")},uncompressWorker:function(){return new Z("STORE decompression")}},te.DEFLATE=U("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(U,Ne,te){"use strict";var Z=U("./utils"),B=function(){for(var h,E=[],p=0;p<256;p++){h=p;for(var j=0;j<8;j++)h=1&h?3988292384^h>>>1:h>>>1;E[p]=h}return E}();Ne.exports=function(h,E){return h!==void 0&&h.length?Z.getTypeOf(h)!=="string"?function(p,j,S,F){var P=B,R=F+S;p^=-1;for(var M=F;M<R;M++)p=p>>>8^P[255&(p^j[M])];return-1^p}(0|E,h,h.length,0):function(p,j,S,F){var P=B,R=F+S;p^=-1;for(var M=F;M<R;M++)p=p>>>8^P[255&(p^j.charCodeAt(M))];return-1^p}(0|E,h,h.length,0):0}},{"./utils":32}],5:[function(U,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(U,Ne,te){"use strict";var Z=null;Z=typeof Promise!="undefined"?Promise:U("lie"),Ne.exports={Promise:Z}},{lie:37}],7:[function(U,Ne,te){"use strict";var Z=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",B=U("pako"),h=U("./utils"),E=U("./stream/GenericWorker"),p=Z?"uint8array":"array";function j(S,F){E.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=F,this.meta={}}te.magic="\b\0",h.inherits(j,E),j.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(p,S.data),!1)},j.prototype.flush=function(){E.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},j.prototype.cleanUp=function(){E.prototype.cleanUp.call(this),this._pako=null},j.prototype._createPako=function(){this._pako=new B[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(F){S.push({data:F,meta:S.meta})}},te.compressWorker=function(S){return new j("Deflate",S)},te.uncompressWorker=function(){return new j("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(U,Ne,te){"use strict";function Z(P,R){var M,Y="";for(M=0;M<R;M++)Y+=String.fromCharCode(255&P),P>>>=8;return Y}function B(P,R,M,Y,Q,ce){var W,J,V=P.file,K=P.compression,se=ce!==p.utf8encode,he=h.transformTo("string",ce(V.name)),Te=h.transformTo("string",p.utf8encode(V.name)),xe=V.comment,je=h.transformTo("string",ce(xe)),X=h.transformTo("string",p.utf8encode(xe)),de=Te.length!==V.name.length,k=X.length!==xe.length,rt="",Oe="",be="",He=V.dir,ge=V.date,De={crc32:0,compressedSize:0,uncompressedSize:0};R&&!M||(De.crc32=P.crc32,De.compressedSize=P.compressedSize,De.uncompressedSize=P.uncompressedSize);var fe=0;R&&(fe|=8),se||!de&&!k||(fe|=2048);var Se=0,ct=0;He&&(Se|=16),Q==="UNIX"?(ct=798,Se|=function(at,st){var It=at;return at||(It=st?16893:33204),(65535&It)<<16}(V.unixPermissions,He)):(ct=20,Se|=function(at){return 63&(at||0)}(V.dosPermissions)),W=ge.getUTCHours(),W<<=6,W|=ge.getUTCMinutes(),W<<=5,W|=ge.getUTCSeconds()/2,J=ge.getUTCFullYear()-1980,J<<=4,J|=ge.getUTCMonth()+1,J<<=5,J|=ge.getUTCDate(),de&&(Oe=Z(1,1)+Z(j(he),4)+Te,rt+="up"+Z(Oe.length,2)+Oe),k&&(be=Z(1,1)+Z(j(je),4)+X,rt+="uc"+Z(be.length,2)+be);var dt="";return dt+=`
\0`,dt+=Z(fe,2),dt+=K.magic,dt+=Z(W,2),dt+=Z(J,2),dt+=Z(De.crc32,4),dt+=Z(De.compressedSize,4),dt+=Z(De.uncompressedSize,4),dt+=Z(he.length,2),dt+=Z(rt.length,2),{fileRecord:S.LOCAL_FILE_HEADER+dt+he+rt,dirRecord:S.CENTRAL_FILE_HEADER+Z(ct,2)+dt+Z(je.length,2)+"\0\0\0\0"+Z(Se,4)+Z(Y,4)+he+rt+je}}var h=U("../utils"),E=U("../stream/GenericWorker"),p=U("../utf8"),j=U("../crc32"),S=U("../signature");function F(P,R,M,Y){E.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=R,this.zipPlatform=M,this.encodeFileName=Y,this.streamFiles=P,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}h.inherits(F,E),F.prototype.push=function(P){var R=P.meta.percent||0,M=this.entriesCount,Y=this._sources.length;this.accumulate?this.contentBuffer.push(P):(this.bytesWritten+=P.data.length,E.prototype.push.call(this,{data:P.data,meta:{currentFile:this.currentFile,percent:M?(R+100*(M-Y-1))/M:100}}))},F.prototype.openedSource=function(P){this.currentSourceOffset=this.bytesWritten,this.currentFile=P.file.name;var R=this.streamFiles&&!P.file.dir;if(R){var M=B(P,R,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:M.fileRecord,meta:{percent:0}})}else this.accumulate=!0},F.prototype.closedSource=function(P){this.accumulate=!1;var R=this.streamFiles&&!P.file.dir,M=B(P,R,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(M.dirRecord),R)this.push({data:function(Y){return S.DATA_DESCRIPTOR+Z(Y.crc32,4)+Z(Y.compressedSize,4)+Z(Y.uncompressedSize,4)}(P),meta:{percent:100}});else for(this.push({data:M.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},F.prototype.flush=function(){for(var P=this.bytesWritten,R=0;R<this.dirRecords.length;R++)this.push({data:this.dirRecords[R],meta:{percent:100}});var M=this.bytesWritten-P,Y=function(Q,ce,W,J,V){var K=h.transformTo("string",V(J));return S.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Z(Q,2)+Z(Q,2)+Z(ce,4)+Z(W,4)+Z(K.length,2)+K}(this.dirRecords.length,M,P,this.zipComment,this.encodeFileName);this.push({data:Y,meta:{percent:100}})},F.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},F.prototype.registerPrevious=function(P){this._sources.push(P);var R=this;return P.on("data",function(M){R.processChunk(M)}),P.on("end",function(){R.closedSource(R.previous.streamInfo),R._sources.length?R.prepareNextSource():R.end()}),P.on("error",function(M){R.error(M)}),this},F.prototype.resume=function(){return!!E.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},F.prototype.error=function(P){var R=this._sources;if(!E.prototype.error.call(this,P))return!1;for(var M=0;M<R.length;M++)try{R[M].error(P)}catch(Y){}return!0},F.prototype.lock=function(){E.prototype.lock.call(this);for(var P=this._sources,R=0;R<P.length;R++)P[R].lock()},Ne.exports=F},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(U,Ne,te){"use strict";var Z=U("../compressions"),B=U("./ZipFileWorker");te.generateWorker=function(h,E,p){var j=new B(E.streamFiles,p,E.platform,E.encodeFileName),S=0;try{h.forEach(function(F,P){S++;var R=function(ce,W){var J=ce||W,V=Z[J];if(!V)throw new Error(J+" is not a valid compression method !");return V}(P.options.compression,E.compression),M=P.options.compressionOptions||E.compressionOptions||{},Y=P.dir,Q=P.date;P._compressWorker(R,M).withStreamInfo("file",{name:F,dir:Y,date:Q,comment:P.comment||"",unixPermissions:P.unixPermissions,dosPermissions:P.dosPermissions}).pipe(j)}),j.entriesCount=S}catch(F){j.error(F)}return j}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(U,Ne,te){"use strict";function Z(){if(!(this instanceof Z))return new Z;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 B=new Z;for(var h in this)typeof this[h]!="function"&&(B[h]=this[h]);return B}}(Z.prototype=U("./object")).loadAsync=U("./load"),Z.support=U("./support"),Z.defaults=U("./defaults"),Z.version="3.10.1",Z.loadAsync=function(B,h){return new Z().loadAsync(B,h)},Z.external=U("./external"),Ne.exports=Z},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(U,Ne,te){"use strict";var Z=U("./utils"),B=U("./external"),h=U("./utf8"),E=U("./zipEntries"),p=U("./stream/Crc32Probe"),j=U("./nodejsUtils");function S(F){return new B.Promise(function(P,R){var M=F.decompressed.getContentWorker().pipe(new p);M.on("error",function(Y){R(Y)}).on("end",function(){M.streamInfo.crc32!==F.decompressed.crc32?R(new Error("Corrupted zip : CRC32 mismatch")):P()}).resume()})}Ne.exports=function(F,P){var R=this;return P=Z.extend(P||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:h.utf8decode}),j.isNode&&j.isStream(F)?B.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Z.prepareContent("the loaded zip file",F,!0,P.optimizedBinaryString,P.base64).then(function(M){var Y=new E(P);return Y.load(M),Y}).then(function(M){var Y=[B.Promise.resolve(M)],Q=M.files;if(P.checkCRC32)for(var ce=0;ce<Q.length;ce++)Y.push(S(Q[ce]));return B.Promise.all(Y)}).then(function(M){for(var Y=M.shift(),Q=Y.files,ce=0;ce<Q.length;ce++){var W=Q[ce],J=W.fileNameStr,V=Z.resolve(W.fileNameStr);R.file(V,W.decompressed,{binary:!0,optimizedBinaryString:!0,date:W.date,dir:W.dir,comment:W.fileCommentStr.length?W.fileCommentStr:null,unixPermissions:W.unixPermissions,dosPermissions:W.dosPermissions,createFolders:P.createFolders}),W.dir||(R.file(V).unsafeOriginalName=J)}return Y.zipComment.length&&(R.comment=Y.zipComment),R})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(U,Ne,te){"use strict";var Z=U("../utils"),B=U("../stream/GenericWorker");function h(E,p){B.call(this,"Nodejs stream input adapter for "+E),this._upstreamEnded=!1,this._bindStream(p)}Z.inherits(h,B),h.prototype._bindStream=function(E){var p=this;(this._stream=E).pause(),E.on("data",function(j){p.push({data:j,meta:{percent:0}})}).on("error",function(j){p.isPaused?this.generatedError=j:p.error(j)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.end()})},h.prototype.pause=function(){return!!B.prototype.pause.call(this)&&(this._stream.pause(),!0)},h.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Ne.exports=h},{"../stream/GenericWorker":28,"../utils":32}],13:[function(U,Ne,te){"use strict";var Z=U("readable-stream").Readable;function B(h,E,p){Z.call(this,E),this._helper=h;var j=this;h.on("data",function(S,F){j.push(S)||j._helper.pause(),p&&p(F)}).on("error",function(S){j.emit("error",S)}).on("end",function(){j.push(null)})}U("../utils").inherits(B,Z),B.prototype._read=function(){this._helper.resume()},Ne.exports=B},{"../utils":32,"readable-stream":16}],14:[function(U,Ne,te){"use strict";Ne.exports={isNode:typeof pe!="undefined",newBufferFrom:function(Z,B){if(pe.from&&pe.from!==Uint8Array.from)return pe.from(Z,B);if(typeof Z=="number")throw new Error('The "data" argument must not be a number');return new pe(Z,B)},allocBuffer:function(Z){if(pe.alloc)return pe.alloc(Z);var B=new pe(Z);return B.fill(0),B},isBuffer:function(Z){return pe.isBuffer(Z)},isStream:function(Z){return Z&&typeof Z.on=="function"&&typeof Z.pause=="function"&&typeof Z.resume=="function"}}},{}],15:[function(U,Ne,te){"use strict";function Z(V,K,se){var he,Te=h.getTypeOf(K),xe=h.extend(se||{},j);xe.date=xe.date||new Date,xe.compression!==null&&(xe.compression=xe.compression.toUpperCase()),typeof xe.unixPermissions=="string"&&(xe.unixPermissions=parseInt(xe.unixPermissions,8)),xe.unixPermissions&&16384&xe.unixPermissions&&(xe.dir=!0),xe.dosPermissions&&16&xe.dosPermissions&&(xe.dir=!0),xe.dir&&(V=Q(V)),xe.createFolders&&(he=Y(V))&&ce.call(this,he,!0);var je=Te==="string"&&xe.binary===!1&&xe.base64===!1;se&&se.binary!==void 0||(xe.binary=!je),(K instanceof S&&K.uncompressedSize===0||xe.dir||!K||K.length===0)&&(xe.base64=!1,xe.binary=!0,K="",xe.compression="STORE",Te="string");var X=null;X=K instanceof S||K instanceof E?K:R.isNode&&R.isStream(K)?new M(V,K):h.prepareContent(V,K,xe.binary,xe.optimizedBinaryString,xe.base64);var de=new F(V,X,xe);this.files[V]=de}var B=U("./utf8"),h=U("./utils"),E=U("./stream/GenericWorker"),p=U("./stream/StreamHelper"),j=U("./defaults"),S=U("./compressedObject"),F=U("./zipObject"),P=U("./generate"),R=U("./nodejsUtils"),M=U("./nodejs/NodejsStreamInputAdapter"),Y=function(V){V.slice(-1)==="/"&&(V=V.substring(0,V.length-1));var K=V.lastIndexOf("/");return 0<K?V.substring(0,K):""},Q=function(V){return V.slice(-1)!=="/"&&(V+="/"),V},ce=function(V,K){return K=K!==void 0?K:j.createFolders,V=Q(V),this.files[V]||Z.call(this,V,null,{dir:!0,createFolders:K}),this.files[V]};function W(V){return Object.prototype.toString.call(V)==="[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(V){var K,se,he;for(K in this.files)he=this.files[K],(se=K.slice(this.root.length,K.length))&&K.slice(0,this.root.length)===this.root&&V(se,he)},filter:function(V){var K=[];return this.forEach(function(se,he){V(se,he)&&K.push(he)}),K},file:function(V,K,se){if(arguments.length!==1)return V=this.root+V,Z.call(this,V,K,se),this;if(W(V)){var he=V;return this.filter(function(xe,je){return!je.dir&&he.test(xe)})}var Te=this.files[this.root+V];return Te&&!Te.dir?Te:null},folder:function(V){if(!V)return this;if(W(V))return this.filter(function(Te,xe){return xe.dir&&V.test(Te)});var K=this.root+V,se=ce.call(this,K),he=this.clone();return he.root=se.name,he},remove:function(V){V=this.root+V;var K=this.files[V];if(K||(V.slice(-1)!=="/"&&(V+="/"),K=this.files[V]),K&&!K.dir)delete this.files[V];else for(var se=this.filter(function(Te,xe){return xe.name.slice(0,V.length)===V}),he=0;he<se.length;he++)delete this.files[se[he].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(V){var K,se={};try{if((se=h.extend(V||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:B.utf8encode})).type=se.type.toLowerCase(),se.compression=se.compression.toUpperCase(),se.type==="binarystring"&&(se.type="string"),!se.type)throw new Error("No output type specified.");h.checkSupport(se.type),se.platform!=="darwin"&&se.platform!=="freebsd"&&se.platform!=="linux"&&se.platform!=="sunos"||(se.platform="UNIX"),se.platform==="win32"&&(se.platform="DOS");var he=se.comment||this.comment||"";K=P.generateWorker(this,se,he)}catch(Te){(K=new E("error")).error(Te)}return new p(K,se.type||"string",se.mimeType)},generateAsync:function(V,K){return this.generateInternalStream(V).accumulate(K)},generateNodeStream:function(V,K){return(V=V||{}).type||(V.type="nodebuffer"),this.generateInternalStream(V).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(U,Ne,te){"use strict";Ne.exports=U("stream")},{stream:void 0}],17:[function(U,Ne,te){"use strict";var Z=U("./DataReader");function B(h){Z.call(this,h);for(var E=0;E<this.data.length;E++)h[E]=255&h[E]}U("../utils").inherits(B,Z),B.prototype.byteAt=function(h){return this.data[this.zero+h]},B.prototype.lastIndexOfSignature=function(h){for(var E=h.charCodeAt(0),p=h.charCodeAt(1),j=h.charCodeAt(2),S=h.charCodeAt(3),F=this.length-4;0<=F;--F)if(this.data[F]===E&&this.data[F+1]===p&&this.data[F+2]===j&&this.data[F+3]===S)return F-this.zero;return-1},B.prototype.readAndCheckSignature=function(h){var E=h.charCodeAt(0),p=h.charCodeAt(1),j=h.charCodeAt(2),S=h.charCodeAt(3),F=this.readData(4);return E===F[0]&&p===F[1]&&j===F[2]&&S===F[3]},B.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var E=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,E},Ne.exports=B},{"../utils":32,"./DataReader":18}],18:[function(U,Ne,te){"use strict";var Z=U("../utils");function B(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}B.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(){},readInt:function(h){var E,p=0;for(this.checkOffset(h),E=this.index+h-1;E>=this.index;E--)p=(p<<8)+this.byteAt(E);return this.index+=h,p},readString:function(h){return Z.transformTo("string",this.readData(h))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC(1980+(h>>25&127),(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(31&h)<<1))}},Ne.exports=B},{"../utils":32}],19:[function(U,Ne,te){"use strict";var Z=U("./Uint8ArrayReader");function B(h){Z.call(this,h)}U("../utils").inherits(B,Z),B.prototype.readData=function(h){this.checkOffset(h);var E=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,E},Ne.exports=B},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(U,Ne,te){"use strict";var Z=U("./DataReader");function B(h){Z.call(this,h)}U("../utils").inherits(B,Z),B.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},B.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},B.prototype.readAndCheckSignature=function(h){return h===this.readData(4)},B.prototype.readData=function(h){this.checkOffset(h);var E=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,E},Ne.exports=B},{"../utils":32,"./DataReader":18}],21:[function(U,Ne,te){"use strict";var Z=U("./ArrayReader");function B(h){Z.call(this,h)}U("../utils").inherits(B,Z),B.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var E=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,E},Ne.exports=B},{"../utils":32,"./ArrayReader":17}],22:[function(U,Ne,te){"use strict";var Z=U("../utils"),B=U("../support"),h=U("./ArrayReader"),E=U("./StringReader"),p=U("./NodeBufferReader"),j=U("./Uint8ArrayReader");Ne.exports=function(S){var F=Z.getTypeOf(S);return Z.checkSupport(F),F!=="string"||B.uint8array?F==="nodebuffer"?new p(S):B.uint8array?new j(Z.transformTo("uint8array",S)):new h(Z.transformTo("array",S)):new E(S)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(U,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(U,Ne,te){"use strict";var Z=U("./GenericWorker"),B=U("../utils");function h(E){Z.call(this,"ConvertWorker to "+E),this.destType=E}B.inherits(h,Z),h.prototype.processChunk=function(E){this.push({data:B.transformTo(this.destType,E.data),meta:E.meta})},Ne.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(U,Ne,te){"use strict";var Z=U("./GenericWorker"),B=U("../crc32");function h(){Z.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}U("../utils").inherits(h,Z),h.prototype.processChunk=function(E){this.streamInfo.crc32=B(E.data,this.streamInfo.crc32||0),this.push(E)},Ne.exports=h},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(U,Ne,te){"use strict";var Z=U("../utils"),B=U("./GenericWorker");function h(E){B.call(this,"DataLengthProbe for "+E),this.propName=E,this.withStreamInfo(E,0)}Z.inherits(h,B),h.prototype.processChunk=function(E){if(E){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+E.data.length}B.prototype.processChunk.call(this,E)},Ne.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(U,Ne,te){"use strict";var Z=U("../utils"),B=U("./GenericWorker");function h(E){B.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,E.then(function(j){p.dataIsReady=!0,p.data=j,p.max=j&&j.length||0,p.type=Z.getTypeOf(j),p.isPaused||p._tickAndRepeat()},function(j){p.error(j)})}Z.inherits(h,B),h.prototype.cleanUp=function(){B.prototype.cleanUp.call(this),this.data=null},h.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Z.delay(this._tickAndRepeat,[],this)),!0)},h.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Z.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},h.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var E=null,p=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":E=this.data.substring(this.index,p);break;case"uint8array":E=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":E=this.data.slice(this.index,p)}return this.index=p,this.push({data:E,meta:{percent:this.max?this.index/this.max*100:0}})},Ne.exports=h},{"../utils":32,"./GenericWorker":28}],28:[function(U,Ne,te){"use strict";function Z(B){this.name=B||"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}Z.prototype={push:function(B){this.emit("data",B)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(B){this.emit("error",B)}return!0},error:function(B){return!this.isFinished&&(this.isPaused?this.generatedError=B:(this.isFinished=!0,this.emit("error",B),this.previous&&this.previous.error(B),this.cleanUp()),!0)},on:function(B,h){return this._listeners[B].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(B,h){if(this._listeners[B])for(var E=0;E<this._listeners[B].length;E++)this._listeners[B][E].call(this,h)},pipe:function(B){return B.registerPrevious(this)},registerPrevious:function(B){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=B.streamInfo,this.mergeStreamInfo(),this.previous=B;var h=this;return B.on("data",function(E){h.processChunk(E)}),B.on("end",function(){h.end()}),B.on("error",function(E){h.error(E)}),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 B=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),B=!0),this.previous&&this.previous.resume(),!B},flush:function(){},processChunk:function(B){this.push(B)},withStreamInfo:function(B,h){return this.extraStreamInfo[B]=h,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var B in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,B)&&(this.streamInfo[B]=this.extraStreamInfo[B])},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 B="Worker "+this.name;return this.previous?this.previous+" -> "+B:B}},Ne.exports=Z},{}],29:[function(U,Ne,te){"use strict";var Z=U("../utils"),B=U("./ConvertWorker"),h=U("./GenericWorker"),E=U("../base64"),p=U("../support"),j=U("../external"),S=null;if(p.nodestream)try{S=U("../nodejs/NodejsStreamOutputAdapter")}catch(R){}function F(R,M){return new j.Promise(function(Y,Q){var ce=[],W=R._internalType,J=R._outputType,V=R._mimeType;R.on("data",function(K,se){ce.push(K),M&&M(se)}).on("error",function(K){ce=[],Q(K)}).on("end",function(){try{var K=function(se,he,Te){switch(se){case"blob":return Z.newBlob(Z.transformTo("arraybuffer",he),Te);case"base64":return E.encode(he);default:return Z.transformTo(se,he)}}(J,function(se,he){var Te,xe=0,je=null,X=0;for(Te=0;Te<he.length;Te++)X+=he[Te].length;switch(se){case"string":return he.join("");case"array":return Array.prototype.concat.apply([],he);case"uint8array":for(je=new Uint8Array(X),Te=0;Te<he.length;Te++)je.set(he[Te],xe),xe+=he[Te].length;return je;case"nodebuffer":return pe.concat(he);default:throw new Error("concat : unsupported type '"+se+"'")}}(W,ce),V);Y(K)}catch(se){Q(se)}ce=[]}).resume()})}function P(R,M,Y){var Q=M;switch(M){case"blob":case"arraybuffer":Q="uint8array";break;case"base64":Q="string"}try{this._internalType=Q,this._outputType=M,this._mimeType=Y,Z.checkSupport(Q),this._worker=R.pipe(new B(Q)),R.lock()}catch(ce){this._worker=new h("error"),this._worker.error(ce)}}P.prototype={accumulate:function(R){return F(this,R)},on:function(R,M){var Y=this;return R==="data"?this._worker.on(R,function(Q){M.call(Y,Q.data,Q.meta)}):this._worker.on(R,function(){Z.delay(M,arguments,Y)}),this},resume:function(){return Z.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(R){if(Z.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},R)}},Ne.exports=P},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(U,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 Z=new ArrayBuffer(0);try{te.blob=new Blob([Z],{type:"application/zip"}).size===0}catch(h){try{var B=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);B.append(Z),te.blob=B.getBlob("application/zip").size===0}catch(E){te.blob=!1}}}try{te.nodestream=!!U("readable-stream").Readable}catch(h){te.nodestream=!1}},{"readable-stream":16}],31:[function(U,Ne,te){"use strict";for(var Z=U("./utils"),B=U("./support"),h=U("./nodejsUtils"),E=U("./stream/GenericWorker"),p=new Array(256),j=0;j<256;j++)p[j]=252<=j?6:248<=j?5:240<=j?4:224<=j?3:192<=j?2:1;p[254]=p[254]=1;function S(){E.call(this,"utf-8 decode"),this.leftOver=null}function F(){E.call(this,"utf-8 encode")}te.utf8encode=function(P){return B.nodebuffer?h.newBufferFrom(P,"utf-8"):function(R){var M,Y,Q,ce,W,J=R.length,V=0;for(ce=0;ce<J;ce++)(64512&(Y=R.charCodeAt(ce)))==55296&&ce+1<J&&(64512&(Q=R.charCodeAt(ce+1)))==56320&&(Y=65536+(Y-55296<<10)+(Q-56320),ce++),V+=Y<128?1:Y<2048?2:Y<65536?3:4;for(M=B.uint8array?new Uint8Array(V):new Array(V),ce=W=0;W<V;ce++)(64512&(Y=R.charCodeAt(ce)))==55296&&ce+1<J&&(64512&(Q=R.charCodeAt(ce+1)))==56320&&(Y=65536+(Y-55296<<10)+(Q-56320),ce++),Y<128?M[W++]=Y:(Y<2048?M[W++]=192|Y>>>6:(Y<65536?M[W++]=224|Y>>>12:(M[W++]=240|Y>>>18,M[W++]=128|Y>>>12&63),M[W++]=128|Y>>>6&63),M[W++]=128|63&Y);return M}(P)},te.utf8decode=function(P){return B.nodebuffer?Z.transformTo("nodebuffer",P).toString("utf-8"):function(R){var M,Y,Q,ce,W=R.length,J=new Array(2*W);for(M=Y=0;M<W;)if((Q=R[M++])<128)J[Y++]=Q;else if(4<(ce=p[Q]))J[Y++]=65533,M+=ce-1;else{for(Q&=ce===2?31:ce===3?15:7;1<ce&&M<W;)Q=Q<<6|63&R[M++],ce--;1<ce?J[Y++]=65533:Q<65536?J[Y++]=Q:(Q-=65536,J[Y++]=55296|Q>>10&1023,J[Y++]=56320|1023&Q)}return J.length!==Y&&(J.subarray?J=J.subarray(0,Y):J.length=Y),Z.applyFromCharCode(J)}(P=Z.transformTo(B.uint8array?"uint8array":"array",P))},Z.inherits(S,E),S.prototype.processChunk=function(P){var R=Z.transformTo(B.uint8array?"uint8array":"array",P.data);if(this.leftOver&&this.leftOver.length){if(B.uint8array){var M=R;(R=new Uint8Array(M.length+this.leftOver.length)).set(this.leftOver,0),R.set(M,this.leftOver.length)}else R=this.leftOver.concat(R);this.leftOver=null}var Y=function(ce,W){var J;for((W=W||ce.length)>ce.length&&(W=ce.length),J=W-1;0<=J&&(192&ce[J])==128;)J--;return J<0||J===0?W:J+p[ce[J]]>W?J:W}(R),Q=R;Y!==R.length&&(B.uint8array?(Q=R.subarray(0,Y),this.leftOver=R.subarray(Y,R.length)):(Q=R.slice(0,Y),this.leftOver=R.slice(Y,R.length))),this.push({data:te.utf8decode(Q),meta:P.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:te.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},te.Utf8DecodeWorker=S,Z.inherits(F,E),F.prototype.processChunk=function(P){this.push({data:te.utf8encode(P.data),meta:P.meta})},te.Utf8EncodeWorker=F},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(U,Ne,te){"use strict";var Z=U("./support"),B=U("./base64"),h=U("./nodejsUtils"),E=U("./external");function p(M){return M}function j(M,Y){for(var Q=0;Q<M.length;++Q)Y[Q]=255&M.charCodeAt(Q);return Y}U("setimmediate"),te.newBlob=function(M,Y){te.checkSupport("blob");try{return new Blob([M],{type:Y})}catch(ce){try{var Q=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return Q.append(M),Q.getBlob(Y)}catch(W){throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(M,Y,Q){var ce=[],W=0,J=M.length;if(J<=Q)return String.fromCharCode.apply(null,M);for(;W<J;)Y==="array"||Y==="nodebuffer"?ce.push(String.fromCharCode.apply(null,M.slice(W,Math.min(W+Q,J)))):ce.push(String.fromCharCode.apply(null,M.subarray(W,Math.min(W+Q,J)))),W+=Q;return ce.join("")},stringifyByChar:function(M){for(var Y="",Q=0;Q<M.length;Q++)Y+=String.fromCharCode(M[Q]);return Y},applyCanBeUsed:{uint8array:function(){try{return Z.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(M){return!1}}(),nodebuffer:function(){try{return Z.nodebuffer&&String.fromCharCode.apply(null,h.allocBuffer(1)).length===1}catch(M){return!1}}()}};function F(M){var Y=65536,Q=te.getTypeOf(M),ce=!0;if(Q==="uint8array"?ce=S.applyCanBeUsed.uint8array:Q==="nodebuffer"&&(ce=S.applyCanBeUsed.nodebuffer),ce)for(;1<Y;)try{return S.stringifyByChunk(M,Q,Y)}catch(W){Y=Math.floor(Y/2)}return S.stringifyByChar(M)}function P(M,Y){for(var Q=0;Q<M.length;Q++)Y[Q]=M[Q];return Y}te.applyFromCharCode=F;var R={};R.string={string:p,array:function(M){return j(M,new Array(M.length))},arraybuffer:function(M){return R.string.uint8array(M).buffer},uint8array:function(M){return j(M,new Uint8Array(M.length))},nodebuffer:function(M){return j(M,h.allocBuffer(M.length))}},R.array={string:F,array:p,arraybuffer:function(M){return new Uint8Array(M).buffer},uint8array:function(M){return new Uint8Array(M)},nodebuffer:function(M){return h.newBufferFrom(M)}},R.arraybuffer={string:function(M){return F(new Uint8Array(M))},array:function(M){return P(new Uint8Array(M),new Array(M.byteLength))},arraybuffer:p,uint8array:function(M){return new Uint8Array(M)},nodebuffer:function(M){return h.newBufferFrom(new Uint8Array(M))}},R.uint8array={string:F,array:function(M){return P(M,new Array(M.length))},arraybuffer:function(M){return M.buffer},uint8array:p,nodebuffer:function(M){return h.newBufferFrom(M)}},R.nodebuffer={string:F,array:function(M){return P(M,new Array(M.length))},arraybuffer:function(M){return R.nodebuffer.uint8array(M).buffer},uint8array:function(M){return P(M,new Uint8Array(M.length))},nodebuffer:p},te.transformTo=function(M,Y){if(Y=Y||"",!M)return Y;te.checkSupport(M);var Q=te.getTypeOf(Y);return R[Q][M](Y)},te.resolve=function(M){for(var Y=M.split("/"),Q=[],ce=0;ce<Y.length;ce++){var W=Y[ce];W==="."||W===""&&ce!==0&&ce!==Y.length-1||(W===".."?Q.pop():Q.push(W))}return Q.join("/")},te.getTypeOf=function(M){return typeof M=="string"?"string":Object.prototype.toString.call(M)==="[object Array]"?"array":Z.nodebuffer&&h.isBuffer(M)?"nodebuffer":Z.uint8array&&M instanceof Uint8Array?"uint8array":Z.arraybuffer&&M instanceof ArrayBuffer?"arraybuffer":void 0},te.checkSupport=function(M){if(!Z[M.toLowerCase()])throw new Error(M+" is not supported by this platform")},te.MAX_VALUE_16BITS=65535,te.MAX_VALUE_32BITS=-1,te.pretty=function(M){var Y,Q,ce="";for(Q=0;Q<(M||"").length;Q++)ce+="\\x"+((Y=M.charCodeAt(Q))<16?"0":"")+Y.toString(16).toUpperCase();return ce},te.delay=function(M,Y,Q){setImmediate(function(){M.apply(Q||null,Y||[])})},te.inherits=function(M,Y){function Q(){}Q.prototype=Y.prototype,M.prototype=new Q},te.extend=function(){var M,Y,Q={};for(M=0;M<arguments.length;M++)for(Y in arguments[M])Object.prototype.hasOwnProperty.call(arguments[M],Y)&&Q[Y]===void 0&&(Q[Y]=arguments[M][Y]);return Q},te.prepareContent=function(M,Y,Q,ce,W){return E.Promise.resolve(Y).then(function(J){return Z.blob&&(J instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(J))!==-1)&&typeof FileReader!="undefined"?new E.Promise(function(V,K){var se=new FileReader;se.onload=function(he){V(he.target.result)},se.onerror=function(he){K(he.target.error)},se.readAsArrayBuffer(J)}):J}).then(function(J){var V=te.getTypeOf(J);return V?(V==="arraybuffer"?J=te.transformTo("uint8array",J):V==="string"&&(W?J=B.decode(J):Q&&ce!==!0&&(J=function(K){return j(K,Z.uint8array?new Uint8Array(K.length):new Array(K.length))}(J))),J):E.Promise.reject(new Error("Can't read the data of '"+M+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(U,Ne,te){"use strict";var Z=U("./reader/readerFor"),B=U("./utils"),h=U("./signature"),E=U("./zipEntry"),p=U("./support");function j(S){this.files=[],this.loadOptions=S}j.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var F=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+B.pretty(F)+", expected "+B.pretty(S)+")")}},isSignature:function(S,F){var P=this.reader.index;this.reader.setIndex(S);var R=this.reader.readString(4)===F;return this.reader.setIndex(P),R},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var S=this.reader.readData(this.zipCommentLength),F=p.uint8array?"uint8array":"array",P=B.transformTo(F,S);this.zipComment=this.loadOptions.decodeFileName(P)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var S,F,P,R=this.zip64EndOfCentralSize-44;0<R;)S=this.reader.readInt(2),F=this.reader.readInt(4),P=this.reader.readData(F),this.zip64ExtensibleData[S]={id:S,length:F,value:P}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var S,F;for(S=0;S<this.files.length;S++)F=this.files[S],this.reader.setIndex(F.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),F.readLocalPart(this.reader),F.handleUTF8(),F.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(h.CENTRAL_FILE_HEADER);)(S=new E({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);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 S=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,h.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(S);var F=S;if(this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===B.MAX_VALUE_16BITS||this.diskWithCentralDirStart===B.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===B.MAX_VALUE_16BITS||this.centralDirRecords===B.MAX_VALUE_16BITS||this.centralDirSize===B.MAX_VALUE_32BITS||this.centralDirOffset===B.MAX_VALUE_32BITS){if(this.zip64=!0,(S=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,h.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(h.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(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var P=this.centralDirOffset+this.centralDirSize;this.zip64&&(P+=20,P+=12+this.zip64EndOfCentralSize);var R=F-P;if(0<R)this.isSignature(F,h.CENTRAL_FILE_HEADER)||(this.reader.zero=R);else if(R<0)throw new Error("Corrupted zip: missing "+Math.abs(R)+" bytes.")},prepareReader:function(S){this.reader=Z(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Ne.exports=j},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(U,Ne,te){"use strict";var Z=U("./reader/readerFor"),B=U("./utils"),h=U("./compressedObject"),E=U("./crc32"),p=U("./utf8"),j=U("./compressions"),S=U("./support");function F(P,R){this.options=P,this.loadOptions=R}F.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(P){var R,M;if(P.skip(22),this.fileNameLength=P.readInt(2),M=P.readInt(2),this.fileName=P.readData(this.fileNameLength),P.skip(M),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((R=function(Y){for(var Q in j)if(Object.prototype.hasOwnProperty.call(j,Q)&&j[Q].magic===Y)return j[Q];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+B.pretty(this.compressionMethod)+" unknown (inner file : "+B.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,R,P.readData(this.compressedSize))},readCentralPart:function(P){this.versionMadeBy=P.readInt(2),P.skip(2),this.bitFlag=P.readInt(2),this.compressionMethod=P.readString(2),this.date=P.readDate(),this.crc32=P.readInt(4),this.compressedSize=P.readInt(4),this.uncompressedSize=P.readInt(4);var R=P.readInt(2);if(this.extraFieldsLength=P.readInt(2),this.fileCommentLength=P.readInt(2),this.diskNumberStart=P.readInt(2),this.internalFileAttributes=P.readInt(2),this.externalFileAttributes=P.readInt(4),this.localHeaderOffset=P.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");P.skip(R),this.readExtraFields(P),this.parseZIP64ExtraField(P),this.fileComment=P.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var P=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),P==0&&(this.dosPermissions=63&this.externalFileAttributes),P==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var P=Z(this.extraFields[1].value);this.uncompressedSize===B.MAX_VALUE_32BITS&&(this.uncompressedSize=P.readInt(8)),this.compressedSize===B.MAX_VALUE_32BITS&&(this.compressedSize=P.readInt(8)),this.localHeaderOffset===B.MAX_VALUE_32BITS&&(this.localHeaderOffset=P.readInt(8)),this.diskNumberStart===B.MAX_VALUE_32BITS&&(this.diskNumberStart=P.readInt(4))}},readExtraFields:function(P){var R,M,Y,Q=P.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});P.index+4<Q;)R=P.readInt(2),M=P.readInt(2),Y=P.readData(M),this.extraFields[R]={id:R,length:M,value:Y};P.setIndex(Q)},handleUTF8:function(){var P=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var R=this.findExtraFieldUnicodePath();if(R!==null)this.fileNameStr=R;else{var M=B.transformTo(P,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(M)}var Y=this.findExtraFieldUnicodeComment();if(Y!==null)this.fileCommentStr=Y;else{var Q=B.transformTo(P,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Q)}}},findExtraFieldUnicodePath:function(){var P=this.extraFields[28789];if(P){var R=Z(P.value);return R.readInt(1)!==1||E(this.fileName)!==R.readInt(4)?null:p.utf8decode(R.readData(P.length-5))}return null},findExtraFieldUnicodeComment:function(){var P=this.extraFields[25461];if(P){var R=Z(P.value);return R.readInt(1)!==1||E(this.fileComment)!==R.readInt(4)?null:p.utf8decode(R.readData(P.length-5))}return null}},Ne.exports=F},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(U,Ne,te){"use strict";function Z(R,M,Y){this.name=R,this.dir=Y.dir,this.date=Y.date,this.comment=Y.comment,this.unixPermissions=Y.unixPermissions,this.dosPermissions=Y.dosPermissions,this._data=M,this._dataBinary=Y.binary,this.options={compression:Y.compression,compressionOptions:Y.compressionOptions}}var B=U("./stream/StreamHelper"),h=U("./stream/DataWorker"),E=U("./utf8"),p=U("./compressedObject"),j=U("./stream/GenericWorker");Z.prototype={internalStream:function(R){var M=null,Y="string";try{if(!R)throw new Error("No output type specified.");var Q=(Y=R.toLowerCase())==="string"||Y==="text";Y!=="binarystring"&&Y!=="text"||(Y="string"),M=this._decompressWorker();var ce=!this._dataBinary;ce&&!Q&&(M=M.pipe(new E.Utf8EncodeWorker)),!ce&&Q&&(M=M.pipe(new E.Utf8DecodeWorker))}catch(W){(M=new j("error")).error(W)}return new B(M,Y,"")},async:function(R,M){return this.internalStream(R).accumulate(M)},nodeStream:function(R,M){return this.internalStream(R||"nodebuffer").toNodejsStream(M)},_compressWorker:function(R,M){if(this._data instanceof p&&this._data.compression.magic===R.magic)return this._data.getCompressedWorker();var Y=this._decompressWorker();return this._dataBinary||(Y=Y.pipe(new E.Utf8EncodeWorker)),p.createWorkerFrom(Y,R,M)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof j?this._data:new h(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],F=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},P=0;P<S.length;P++)Z.prototype[S[P]]=F;Ne.exports=Z},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(U,Ne,te){(function(Z){"use strict";var B,h,E=Z.MutationObserver||Z.WebKitMutationObserver;if(E){var p=0,j=new E(R),S=Z.document.createTextNode("");j.observe(S,{characterData:!0}),B=function(){S.data=p=++p%2}}else if(Z.setImmediate||Z.MessageChannel===void 0)B="document"in Z&&"onreadystatechange"in Z.document.createElement("script")?function(){var M=Z.document.createElement("script");M.onreadystatechange=function(){R(),M.onreadystatechange=null,M.parentNode.removeChild(M),M=null},Z.document.documentElement.appendChild(M)}:function(){setTimeout(R,0)};else{var F=new Z.MessageChannel;F.port1.onmessage=R,B=function(){F.port2.postMessage(0)}}var P=[];function R(){var M,Y;h=!0;for(var Q=P.length;Q;){for(Y=P,P=[],M=-1;++M<Q;)Y[M]();Q=P.length}h=!1}Ne.exports=function(M){P.push(M)!==1||h||B()}}).call(this,typeof w.g!="undefined"?w.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(U,Ne,te){"use strict";var Z=U("immediate");function B(){}var h={},E=["REJECTED"],p=["FULFILLED"],j=["PENDING"];function S(Q){if(typeof Q!="function")throw new TypeError("resolver must be a function");this.state=j,this.queue=[],this.outcome=void 0,Q!==B&&M(this,Q)}function F(Q,ce,W){this.promise=Q,typeof ce=="function"&&(this.onFulfilled=ce,this.callFulfilled=this.otherCallFulfilled),typeof W=="function"&&(this.onRejected=W,this.callRejected=this.otherCallRejected)}function P(Q,ce,W){Z(function(){var J;try{J=ce(W)}catch(V){return h.reject(Q,V)}J===Q?h.reject(Q,new TypeError("Cannot resolve promise with itself")):h.resolve(Q,J)})}function R(Q){var ce=Q&&Q.then;if(Q&&(typeof Q=="object"||typeof Q=="function")&&typeof ce=="function")return function(){ce.apply(Q,arguments)}}function M(Q,ce){var W=!1;function J(se){W||(W=!0,h.reject(Q,se))}function V(se){W||(W=!0,h.resolve(Q,se))}var K=Y(function(){ce(V,J)});K.status==="error"&&J(K.value)}function Y(Q,ce){var W={};try{W.value=Q(ce),W.status="success"}catch(J){W.status="error",W.value=J}return W}(Ne.exports=S).prototype.finally=function(Q){if(typeof Q!="function")return this;var ce=this.constructor;return this.then(function(W){return ce.resolve(Q()).then(function(){return W})},function(W){return ce.resolve(Q()).then(function(){throw W})})},S.prototype.catch=function(Q){return this.then(null,Q)},S.prototype.then=function(Q,ce){if(typeof Q!="function"&&this.state===p||typeof ce!="function"&&this.state===E)return this;var W=new this.constructor(B);return this.state!==j?P(W,this.state===p?Q:ce,this.outcome):this.queue.push(new F(W,Q,ce)),W},F.prototype.callFulfilled=function(Q){h.resolve(this.promise,Q)},F.prototype.otherCallFulfilled=function(Q){P(this.promise,this.onFulfilled,Q)},F.prototype.callRejected=function(Q){h.reject(this.promise,Q)},F.prototype.otherCallRejected=function(Q){P(this.promise,this.onRejected,Q)},h.resolve=function(Q,ce){var W=Y(R,ce);if(W.status==="error")return h.reject(Q,W.value);var J=W.value;if(J)M(Q,J);else{Q.state=p,Q.outcome=ce;for(var V=-1,K=Q.queue.length;++V<K;)Q.queue[V].callFulfilled(ce)}return Q},h.reject=function(Q,ce){Q.state=E,Q.outcome=ce;for(var W=-1,J=Q.queue.length;++W<J;)Q.queue[W].callRejected(ce);return Q},S.resolve=function(Q){return Q instanceof this?Q:h.resolve(new this(B),Q)},S.reject=function(Q){var ce=new this(B);return h.reject(ce,Q)},S.all=function(Q){var ce=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var W=Q.length,J=!1;if(!W)return this.resolve([]);for(var V=new Array(W),K=0,se=-1,he=new this(B);++se<W;)Te(Q[se],se);return he;function Te(xe,je){ce.resolve(xe).then(function(X){V[je]=X,++K!==W||J||(J=!0,h.resolve(he,V))},function(X){J||(J=!0,h.reject(he,X))})}},S.race=function(Q){var ce=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var W=Q.length,J=!1;if(!W)return this.resolve([]);for(var V=-1,K=new this(B);++V<W;)se=Q[V],ce.resolve(se).then(function(he){J||(J=!0,h.resolve(K,he))},function(he){J||(J=!0,h.reject(K,he))});var se;return K}},{immediate:36}],38:[function(U,Ne,te){"use strict";var Z={};(0,U("./lib/utils/common").assign)(Z,U("./lib/deflate"),U("./lib/inflate"),U("./lib/zlib/constants")),Ne.exports=Z},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(U,Ne,te){"use strict";var Z=U("./zlib/deflate"),B=U("./utils/common"),h=U("./utils/strings"),E=U("./zlib/messages"),p=U("./zlib/zstream"),j=Object.prototype.toString,S=0,F=-1,P=0,R=8;function M(Q){if(!(this instanceof M))return new M(Q);this.options=B.assign({level:F,method:R,chunkSize:16384,windowBits:15,memLevel:8,strategy:P,to:""},Q||{});var ce=this.options;ce.raw&&0<ce.windowBits?ce.windowBits=-ce.windowBits:ce.gzip&&0<ce.windowBits&&ce.windowBits<16&&(ce.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var W=Z.deflateInit2(this.strm,ce.level,ce.method,ce.windowBits,ce.memLevel,ce.strategy);if(W!==S)throw new Error(E[W]);if(ce.header&&Z.deflateSetHeader(this.strm,ce.header),ce.dictionary){var J;if(J=typeof ce.dictionary=="string"?h.string2buf(ce.dictionary):j.call(ce.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ce.dictionary):ce.dictionary,(W=Z.deflateSetDictionary(this.strm,J))!==S)throw new Error(E[W]);this._dict_set=!0}}function Y(Q,ce){var W=new M(ce);if(W.push(Q,!0),W.err)throw W.msg||E[W.err];return W.result}M.prototype.push=function(Q,ce){var W,J,V=this.strm,K=this.options.chunkSize;if(this.ended)return!1;J=ce===~~ce?ce:ce===!0?4:0,typeof Q=="string"?V.input=h.string2buf(Q):j.call(Q)==="[object ArrayBuffer]"?V.input=new Uint8Array(Q):V.input=Q,V.next_in=0,V.avail_in=V.input.length;do{if(V.avail_out===0&&(V.output=new B.Buf8(K),V.next_out=0,V.avail_out=K),(W=Z.deflate(V,J))!==1&&W!==S)return this.onEnd(W),!(this.ended=!0);V.avail_out!==0&&(V.avail_in!==0||J!==4&&J!==2)||(this.options.to==="string"?this.onData(h.buf2binstring(B.shrinkBuf(V.output,V.next_out))):this.onData(B.shrinkBuf(V.output,V.next_out)))}while((0<V.avail_in||V.avail_out===0)&&W!==1);return J===4?(W=Z.deflateEnd(this.strm),this.onEnd(W),this.ended=!0,W===S):J!==2||(this.onEnd(S),!(V.avail_out=0))},M.prototype.onData=function(Q){this.chunks.push(Q)},M.prototype.onEnd=function(Q){Q===S&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=B.flattenChunks(this.chunks)),this.chunks=[],this.err=Q,this.msg=this.strm.msg},te.Deflate=M,te.deflate=Y,te.deflateRaw=function(Q,ce){return(ce=ce||{}).raw=!0,Y(Q,ce)},te.gzip=function(Q,ce){return(ce=ce||{}).gzip=!0,Y(Q,ce)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(U,Ne,te){"use strict";var Z=U("./zlib/inflate"),B=U("./utils/common"),h=U("./utils/strings"),E=U("./zlib/constants"),p=U("./zlib/messages"),j=U("./zlib/zstream"),S=U("./zlib/gzheader"),F=Object.prototype.toString;function P(M){if(!(this instanceof P))return new P(M);this.options=B.assign({chunkSize:16384,windowBits:0,to:""},M||{});var Y=this.options;Y.raw&&0<=Y.windowBits&&Y.windowBits<16&&(Y.windowBits=-Y.windowBits,Y.windowBits===0&&(Y.windowBits=-15)),!(0<=Y.windowBits&&Y.windowBits<16)||M&&M.windowBits||(Y.windowBits+=32),15<Y.windowBits&&Y.windowBits<48&&!(15&Y.windowBits)&&(Y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new j,this.strm.avail_out=0;var Q=Z.inflateInit2(this.strm,Y.windowBits);if(Q!==E.Z_OK)throw new Error(p[Q]);this.header=new S,Z.inflateGetHeader(this.strm,this.header)}function R(M,Y){var Q=new P(Y);if(Q.push(M,!0),Q.err)throw Q.msg||p[Q.err];return Q.result}P.prototype.push=function(M,Y){var Q,ce,W,J,V,K,se=this.strm,he=this.options.chunkSize,Te=this.options.dictionary,xe=!1;if(this.ended)return!1;ce=Y===~~Y?Y:Y===!0?E.Z_FINISH:E.Z_NO_FLUSH,typeof M=="string"?se.input=h.binstring2buf(M):F.call(M)==="[object ArrayBuffer]"?se.input=new Uint8Array(M):se.input=M,se.next_in=0,se.avail_in=se.input.length;do{if(se.avail_out===0&&(se.output=new B.Buf8(he),se.next_out=0,se.avail_out=he),(Q=Z.inflate(se,E.Z_NO_FLUSH))===E.Z_NEED_DICT&&Te&&(K=typeof Te=="string"?h.string2buf(Te):F.call(Te)==="[object ArrayBuffer]"?new Uint8Array(Te):Te,Q=Z.inflateSetDictionary(this.strm,K)),Q===E.Z_BUF_ERROR&&xe===!0&&(Q=E.Z_OK,xe=!1),Q!==E.Z_STREAM_END&&Q!==E.Z_OK)return this.onEnd(Q),!(this.ended=!0);se.next_out&&(se.avail_out!==0&&Q!==E.Z_STREAM_END&&(se.avail_in!==0||ce!==E.Z_FINISH&&ce!==E.Z_SYNC_FLUSH)||(this.options.to==="string"?(W=h.utf8border(se.output,se.next_out),J=se.next_out-W,V=h.buf2string(se.output,W),se.next_out=J,se.avail_out=he-J,J&&B.arraySet(se.output,se.output,W,J,0),this.onData(V)):this.onData(B.shrinkBuf(se.output,se.next_out)))),se.avail_in===0&&se.avail_out===0&&(xe=!0)}while((0<se.avail_in||se.avail_out===0)&&Q!==E.Z_STREAM_END);return Q===E.Z_STREAM_END&&(ce=E.Z_FINISH),ce===E.Z_FINISH?(Q=Z.inflateEnd(this.strm),this.onEnd(Q),this.ended=!0,Q===E.Z_OK):ce!==E.Z_SYNC_FLUSH||(this.onEnd(E.Z_OK),!(se.avail_out=0))},P.prototype.onData=function(M){this.chunks.push(M)},P.prototype.onEnd=function(M){M===E.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=B.flattenChunks(this.chunks)),this.chunks=[],this.err=M,this.msg=this.strm.msg},te.Inflate=P,te.inflate=R,te.inflateRaw=function(M,Y){return(Y=Y||{}).raw=!0,R(M,Y)},te.ungzip=R},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(U,Ne,te){"use strict";var Z=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";te.assign=function(E){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var j=p.shift();if(j){if(typeof j!="object")throw new TypeError(j+"must be non-object");for(var S in j)j.hasOwnProperty(S)&&(E[S]=j[S])}}return E},te.shrinkBuf=function(E,p){return E.length===p?E:E.subarray?E.subarray(0,p):(E.length=p,E)};var B={arraySet:function(E,p,j,S,F){if(p.subarray&&E.subarray)E.set(p.subarray(j,j+S),F);else for(var P=0;P<S;P++)E[F+P]=p[j+P]},flattenChunks:function(E){var p,j,S,F,P,R;for(p=S=0,j=E.length;p<j;p++)S+=E[p].length;for(R=new Uint8Array(S),p=F=0,j=E.length;p<j;p++)P=E[p],R.set(P,F),F+=P.length;return R}},h={arraySet:function(E,p,j,S,F){for(var P=0;P<S;P++)E[F+P]=p[j+P]},flattenChunks:function(E){return[].concat.apply([],E)}};te.setTyped=function(E){E?(te.Buf8=Uint8Array,te.Buf16=Uint16Array,te.Buf32=Int32Array,te.assign(te,B)):(te.Buf8=Array,te.Buf16=Array,te.Buf32=Array,te.assign(te,h))},te.setTyped(Z)},{}],42:[function(U,Ne,te){"use strict";var Z=U("./common"),B=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch(S){B=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(S){h=!1}for(var E=new Z.Buf8(256),p=0;p<256;p++)E[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function j(S,F){if(F<65537&&(S.subarray&&h||!S.subarray&&B))return String.fromCharCode.apply(null,Z.shrinkBuf(S,F));for(var P="",R=0;R<F;R++)P+=String.fromCharCode(S[R]);return P}E[254]=E[254]=1,te.string2buf=function(S){var F,P,R,M,Y,Q=S.length,ce=0;for(M=0;M<Q;M++)(64512&(P=S.charCodeAt(M)))==55296&&M+1<Q&&(64512&(R=S.charCodeAt(M+1)))==56320&&(P=65536+(P-55296<<10)+(R-56320),M++),ce+=P<128?1:P<2048?2:P<65536?3:4;for(F=new Z.Buf8(ce),M=Y=0;Y<ce;M++)(64512&(P=S.charCodeAt(M)))==55296&&M+1<Q&&(64512&(R=S.charCodeAt(M+1)))==56320&&(P=65536+(P-55296<<10)+(R-56320),M++),P<128?F[Y++]=P:(P<2048?F[Y++]=192|P>>>6:(P<65536?F[Y++]=224|P>>>12:(F[Y++]=240|P>>>18,F[Y++]=128|P>>>12&63),F[Y++]=128|P>>>6&63),F[Y++]=128|63&P);return F},te.buf2binstring=function(S){return j(S,S.length)},te.binstring2buf=function(S){for(var F=new Z.Buf8(S.length),P=0,R=F.length;P<R;P++)F[P]=S.charCodeAt(P);return F},te.buf2string=function(S,F){var P,R,M,Y,Q=F||S.length,ce=new Array(2*Q);for(P=R=0;P<Q;)if((M=S[P++])<128)ce[R++]=M;else if(4<(Y=E[M]))ce[R++]=65533,P+=Y-1;else{for(M&=Y===2?31:Y===3?15:7;1<Y&&P<Q;)M=M<<6|63&S[P++],Y--;1<Y?ce[R++]=65533:M<65536?ce[R++]=M:(M-=65536,ce[R++]=55296|M>>10&1023,ce[R++]=56320|1023&M)}return j(ce,R)},te.utf8border=function(S,F){var P;for((F=F||S.length)>S.length&&(F=S.length),P=F-1;0<=P&&(192&S[P])==128;)P--;return P<0||P===0?F:P+E[S[P]]>F?P:F}},{"./common":41}],43:[function(U,Ne,te){"use strict";Ne.exports=function(Z,B,h,E){for(var p=65535&Z|0,j=Z>>>16&65535|0,S=0;h!==0;){for(h-=S=2e3<h?2e3:h;j=j+(p=p+B[E++]|0)|0,--S;);p%=65521,j%=65521}return p|j<<16|0}},{}],44:[function(U,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(U,Ne,te){"use strict";var Z=function(){for(var B,h=[],E=0;E<256;E++){B=E;for(var p=0;p<8;p++)B=1&B?3988292384^B>>>1:B>>>1;h[E]=B}return h}();Ne.exports=function(B,h,E,p){var j=Z,S=p+E;B^=-1;for(var F=p;F<S;F++)B=B>>>8^j[255&(B^h[F])];return-1^B}},{}],46:[function(U,Ne,te){"use strict";var Z,B=U("../utils/common"),h=U("./trees"),E=U("./adler32"),p=U("./crc32"),j=U("./messages"),S=0,F=4,P=0,R=-2,M=-1,Y=4,Q=2,ce=8,W=9,J=286,V=30,K=19,se=2*J+1,he=15,Te=3,xe=258,je=xe+Te+1,X=42,de=113,k=1,rt=2,Oe=3,be=4;function He(G,wt){return G.msg=j[wt],wt}function ge(G){return(G<<1)-(4<G?9:0)}function De(G){for(var wt=G.length;0<=--wt;)G[wt]=0}function fe(G){var wt=G.state,_=wt.pending;_>G.avail_out&&(_=G.avail_out),_!==0&&(B.arraySet(G.output,wt.pending_buf,wt.pending_out,_,G.next_out),G.next_out+=_,wt.pending_out+=_,G.total_out+=_,G.avail_out-=_,wt.pending-=_,wt.pending===0&&(wt.pending_out=0))}function Se(G,wt){h._tr_flush_block(G,0<=G.block_start?G.block_start:-1,G.strstart-G.block_start,wt),G.block_start=G.strstart,fe(G.strm)}function ct(G,wt){G.pending_buf[G.pending++]=wt}function dt(G,wt){G.pending_buf[G.pending++]=wt>>>8&255,G.pending_buf[G.pending++]=255&wt}function at(G,wt){var _,f,u=G.max_chain_length,x=G.strstart,ee=G.prev_length,Ce=G.nice_match,H=G.strstart>G.w_size-je?G.strstart-(G.w_size-je):0,ne=G.window,$e=G.w_mask,we=G.prev,ve=G.strstart+xe,qe=ne[x+ee-1],St=ne[x+ee];G.prev_length>=G.good_match&&(u>>=2),Ce>G.lookahead&&(Ce=G.lookahead);do if(ne[(_=wt)+ee]===St&&ne[_+ee-1]===qe&&ne[_]===ne[x]&&ne[++_]===ne[x+1]){x+=2,_++;do;while(ne[++x]===ne[++_]&&ne[++x]===ne[++_]&&ne[++x]===ne[++_]&&ne[++x]===ne[++_]&&ne[++x]===ne[++_]&&ne[++x]===ne[++_]&&ne[++x]===ne[++_]&&ne[++x]===ne[++_]&&x<ve);if(f=xe-(ve-x),x=ve-xe,ee<f){if(G.match_start=wt,Ce<=(ee=f))break;qe=ne[x+ee-1],St=ne[x+ee]}}while((wt=we[wt&$e])>H&&--u!=0);return ee<=G.lookahead?ee:G.lookahead}function st(G){var wt,_,f,u,x,ee,Ce,H,ne,$e,we=G.w_size;do{if(u=G.window_size-G.lookahead-G.strstart,G.strstart>=we+(we-je)){for(B.arraySet(G.window,G.window,we,we,0),G.match_start-=we,G.strstart-=we,G.block_start-=we,wt=_=G.hash_size;f=G.head[--wt],G.head[wt]=we<=f?f-we:0,--_;);for(wt=_=we;f=G.prev[--wt],G.prev[wt]=we<=f?f-we:0,--_;);u+=we}if(G.strm.avail_in===0)break;if(ee=G.strm,Ce=G.window,H=G.strstart+G.lookahead,ne=u,$e=void 0,$e=ee.avail_in,ne<$e&&($e=ne),_=$e===0?0:(ee.avail_in-=$e,B.arraySet(Ce,ee.input,ee.next_in,$e,H),ee.state.wrap===1?ee.adler=E(ee.adler,Ce,$e,H):ee.state.wrap===2&&(ee.adler=p(ee.adler,Ce,$e,H)),ee.next_in+=$e,ee.total_in+=$e,$e),G.lookahead+=_,G.lookahead+G.insert>=Te)for(x=G.strstart-G.insert,G.ins_h=G.window[x],G.ins_h=(G.ins_h<<G.hash_shift^G.window[x+1])&G.hash_mask;G.insert&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[x+Te-1])&G.hash_mask,G.prev[x&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=x,x++,G.insert--,!(G.lookahead+G.insert<Te)););}while(G.lookahead<je&&G.strm.avail_in!==0)}function It(G,wt){for(var _,f;;){if(G.lookahead<je){if(st(G),G.lookahead<je&&wt===S)return k;if(G.lookahead===0)break}if(_=0,G.lookahead>=Te&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Te-1])&G.hash_mask,_=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),_!==0&&G.strstart-_<=G.w_size-je&&(G.match_length=at(G,_)),G.match_length>=Te)if(f=h._tr_tally(G,G.strstart-G.match_start,G.match_length-Te),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=Te){for(G.match_length--;G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Te-1])&G.hash_mask,_=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 f=h._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(f&&(Se(G,!1),G.strm.avail_out===0))return k}return G.insert=G.strstart<Te-1?G.strstart:Te-1,wt===F?(Se(G,!0),G.strm.avail_out===0?Oe:be):G.last_lit&&(Se(G,!1),G.strm.avail_out===0)?k:rt}function Ut(G,wt){for(var _,f,u;;){if(G.lookahead<je){if(st(G),G.lookahead<je&&wt===S)return k;if(G.lookahead===0)break}if(_=0,G.lookahead>=Te&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Te-1])&G.hash_mask,_=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=Te-1,_!==0&&G.prev_length<G.max_lazy_match&&G.strstart-_<=G.w_size-je&&(G.match_length=at(G,_),G.match_length<=5&&(G.strategy===1||G.match_length===Te&&4096<G.strstart-G.match_start)&&(G.match_length=Te-1)),G.prev_length>=Te&&G.match_length<=G.prev_length){for(u=G.strstart+G.lookahead-Te,f=h._tr_tally(G,G.strstart-1-G.prev_match,G.prev_length-Te),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+Te-1])&G.hash_mask,_=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=Te-1,G.strstart++,f&&(Se(G,!1),G.strm.avail_out===0))return k}else if(G.match_available){if((f=h._tr_tally(G,0,G.window[G.strstart-1]))&&Se(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return k}else G.match_available=1,G.strstart++,G.lookahead--}return G.match_available&&(f=h._tr_tally(G,0,G.window[G.strstart-1]),G.match_available=0),G.insert=G.strstart<Te-1?G.strstart:Te-1,wt===F?(Se(G,!0),G.strm.avail_out===0?Oe:be):G.last_lit&&(Se(G,!1),G.strm.avail_out===0)?k:rt}function Kt(G,wt,_,f,u){this.good_length=G,this.max_lazy=wt,this.nice_length=_,this.max_chain=f,this.func=u}function hr(){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=ce,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 B.Buf16(2*se),this.dyn_dtree=new B.Buf16(2*(2*V+1)),this.bl_tree=new B.Buf16(2*(2*K+1)),De(this.dyn_ltree),De(this.dyn_dtree),De(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new B.Buf16(he+1),this.heap=new B.Buf16(2*J+1),De(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new B.Buf16(2*J+1),De(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function or(G){var wt;return G&&G.state?(G.total_in=G.total_out=0,G.data_type=Q,(wt=G.state).pending=0,wt.pending_out=0,wt.wrap<0&&(wt.wrap=-wt.wrap),wt.status=wt.wrap?X:de,G.adler=wt.wrap===2?0:1,wt.last_flush=S,h._tr_init(wt),P):He(G,R)}function Sr(G){var wt=or(G);return wt===P&&function(_){_.window_size=2*_.w_size,De(_.head),_.max_lazy_match=Z[_.level].max_lazy,_.good_match=Z[_.level].good_length,_.nice_match=Z[_.level].nice_length,_.max_chain_length=Z[_.level].max_chain,_.strstart=0,_.block_start=0,_.lookahead=0,_.insert=0,_.match_length=_.prev_length=Te-1,_.match_available=0,_.ins_h=0}(G.state),wt}function ur(G,wt,_,f,u,x){if(!G)return R;var ee=1;if(wt===M&&(wt=6),f<0?(ee=0,f=-f):15<f&&(ee=2,f-=16),u<1||W<u||_!==ce||f<8||15<f||wt<0||9<wt||x<0||Y<x)return He(G,R);f===8&&(f=9);var Ce=new hr;return(G.state=Ce).strm=G,Ce.wrap=ee,Ce.gzhead=null,Ce.w_bits=f,Ce.w_size=1<<Ce.w_bits,Ce.w_mask=Ce.w_size-1,Ce.hash_bits=u+7,Ce.hash_size=1<<Ce.hash_bits,Ce.hash_mask=Ce.hash_size-1,Ce.hash_shift=~~((Ce.hash_bits+Te-1)/Te),Ce.window=new B.Buf8(2*Ce.w_size),Ce.head=new B.Buf16(Ce.hash_size),Ce.prev=new B.Buf16(Ce.w_size),Ce.lit_bufsize=1<<u+6,Ce.pending_buf_size=4*Ce.lit_bufsize,Ce.pending_buf=new B.Buf8(Ce.pending_buf_size),Ce.d_buf=1*Ce.lit_bufsize,Ce.l_buf=3*Ce.lit_bufsize,Ce.level=wt,Ce.strategy=x,Ce.method=_,Sr(G)}Z=[new Kt(0,0,0,0,function(G,wt){var _=65535;for(_>G.pending_buf_size-5&&(_=G.pending_buf_size-5);;){if(G.lookahead<=1){if(st(G),G.lookahead===0&&wt===S)return k;if(G.lookahead===0)break}G.strstart+=G.lookahead,G.lookahead=0;var f=G.block_start+_;if((G.strstart===0||G.strstart>=f)&&(G.lookahead=G.strstart-f,G.strstart=f,Se(G,!1),G.strm.avail_out===0)||G.strstart-G.block_start>=G.w_size-je&&(Se(G,!1),G.strm.avail_out===0))return k}return G.insert=0,wt===F?(Se(G,!0),G.strm.avail_out===0?Oe:be):(G.strstart>G.block_start&&(Se(G,!1),G.strm.avail_out),k)}),new Kt(4,4,8,4,It),new Kt(4,5,16,8,It),new Kt(4,6,32,32,It),new Kt(4,4,16,16,Ut),new Kt(8,16,32,32,Ut),new Kt(8,16,128,128,Ut),new Kt(8,32,128,256,Ut),new Kt(32,128,258,1024,Ut),new Kt(32,258,258,4096,Ut)],te.deflateInit=function(G,wt){return ur(G,wt,ce,15,8,0)},te.deflateInit2=ur,te.deflateReset=Sr,te.deflateResetKeep=or,te.deflateSetHeader=function(G,wt){return G&&G.state?G.state.wrap!==2?R:(G.state.gzhead=wt,P):R},te.deflate=function(G,wt){var _,f,u,x;if(!G||!G.state||5<wt||wt<0)return G?He(G,R):R;if(f=G.state,!G.output||!G.input&&G.avail_in!==0||f.status===666&&wt!==F)return He(G,G.avail_out===0?-5:R);if(f.strm=G,_=f.last_flush,f.last_flush=wt,f.status===X)if(f.wrap===2)G.adler=0,ct(f,31),ct(f,139),ct(f,8),f.gzhead?(ct(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),ct(f,255&f.gzhead.time),ct(f,f.gzhead.time>>8&255),ct(f,f.gzhead.time>>16&255),ct(f,f.gzhead.time>>24&255),ct(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),ct(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(ct(f,255&f.gzhead.extra.length),ct(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(G.adler=p(G.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(ct(f,0),ct(f,0),ct(f,0),ct(f,0),ct(f,0),ct(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),ct(f,3),f.status=de);else{var ee=ce+(f.w_bits-8<<4)<<8;ee|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(ee|=32),ee+=31-ee%31,f.status=de,dt(f,ee),f.strstart!==0&&(dt(f,G.adler>>>16),dt(f,65535&G.adler)),G.adler=1}if(f.status===69)if(f.gzhead.extra){for(u=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>u&&(G.adler=p(G.adler,f.pending_buf,f.pending-u,u)),fe(G),u=f.pending,f.pending!==f.pending_buf_size));)ct(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>u&&(G.adler=p(G.adler,f.pending_buf,f.pending-u,u)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){u=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>u&&(G.adler=p(G.adler,f.pending_buf,f.pending-u,u)),fe(G),u=f.pending,f.pending===f.pending_buf_size)){x=1;break}x=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,ct(f,x)}while(x!==0);f.gzhead.hcrc&&f.pending>u&&(G.adler=p(G.adler,f.pending_buf,f.pending-u,u)),x===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){u=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>u&&(G.adler=p(G.adler,f.pending_buf,f.pending-u,u)),fe(G),u=f.pending,f.pending===f.pending_buf_size)){x=1;break}x=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,ct(f,x)}while(x!==0);f.gzhead.hcrc&&f.pending>u&&(G.adler=p(G.adler,f.pending_buf,f.pending-u,u)),x===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&fe(G),f.pending+2<=f.pending_buf_size&&(ct(f,255&G.adler),ct(f,G.adler>>8&255),G.adler=0,f.status=de)):f.status=de),f.pending!==0){if(fe(G),G.avail_out===0)return f.last_flush=-1,P}else if(G.avail_in===0&&ge(wt)<=ge(_)&&wt!==F)return He(G,-5);if(f.status===666&&G.avail_in!==0)return He(G,-5);if(G.avail_in!==0||f.lookahead!==0||wt!==S&&f.status!==666){var Ce=f.strategy===2?function(H,ne){for(var $e;;){if(H.lookahead===0&&(st(H),H.lookahead===0)){if(ne===S)return k;break}if(H.match_length=0,$e=h._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,$e&&(Se(H,!1),H.strm.avail_out===0))return k}return H.insert=0,ne===F?(Se(H,!0),H.strm.avail_out===0?Oe:be):H.last_lit&&(Se(H,!1),H.strm.avail_out===0)?k:rt}(f,wt):f.strategy===3?function(H,ne){for(var $e,we,ve,qe,St=H.window;;){if(H.lookahead<=xe){if(st(H),H.lookahead<=xe&&ne===S)return k;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Te&&0<H.strstart&&(we=St[ve=H.strstart-1])===St[++ve]&&we===St[++ve]&&we===St[++ve]){qe=H.strstart+xe;do;while(we===St[++ve]&&we===St[++ve]&&we===St[++ve]&&we===St[++ve]&&we===St[++ve]&&we===St[++ve]&&we===St[++ve]&&we===St[++ve]&&ve<qe);H.match_length=xe-(qe-ve),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Te?($e=h._tr_tally(H,1,H.match_length-Te),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):($e=h._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),$e&&(Se(H,!1),H.strm.avail_out===0))return k}return H.insert=0,ne===F?(Se(H,!0),H.strm.avail_out===0?Oe:be):H.last_lit&&(Se(H,!1),H.strm.avail_out===0)?k:rt}(f,wt):Z[f.level].func(f,wt);if(Ce!==Oe&&Ce!==be||(f.status=666),Ce===k||Ce===Oe)return G.avail_out===0&&(f.last_flush=-1),P;if(Ce===rt&&(wt===1?h._tr_align(f):wt!==5&&(h._tr_stored_block(f,0,0,!1),wt===3&&(De(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),fe(G),G.avail_out===0))return f.last_flush=-1,P}return wt!==F?P:f.wrap<=0?1:(f.wrap===2?(ct(f,255&G.adler),ct(f,G.adler>>8&255),ct(f,G.adler>>16&255),ct(f,G.adler>>24&255),ct(f,255&G.total_in),ct(f,G.total_in>>8&255),ct(f,G.total_in>>16&255),ct(f,G.total_in>>24&255)):(dt(f,G.adler>>>16),dt(f,65535&G.adler)),fe(G),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?P:1)},te.deflateEnd=function(G){var wt;return G&&G.state?(wt=G.state.status)!==X&&wt!==69&&wt!==73&&wt!==91&&wt!==103&&wt!==de&&wt!==666?He(G,R):(G.state=null,wt===de?He(G,-3):P):R},te.deflateSetDictionary=function(G,wt){var _,f,u,x,ee,Ce,H,ne,$e=wt.length;if(!G||!G.state||(x=(_=G.state).wrap)===2||x===1&&_.status!==X||_.lookahead)return R;for(x===1&&(G.adler=E(G.adler,wt,$e,0)),_.wrap=0,$e>=_.w_size&&(x===0&&(De(_.head),_.strstart=0,_.block_start=0,_.insert=0),ne=new B.Buf8(_.w_size),B.arraySet(ne,wt,$e-_.w_size,_.w_size,0),wt=ne,$e=_.w_size),ee=G.avail_in,Ce=G.next_in,H=G.input,G.avail_in=$e,G.next_in=0,G.input=wt,st(_);_.lookahead>=Te;){for(f=_.strstart,u=_.lookahead-(Te-1);_.ins_h=(_.ins_h<<_.hash_shift^_.window[f+Te-1])&_.hash_mask,_.prev[f&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=f,f++,--u;);_.strstart=f,_.lookahead=Te-1,st(_)}return _.strstart+=_.lookahead,_.block_start=_.strstart,_.insert=_.lookahead,_.lookahead=0,_.match_length=_.prev_length=Te-1,_.match_available=0,G.next_in=Ce,G.input=H,G.avail_in=ee,_.wrap=x,P},te.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(U,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(U,Ne,te){"use strict";Ne.exports=function(Z,B){var h,E,p,j,S,F,P,R,M,Y,Q,ce,W,J,V,K,se,he,Te,xe,je,X,de,k,rt;h=Z.state,E=Z.next_in,k=Z.input,p=E+(Z.avail_in-5),j=Z.next_out,rt=Z.output,S=j-(B-Z.avail_out),F=j+(Z.avail_out-257),P=h.dmax,R=h.wsize,M=h.whave,Y=h.wnext,Q=h.window,ce=h.hold,W=h.bits,J=h.lencode,V=h.distcode,K=(1<<h.lenbits)-1,se=(1<<h.distbits)-1;e:do{W<15&&(ce+=k[E++]<<W,W+=8,ce+=k[E++]<<W,W+=8),he=J[ce&K];t:for(;;){if(ce>>>=Te=he>>>24,W-=Te,(Te=he>>>16&255)===0)rt[j++]=65535&he;else{if(!(16&Te)){if(!(64&Te)){he=J[(65535&he)+(ce&(1<<Te)-1)];continue t}if(32&Te){h.mode=12;break e}Z.msg="invalid literal/length code",h.mode=30;break e}xe=65535&he,(Te&=15)&&(W<Te&&(ce+=k[E++]<<W,W+=8),xe+=ce&(1<<Te)-1,ce>>>=Te,W-=Te),W<15&&(ce+=k[E++]<<W,W+=8,ce+=k[E++]<<W,W+=8),he=V[ce&se];r:for(;;){if(ce>>>=Te=he>>>24,W-=Te,!(16&(Te=he>>>16&255))){if(!(64&Te)){he=V[(65535&he)+(ce&(1<<Te)-1)];continue r}Z.msg="invalid distance code",h.mode=30;break e}if(je=65535&he,W<(Te&=15)&&(ce+=k[E++]<<W,(W+=8)<Te&&(ce+=k[E++]<<W,W+=8)),P<(je+=ce&(1<<Te)-1)){Z.msg="invalid distance too far back",h.mode=30;break e}if(ce>>>=Te,W-=Te,(Te=j-S)<je){if(M<(Te=je-Te)&&h.sane){Z.msg="invalid distance too far back",h.mode=30;break e}if(de=Q,(X=0)===Y){if(X+=R-Te,Te<xe){for(xe-=Te;rt[j++]=Q[X++],--Te;);X=j-je,de=rt}}else if(Y<Te){if(X+=R+Y-Te,(Te-=Y)<xe){for(xe-=Te;rt[j++]=Q[X++],--Te;);if(X=0,Y<xe){for(xe-=Te=Y;rt[j++]=Q[X++],--Te;);X=j-je,de=rt}}}else if(X+=Y-Te,Te<xe){for(xe-=Te;rt[j++]=Q[X++],--Te;);X=j-je,de=rt}for(;2<xe;)rt[j++]=de[X++],rt[j++]=de[X++],rt[j++]=de[X++],xe-=3;xe&&(rt[j++]=de[X++],1<xe&&(rt[j++]=de[X++]))}else{for(X=j-je;rt[j++]=rt[X++],rt[j++]=rt[X++],rt[j++]=rt[X++],2<(xe-=3););xe&&(rt[j++]=rt[X++],1<xe&&(rt[j++]=rt[X++]))}break}}break}}while(E<p&&j<F);E-=xe=W>>3,ce&=(1<<(W-=xe<<3))-1,Z.next_in=E,Z.next_out=j,Z.avail_in=E<p?p-E+5:5-(E-p),Z.avail_out=j<F?F-j+257:257-(j-F),h.hold=ce,h.bits=W}},{}],49:[function(U,Ne,te){"use strict";var Z=U("../utils/common"),B=U("./adler32"),h=U("./crc32"),E=U("./inffast"),p=U("./inftrees"),j=1,S=2,F=0,P=-2,R=1,M=852,Y=592;function Q(X){return(X>>>24&255)+(X>>>8&65280)+((65280&X)<<8)+((255&X)<<24)}function ce(){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 Z.Buf16(320),this.work=new Z.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function W(X){var de;return X&&X.state?(de=X.state,X.total_in=X.total_out=de.total=0,X.msg="",de.wrap&&(X.adler=1&de.wrap),de.mode=R,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new Z.Buf32(M),de.distcode=de.distdyn=new Z.Buf32(Y),de.sane=1,de.back=-1,F):P}function J(X){var de;return X&&X.state?((de=X.state).wsize=0,de.whave=0,de.wnext=0,W(X)):P}function V(X,de){var k,rt;return X&&X.state?(rt=X.state,de<0?(k=0,de=-de):(k=1+(de>>4),de<48&&(de&=15)),de&&(de<8||15<de)?P:(rt.window!==null&&rt.wbits!==de&&(rt.window=null),rt.wrap=k,rt.wbits=de,J(X))):P}function K(X,de){var k,rt;return X?(rt=new ce,(X.state=rt).window=null,(k=V(X,de))!==F&&(X.state=null),k):P}var se,he,Te=!0;function xe(X){if(Te){var de;for(se=new Z.Buf32(512),he=new Z.Buf32(32),de=0;de<144;)X.lens[de++]=8;for(;de<256;)X.lens[de++]=9;for(;de<280;)X.lens[de++]=7;for(;de<288;)X.lens[de++]=8;for(p(j,X.lens,0,288,se,0,X.work,{bits:9}),de=0;de<32;)X.lens[de++]=5;p(S,X.lens,0,32,he,0,X.work,{bits:5}),Te=!1}X.lencode=se,X.lenbits=9,X.distcode=he,X.distbits=5}function je(X,de,k,rt){var Oe,be=X.state;return be.window===null&&(be.wsize=1<<be.wbits,be.wnext=0,be.whave=0,be.window=new Z.Buf8(be.wsize)),rt>=be.wsize?(Z.arraySet(be.window,de,k-be.wsize,be.wsize,0),be.wnext=0,be.whave=be.wsize):(rt<(Oe=be.wsize-be.wnext)&&(Oe=rt),Z.arraySet(be.window,de,k-rt,Oe,be.wnext),(rt-=Oe)?(Z.arraySet(be.window,de,k-rt,rt,0),be.wnext=rt,be.whave=be.wsize):(be.wnext+=Oe,be.wnext===be.wsize&&(be.wnext=0),be.whave<be.wsize&&(be.whave+=Oe))),0}te.inflateReset=J,te.inflateReset2=V,te.inflateResetKeep=W,te.inflateInit=function(X){return K(X,15)},te.inflateInit2=K,te.inflate=function(X,de){var k,rt,Oe,be,He,ge,De,fe,Se,ct,dt,at,st,It,Ut,Kt,hr,or,Sr,ur,G,wt,_,f,u=0,x=new Z.Buf8(4),ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!X||!X.state||!X.output||!X.input&&X.avail_in!==0)return P;(k=X.state).mode===12&&(k.mode=13),He=X.next_out,Oe=X.output,De=X.avail_out,be=X.next_in,rt=X.input,ge=X.avail_in,fe=k.hold,Se=k.bits,ct=ge,dt=De,wt=F;e:for(;;)switch(k.mode){case R:if(k.wrap===0){k.mode=13;break}for(;Se<16;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(2&k.wrap&&fe===35615){x[k.check=0]=255&fe,x[1]=fe>>>8&255,k.check=h(k.check,x,2,0),Se=fe=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&fe)<<8)+(fe>>8))%31){X.msg="incorrect header check",k.mode=30;break}if((15&fe)!=8){X.msg="unknown compression method",k.mode=30;break}if(Se-=4,G=8+(15&(fe>>>=4)),k.wbits===0)k.wbits=G;else if(G>k.wbits){X.msg="invalid window size",k.mode=30;break}k.dmax=1<<G,X.adler=k.check=1,k.mode=512&fe?10:12,Se=fe=0;break;case 2:for(;Se<16;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(k.flags=fe,(255&k.flags)!=8){X.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){X.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=fe>>8&1),512&k.flags&&(x[0]=255&fe,x[1]=fe>>>8&255,k.check=h(k.check,x,2,0)),Se=fe=0,k.mode=3;case 3:for(;Se<32;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}k.head&&(k.head.time=fe),512&k.flags&&(x[0]=255&fe,x[1]=fe>>>8&255,x[2]=fe>>>16&255,x[3]=fe>>>24&255,k.check=h(k.check,x,4,0)),Se=fe=0,k.mode=4;case 4:for(;Se<16;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}k.head&&(k.head.xflags=255&fe,k.head.os=fe>>8),512&k.flags&&(x[0]=255&fe,x[1]=fe>>>8&255,k.check=h(k.check,x,2,0)),Se=fe=0,k.mode=5;case 5:if(1024&k.flags){for(;Se<16;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}k.length=fe,k.head&&(k.head.extra_len=fe),512&k.flags&&(x[0]=255&fe,x[1]=fe>>>8&255,k.check=h(k.check,x,2,0)),Se=fe=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&(ge<(at=k.length)&&(at=ge),at&&(k.head&&(G=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),Z.arraySet(k.head.extra,rt,be,at,G)),512&k.flags&&(k.check=h(k.check,rt,at,be)),ge-=at,be+=at,k.length-=at),k.length))break e;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(ge===0)break e;for(at=0;G=rt[be+at++],k.head&&G&&k.length<65536&&(k.head.name+=String.fromCharCode(G)),G&&at<ge;);if(512&k.flags&&(k.check=h(k.check,rt,at,be)),ge-=at,be+=at,G)break e}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(ge===0)break e;for(at=0;G=rt[be+at++],k.head&&G&&k.length<65536&&(k.head.comment+=String.fromCharCode(G)),G&&at<ge;);if(512&k.flags&&(k.check=h(k.check,rt,at,be)),ge-=at,be+=at,G)break e}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;Se<16;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(fe!==(65535&k.check)){X.msg="header crc mismatch",k.mode=30;break}Se=fe=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),X.adler=k.check=0,k.mode=12;break;case 10:for(;Se<32;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}X.adler=k.check=Q(fe),Se=fe=0,k.mode=11;case 11:if(k.havedict===0)return X.next_out=He,X.avail_out=De,X.next_in=be,X.avail_in=ge,k.hold=fe,k.bits=Se,2;X.adler=k.check=1,k.mode=12;case 12:if(de===5||de===6)break e;case 13:if(k.last){fe>>>=7&Se,Se-=7&Se,k.mode=27;break}for(;Se<3;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}switch(k.last=1&fe,Se-=1,3&(fe>>>=1)){case 0:k.mode=14;break;case 1:if(xe(k),k.mode=20,de!==6)break;fe>>>=2,Se-=2;break e;case 2:k.mode=17;break;case 3:X.msg="invalid block type",k.mode=30}fe>>>=2,Se-=2;break;case 14:for(fe>>>=7&Se,Se-=7&Se;Se<32;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if((65535&fe)!=(fe>>>16^65535)){X.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&fe,Se=fe=0,k.mode=15,de===6)break e;case 15:k.mode=16;case 16:if(at=k.length){if(ge<at&&(at=ge),De<at&&(at=De),at===0)break e;Z.arraySet(Oe,rt,be,at,He),ge-=at,be+=at,De-=at,He+=at,k.length-=at;break}k.mode=12;break;case 17:for(;Se<14;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(k.nlen=257+(31&fe),fe>>>=5,Se-=5,k.ndist=1+(31&fe),fe>>>=5,Se-=5,k.ncode=4+(15&fe),fe>>>=4,Se-=4,286<k.nlen||30<k.ndist){X.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;Se<3;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}k.lens[ee[k.have++]]=7&fe,fe>>>=3,Se-=3}for(;k.have<19;)k.lens[ee[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,_={bits:k.lenbits},wt=p(0,k.lens,0,19,k.lencode,0,k.work,_),k.lenbits=_.bits,wt){X.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;Kt=(u=k.lencode[fe&(1<<k.lenbits)-1])>>>16&255,hr=65535&u,!((Ut=u>>>24)<=Se);){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(hr<16)fe>>>=Ut,Se-=Ut,k.lens[k.have++]=hr;else{if(hr===16){for(f=Ut+2;Se<f;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(fe>>>=Ut,Se-=Ut,k.have===0){X.msg="invalid bit length repeat",k.mode=30;break}G=k.lens[k.have-1],at=3+(3&fe),fe>>>=2,Se-=2}else if(hr===17){for(f=Ut+3;Se<f;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}Se-=Ut,G=0,at=3+(7&(fe>>>=Ut)),fe>>>=3,Se-=3}else{for(f=Ut+7;Se<f;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}Se-=Ut,G=0,at=11+(127&(fe>>>=Ut)),fe>>>=7,Se-=7}if(k.have+at>k.nlen+k.ndist){X.msg="invalid bit length repeat",k.mode=30;break}for(;at--;)k.lens[k.have++]=G}}if(k.mode===30)break;if(k.lens[256]===0){X.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,_={bits:k.lenbits},wt=p(j,k.lens,0,k.nlen,k.lencode,0,k.work,_),k.lenbits=_.bits,wt){X.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,_={bits:k.distbits},wt=p(S,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,_),k.distbits=_.bits,wt){X.msg="invalid distances set",k.mode=30;break}if(k.mode=20,de===6)break e;case 20:k.mode=21;case 21:if(6<=ge&&258<=De){X.next_out=He,X.avail_out=De,X.next_in=be,X.avail_in=ge,k.hold=fe,k.bits=Se,E(X,dt),He=X.next_out,Oe=X.output,De=X.avail_out,be=X.next_in,rt=X.input,ge=X.avail_in,fe=k.hold,Se=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;Kt=(u=k.lencode[fe&(1<<k.lenbits)-1])>>>16&255,hr=65535&u,!((Ut=u>>>24)<=Se);){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(Kt&&!(240&Kt)){for(or=Ut,Sr=Kt,ur=hr;Kt=(u=k.lencode[ur+((fe&(1<<or+Sr)-1)>>or)])>>>16&255,hr=65535&u,!(or+(Ut=u>>>24)<=Se);){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}fe>>>=or,Se-=or,k.back+=or}if(fe>>>=Ut,Se-=Ut,k.back+=Ut,k.length=hr,Kt===0){k.mode=26;break}if(32&Kt){k.back=-1,k.mode=12;break}if(64&Kt){X.msg="invalid literal/length code",k.mode=30;break}k.extra=15&Kt,k.mode=22;case 22:if(k.extra){for(f=k.extra;Se<f;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}k.length+=fe&(1<<k.extra)-1,fe>>>=k.extra,Se-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;Kt=(u=k.distcode[fe&(1<<k.distbits)-1])>>>16&255,hr=65535&u,!((Ut=u>>>24)<=Se);){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(!(240&Kt)){for(or=Ut,Sr=Kt,ur=hr;Kt=(u=k.distcode[ur+((fe&(1<<or+Sr)-1)>>or)])>>>16&255,hr=65535&u,!(or+(Ut=u>>>24)<=Se);){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}fe>>>=or,Se-=or,k.back+=or}if(fe>>>=Ut,Se-=Ut,k.back+=Ut,64&Kt){X.msg="invalid distance code",k.mode=30;break}k.offset=hr,k.extra=15&Kt,k.mode=24;case 24:if(k.extra){for(f=k.extra;Se<f;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}k.offset+=fe&(1<<k.extra)-1,fe>>>=k.extra,Se-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){X.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(De===0)break e;if(at=dt-De,k.offset>at){if((at=k.offset-at)>k.whave&&k.sane){X.msg="invalid distance too far back",k.mode=30;break}st=at>k.wnext?(at-=k.wnext,k.wsize-at):k.wnext-at,at>k.length&&(at=k.length),It=k.window}else It=Oe,st=He-k.offset,at=k.length;for(De<at&&(at=De),De-=at,k.length-=at;Oe[He++]=It[st++],--at;);k.length===0&&(k.mode=21);break;case 26:if(De===0)break e;Oe[He++]=k.length,De--,k.mode=21;break;case 27:if(k.wrap){for(;Se<32;){if(ge===0)break e;ge--,fe|=rt[be++]<<Se,Se+=8}if(dt-=De,X.total_out+=dt,k.total+=dt,dt&&(X.adler=k.check=k.flags?h(k.check,Oe,dt,He-dt):B(k.check,Oe,dt,He-dt)),dt=De,(k.flags?fe:Q(fe))!==k.check){X.msg="incorrect data check",k.mode=30;break}Se=fe=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;Se<32;){if(ge===0)break e;ge--,fe+=rt[be++]<<Se,Se+=8}if(fe!==(4294967295&k.total)){X.msg="incorrect length check",k.mode=30;break}Se=fe=0}k.mode=29;case 29:wt=1;break e;case 30:wt=-3;break e;case 31:return-4;case 32:default:return P}return X.next_out=He,X.avail_out=De,X.next_in=be,X.avail_in=ge,k.hold=fe,k.bits=Se,(k.wsize||dt!==X.avail_out&&k.mode<30&&(k.mode<27||de!==4))&&je(X,X.output,X.next_out,dt-X.avail_out)?(k.mode=31,-4):(ct-=X.avail_in,dt-=X.avail_out,X.total_in+=ct,X.total_out+=dt,k.total+=dt,k.wrap&&dt&&(X.adler=k.check=k.flags?h(k.check,Oe,dt,X.next_out-dt):B(k.check,Oe,dt,X.next_out-dt)),X.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),(ct==0&&dt===0||de===4)&&wt===F&&(wt=-5),wt)},te.inflateEnd=function(X){if(!X||!X.state)return P;var de=X.state;return de.window&&(de.window=null),X.state=null,F},te.inflateGetHeader=function(X,de){var k;return X&&X.state&&2&(k=X.state).wrap?((k.head=de).done=!1,F):P},te.inflateSetDictionary=function(X,de){var k,rt=de.length;return X&&X.state?(k=X.state).wrap!==0&&k.mode!==11?P:k.mode===11&&B(1,de,rt,0)!==k.check?-3:je(X,de,rt,rt)?(k.mode=31,-4):(k.havedict=1,F):P},te.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(U,Ne,te){"use strict";var Z=U("../utils/common"),B=[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],h=[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],E=[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],p=[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(j,S,F,P,R,M,Y,Q){var ce,W,J,V,K,se,he,Te,xe,je=Q.bits,X=0,de=0,k=0,rt=0,Oe=0,be=0,He=0,ge=0,De=0,fe=0,Se=null,ct=0,dt=new Z.Buf16(16),at=new Z.Buf16(16),st=null,It=0;for(X=0;X<=15;X++)dt[X]=0;for(de=0;de<P;de++)dt[S[F+de]]++;for(Oe=je,rt=15;1<=rt&&dt[rt]===0;rt--);if(rt<Oe&&(Oe=rt),rt===0)return R[M++]=20971520,R[M++]=20971520,Q.bits=1,0;for(k=1;k<rt&&dt[k]===0;k++);for(Oe<k&&(Oe=k),X=ge=1;X<=15;X++)if(ge<<=1,(ge-=dt[X])<0)return-1;if(0<ge&&(j===0||rt!==1))return-1;for(at[1]=0,X=1;X<15;X++)at[X+1]=at[X]+dt[X];for(de=0;de<P;de++)S[F+de]!==0&&(Y[at[S[F+de]]++]=de);if(se=j===0?(Se=st=Y,19):j===1?(Se=B,ct-=257,st=h,It-=257,256):(Se=E,st=p,-1),X=k,K=M,He=de=fe=0,J=-1,V=(De=1<<(be=Oe))-1,j===1&&852<De||j===2&&592<De)return 1;for(;;){for(he=X-He,xe=Y[de]<se?(Te=0,Y[de]):Y[de]>se?(Te=st[It+Y[de]],Se[ct+Y[de]]):(Te=96,0),ce=1<<X-He,k=W=1<<be;R[K+(fe>>He)+(W-=ce)]=he<<24|Te<<16|xe|0,W!==0;);for(ce=1<<X-1;fe&ce;)ce>>=1;if(ce!==0?(fe&=ce-1,fe+=ce):fe=0,de++,--dt[X]==0){if(X===rt)break;X=S[F+Y[de]]}if(Oe<X&&(fe&V)!==J){for(He===0&&(He=Oe),K+=k,ge=1<<(be=X-He);be+He<rt&&!((ge-=dt[be+He])<=0);)be++,ge<<=1;if(De+=1<<be,j===1&&852<De||j===2&&592<De)return 1;R[J=fe&V]=Oe<<24|be<<16|K-M|0}}return fe!==0&&(R[K+fe]=X-He<<24|64<<16|0),Q.bits=Oe,0}},{"../utils/common":41}],51:[function(U,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(U,Ne,te){"use strict";var Z=U("../utils/common"),B=0,h=1;function E(u){for(var x=u.length;0<=--x;)u[x]=0}var p=0,j=29,S=256,F=S+1+j,P=30,R=19,M=2*F+1,Y=15,Q=16,ce=7,W=256,J=16,V=17,K=18,se=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],he=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Te=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],xe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],je=new Array(2*(F+2));E(je);var X=new Array(2*P);E(X);var de=new Array(512);E(de);var k=new Array(256);E(k);var rt=new Array(j);E(rt);var Oe,be,He,ge=new Array(P);function De(u,x,ee,Ce,H){this.static_tree=u,this.extra_bits=x,this.extra_base=ee,this.elems=Ce,this.max_length=H,this.has_stree=u&&u.length}function fe(u,x){this.dyn_tree=u,this.max_code=0,this.stat_desc=x}function Se(u){return u<256?de[u]:de[256+(u>>>7)]}function ct(u,x){u.pending_buf[u.pending++]=255&x,u.pending_buf[u.pending++]=x>>>8&255}function dt(u,x,ee){u.bi_valid>Q-ee?(u.bi_buf|=x<<u.bi_valid&65535,ct(u,u.bi_buf),u.bi_buf=x>>Q-u.bi_valid,u.bi_valid+=ee-Q):(u.bi_buf|=x<<u.bi_valid&65535,u.bi_valid+=ee)}function at(u,x,ee){dt(u,ee[2*x],ee[2*x+1])}function st(u,x){for(var ee=0;ee|=1&u,u>>>=1,ee<<=1,0<--x;);return ee>>>1}function It(u,x,ee){var Ce,H,ne=new Array(Y+1),$e=0;for(Ce=1;Ce<=Y;Ce++)ne[Ce]=$e=$e+ee[Ce-1]<<1;for(H=0;H<=x;H++){var we=u[2*H+1];we!==0&&(u[2*H]=st(ne[we]++,we))}}function Ut(u){var x;for(x=0;x<F;x++)u.dyn_ltree[2*x]=0;for(x=0;x<P;x++)u.dyn_dtree[2*x]=0;for(x=0;x<R;x++)u.bl_tree[2*x]=0;u.dyn_ltree[2*W]=1,u.opt_len=u.static_len=0,u.last_lit=u.matches=0}function Kt(u){8<u.bi_valid?ct(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 hr(u,x,ee,Ce){var H=2*x,ne=2*ee;return u[H]<u[ne]||u[H]===u[ne]&&Ce[x]<=Ce[ee]}function or(u,x,ee){for(var Ce=u.heap[ee],H=ee<<1;H<=u.heap_len&&(H<u.heap_len&&hr(x,u.heap[H+1],u.heap[H],u.depth)&&H++,!hr(x,Ce,u.heap[H],u.depth));)u.heap[ee]=u.heap[H],ee=H,H<<=1;u.heap[ee]=Ce}function Sr(u,x,ee){var Ce,H,ne,$e,we=0;if(u.last_lit!==0)for(;Ce=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++,Ce===0?at(u,H,x):(at(u,(ne=k[H])+S+1,x),($e=se[ne])!==0&&dt(u,H-=rt[ne],$e),at(u,ne=Se(--Ce),ee),($e=he[ne])!==0&&dt(u,Ce-=ge[ne],$e)),we<u.last_lit;);at(u,W,x)}function ur(u,x){var ee,Ce,H,ne=x.dyn_tree,$e=x.stat_desc.static_tree,we=x.stat_desc.has_stree,ve=x.stat_desc.elems,qe=-1;for(u.heap_len=0,u.heap_max=M,ee=0;ee<ve;ee++)ne[2*ee]!==0?(u.heap[++u.heap_len]=qe=ee,u.depth[ee]=0):ne[2*ee+1]=0;for(;u.heap_len<2;)ne[2*(H=u.heap[++u.heap_len]=qe<2?++qe:0)]=1,u.depth[H]=0,u.opt_len--,we&&(u.static_len-=$e[2*H+1]);for(x.max_code=qe,ee=u.heap_len>>1;1<=ee;ee--)or(u,ne,ee);for(H=ve;ee=u.heap[1],u.heap[1]=u.heap[u.heap_len--],or(u,ne,1),Ce=u.heap[1],u.heap[--u.heap_max]=ee,u.heap[--u.heap_max]=Ce,ne[2*H]=ne[2*ee]+ne[2*Ce],u.depth[H]=(u.depth[ee]>=u.depth[Ce]?u.depth[ee]:u.depth[Ce])+1,ne[2*ee+1]=ne[2*Ce+1]=H,u.heap[1]=H++,or(u,ne,1),2<=u.heap_len;);u.heap[--u.heap_max]=u.heap[1],function(St,me){var ft,lt,Pe,Le,pt,zt,Ht=me.dyn_tree,er=me.max_code,Pr=me.stat_desc.static_tree,pr=me.stat_desc.has_stree,kr=me.stat_desc.extra_bits,Dr=me.stat_desc.extra_base,vr=me.stat_desc.max_length,dr=0;for(Le=0;Le<=Y;Le++)St.bl_count[Le]=0;for(Ht[2*St.heap[St.heap_max]+1]=0,ft=St.heap_max+1;ft<M;ft++)vr<(Le=Ht[2*Ht[2*(lt=St.heap[ft])+1]+1]+1)&&(Le=vr,dr++),Ht[2*lt+1]=Le,er<lt||(St.bl_count[Le]++,pt=0,Dr<=lt&&(pt=kr[lt-Dr]),zt=Ht[2*lt],St.opt_len+=zt*(Le+pt),pr&&(St.static_len+=zt*(Pr[2*lt+1]+pt)));if(dr!==0){do{for(Le=vr-1;St.bl_count[Le]===0;)Le--;St.bl_count[Le]--,St.bl_count[Le+1]+=2,St.bl_count[vr]--,dr-=2}while(0<dr);for(Le=vr;Le!==0;Le--)for(lt=St.bl_count[Le];lt!==0;)er<(Pe=St.heap[--ft])||(Ht[2*Pe+1]!==Le&&(St.opt_len+=(Le-Ht[2*Pe+1])*Ht[2*Pe],Ht[2*Pe+1]=Le),lt--)}}(u,x),It(ne,qe,u.bl_count)}function G(u,x,ee){var Ce,H,ne=-1,$e=x[1],we=0,ve=7,qe=4;for($e===0&&(ve=138,qe=3),x[2*(ee+1)+1]=65535,Ce=0;Ce<=ee;Ce++)H=$e,$e=x[2*(Ce+1)+1],++we<ve&&H===$e||(we<qe?u.bl_tree[2*H]+=we:H!==0?(H!==ne&&u.bl_tree[2*H]++,u.bl_tree[2*J]++):we<=10?u.bl_tree[2*V]++:u.bl_tree[2*K]++,ne=H,qe=(we=0)===$e?(ve=138,3):H===$e?(ve=6,3):(ve=7,4))}function wt(u,x,ee){var Ce,H,ne=-1,$e=x[1],we=0,ve=7,qe=4;for($e===0&&(ve=138,qe=3),Ce=0;Ce<=ee;Ce++)if(H=$e,$e=x[2*(Ce+1)+1],!(++we<ve&&H===$e)){if(we<qe)for(;at(u,H,u.bl_tree),--we!=0;);else H!==0?(H!==ne&&(at(u,H,u.bl_tree),we--),at(u,J,u.bl_tree),dt(u,we-3,2)):we<=10?(at(u,V,u.bl_tree),dt(u,we-3,3)):(at(u,K,u.bl_tree),dt(u,we-11,7));ne=H,qe=(we=0)===$e?(ve=138,3):H===$e?(ve=6,3):(ve=7,4)}}E(ge);var _=!1;function f(u,x,ee,Ce){dt(u,(p<<1)+(Ce?1:0),3),function(H,ne,$e,we){Kt(H),we&&(ct(H,$e),ct(H,~$e)),Z.arraySet(H.pending_buf,H.window,ne,$e,H.pending),H.pending+=$e}(u,x,ee,!0)}te._tr_init=function(u){_||(function(){var x,ee,Ce,H,ne,$e=new Array(Y+1);for(H=Ce=0;H<j-1;H++)for(rt[H]=Ce,x=0;x<1<<se[H];x++)k[Ce++]=H;for(k[Ce-1]=H,H=ne=0;H<16;H++)for(ge[H]=ne,x=0;x<1<<he[H];x++)de[ne++]=H;for(ne>>=7;H<P;H++)for(ge[H]=ne<<7,x=0;x<1<<he[H]-7;x++)de[256+ne++]=H;for(ee=0;ee<=Y;ee++)$e[ee]=0;for(x=0;x<=143;)je[2*x+1]=8,x++,$e[8]++;for(;x<=255;)je[2*x+1]=9,x++,$e[9]++;for(;x<=279;)je[2*x+1]=7,x++,$e[7]++;for(;x<=287;)je[2*x+1]=8,x++,$e[8]++;for(It(je,F+1,$e),x=0;x<P;x++)X[2*x+1]=5,X[2*x]=st(x,5);Oe=new De(je,se,S+1,F,Y),be=new De(X,he,0,P,Y),He=new De(new Array(0),Te,0,R,ce)}(),_=!0),u.l_desc=new fe(u.dyn_ltree,Oe),u.d_desc=new fe(u.dyn_dtree,be),u.bl_desc=new fe(u.bl_tree,He),u.bi_buf=0,u.bi_valid=0,Ut(u)},te._tr_stored_block=f,te._tr_flush_block=function(u,x,ee,Ce){var H,ne,$e=0;0<u.level?(u.strm.data_type===2&&(u.strm.data_type=function(we){var ve,qe=4093624447;for(ve=0;ve<=31;ve++,qe>>>=1)if(1&qe&&we.dyn_ltree[2*ve]!==0)return B;if(we.dyn_ltree[18]!==0||we.dyn_ltree[20]!==0||we.dyn_ltree[26]!==0)return h;for(ve=32;ve<S;ve++)if(we.dyn_ltree[2*ve]!==0)return h;return B}(u)),ur(u,u.l_desc),ur(u,u.d_desc),$e=function(we){var ve;for(G(we,we.dyn_ltree,we.l_desc.max_code),G(we,we.dyn_dtree,we.d_desc.max_code),ur(we,we.bl_desc),ve=R-1;3<=ve&&we.bl_tree[2*xe[ve]+1]===0;ve--);return we.opt_len+=3*(ve+1)+5+5+4,ve}(u),H=u.opt_len+3+7>>>3,(ne=u.static_len+3+7>>>3)<=H&&(H=ne)):H=ne=ee+5,ee+4<=H&&x!==-1?f(u,x,ee,Ce):u.strategy===4||ne===H?(dt(u,2+(Ce?1:0),3),Sr(u,je,X)):(dt(u,4+(Ce?1:0),3),function(we,ve,qe,St){var me;for(dt(we,ve-257,5),dt(we,qe-1,5),dt(we,St-4,4),me=0;me<St;me++)dt(we,we.bl_tree[2*xe[me]+1],3);wt(we,we.dyn_ltree,ve-1),wt(we,we.dyn_dtree,qe-1)}(u,u.l_desc.max_code+1,u.d_desc.max_code+1,$e+1),Sr(u,u.dyn_ltree,u.dyn_dtree)),Ut(u),Ce&&Kt(u)},te._tr_tally=function(u,x,ee){return u.pending_buf[u.d_buf+2*u.last_lit]=x>>>8&255,u.pending_buf[u.d_buf+2*u.last_lit+1]=255&x,u.pending_buf[u.l_buf+u.last_lit]=255&ee,u.last_lit++,x===0?u.dyn_ltree[2*ee]++:(u.matches++,x--,u.dyn_ltree[2*(k[ee]+S+1)]++,u.dyn_dtree[2*Se(x)]++),u.last_lit===u.lit_bufsize-1},te._tr_align=function(u){dt(u,2,3),at(u,W,je),function(x){x.bi_valid===16?(ct(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):8<=x.bi_valid&&(x.pending_buf[x.pending++]=255&x.bi_buf,x.bi_buf>>=8,x.bi_valid-=8)}(u)}},{"../utils/common":41}],53:[function(U,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(U,Ne,te){(function(Z){(function(B,h){"use strict";if(!B.setImmediate){var E,p,j,S,F=1,P={},R=!1,M=B.document,Y=Object.getPrototypeOf&&Object.getPrototypeOf(B);Y=Y&&Y.setTimeout?Y:B,E={}.toString.call(B.process)==="[object process]"?function(J){ue.nextTick(function(){ce(J)})}:function(){if(B.postMessage&&!B.importScripts){var J=!0,V=B.onmessage;return B.onmessage=function(){J=!1},B.postMessage("","*"),B.onmessage=V,J}}()?(S="setImmediate$"+Math.random()+"$",B.addEventListener?B.addEventListener("message",W,!1):B.attachEvent("onmessage",W),function(J){B.postMessage(S+J,"*")}):B.MessageChannel?((j=new MessageChannel).port1.onmessage=function(J){ce(J.data)},function(J){j.port2.postMessage(J)}):M&&"onreadystatechange"in M.createElement("script")?(p=M.documentElement,function(J){var V=M.createElement("script");V.onreadystatechange=function(){ce(J),V.onreadystatechange=null,p.removeChild(V),V=null},p.appendChild(V)}):function(J){setTimeout(ce,0,J)},Y.setImmediate=function(J){typeof J!="function"&&(J=new Function(""+J));for(var V=new Array(arguments.length-1),K=0;K<V.length;K++)V[K]=arguments[K+1];var se={callback:J,args:V};return P[F]=se,E(F),F++},Y.clearImmediate=Q}function Q(J){delete P[J]}function ce(J){if(R)setTimeout(ce,0,J);else{var V=P[J];if(V){R=!0;try{(function(K){var se=K.callback,he=K.args;switch(he.length){case 0:se();break;case 1:se(he[0]);break;case 2:se(he[0],he[1]);break;case 3:se(he[0],he[1],he[2]);break;default:se.apply(h,he)}})(V)}finally{Q(J),R=!1}}}}function W(J){J.source===B&&typeof J.data=="string"&&J.data.indexOf(S)===0&&ce(+J.data.slice(S.length))}})(typeof self=="undefined"?Z===void 0?this:Z:self)}).call(this,typeof w.g!="undefined"?w.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},5630:function(xn,Jt,w){"use strict";var pe=w(32855),ue=w(27247),U=w(74430),Ne=w(11913),te=w(43079),Z=w(92310),B=w.n(Z),h=w(18929),E=w(59301),p=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],j=(0,E.forwardRef)(function(S,F){var P,R=S.prefixCls,M=R===void 0?"rc-checkbox":R,Y=S.className,Q=S.style,ce=S.checked,W=S.disabled,J=S.defaultChecked,V=J===void 0?!1:J,K=S.type,se=K===void 0?"checkbox":K,he=S.title,Te=S.onChange,xe=(0,te.Z)(S,p),je=(0,E.useRef)(null),X=(0,h.Z)(V,{value:ce}),de=(0,Ne.Z)(X,2),k=de[0],rt=de[1];(0,E.useImperativeHandle)(F,function(){return{focus:function(){var ge;(ge=je.current)===null||ge===void 0||ge.focus()},blur:function(){var ge;(ge=je.current)===null||ge===void 0||ge.blur()},input:je.current}});var Oe=B()(M,Y,(P={},(0,U.Z)(P,"".concat(M,"-checked"),k),(0,U.Z)(P,"".concat(M,"-disabled"),W),P)),be=function(ge){W||("checked"in S||rt(ge.target.checked),Te==null||Te({target:(0,ue.Z)((0,ue.Z)({},S),{},{type:se,checked:ge.target.checked}),stopPropagation:function(){ge.stopPropagation()},preventDefault:function(){ge.preventDefault()},nativeEvent:ge.nativeEvent}))};return E.createElement("span",{className:Oe,title:he,style:Q},E.createElement("input",(0,pe.Z)({},xe,{className:"".concat(M,"-input"),ref:je,onChange:be,disabled:W,checked:!!k,type:se})),E.createElement("span",{className:"".concat(M,"-inner")}))});Jt.Z=j},31561:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return se}});var pe=w(32855),ue=w(74430),U=w(11913),Ne=w(43079),te=w(35593),Z=w(92310),B=w.n(Z),h=w(8654),E=w(59301),p=w(10228),j=w(16089),S=p.Z.ESC,F=p.Z.TAB;function P(he){var Te=he.visible,xe=he.triggerRef,je=he.onVisibleChange,X=he.autoFocus,de=he.overlayRef,k=E.useRef(!1),rt=function(){if(Te){var ge,De;(ge=xe.current)===null||ge===void 0||(De=ge.focus)===null||De===void 0||De.call(ge),je==null||je(!1)}},Oe=function(){var ge;return(ge=de.current)!==null&&ge!==void 0&&ge.focus?(de.current.focus(),k.current=!0,!0):!1},be=function(ge){switch(ge.keyCode){case S:rt();break;case F:{var De=!1;k.current||(De=Oe()),De?ge.preventDefault():rt();break}}};E.useEffect(function(){return Te?(window.addEventListener("keydown",be),X&&(0,j.Z)(Oe,3),function(){window.removeEventListener("keydown",be),k.current=!1}):function(){k.current=!1}},[Te])}var R=(0,E.forwardRef)(function(he,Te){var xe=he.overlay,je=he.arrow,X=he.prefixCls,de=(0,E.useMemo)(function(){var rt;return typeof xe=="function"?rt=xe():rt=xe,rt},[xe]),k=(0,h.sQ)(Te,de==null?void 0:de.ref);return E.createElement(E.Fragment,null,je&&E.createElement("div",{className:"".concat(X,"-arrow")}),E.cloneElement(de,{ref:(0,h.Yr)(de)?k:void 0}))}),M=R,Y={adjustX:1,adjustY:1},Q=[0,0],ce={topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:Q},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:Q},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:Q},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:Q},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:Q},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:Q}},W=ce,J=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function V(he,Te){var xe,je=he.arrow,X=je===void 0?!1:je,de=he.prefixCls,k=de===void 0?"rc-dropdown":de,rt=he.transitionName,Oe=he.animation,be=he.align,He=he.placement,ge=He===void 0?"bottomLeft":He,De=he.placements,fe=De===void 0?W:De,Se=he.getPopupContainer,ct=he.showAction,dt=he.hideAction,at=he.overlayClassName,st=he.overlayStyle,It=he.visible,Ut=he.trigger,Kt=Ut===void 0?["hover"]:Ut,hr=he.autoFocus,or=he.overlay,Sr=he.children,ur=he.onVisibleChange,G=(0,Ne.Z)(he,J),wt=E.useState(),_=(0,U.Z)(wt,2),f=_[0],u=_[1],x="visible"in he?It:f,ee=E.useRef(null),Ce=E.useRef(null),H=E.useRef(null);E.useImperativeHandle(Te,function(){return ee.current});var ne=function(Pe){u(Pe),ur==null||ur(Pe)};P({visible:x,triggerRef:H,onVisibleChange:ne,autoFocus:hr,overlayRef:Ce});var $e=function(Pe){var Le=he.onOverlayClick;u(!1),Le&&Le(Pe)},we=function(){return E.createElement(M,{ref:Ce,overlay:or,prefixCls:k,arrow:X})},ve=function(){return typeof or=="function"?we:we()},qe=function(){var Pe=he.minOverlayWidthMatchTrigger,Le=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Pe:!Le},St=function(){var Pe=he.openClassName;return Pe!==void 0?Pe:"".concat(k,"-open")},me=E.cloneElement(Sr,{className:B()((xe=Sr.props)===null||xe===void 0?void 0:xe.className,x&&St()),ref:(0,h.Yr)(Sr)?(0,h.sQ)(H,Sr.ref):void 0}),ft=dt;return!ft&&Kt.indexOf("contextMenu")!==-1&&(ft=["click"]),E.createElement(te.Z,(0,pe.Z)({builtinPlacements:fe},G,{prefixCls:k,ref:ee,popupClassName:B()(at,(0,ue.Z)({},"".concat(k,"-show-arrow"),X)),popupStyle:st,action:Kt,showAction:ct,hideAction:ft,popupPlacement:ge,popupAlign:be,popupTransitionName:rt,popupAnimation:Oe,popupVisible:x,stretch:qe()?"minWidth":"",popup:ve(),onPopupVisibleChange:ne,onPopupClick:$e,getPopupContainer:Se}),me)}var K=E.forwardRef(V),se=K},93681:function(xn,Jt,w){"use strict";w.r(Jt),w.d(Jt,{BaseInput:function(){return p},default:function(){return ce}});var pe=w(32855),ue=w(27247),U=w(74430),Ne=w(34666),te=w(92310),Z=w.n(te),B=w(59301),h=w(5643),E=function(J){var V,K,se=J.inputElement,he=J.prefixCls,Te=J.prefix,xe=J.suffix,je=J.addonBefore,X=J.addonAfter,de=J.className,k=J.style,rt=J.disabled,Oe=J.readOnly,be=J.focused,He=J.triggerFocus,ge=J.allowClear,De=J.value,fe=J.handleReset,Se=J.hidden,ct=J.classes,dt=J.classNames,at=J.dataAttrs,st=J.styles,It=J.components,Ut=(It==null?void 0:It.affixWrapper)||"span",Kt=(It==null?void 0:It.groupWrapper)||"span",hr=(It==null?void 0:It.wrapper)||"span",or=(It==null?void 0:It.groupAddon)||"span",Sr=(0,B.useRef)(null),ur=function(we){var ve;(ve=Sr.current)!==null&&ve!==void 0&&ve.contains(we.target)&&(He==null||He())},G=function(){var we;if(!ge)return null;var ve=!rt&&!Oe&&De,qe="".concat(he,"-clear-icon"),St=(0,Ne.Z)(ge)==="object"&&ge!==null&&ge!==void 0&&ge.clearIcon?ge.clearIcon:"\u2716";return B.createElement("span",{onClick:fe,onMouseDown:function(ft){return ft.preventDefault()},className:Z()(qe,(we={},(0,U.Z)(we,"".concat(qe,"-hidden"),!ve),(0,U.Z)(we,"".concat(qe,"-has-suffix"),!!xe),we)),role:"button",tabIndex:-1},St)},wt=(0,B.cloneElement)(se,{value:De,hidden:Se,className:Z()((V=se.props)===null||V===void 0?void 0:V.className,!(0,h.X3)(J)&&!(0,h.He)(J)&&de)||null,style:(0,ue.Z)((0,ue.Z)({},(K=se.props)===null||K===void 0?void 0:K.style),!(0,h.X3)(J)&&!(0,h.He)(J)?k:{})});if((0,h.X3)(J)){var _,f="".concat(he,"-affix-wrapper"),u=Z()(f,(_={},(0,U.Z)(_,"".concat(f,"-disabled"),rt),(0,U.Z)(_,"".concat(f,"-focused"),be),(0,U.Z)(_,"".concat(f,"-readonly"),Oe),(0,U.Z)(_,"".concat(f,"-input-with-clear-btn"),xe&&ge&&De),_),!(0,h.He)(J)&&de,ct==null?void 0:ct.affixWrapper,dt==null?void 0:dt.affixWrapper),x=(xe||ge)&&B.createElement("span",{className:Z()("".concat(he,"-suffix"),dt==null?void 0:dt.suffix),style:st==null?void 0:st.suffix},G(),xe);wt=B.createElement(Ut,(0,pe.Z)({className:u,style:(0,ue.Z)((0,ue.Z)({},(0,h.He)(J)?void 0:k),st==null?void 0:st.affixWrapper),hidden:!(0,h.He)(J)&&Se,onClick:ur},at==null?void 0:at.affixWrapper,{ref:Sr}),Te&&B.createElement("span",{className:Z()("".concat(he,"-prefix"),dt==null?void 0:dt.prefix),style:st==null?void 0:st.prefix},Te),(0,B.cloneElement)(se,{value:De,hidden:null}),x)}if((0,h.He)(J)){var ee="".concat(he,"-group"),Ce="".concat(ee,"-addon"),H=Z()("".concat(he,"-wrapper"),ee,ct==null?void 0:ct.wrapper),ne=Z()("".concat(he,"-group-wrapper"),de,ct==null?void 0:ct.group);return B.createElement(Kt,{className:ne,style:k,hidden:Se},B.createElement(hr,{className:H},je&&B.createElement(or,{className:Ce},je),(0,B.cloneElement)(wt,{hidden:null}),X&&B.createElement(or,{className:Ce},X)))}return wt},p=E,j=w(3300),S=w(11913),F=w(43079),P=w(18929),R=w(2738),M=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Y=(0,B.forwardRef)(function(W,J){var V=W.autoComplete,K=W.onChange,se=W.onFocus,he=W.onBlur,Te=W.onPressEnter,xe=W.onKeyDown,je=W.prefixCls,X=je===void 0?"rc-input":je,de=W.disabled,k=W.htmlSize,rt=W.className,Oe=W.maxLength,be=W.suffix,He=W.showCount,ge=W.type,De=ge===void 0?"text":ge,fe=W.classes,Se=W.classNames,ct=W.styles,dt=(0,F.Z)(W,M),at=(0,P.Z)(W.defaultValue,{value:W.value}),st=(0,S.Z)(at,2),It=st[0],Ut=st[1],Kt=(0,B.useState)(!1),hr=(0,S.Z)(Kt,2),or=hr[0],Sr=hr[1],ur=(0,B.useRef)(null),G=function(ne){ur.current&&(0,h.nH)(ur.current,ne)};(0,B.useImperativeHandle)(J,function(){return{focus:G,blur:function(){var ne;(ne=ur.current)===null||ne===void 0||ne.blur()},setSelectionRange:function(ne,$e,we){var ve;(ve=ur.current)===null||ve===void 0||ve.setSelectionRange(ne,$e,we)},select:function(){var ne;(ne=ur.current)===null||ne===void 0||ne.select()},input:ur.current}}),(0,B.useEffect)(function(){Sr(function(H){return H&&de?!1:H})},[de]);var wt=function(ne){W.value===void 0&&Ut(ne.target.value),ur.current&&(0,h.rJ)(ur.current,ne,K)},_=function(ne){Te&&ne.key==="Enter"&&Te(ne),xe==null||xe(ne)},f=function(ne){Sr(!0),se==null||se(ne)},u=function(ne){Sr(!1),he==null||he(ne)},x=function(ne){Ut(""),G(),ur.current&&(0,h.rJ)(ur.current,ne,K)},ee=function(){var ne=(0,R.Z)(W,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return B.createElement("input",(0,pe.Z)({autoComplete:V},ne,{onChange:wt,onFocus:f,onBlur:u,onKeyDown:_,className:Z()(X,(0,U.Z)({},"".concat(X,"-disabled"),de),Se==null?void 0:Se.input),style:ct==null?void 0:ct.input,ref:ur,size:k,type:De}))},Ce=function(){var ne=Number(Oe)>0;if(be||He){var $e=(0,h.D7)(It),we=(0,j.Z)($e).length,ve=(0,Ne.Z)(He)==="object"?He.formatter({value:$e,count:we,maxLength:Oe}):"".concat(we).concat(ne?" / ".concat(Oe):"");return B.createElement(B.Fragment,null,!!He&&B.createElement("span",{className:Z()("".concat(X,"-show-count-suffix"),(0,U.Z)({},"".concat(X,"-show-count-has-suffix"),!!be),Se==null?void 0:Se.count),style:(0,ue.Z)({},ct==null?void 0:ct.count)},ve),be)}return null};return B.createElement(p,(0,pe.Z)({},dt,{prefixCls:X,className:rt,inputElement:ee(),handleReset:x,value:(0,h.D7)(It),focused:or,triggerFocus:G,suffix:Ce(),disabled:de,classes:fe,classNames:Se,styles:ct}))}),Q=Y,ce=Q},5643:function(xn,Jt,w){"use strict";w.d(Jt,{D7:function(){return te},He:function(){return pe},X3:function(){return ue},nH:function(){return Ne},rJ:function(){return U}});function pe(Z){return!!(Z.addonBefore||Z.addonAfter)}function ue(Z){return!!(Z.prefix||Z.suffix||Z.allowClear)}function U(Z,B,h,E){if(h){var p=B;if(B.type==="click"){var j=Z.cloneNode(!0);p=Object.create(B,{target:{value:j},currentTarget:{value:j}}),j.value="",h(p);return}if(E!==void 0){p=Object.create(B,{target:{value:Z},currentTarget:{value:Z}}),Z.value=E,h(p);return}h(p)}}function Ne(Z,B){if(Z){Z.focus(B);var h=B||{},E=h.cursor;if(E){var p=Z.value.length;switch(E){case"start":Z.setSelectionRange(0,0);break;case"end":Z.setSelectionRange(p,p);break;default:Z.setSelectionRange(0,p)}}}}function te(Z){return typeof Z=="undefined"||Z===null?"":String(Z)}},15285:function(xn,Jt,w){"use strict";w.d(Jt,{iz:function(){return Vr},ck:function(){return qr},BW:function(){return tn},sN:function(){return qr},Wd:function(){return Nt},ZP:function(){return sn},Xl:function(){return xe}});var pe=w(32855),ue=w(74430),U=w(27247),Ne=w(3300),te=w(11913),Z=w(43079),B=w(92310),h=w.n(B),E=w(11780),p=w(18929),j=w(13697),S=w(48736),F=w(59301),P=w(4676),R=F.createContext(null);function M(Qt,Zt){return Qt===void 0?null:"".concat(Qt,"-").concat(Zt)}function Y(Qt){var Zt=F.useContext(R);return M(Zt,Qt)}var Q=w(80547),ce=["children","locked"],W=F.createContext(null);function J(Qt,Zt){var qt=(0,U.Z)({},Qt);return Object.keys(Zt).forEach(function(mr){var Wt=Zt[mr];Wt!==void 0&&(qt[mr]=Wt)}),qt}function V(Qt){var Zt=Qt.children,qt=Qt.locked,mr=(0,Z.Z)(Qt,ce),Wt=F.useContext(W),Cr=(0,Q.Z)(function(){return J(Wt,mr)},[Wt,mr],function(Mr,Gr){return!qt&&(Mr[0]!==Gr[0]||!(0,j.Z)(Mr[1],Gr[1],!0))});return F.createElement(W.Provider,{value:Cr},Zt)}var K=[],se=F.createContext(null);function he(){return F.useContext(se)}var Te=F.createContext(K);function xe(Qt){var Zt=F.useContext(Te);return F.useMemo(function(){return Qt!==void 0?[].concat((0,Ne.Z)(Zt),[Qt]):Zt},[Zt,Qt])}var je=F.createContext(null),X=F.createContext({}),de=X,k=w(29194);function rt(Qt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,k.Z)(Qt)){var qt=Qt.nodeName.toLowerCase(),mr=["input","select","textarea","button"].includes(qt)||Qt.isContentEditable||qt==="a"&&!!Qt.getAttribute("href"),Wt=Qt.getAttribute("tabindex"),Cr=Number(Wt),Mr=null;return Wt&&!Number.isNaN(Cr)?Mr=Cr:mr&&Mr===null&&(Mr=0),mr&&Qt.disabled&&(Mr=null),Mr!==null&&(Mr>=0||Zt&&Mr<0)}return!1}function Oe(Qt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qt=(0,Ne.Z)(Qt.querySelectorAll("*")).filter(function(mr){return rt(mr,Zt)});return rt(Qt,Zt)&&qt.unshift(Qt),qt}var be=null;function He(){be=document.activeElement}function ge(){be=null}function De(){if(be)try{be.focus()}catch(Qt){}}function fe(Qt,Zt){if(Zt.keyCode===9){var qt=Oe(Qt),mr=qt[Zt.shiftKey?0:qt.length-1],Wt=mr===document.activeElement||Qt===document.activeElement;if(Wt){var Cr=qt[Zt.shiftKey?qt.length-1:0];Cr.focus(),Zt.preventDefault()}}}var Se=w(10228),ct=w(16089),dt=Se.Z.LEFT,at=Se.Z.RIGHT,st=Se.Z.UP,It=Se.Z.DOWN,Ut=Se.Z.ENTER,Kt=Se.Z.ESC,hr=Se.Z.HOME,or=Se.Z.END,Sr=[st,It,dt,at];function ur(Qt,Zt,qt,mr){var Wt,Cr,Mr,Gr,Mn="prev",Pn="next",oi="children",ei="parent";if(Qt==="inline"&&mr===Ut)return{inlineTrigger:!0};var bi=(Wt={},(0,ue.Z)(Wt,st,Mn),(0,ue.Z)(Wt,It,Pn),Wt),Jn=(Cr={},(0,ue.Z)(Cr,dt,qt?Pn:Mn),(0,ue.Z)(Cr,at,qt?Mn:Pn),(0,ue.Z)(Cr,It,oi),(0,ue.Z)(Cr,Ut,oi),Cr),Hn=(Mr={},(0,ue.Z)(Mr,st,Mn),(0,ue.Z)(Mr,It,Pn),(0,ue.Z)(Mr,Ut,oi),(0,ue.Z)(Mr,Kt,ei),(0,ue.Z)(Mr,dt,qt?oi:ei),(0,ue.Z)(Mr,at,qt?ei:oi),Mr),on={inline:bi,horizontal:Jn,vertical:Hn,inlineSub:bi,horizontalSub:Hn,verticalSub:Hn},pi=(Gr=on["".concat(Qt).concat(Zt?"":"Sub")])===null||Gr===void 0?void 0:Gr[mr];switch(pi){case Mn:return{offset:-1,sibling:!0};case Pn:return{offset:1,sibling:!0};case ei:return{offset:-1,sibling:!1};case oi:return{offset:1,sibling:!1};default:return null}}function G(Qt){for(var Zt=Qt;Zt;){if(Zt.getAttribute("data-menu-list"))return Zt;Zt=Zt.parentElement}return null}function wt(Qt,Zt){for(var qt=Qt||document.activeElement;qt;){if(Zt.has(qt))return qt;qt=qt.parentElement}return null}function _(Qt,Zt){var qt=Oe(Qt,!0);return qt.filter(function(mr){return Zt.has(mr)})}function f(Qt,Zt,qt){var mr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Qt)return null;var Wt=_(Qt,Zt),Cr=Wt.length,Mr=Wt.findIndex(function(Gr){return qt===Gr});return mr<0?Mr===-1?Mr=Cr-1:Mr-=1:mr>0&&(Mr+=1),Mr=(Mr+Cr)%Cr,Wt[Mr]}var u=function(Zt,qt){var mr=new Set,Wt=new Map,Cr=new Map;return Zt.forEach(function(Mr){var Gr=document.querySelector("[data-menu-id='".concat(M(qt,Mr),"']"));Gr&&(mr.add(Gr),Cr.set(Gr,Mr),Wt.set(Mr,Gr))}),{elements:mr,key2element:Wt,element2key:Cr}};function x(Qt,Zt,qt,mr,Wt,Cr,Mr,Gr,Mn,Pn){var oi=F.useRef(),ei=F.useRef();ei.current=Zt;var bi=function(){ct.Z.cancel(oi.current)};return F.useEffect(function(){return function(){bi()}},[]),function(Jn){var Hn=Jn.which;if([].concat(Sr,[Ut,Kt,hr,or]).includes(Hn)){var on=Cr(),pi=u(on,mr),Ln=pi,ri=Ln.elements,vi=Ln.key2element,_i=Ln.element2key,Xn=vi.get(Zt),Bi=wt(Xn,ri),ra=_i.get(Bi),ii=ur(Qt,Mr(ra,!0).length===1,qt,Hn);if(!ii&&Hn!==hr&&Hn!==or)return;(Sr.includes(Hn)||[hr,or].includes(Hn))&&Jn.preventDefault();var cn=function(Yi){if(Yi){var ao=Yi,Yn=Yi.querySelector("a");Yn!=null&&Yn.getAttribute("href")&&(ao=Yn);var On=_i.get(Yi);Gr(On),bi(),oi.current=(0,ct.Z)(function(){ei.current===On&&ao.focus()})}};if([hr,or].includes(Hn)||ii.sibling||!Bi){var nn;!Bi||Qt==="inline"?nn=Wt.current:nn=G(Bi);var Un,wn=_(nn,ri);Hn===hr?Un=wn[0]:Hn===or?Un=wn[wn.length-1]:Un=f(nn,ri,Bi,ii.offset),cn(Un)}else if(ii.inlineTrigger)Mn(ra);else if(ii.offset>0)Mn(ra,!0),bi(),oi.current=(0,ct.Z)(function(){pi=u(on,mr);var Aa=Bi.getAttribute("aria-controls"),Yi=document.getElementById(Aa),ao=f(Yi,pi.elements);cn(ao)},5);else if(ii.offset<0){var jn=Mr(ra,!0),li=jn[jn.length-2],wi=vi.get(li);Mn(li,!1),cn(wi)}}Pn==null||Pn(Jn)}}function ee(Qt){Promise.resolve().then(Qt)}var Ce="__RC_UTIL_PATH_SPLIT__",H=function(Zt){return Zt.join(Ce)},ne=function(Zt){return Zt.split(Ce)},$e="rc-menu-more";function we(){var Qt=F.useState({}),Zt=(0,te.Z)(Qt,2),qt=Zt[1],mr=(0,F.useRef)(new Map),Wt=(0,F.useRef)(new Map),Cr=F.useState([]),Mr=(0,te.Z)(Cr,2),Gr=Mr[0],Mn=Mr[1],Pn=(0,F.useRef)(0),oi=(0,F.useRef)(!1),ei=function(){oi.current||qt({})},bi=(0,F.useCallback)(function(vi,_i){var Xn=H(_i);Wt.current.set(Xn,vi),mr.current.set(vi,Xn),Pn.current+=1;var Bi=Pn.current;ee(function(){Bi===Pn.current&&ei()})},[]),Jn=(0,F.useCallback)(function(vi,_i){var Xn=H(_i);Wt.current.delete(Xn),mr.current.delete(vi)},[]),Hn=(0,F.useCallback)(function(vi){Mn(vi)},[]),on=(0,F.useCallback)(function(vi,_i){var Xn=mr.current.get(vi)||"",Bi=ne(Xn);return _i&&Gr.includes(Bi[0])&&Bi.unshift($e),Bi},[Gr]),pi=(0,F.useCallback)(function(vi,_i){return vi.some(function(Xn){var Bi=on(Xn,!0);return Bi.includes(_i)})},[on]),Ln=function(){var _i=(0,Ne.Z)(mr.current.keys());return Gr.length&&_i.push($e),_i},ri=(0,F.useCallback)(function(vi){var _i="".concat(mr.current.get(vi)).concat(Ce),Xn=new Set;return(0,Ne.Z)(Wt.current.keys()).forEach(function(Bi){Bi.startsWith(_i)&&Xn.add(Wt.current.get(Bi))}),Xn},[]);return F.useEffect(function(){return function(){oi.current=!0}},[]),{registerPath:bi,unregisterPath:Jn,refreshOverflowKeys:Hn,isSubPathKey:pi,getKeyPath:on,getKeys:Ln,getSubPathKeys:ri}}function ve(Qt){var Zt=F.useRef(Qt);Zt.current=Qt;var qt=F.useCallback(function(){for(var mr,Wt=arguments.length,Cr=new Array(Wt),Mr=0;Mr<Wt;Mr++)Cr[Mr]=arguments[Mr];return(mr=Zt.current)===null||mr===void 0?void 0:mr.call.apply(mr,[Zt].concat(Cr))},[]);return Qt?qt:void 0}var qe=Math.random().toFixed(5).toString().slice(2),St=0;function me(Qt){var Zt=(0,p.Z)(Qt,{value:Qt}),qt=(0,te.Z)(Zt,2),mr=qt[0],Wt=qt[1];return F.useEffect(function(){St+=1;var Cr="".concat(qe,"-").concat(St);Wt("rc-menu-uuid-".concat(Cr))},[]),mr}var ft=w(33377),lt=w(93912),Pe=w(18881),Le=w(85461),pt=w(2738),zt=w(8654);function Ht(Qt,Zt,qt,mr){var Wt=F.useContext(W),Cr=Wt.activeKey,Mr=Wt.onActive,Gr=Wt.onInactive,Mn={active:Cr===Qt};return Zt||(Mn.onMouseEnter=function(Pn){qt==null||qt({key:Qt,domEvent:Pn}),Mr(Qt)},Mn.onMouseLeave=function(Pn){mr==null||mr({key:Qt,domEvent:Pn}),Gr(Qt)}),Mn}function er(Qt){var Zt=F.useContext(W),qt=Zt.mode,mr=Zt.rtl,Wt=Zt.inlineIndent;if(qt!=="inline")return null;var Cr=Qt;return mr?{paddingRight:Cr*Wt}:{paddingLeft:Cr*Wt}}function Pr(Qt){var Zt=Qt.icon,qt=Qt.props,mr=Qt.children,Wt;return Zt===null||Zt===!1?null:(typeof Zt=="function"?Wt=F.createElement(Zt,(0,U.Z)({},qt)):typeof Zt!="boolean"&&(Wt=Zt),Wt||mr||null)}var pr=["item"];function kr(Qt){var Zt=Qt.item,qt=(0,Z.Z)(Qt,pr);return Object.defineProperty(qt,"item",{get:function(){return(0,S.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Zt}}),qt}var Dr=["title","attribute","elementRef"],vr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],dr=["active"],$r=function(Qt){(0,Pe.Z)(qt,Qt);var Zt=(0,Le.Z)(qt);function qt(){return(0,ft.Z)(this,qt),Zt.apply(this,arguments)}return(0,lt.Z)(qt,[{key:"render",value:function(){var Wt=this.props,Cr=Wt.title,Mr=Wt.attribute,Gr=Wt.elementRef,Mn=(0,Z.Z)(Wt,Dr),Pn=(0,pt.Z)(Mn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,S.ZP)(!Mr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),F.createElement(E.Z.Item,(0,pe.Z)({},Mr,{title:typeof Cr=="string"?Cr:void 0},Pn,{ref:Gr}))}}]),qt}(F.Component),un=F.forwardRef(function(Qt,Zt){var qt,mr=Qt.style,Wt=Qt.className,Cr=Qt.eventKey,Mr=Qt.warnKey,Gr=Qt.disabled,Mn=Qt.itemIcon,Pn=Qt.children,oi=Qt.role,ei=Qt.onMouseEnter,bi=Qt.onMouseLeave,Jn=Qt.onClick,Hn=Qt.onKeyDown,on=Qt.onFocus,pi=(0,Z.Z)(Qt,vr),Ln=Y(Cr),ri=F.useContext(W),vi=ri.prefixCls,_i=ri.onItemClick,Xn=ri.disabled,Bi=ri.overflowDisabled,ra=ri.itemIcon,ii=ri.selectedKeys,cn=ri.onActive,nn=F.useContext(de),Un=nn._internalRenderMenuItem,wn="".concat(vi,"-item"),jn=F.useRef(),li=F.useRef(),wi=Xn||Gr,Aa=(0,zt.x1)(Zt,li),Yi=xe(Cr),ao=function(ba){return{key:Cr,keyPath:(0,Ne.Z)(Yi).reverse(),item:jn.current,domEvent:ba}},Yn=Mn||ra,On=Ht(Cr,wi,ei,bi),Fi=On.active,xi=(0,Z.Z)(On,dr),ha=ii.includes(Cr),Oo=er(Yi.length),na=function(ba){if(!wi){var Ai=ao(ba);Jn==null||Jn(kr(Ai)),_i(Ai)}},Zi=function(ba){if(Hn==null||Hn(ba),ba.which===Se.Z.ENTER){var Ai=ao(ba);Jn==null||Jn(kr(Ai)),_i(Ai)}},ja=function(ba){cn(Cr),on==null||on(ba)},Ma={};Qt.role==="option"&&(Ma["aria-selected"]=ha);var eo=F.createElement($r,(0,pe.Z)({ref:jn,elementRef:Aa,role:oi===null?"none":oi||"menuitem",tabIndex:Gr?null:-1,"data-menu-id":Bi&&Ln?null:Ln},pi,xi,Ma,{component:"li","aria-disabled":Gr,style:(0,U.Z)((0,U.Z)({},Oo),mr),className:h()(wn,(qt={},(0,ue.Z)(qt,"".concat(wn,"-active"),Fi),(0,ue.Z)(qt,"".concat(wn,"-selected"),ha),(0,ue.Z)(qt,"".concat(wn,"-disabled"),wi),qt),Wt),onClick:na,onKeyDown:Zi,onFocus:ja}),Pn,F.createElement(Pr,{props:(0,U.Z)((0,U.Z)({},Qt),{},{isSelected:ha}),icon:Yn}));return Un&&(eo=Un(eo,Qt,{selected:ha})),eo});function _n(Qt,Zt){var qt=Qt.eventKey,mr=he(),Wt=xe(qt);return F.useEffect(function(){if(mr)return mr.registerPath(qt,Wt),function(){mr.unregisterPath(qt,Wt)}},[Wt]),mr?null:F.createElement(un,(0,pe.Z)({},Qt,{ref:Zt}))}var qr=F.forwardRef(_n),Bn=["className","children"],ti=function(Zt,qt){var mr=Zt.className,Wt=Zt.children,Cr=(0,Z.Z)(Zt,Bn),Mr=F.useContext(W),Gr=Mr.prefixCls,Mn=Mr.mode,Pn=Mr.rtl;return F.createElement("ul",(0,pe.Z)({className:h()(Gr,Pn&&"".concat(Gr,"-rtl"),"".concat(Gr,"-sub"),"".concat(Gr,"-").concat(Mn==="inline"?"inline":"vertical"),mr),role:"menu"},Cr,{"data-menu-list":!0,ref:qt}),Wt)},Ir=F.forwardRef(ti);Ir.displayName="SubMenuList";var qn=Ir,Ti=w(11592);function ci(Qt,Zt){return(0,Ti.Z)(Qt).map(function(qt,mr){if(F.isValidElement(qt)){var Wt,Cr,Mr=qt.key,Gr=(Wt=(Cr=qt.props)===null||Cr===void 0?void 0:Cr.eventKey)!==null&&Wt!==void 0?Wt:Mr,Mn=Gr==null;Mn&&(Gr="tmp_key-".concat([].concat((0,Ne.Z)(Zt),[mr]).join("-")));var Pn={key:Gr,eventKey:Gr};return F.cloneElement(qt,Pn)}return qt})}var Ui=w(35593),Ei={adjustX:1,adjustY:1},$i={topLeft:{points:["bl","tl"],overflow:Ei},topRight:{points:["br","tr"],overflow:Ei},bottomLeft:{points:["tl","bl"],overflow:Ei},bottomRight:{points:["tr","br"],overflow:Ei},leftTop:{points:["tr","tl"],overflow:Ei},leftBottom:{points:["br","bl"],overflow:Ei},rightTop:{points:["tl","tr"],overflow:Ei},rightBottom:{points:["bl","br"],overflow:Ei}},Ha={topLeft:{points:["bl","tl"],overflow:Ei},topRight:{points:["br","tr"],overflow:Ei},bottomLeft:{points:["tl","bl"],overflow:Ei},bottomRight:{points:["tr","br"],overflow:Ei},rightTop:{points:["tr","tl"],overflow:Ei},rightBottom:{points:["br","bl"],overflow:Ei},leftTop:{points:["tl","tr"],overflow:Ei},leftBottom:{points:["bl","br"],overflow:Ei}},Ji=null;function gi(Qt,Zt,qt){if(Zt)return Zt;if(qt)return qt[Qt]||qt.other}var ki={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Pi(Qt){var Zt=Qt.prefixCls,qt=Qt.visible,mr=Qt.children,Wt=Qt.popup,Cr=Qt.popupStyle,Mr=Qt.popupClassName,Gr=Qt.popupOffset,Mn=Qt.disabled,Pn=Qt.mode,oi=Qt.onVisibleChange,ei=F.useContext(W),bi=ei.getPopupContainer,Jn=ei.rtl,Hn=ei.subMenuOpenDelay,on=ei.subMenuCloseDelay,pi=ei.builtinPlacements,Ln=ei.triggerSubMenuAction,ri=ei.forceSubMenuRender,vi=ei.rootClassName,_i=ei.motion,Xn=ei.defaultMotions,Bi=F.useState(!1),ra=(0,te.Z)(Bi,2),ii=ra[0],cn=ra[1],nn=Jn?(0,U.Z)((0,U.Z)({},Ha),pi):(0,U.Z)((0,U.Z)({},$i),pi),Un=ki[Pn],wn=gi(Pn,_i,Xn),jn=F.useRef(wn);Pn!=="inline"&&(jn.current=wn);var li=(0,U.Z)((0,U.Z)({},jn.current),{},{leavedClassName:"".concat(Zt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),wi=F.useRef();return F.useEffect(function(){return wi.current=(0,ct.Z)(function(){cn(qt)}),function(){ct.Z.cancel(wi.current)}},[qt]),F.createElement(Ui.Z,{prefixCls:Zt,popupClassName:h()("".concat(Zt,"-popup"),(0,ue.Z)({},"".concat(Zt,"-rtl"),Jn),Mr,vi),stretch:Pn==="horizontal"?"minWidth":null,getPopupContainer:bi,builtinPlacements:nn,popupPlacement:Un,popupVisible:ii,popup:Wt,popupStyle:Cr,popupAlign:Gr&&{offset:Gr},action:Mn?[]:[Ln],mouseEnterDelay:Hn,mouseLeaveDelay:on,onPopupVisibleChange:oi,forceRender:ri,popupMotion:li,fresh:!0},mr)}var nt=w(77900);function Ie(Qt){var Zt=Qt.id,qt=Qt.open,mr=Qt.keyPath,Wt=Qt.children,Cr="inline",Mr=F.useContext(W),Gr=Mr.prefixCls,Mn=Mr.forceSubMenuRender,Pn=Mr.motion,oi=Mr.defaultMotions,ei=Mr.mode,bi=F.useRef(!1);bi.current=ei===Cr;var Jn=F.useState(!bi.current),Hn=(0,te.Z)(Jn,2),on=Hn[0],pi=Hn[1],Ln=bi.current?qt:!1;F.useEffect(function(){bi.current&&pi(!1)},[ei]);var ri=(0,U.Z)({},gi(Cr,Pn,oi));mr.length>1&&(ri.motionAppear=!1);var vi=ri.onVisibleChanged;return ri.onVisibleChanged=function(_i){return!bi.current&&!_i&&pi(!0),vi==null?void 0:vi(_i)},on?null:F.createElement(V,{mode:Cr,locked:!bi.current},F.createElement(nt.default,(0,pe.Z)({visible:Ln},ri,{forceRender:Mn,removeOnLeave:!1,leavedClassName:"".concat(Gr,"-hidden")}),function(_i){var Xn=_i.className,Bi=_i.style;return F.createElement(qn,{id:Zt,className:Xn,style:Bi},Wt)}))}var ke=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ee=["active"],$t=function(Zt){var qt,mr=Zt.style,Wt=Zt.className,Cr=Zt.title,Mr=Zt.eventKey,Gr=Zt.warnKey,Mn=Zt.disabled,Pn=Zt.internalPopupClose,oi=Zt.children,ei=Zt.itemIcon,bi=Zt.expandIcon,Jn=Zt.popupClassName,Hn=Zt.popupOffset,on=Zt.popupStyle,pi=Zt.onClick,Ln=Zt.onMouseEnter,ri=Zt.onMouseLeave,vi=Zt.onTitleClick,_i=Zt.onTitleMouseEnter,Xn=Zt.onTitleMouseLeave,Bi=(0,Z.Z)(Zt,ke),ra=Y(Mr),ii=F.useContext(W),cn=ii.prefixCls,nn=ii.mode,Un=ii.openKeys,wn=ii.disabled,jn=ii.overflowDisabled,li=ii.activeKey,wi=ii.selectedKeys,Aa=ii.itemIcon,Yi=ii.expandIcon,ao=ii.onItemClick,Yn=ii.onOpenChange,On=ii.onActive,Fi=F.useContext(de),xi=Fi._internalRenderSubMenuItem,ha=F.useContext(je),Oo=ha.isSubPathKey,na=xe(),Zi="".concat(cn,"-submenu"),ja=wn||Mn,Ma=F.useRef(),eo=F.useRef(),vo=ei!=null?ei:Aa,ba=bi!=null?bi:Yi,Ai=Un.includes(Mr),ua=!jn&&Ai,Do=Oo(wi,Mr),uo=Ht(Mr,ja,_i,Xn),Xa=uo.active,Di=(0,Z.Z)(uo,Ee),Po=F.useState(!1),fo=(0,te.Z)(Po,2),il=fo[0],$o=fo[1],Hs=function(Bo){ja||$o(Bo)},Zo=function(Bo){Hs(!0),Ln==null||Ln({key:Mr,domEvent:Bo})},vl=function(Bo){Hs(!1),ri==null||ri({key:Mr,domEvent:Bo})},za=F.useMemo(function(){return Xa||(nn!=="inline"?il||Oo([li],Mr):!1)},[nn,Xa,li,il,Mr,Oo]),Ra=er(na.length),Ea=function(Bo){ja||(vi==null||vi({key:Mr,domEvent:Bo}),nn==="inline"&&Yn(Mr,!Ai))},js=ve(function(_o){pi==null||pi(kr(_o)),ao(_o)}),yi=function(Bo){nn!=="inline"&&Yn(Mr,Bo)},Vi=function(){On(Mr)},Oi=ra&&"".concat(ra,"-popup"),Wi=F.createElement("div",(0,pe.Z)({role:"menuitem",style:Ra,className:"".concat(Zi,"-title"),tabIndex:ja?null:-1,ref:Ma,title:typeof Cr=="string"?Cr:null,"data-menu-id":jn&&ra?null:ra,"aria-expanded":ua,"aria-haspopup":!0,"aria-controls":Oi,"aria-disabled":ja,onClick:Ea,onFocus:Vi},Di),Cr,F.createElement(Pr,{icon:nn!=="horizontal"?ba:void 0,props:(0,U.Z)((0,U.Z)({},Zt),{},{isOpen:ua,isSubMenu:!0})},F.createElement("i",{className:"".concat(Zi,"-arrow")}))),da=F.useRef(nn);if(nn!=="inline"&&na.length>1?da.current="vertical":da.current=nn,!jn){var La=da.current;Wi=F.createElement(Pi,{mode:La,prefixCls:Zi,visible:!Pn&&ua&&nn!=="inline",popupClassName:Jn,popupOffset:Hn,popupStyle:on,popup:F.createElement(V,{mode:La==="horizontal"?"vertical":La},F.createElement(qn,{id:Oi,ref:eo},oi)),disabled:ja,onVisibleChange:yi},Wi)}var Vo=F.createElement(E.Z.Item,(0,pe.Z)({role:"none"},Bi,{component:"li",style:mr,className:h()(Zi,"".concat(Zi,"-").concat(nn),Wt,(qt={},(0,ue.Z)(qt,"".concat(Zi,"-open"),ua),(0,ue.Z)(qt,"".concat(Zi,"-active"),za),(0,ue.Z)(qt,"".concat(Zi,"-selected"),Do),(0,ue.Z)(qt,"".concat(Zi,"-disabled"),ja),qt)),onMouseEnter:Zo,onMouseLeave:vl}),Wi,!jn&&F.createElement(Ie,{id:Oi,open:ua,keyPath:na},oi));return xi&&(Vo=xi(Vo,Zt,{selected:Do,active:za,open:ua,disabled:ja})),F.createElement(V,{onItemClick:js,mode:nn==="horizontal"?"vertical":nn,itemIcon:vo,expandIcon:ba},Vo)};function Nt(Qt){var Zt=Qt.eventKey,qt=Qt.children,mr=xe(Zt),Wt=ci(qt,mr),Cr=he();F.useEffect(function(){if(Cr)return Cr.registerPath(Zt,mr),function(){Cr.unregisterPath(Zt,mr)}},[mr]);var Mr;return Cr?Mr=Wt:Mr=F.createElement($t,Qt,Wt),F.createElement(Te.Provider,{value:mr},Mr)}var Er=w(34666),sr=["className","title","eventKey","children"],Kr=["children"],Wr=function(Zt){var qt=Zt.className,mr=Zt.title,Wt=Zt.eventKey,Cr=Zt.children,Mr=(0,Z.Z)(Zt,sr),Gr=F.useContext(W),Mn=Gr.prefixCls,Pn="".concat(Mn,"-item-group");return F.createElement("li",(0,pe.Z)({role:"presentation"},Mr,{onClick:function(ei){return ei.stopPropagation()},className:h()(Pn,qt)}),F.createElement("div",{role:"presentation",className:"".concat(Pn,"-title"),title:typeof mr=="string"?mr:void 0},mr),F.createElement("ul",{role:"group",className:"".concat(Pn,"-list")},Cr))};function tn(Qt){var Zt=Qt.children,qt=(0,Z.Z)(Qt,Kr),mr=xe(qt.eventKey),Wt=ci(Zt,mr),Cr=he();return Cr?Wt:F.createElement(Wr,(0,pt.Z)(qt,["warnKey"]),Wt)}function Vr(Qt){var Zt=Qt.className,qt=Qt.style,mr=F.useContext(W),Wt=mr.prefixCls,Cr=he();return Cr?null:F.createElement("li",{role:"separator",className:h()("".concat(Wt,"-item-divider"),Zt),style:qt})}var jr=["label","children","key","type"];function Yr(Qt){return(Qt||[]).map(function(Zt,qt){if(Zt&&(0,Er.Z)(Zt)==="object"){var mr=Zt,Wt=mr.label,Cr=mr.children,Mr=mr.key,Gr=mr.type,Mn=(0,Z.Z)(mr,jr),Pn=Mr!=null?Mr:"tmp-".concat(qt);return Cr||Gr==="group"?Gr==="group"?F.createElement(tn,(0,pe.Z)({key:Pn},Mn,{title:Wt}),Yr(Cr)):F.createElement(Nt,(0,pe.Z)({key:Pn},Mn,{title:Wt}),Yr(Cr)):Gr==="divider"?F.createElement(Vr,(0,pe.Z)({key:Pn},Mn)):F.createElement(qr,(0,pe.Z)({key:Pn},Mn),Wt)}return null}).filter(function(Zt){return Zt})}function mn(Qt,Zt,qt){var mr=Qt;return Zt&&(mr=Yr(Zt)),ci(mr,qt)}var rn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Dn=[],Qn=F.forwardRef(function(Qt,Zt){var qt,mr,Wt=Qt,Cr=Wt.prefixCls,Mr=Cr===void 0?"rc-menu":Cr,Gr=Wt.rootClassName,Mn=Wt.style,Pn=Wt.className,oi=Wt.tabIndex,ei=oi===void 0?0:oi,bi=Wt.items,Jn=Wt.children,Hn=Wt.direction,on=Wt.id,pi=Wt.mode,Ln=pi===void 0?"vertical":pi,ri=Wt.inlineCollapsed,vi=Wt.disabled,_i=Wt.disabledOverflow,Xn=Wt.subMenuOpenDelay,Bi=Xn===void 0?.1:Xn,ra=Wt.subMenuCloseDelay,ii=ra===void 0?.1:ra,cn=Wt.forceSubMenuRender,nn=Wt.defaultOpenKeys,Un=Wt.openKeys,wn=Wt.activeKey,jn=Wt.defaultActiveFirst,li=Wt.selectable,wi=li===void 0?!0:li,Aa=Wt.multiple,Yi=Aa===void 0?!1:Aa,ao=Wt.defaultSelectedKeys,Yn=Wt.selectedKeys,On=Wt.onSelect,Fi=Wt.onDeselect,xi=Wt.inlineIndent,ha=xi===void 0?24:xi,Oo=Wt.motion,na=Wt.defaultMotions,Zi=Wt.triggerSubMenuAction,ja=Zi===void 0?"hover":Zi,Ma=Wt.builtinPlacements,eo=Wt.itemIcon,vo=Wt.expandIcon,ba=Wt.overflowedIndicator,Ai=ba===void 0?"...":ba,ua=Wt.overflowedIndicatorPopupClassName,Do=Wt.getPopupContainer,uo=Wt.onClick,Xa=Wt.onOpenChange,Di=Wt.onKeyDown,Po=Wt.openAnimation,fo=Wt.openTransitionName,il=Wt._internalRenderMenuItem,$o=Wt._internalRenderSubMenuItem,Hs=(0,Z.Z)(Wt,rn),Zo=F.useMemo(function(){return mn(Jn,bi,Dn)},[Jn,bi]),vl=F.useState(!1),za=(0,te.Z)(vl,2),Ra=za[0],Ea=za[1],js=F.useRef(),yi=me(on),Vi=Hn==="rtl",Oi=(0,p.Z)(nn,{value:Un,postState:function(po){return po||Dn}}),Wi=(0,te.Z)(Oi,2),da=Wi[0],La=Wi[1],Vo=function(po){var mo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Go(){La(po),Xa==null||Xa(po)}mo?(0,P.flushSync)(Go):Go()},_o=F.useState(da),Bo=(0,te.Z)(_o,2),$a=Bo[0],wa=Bo[1],pa=F.useRef(!1),Oa=F.useMemo(function(){return(Ln==="inline"||Ln==="vertical")&&ri?["vertical",ri]:[Ln,!1]},[Ln,ri]),Ja=(0,te.Z)(Oa,2),oo=Ja[0],Ta=Ja[1],ka=oo==="inline",Fo=F.useState(oo),Ll=(0,te.Z)(Fo,2),cs=Ll[0],dl=Ll[1],No=F.useState(Ta),ks=(0,te.Z)(No,2),Io=ks[0],Kn=ks[1];F.useEffect(function(){dl(oo),Kn(Ta),pa.current&&(ka?La($a):Vo(Dn))},[oo,Ta]);var kl=F.useState(0),To=(0,te.Z)(kl,2),Hl=To[0],zs=To[1],ms=Hl>=Zo.length-1||cs!=="horizontal"||_i;F.useEffect(function(){ka&&wa(da)},[da]),F.useEffect(function(){return pa.current=!0,function(){pa.current=!1}},[]);var Da=we(),Uo=Da.registerPath,jl=Da.unregisterPath,tc=Da.refreshOverflowKeys,fl=Da.isSubPathKey,ma=Da.getKeyPath,oa=Da.getKeys,ho=Da.getSubPathKeys,Za=F.useMemo(function(){return{registerPath:Uo,unregisterPath:jl}},[Uo,jl]),to=F.useMemo(function(){return{isSubPathKey:fl}},[fl]);F.useEffect(function(){tc(ms?Dn:Zo.slice(Hl+1).map(function(Na){return Na.key}))},[Hl,ms]);var Ro=(0,p.Z)(wn||jn&&((qt=Zo[0])===null||qt===void 0?void 0:qt.key),{value:wn}),Ya=(0,te.Z)(Ro,2),Wo=Ya[0],Ds=Ya[1],hl=ve(function(Na){Ds(Na)}),Xs=ve(function(){Ds(void 0)});(0,F.useImperativeHandle)(Zt,function(){return{list:js.current,focus:function(po){var mo,Go=oa(),Ps=u(Go,yi),kc=Ps.elements,yl=Ps.key2element,Gc=Ps.element2key,xA=_(js.current,kc),CA=Wo!=null?Wo:xA[0]?Gc.get(xA[0]):(mo=Zo.find(function(Uu){return!Uu.props.disabled}))===null||mo===void 0?void 0:mo.key,pc=yl.get(CA);if(CA&&pc){var mc;pc==null||(mc=pc.focus)===null||mc===void 0||mc.call(pc,po)}}}});var al=(0,p.Z)(ao||[],{value:Yn,postState:function(po){return Array.isArray(po)?po:po==null?Dn:[po]}}),Wc=(0,te.Z)(al,2),Dl=Wc[0],Js=Wc[1],lA=function(po){if(wi){var mo=po.key,Go=Dl.includes(mo),Ps;Yi?Go?Ps=Dl.filter(function(yl){return yl!==mo}):Ps=[].concat((0,Ne.Z)(Dl),[mo]):Ps=[mo],Js(Ps);var kc=(0,U.Z)((0,U.Z)({},po),{},{selectedKeys:Ps});Go?Fi==null||Fi(kc):On==null||On(kc)}!Yi&&da.length&&cs!=="inline"&&Vo(Dn)},cA=ve(function(Na){uo==null||uo(kr(Na)),lA(Na)}),hc=ve(function(Na,po){var mo=da.filter(function(Ps){return Ps!==Na});if(po)mo.push(Na);else if(cs!=="inline"){var Go=ho(Na);mo=mo.filter(function(Ps){return!Go.has(Ps)})}(0,j.Z)(da,mo,!0)||Vo(mo,!0)}),wA=function(po,mo){var Go=mo!=null?mo:!da.includes(po);hc(po,Go)},Pl=x(cs,Wo,Vi,yi,js,oa,ma,Ds,wA,Di);F.useEffect(function(){Ea(!0)},[]);var Ys=F.useMemo(function(){return{_internalRenderMenuItem:il,_internalRenderSubMenuItem:$o}},[il,$o]),ol=cs!=="horizontal"||_i?Zo:Zo.map(function(Na,po){return F.createElement(V,{key:Na.key,overflowDisabled:po>Hl},Na)}),sl=F.createElement(E.Z,(0,pe.Z)({id:on,ref:js,prefixCls:"".concat(Mr,"-overflow"),component:"ul",itemComponent:qr,className:h()(Mr,"".concat(Mr,"-root"),"".concat(Mr,"-").concat(cs),Pn,(mr={},(0,ue.Z)(mr,"".concat(Mr,"-inline-collapsed"),Io),(0,ue.Z)(mr,"".concat(Mr,"-rtl"),Vi),mr),Gr),dir:Hn,style:Mn,role:"menu",tabIndex:ei,data:ol,renderRawItem:function(po){return po},renderRawRest:function(po){var mo=po.length,Go=mo?Zo.slice(-mo):null;return F.createElement(Nt,{eventKey:$e,title:Ai,disabled:ms,internalPopupClose:mo===0,popupClassName:ua},Go)},maxCount:cs!=="horizontal"||_i?E.Z.INVALIDATE:E.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(po){zs(po)},onKeyDown:Pl},Hs));return F.createElement(de.Provider,{value:Ys},F.createElement(R.Provider,{value:yi},F.createElement(V,{prefixCls:Mr,rootClassName:Gr,mode:cs,openKeys:da,rtl:Vi,disabled:vi,motion:Ra?Oo:null,defaultMotions:Ra?na:null,activeKey:Wo,onActive:hl,onInactive:Xs,selectedKeys:Dl,inlineIndent:ha,subMenuOpenDelay:Bi,subMenuCloseDelay:ii,forceSubMenuRender:cn,builtinPlacements:Ma,triggerSubMenuAction:ja,getPopupContainer:Do,itemIcon:eo,expandIcon:vo,onItemClick:cA,onOpenChange:hc},F.createElement(je.Provider,{value:to},sl),F.createElement("div",{style:{display:"none"},"aria-hidden":!0},F.createElement(se.Provider,{value:Za},Zo)))))}),ui=Qn,Tn=ui;Tn.Item=qr,Tn.SubMenu=Nt,Tn.ItemGroup=tn,Tn.Divider=Vr;var sn=Tn},11780:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return He}});var pe=w(32855),ue=w(27247),U=w(11913),Ne=w(43079),te=w(59301),Z=w(92310),B=w.n(Z),h=w(29301),E=w(34280),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],j=void 0;function S(ge,De){var fe=ge.prefixCls,Se=ge.invalidate,ct=ge.item,dt=ge.renderItem,at=ge.responsive,st=ge.responsiveDisabled,It=ge.registerSize,Ut=ge.itemKey,Kt=ge.className,hr=ge.style,or=ge.children,Sr=ge.display,ur=ge.order,G=ge.component,wt=G===void 0?"div":G,_=(0,Ne.Z)(ge,p),f=at&&!Sr;function u(ne){It(Ut,ne)}te.useEffect(function(){return function(){u(null)}},[]);var x=dt&&ct!==j?dt(ct,{index:ur}):or,ee;Se||(ee={opacity:f?0:1,height:f?0:j,overflowY:f?"hidden":j,order:at?ur:j,pointerEvents:f?"none":j,position:f?"absolute":j});var Ce={};f&&(Ce["aria-hidden"]=!0);var H=te.createElement(wt,(0,pe.Z)({className:B()(!Se&&fe,Kt),style:(0,ue.Z)((0,ue.Z)({},ee),hr)},Ce,_,{ref:De}),x);return at&&(H=te.createElement(h.Z,{onResize:function($e){var we=$e.offsetWidth;u(we)},disabled:st},H)),H}var F=te.forwardRef(S);F.displayName="Item";var P=F,R=w(6089),M=w(4676),Y=w(16089);function Q(ge){if(typeof MessageChannel=="undefined")(0,Y.Z)(ge);else{var De=new MessageChannel;De.port1.onmessage=function(){return ge()},De.port2.postMessage(void 0)}}function ce(){var ge=te.useRef(null),De=function(Se){ge.current||(ge.current=[],Q(function(){(0,M.unstable_batchedUpdates)(function(){ge.current.forEach(function(ct){ct()}),ge.current=null})})),ge.current.push(Se)};return De}function W(ge,De){var fe=te.useState(De),Se=(0,U.Z)(fe,2),ct=Se[0],dt=Se[1],at=(0,R.Z)(function(st){ge(function(){dt(st)})});return[ct,at]}var J=te.createContext(null),V=["component"],K=["className"],se=["className"],he=function(De,fe){var Se=te.useContext(J);if(!Se){var ct=De.component,dt=ct===void 0?"div":ct,at=(0,Ne.Z)(De,V);return te.createElement(dt,(0,pe.Z)({},at,{ref:fe}))}var st=Se.className,It=(0,Ne.Z)(Se,K),Ut=De.className,Kt=(0,Ne.Z)(De,se);return te.createElement(J.Provider,{value:null},te.createElement(P,(0,pe.Z)({ref:fe,className:B()(st,Ut)},It,Kt)))},Te=te.forwardRef(he);Te.displayName="RawItem";var xe=Te,je=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],X="responsive",de="invalidate";function k(ge){return"+ ".concat(ge.length," ...")}function rt(ge,De){var fe=ge.prefixCls,Se=fe===void 0?"rc-overflow":fe,ct=ge.data,dt=ct===void 0?[]:ct,at=ge.renderItem,st=ge.renderRawItem,It=ge.itemKey,Ut=ge.itemWidth,Kt=Ut===void 0?10:Ut,hr=ge.ssr,or=ge.style,Sr=ge.className,ur=ge.maxCount,G=ge.renderRest,wt=ge.renderRawRest,_=ge.suffix,f=ge.component,u=f===void 0?"div":f,x=ge.itemComponent,ee=ge.onVisibleChange,Ce=(0,Ne.Z)(ge,je),H=hr==="full",ne=ce(),$e=W(ne,null),we=(0,U.Z)($e,2),ve=we[0],qe=we[1],St=ve||0,me=W(ne,new Map),ft=(0,U.Z)(me,2),lt=ft[0],Pe=ft[1],Le=W(ne,0),pt=(0,U.Z)(Le,2),zt=pt[0],Ht=pt[1],er=W(ne,0),Pr=(0,U.Z)(er,2),pr=Pr[0],kr=Pr[1],Dr=W(ne,0),vr=(0,U.Z)(Dr,2),dr=vr[0],$r=vr[1],un=(0,te.useState)(null),_n=(0,U.Z)(un,2),qr=_n[0],Bn=_n[1],ti=(0,te.useState)(null),Ir=(0,U.Z)(ti,2),qn=Ir[0],Ti=Ir[1],ci=te.useMemo(function(){return qn===null&&H?Number.MAX_SAFE_INTEGER:qn||0},[qn,ve]),Ui=(0,te.useState)(!1),Ei=(0,U.Z)(Ui,2),$i=Ei[0],Ha=Ei[1],Ji="".concat(Se,"-item"),gi=Math.max(zt,pr),ki=ur===X,Pi=dt.length&&ki,nt=ur===de,Ie=Pi||typeof ur=="number"&&dt.length>ur,ke=(0,te.useMemo)(function(){var sn=dt;return Pi?ve===null&&H?sn=dt:sn=dt.slice(0,Math.min(dt.length,St/Kt)):typeof ur=="number"&&(sn=dt.slice(0,ur)),sn},[dt,Kt,ve,ur,Pi]),Ee=(0,te.useMemo)(function(){return Pi?dt.slice(ci+1):dt.slice(ke.length)},[dt,ke,Pi,ci]),$t=(0,te.useCallback)(function(sn,Qt){var Zt;return typeof It=="function"?It(sn):(Zt=It&&(sn==null?void 0:sn[It]))!==null&&Zt!==void 0?Zt:Qt},[It]),Nt=(0,te.useCallback)(at||function(sn){return sn},[at]);function Er(sn,Qt,Zt){qn===sn&&(Qt===void 0||Qt===qr)||(Ti(sn),Zt||(Ha(sn<dt.length-1),ee==null||ee(sn)),Qt!==void 0&&Bn(Qt))}function sr(sn,Qt){qe(Qt.clientWidth)}function Kr(sn,Qt){Pe(function(Zt){var qt=new Map(Zt);return Qt===null?qt.delete(sn):qt.set(sn,Qt),qt})}function Wr(sn,Qt){kr(Qt),Ht(pr)}function tn(sn,Qt){$r(Qt)}function Vr(sn){return lt.get($t(ke[sn],sn))}(0,E.Z)(function(){if(St&&typeof gi=="number"&&ke){var sn=dr,Qt=ke.length,Zt=Qt-1;if(!Qt){Er(0,null);return}for(var qt=0;qt<Qt;qt+=1){var mr=Vr(qt);if(H&&(mr=mr||0),mr===void 0){Er(qt-1,void 0,!0);break}if(sn+=mr,Zt===0&&sn<=St||qt===Zt-1&&sn+Vr(Zt)<=St){Er(Zt,null);break}else if(sn+gi>St){Er(qt-1,sn-mr-dr+pr);break}}_&&Vr(0)+dr>St&&Bn(null)}},[St,lt,pr,dr,$t,ke]);var jr=$i&&!!Ee.length,Yr={};qr!==null&&Pi&&(Yr={position:"absolute",left:qr,top:0});var mn={prefixCls:Ji,responsive:Pi,component:x,invalidate:nt},rn=st?function(sn,Qt){var Zt=$t(sn,Qt);return te.createElement(J.Provider,{key:Zt,value:(0,ue.Z)((0,ue.Z)({},mn),{},{order:Qt,item:sn,itemKey:Zt,registerSize:Kr,display:Qt<=ci})},st(sn,Qt))}:function(sn,Qt){var Zt=$t(sn,Qt);return te.createElement(P,(0,pe.Z)({},mn,{order:Qt,key:Zt,item:sn,renderItem:Nt,itemKey:Zt,registerSize:Kr,display:Qt<=ci}))},Dn={order:jr?ci:Number.MAX_SAFE_INTEGER,className:"".concat(Ji,"-rest"),registerSize:Wr,display:jr},Qn=G||k,ui=wt?te.createElement(J.Provider,{value:(0,ue.Z)((0,ue.Z)({},mn),Dn)},wt(Ee)):te.createElement(P,(0,pe.Z)({},mn,Dn),typeof Qn=="function"?Qn(Ee):Qn),Tn=te.createElement(u,(0,pe.Z)({className:B()(!nt&&Se,Sr),style:or,ref:De},Ce),ke.map(rn),Ie?ui:null,_&&te.createElement(P,(0,pe.Z)({},mn,{responsive:ki,responsiveDisabled:!Pi,order:ci,className:"".concat(Ji,"-suffix"),registerSize:tn,display:!0,style:Yr}),_));return ki?te.createElement(h.Z,{onResize:sr,disabled:!Pi},Tn):Tn}var Oe=te.forwardRef(rt);Oe.displayName="Overflow",Oe.Item=xe,Oe.RESPONSIVE=X,Oe.INVALIDATE=de;var be=Oe,He=be},17115:function(xn,Jt,w){"use strict";w.d(Jt,{ZP:function(){return B}});var pe=w(11913),ue=w(59301),U=w(47273),Ne=0,te=(0,U.Z)();function Z(){var h;return te?(h=Ne,Ne+=1):h="TEST_OR_SSR",h}function B(h){var E=ue.useState(),p=(0,pe.Z)(E,2),j=p[0],S=p[1];return ue.useEffect(function(){S("rc_select_".concat(Z()))},[]),h||j}},77861:function(xn,Jt,w){"use strict";w.d(Jt,{Ac:function(){return qe},Xo:function(){return kr},Wx:function(){return vr},ZP:function(){return Ie},lk:function(){return J}});var pe=w(32855),ue=w(3300),U=w(74430),Ne=w(27247),te=w(11913),Z=w(43079),B=w(34666),h=w(18929),E=w(48736),p=w(59301),j=w(92310),S=w.n(j),F=w(34280),P=w(49658),R=w(10228),M=w(8654),Y=function(Ee){var $t=Ee.className,Nt=Ee.customizeIcon,Er=Ee.customizeIconProps,sr=Ee.onMouseDown,Kr=Ee.onClick,Wr=Ee.children,tn;return typeof Nt=="function"?tn=Nt(Er):tn=Nt,p.createElement("span",{className:$t,onMouseDown:function(jr){jr.preventDefault(),sr&&sr(jr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Kr,"aria-hidden":!0},tn!==void 0?tn:p.createElement("span",{className:S()($t.split(/\s+/).map(function(Vr){return"".concat(Vr,"-icon")}))},Wr))},Q=Y;function ce(ke,Ee,$t,Nt,Er){var sr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Kr=arguments.length>6?arguments[6]:void 0,Wr=arguments.length>7?arguments[7]:void 0,tn=p.useMemo(function(){if((0,B.Z)(Nt)==="object")return Nt.clearIcon;if(Er)return Er},[Nt,Er]),Vr=p.useMemo(function(){return!!(!sr&&Nt&&($t.length||Kr)&&!(Wr==="combobox"&&Kr===""))},[Nt,sr,$t.length,Kr,Wr]);return{allowClear:Vr,clearIcon:p.createElement(Q,{className:"".concat(ke,"-clear"),onMouseDown:Ee,customizeIcon:tn},"\xD7")}}var W=p.createContext(null);function J(){return p.useContext(W)}function V(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ee=p.useState(!1),$t=(0,te.Z)(Ee,2),Nt=$t[0],Er=$t[1],sr=p.useRef(null),Kr=function(){window.clearTimeout(sr.current)};p.useEffect(function(){return Kr},[]);var Wr=function(Vr,jr){Kr(),sr.current=window.setTimeout(function(){Er(Vr),jr&&jr()},ke)};return[Nt,Wr,Kr]}function K(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ee=p.useRef(null),$t=p.useRef(null);p.useEffect(function(){return function(){window.clearTimeout($t.current)}},[]);function Nt(Er){(Er||Ee.current===null)&&(Ee.current=Er),window.clearTimeout($t.current),$t.current=window.setTimeout(function(){Ee.current=null},ke)}return[function(){return Ee.current},Nt]}function se(ke,Ee,$t,Nt){var Er=p.useRef(null);Er.current={open:Ee,triggerOpen:$t,customizedTrigger:Nt},p.useEffect(function(){function sr(Kr){var Wr;if(!((Wr=Er.current)!==null&&Wr!==void 0&&Wr.customizedTrigger)){var tn=Kr.target;tn.shadowRoot&&Kr.composed&&(tn=Kr.composedPath()[0]||tn),Er.current.open&&ke().filter(function(Vr){return Vr}).every(function(Vr){return!Vr.contains(tn)&&Vr!==tn})&&Er.current.triggerOpen(!1)}}return window.addEventListener("mousedown",sr),function(){return window.removeEventListener("mousedown",sr)}},[])}var he=w(26112),Te=w(11780),xe=function(Ee,$t){var Nt,Er,sr=Ee.prefixCls,Kr=Ee.id,Wr=Ee.inputElement,tn=Ee.disabled,Vr=Ee.tabIndex,jr=Ee.autoFocus,Yr=Ee.autoComplete,mn=Ee.editable,rn=Ee.activeDescendantId,Dn=Ee.value,Qn=Ee.maxLength,ui=Ee.onKeyDown,Tn=Ee.onMouseDown,sn=Ee.onChange,Qt=Ee.onPaste,Zt=Ee.onCompositionStart,qt=Ee.onCompositionEnd,mr=Ee.open,Wt=Ee.attrs,Cr=Wr||p.createElement("input",null),Mr=Cr,Gr=Mr.ref,Mn=Mr.props,Pn=Mn.onKeyDown,oi=Mn.onChange,ei=Mn.onMouseDown,bi=Mn.onCompositionStart,Jn=Mn.onCompositionEnd,Hn=Mn.style;return(0,E.Kp)(!("maxLength"in Cr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Cr=p.cloneElement(Cr,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({type:"search"},Mn),{},{id:Kr,ref:(0,M.sQ)($t,Gr),disabled:tn,tabIndex:Vr,autoComplete:Yr||"off",autoFocus:jr,className:S()("".concat(sr,"-selection-search-input"),(Nt=Cr)===null||Nt===void 0||(Er=Nt.props)===null||Er===void 0?void 0:Er.className),role:"combobox","aria-label":"Search","aria-expanded":mr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Kr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Kr,"_list"),"aria-activedescendant":mr?rn:void 0},Wt),{},{value:mn?Dn:"",maxLength:Qn,readOnly:!mn,unselectable:mn?null:"on",style:(0,Ne.Z)((0,Ne.Z)({},Hn),{},{opacity:mn?null:0}),onKeyDown:function(pi){ui(pi),Pn&&Pn(pi)},onMouseDown:function(pi){Tn(pi),ei&&ei(pi)},onChange:function(pi){sn(pi),oi&&oi(pi)},onCompositionStart:function(pi){Zt(pi),bi&&bi(pi)},onCompositionEnd:function(pi){qt(pi),Jn&&Jn(pi)},onPaste:Qt})),Cr},je=p.forwardRef(xe);je.displayName="Input";var X=je;function de(ke){return Array.isArray(ke)?ke:ke!==void 0?[ke]:[]}var k=typeof window!="undefined"&&window.document&&window.document.documentElement,rt=k;function Oe(ke){return ke!=null}function be(ke){return!ke&&ke!==0}function He(ke){return["string","number"].includes((0,B.Z)(ke))}function ge(ke){var Ee=void 0;return ke&&(He(ke.title)?Ee=ke.title.toString():He(ke.label)&&(Ee=ke.label.toString())),Ee}function De(ke,Ee){rt?p.useLayoutEffect(ke,Ee):p.useEffect(ke,Ee)}function fe(ke){var Ee;return(Ee=ke.key)!==null&&Ee!==void 0?Ee:ke.value}var Se=function(Ee){Ee.preventDefault(),Ee.stopPropagation()},ct=function(Ee){var $t=Ee.id,Nt=Ee.prefixCls,Er=Ee.values,sr=Ee.open,Kr=Ee.searchValue,Wr=Ee.autoClearSearchValue,tn=Ee.inputRef,Vr=Ee.placeholder,jr=Ee.disabled,Yr=Ee.mode,mn=Ee.showSearch,rn=Ee.autoFocus,Dn=Ee.autoComplete,Qn=Ee.activeDescendantId,ui=Ee.tabIndex,Tn=Ee.removeIcon,sn=Ee.maxTagCount,Qt=Ee.maxTagTextLength,Zt=Ee.maxTagPlaceholder,qt=Zt===void 0?function(li){return"+ ".concat(li.length," ...")}:Zt,mr=Ee.tagRender,Wt=Ee.onToggleOpen,Cr=Ee.onRemove,Mr=Ee.onInputChange,Gr=Ee.onInputPaste,Mn=Ee.onInputKeyDown,Pn=Ee.onInputMouseDown,oi=Ee.onInputCompositionStart,ei=Ee.onInputCompositionEnd,bi=p.useRef(null),Jn=(0,p.useState)(0),Hn=(0,te.Z)(Jn,2),on=Hn[0],pi=Hn[1],Ln=(0,p.useState)(!1),ri=(0,te.Z)(Ln,2),vi=ri[0],_i=ri[1],Xn="".concat(Nt,"-selection"),Bi=sr||Yr==="multiple"&&Wr===!1||Yr==="tags"?Kr:"",ra=Yr==="tags"||Yr==="multiple"&&Wr===!1||mn&&(sr||vi);De(function(){pi(bi.current.scrollWidth)},[Bi]);function ii(li,wi,Aa,Yi,ao){return p.createElement("span",{className:S()("".concat(Xn,"-item"),(0,U.Z)({},"".concat(Xn,"-item-disabled"),Aa)),title:ge(li)},p.createElement("span",{className:"".concat(Xn,"-item-content")},wi),Yi&&p.createElement(Q,{className:"".concat(Xn,"-item-remove"),onMouseDown:Se,onClick:ao,customizeIcon:Tn},"\xD7"))}function cn(li,wi,Aa,Yi,ao){var Yn=function(Fi){Se(Fi),Wt(!sr)};return p.createElement("span",{onMouseDown:Yn},mr({label:wi,value:li,disabled:Aa,closable:Yi,onClose:ao}))}function nn(li){var wi=li.disabled,Aa=li.label,Yi=li.value,ao=!jr&&!wi,Yn=Aa;if(typeof Qt=="number"&&(typeof Aa=="string"||typeof Aa=="number")){var On=String(Yn);On.length>Qt&&(Yn="".concat(On.slice(0,Qt),"..."))}var Fi=function(ha){ha&&ha.stopPropagation(),Cr(li)};return typeof mr=="function"?cn(Yi,Yn,wi,ao,Fi):ii(li,Yn,wi,ao,Fi)}function Un(li){var wi=typeof qt=="function"?qt(li):qt;return ii({title:wi},wi,!1)}var wn=p.createElement("div",{className:"".concat(Xn,"-search"),style:{width:on},onFocus:function(){_i(!0)},onBlur:function(){_i(!1)}},p.createElement(X,{ref:tn,open:sr,prefixCls:Nt,id:$t,inputElement:null,disabled:jr,autoFocus:rn,autoComplete:Dn,editable:ra,activeDescendantId:Qn,value:Bi,onKeyDown:Mn,onMouseDown:Pn,onChange:Mr,onPaste:Gr,onCompositionStart:oi,onCompositionEnd:ei,tabIndex:ui,attrs:(0,he.Z)(Ee,!0)}),p.createElement("span",{ref:bi,className:"".concat(Xn,"-search-mirror"),"aria-hidden":!0},Bi,"\xA0")),jn=p.createElement(Te.Z,{prefixCls:"".concat(Xn,"-overflow"),data:Er,renderItem:nn,renderRest:Un,suffix:wn,itemKey:fe,maxCount:sn});return p.createElement(p.Fragment,null,jn,!Er.length&&!Bi&&p.createElement("span",{className:"".concat(Xn,"-placeholder")},Vr))},dt=ct,at=function(Ee){var $t=Ee.inputElement,Nt=Ee.prefixCls,Er=Ee.id,sr=Ee.inputRef,Kr=Ee.disabled,Wr=Ee.autoFocus,tn=Ee.autoComplete,Vr=Ee.activeDescendantId,jr=Ee.mode,Yr=Ee.open,mn=Ee.values,rn=Ee.placeholder,Dn=Ee.tabIndex,Qn=Ee.showSearch,ui=Ee.searchValue,Tn=Ee.activeValue,sn=Ee.maxLength,Qt=Ee.onInputKeyDown,Zt=Ee.onInputMouseDown,qt=Ee.onInputChange,mr=Ee.onInputPaste,Wt=Ee.onInputCompositionStart,Cr=Ee.onInputCompositionEnd,Mr=Ee.title,Gr=p.useState(!1),Mn=(0,te.Z)(Gr,2),Pn=Mn[0],oi=Mn[1],ei=jr==="combobox",bi=ei||Qn,Jn=mn[0],Hn=ui||"";ei&&Tn&&!Pn&&(Hn=Tn),p.useEffect(function(){ei&&oi(!1)},[ei,Tn]);var on=jr!=="combobox"&&!Yr&&!Qn?!1:!!Hn,pi=Mr===void 0?ge(Jn):Mr,Ln=function(){if(Jn)return null;var vi=on?{visibility:"hidden"}:void 0;return p.createElement("span",{className:"".concat(Nt,"-selection-placeholder"),style:vi},rn)};return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(Nt,"-selection-search")},p.createElement(X,{ref:sr,prefixCls:Nt,id:Er,open:Yr,inputElement:$t,disabled:Kr,autoFocus:Wr,autoComplete:tn,editable:bi,activeDescendantId:Vr,value:Hn,onKeyDown:Qt,onMouseDown:Zt,onChange:function(vi){oi(!0),qt(vi)},onPaste:mr,onCompositionStart:Wt,onCompositionEnd:Cr,tabIndex:Dn,attrs:(0,he.Z)(Ee,!0),maxLength:ei?sn:void 0})),!ei&&Jn?p.createElement("span",{className:"".concat(Nt,"-selection-item"),title:pi,style:on?{visibility:"hidden"}:void 0},Jn.label):null,Ln())},st=at;function It(ke){return![R.Z.ESC,R.Z.SHIFT,R.Z.BACKSPACE,R.Z.TAB,R.Z.WIN_KEY,R.Z.ALT,R.Z.META,R.Z.WIN_KEY_RIGHT,R.Z.CTRL,R.Z.SEMICOLON,R.Z.EQUALS,R.Z.CAPS_LOCK,R.Z.CONTEXT_MENU,R.Z.F1,R.Z.F2,R.Z.F3,R.Z.F4,R.Z.F5,R.Z.F6,R.Z.F7,R.Z.F8,R.Z.F9,R.Z.F10,R.Z.F11,R.Z.F12].includes(ke)}var Ut=function(Ee,$t){var Nt=(0,p.useRef)(null),Er=(0,p.useRef)(!1),sr=Ee.prefixCls,Kr=Ee.open,Wr=Ee.mode,tn=Ee.showSearch,Vr=Ee.tokenWithEnter,jr=Ee.autoClearSearchValue,Yr=Ee.onSearch,mn=Ee.onSearchSubmit,rn=Ee.onToggleOpen,Dn=Ee.onInputKeyDown,Qn=Ee.domRef;p.useImperativeHandle($t,function(){return{focus:function(){Nt.current.focus()},blur:function(){Nt.current.blur()}}});var ui=K(0),Tn=(0,te.Z)(ui,2),sn=Tn[0],Qt=Tn[1],Zt=function(Hn){var on=Hn.which;(on===R.Z.UP||on===R.Z.DOWN)&&Hn.preventDefault(),Dn&&Dn(Hn),on===R.Z.ENTER&&Wr==="tags"&&!Er.current&&!Kr&&(mn==null||mn(Hn.target.value)),It(on)&&rn(!0)},qt=function(){Qt(!0)},mr=(0,p.useRef)(null),Wt=function(Hn){Yr(Hn,!0,Er.current)!==!1&&rn(!0)},Cr=function(){Er.current=!0},Mr=function(Hn){Er.current=!1,Wr!=="combobox"&&Wt(Hn.target.value)},Gr=function(Hn){var on=Hn.target.value;if(Vr&&mr.current&&/[\r\n]/.test(mr.current)){var pi=mr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");on=on.replace(pi,mr.current)}mr.current=null,Wt(on)},Mn=function(Hn){var on=Hn.clipboardData,pi=on.getData("text");mr.current=pi},Pn=function(Hn){var on=Hn.target;if(on!==Nt.current){var pi=document.body.style.msTouchAction!==void 0;pi?setTimeout(function(){Nt.current.focus()}):Nt.current.focus()}},oi=function(Hn){var on=sn();Hn.target!==Nt.current&&!on&&Wr!=="combobox"&&Hn.preventDefault(),(Wr!=="combobox"&&(!tn||!on)||!Kr)&&(Kr&&jr!==!1&&Yr("",!0,!1),rn())},ei={inputRef:Nt,onInputKeyDown:Zt,onInputMouseDown:qt,onInputChange:Gr,onInputPaste:Mn,onInputCompositionStart:Cr,onInputCompositionEnd:Mr},bi=Wr==="multiple"||Wr==="tags"?p.createElement(dt,(0,pe.Z)({},Ee,ei)):p.createElement(st,(0,pe.Z)({},Ee,ei));return p.createElement("div",{ref:Qn,className:"".concat(sr,"-selector"),onClick:Pn,onMouseDown:oi},bi)},Kt=p.forwardRef(Ut);Kt.displayName="Selector";var hr=Kt,or=w(35593),Sr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ur=function(Ee){var $t=Ee===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"}}},G=function(Ee,$t){var Nt=Ee.prefixCls,Er=Ee.disabled,sr=Ee.visible,Kr=Ee.children,Wr=Ee.popupElement,tn=Ee.animation,Vr=Ee.transitionName,jr=Ee.dropdownStyle,Yr=Ee.dropdownClassName,mn=Ee.direction,rn=mn===void 0?"ltr":mn,Dn=Ee.placement,Qn=Ee.builtinPlacements,ui=Ee.dropdownMatchSelectWidth,Tn=Ee.dropdownRender,sn=Ee.dropdownAlign,Qt=Ee.getPopupContainer,Zt=Ee.empty,qt=Ee.getTriggerDOMNode,mr=Ee.onPopupVisibleChange,Wt=Ee.onPopupMouseEnter,Cr=(0,Z.Z)(Ee,Sr),Mr="".concat(Nt,"-dropdown"),Gr=Wr;Tn&&(Gr=Tn(Wr));var Mn=p.useMemo(function(){return Qn||ur(ui)},[Qn,ui]),Pn=tn?"".concat(Mr,"-").concat(tn):Vr,oi=typeof ui=="number",ei=p.useMemo(function(){return oi?null:ui===!1?"minWidth":"width"},[ui,oi]),bi=jr;oi&&(bi=(0,Ne.Z)((0,Ne.Z)({},bi),{},{width:ui}));var Jn=p.useRef(null);return p.useImperativeHandle($t,function(){return{getPopupElement:function(){return Jn.current}}}),p.createElement(or.Z,(0,pe.Z)({},Cr,{showAction:mr?["click"]:[],hideAction:mr?["click"]:[],popupPlacement:Dn||(rn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Mn,prefixCls:Mr,popupTransitionName:Pn,popup:p.createElement("div",{ref:Jn,onMouseEnter:Wt},Gr),stretch:ei,popupAlign:sn,popupVisible:sr,getPopupContainer:Qt,popupClassName:S()(Yr,(0,U.Z)({},"".concat(Mr,"-empty"),Zt)),popupStyle:bi,getTriggerDOMNode:qt,onPopupVisibleChange:mr}),Kr)},wt=p.forwardRef(G);wt.displayName="SelectTrigger";var _=wt,f=w(40954);function u(ke,Ee){var $t=ke.key,Nt;return"value"in ke&&(Nt=ke.value),$t!=null?$t:Nt!==void 0?Nt:"rc-index-key-".concat(Ee)}function x(ke,Ee){var $t=ke||{},Nt=$t.label,Er=$t.value,sr=$t.options,Kr=$t.groupLabel,Wr=Nt||(Ee?"children":"label");return{label:Wr,value:Er||"value",options:sr||"options",groupLabel:Kr||Wr}}function ee(ke){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=Ee.fieldNames,Nt=Ee.childrenAsData,Er=[],sr=x($t,!1),Kr=sr.label,Wr=sr.value,tn=sr.options,Vr=sr.groupLabel;function jr(Yr,mn){Yr.forEach(function(rn){if(mn||!(tn in rn)){var Dn=rn[Wr];Er.push({key:u(rn,Er.length),groupOption:mn,data:rn,label:rn[Kr],value:Dn})}else{var Qn=rn[Vr];Qn===void 0&&Nt&&(Qn=rn.label),Er.push({key:u(rn,Er.length),group:!0,data:rn,label:Qn}),jr(rn[tn],!0)}})}return jr(ke,!1),Er}function Ce(ke){var Ee=(0,Ne.Z)({},ke);return"props"in Ee||Object.defineProperty(Ee,"props",{get:function(){return(0,E.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ee}}),Ee}function H(ke,Ee){if(!Ee||!Ee.length)return null;var $t=!1;function Nt(sr,Kr){var Wr=(0,f.Z)(Kr),tn=Wr[0],Vr=Wr.slice(1);if(!tn)return[sr];var jr=sr.split(tn);return $t=$t||jr.length>1,jr.reduce(function(Yr,mn){return[].concat((0,ue.Z)(Yr),(0,ue.Z)(Nt(mn,Vr)))},[]).filter(function(Yr){return Yr})}var Er=Nt(ke,Ee);return $t?Er:null}var ne=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],$e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function we(ke){return ke==="tags"||ke==="multiple"}var ve=p.forwardRef(function(ke,Ee){var $t,Nt,Er=ke.id,sr=ke.prefixCls,Kr=ke.className,Wr=ke.showSearch,tn=ke.tagRender,Vr=ke.direction,jr=ke.omitDomProps,Yr=ke.displayValues,mn=ke.onDisplayValuesChange,rn=ke.emptyOptions,Dn=ke.notFoundContent,Qn=Dn===void 0?"Not Found":Dn,ui=ke.onClear,Tn=ke.mode,sn=ke.disabled,Qt=ke.loading,Zt=ke.getInputElement,qt=ke.getRawInputElement,mr=ke.open,Wt=ke.defaultOpen,Cr=ke.onDropdownVisibleChange,Mr=ke.activeValue,Gr=ke.onActiveValueChange,Mn=ke.activeDescendantId,Pn=ke.searchValue,oi=ke.autoClearSearchValue,ei=ke.onSearch,bi=ke.onSearchSplit,Jn=ke.tokenSeparators,Hn=ke.allowClear,on=ke.suffixIcon,pi=ke.clearIcon,Ln=ke.OptionList,ri=ke.animation,vi=ke.transitionName,_i=ke.dropdownStyle,Xn=ke.dropdownClassName,Bi=ke.dropdownMatchSelectWidth,ra=ke.dropdownRender,ii=ke.dropdownAlign,cn=ke.placement,nn=ke.builtinPlacements,Un=ke.getPopupContainer,wn=ke.showAction,jn=wn===void 0?[]:wn,li=ke.onFocus,wi=ke.onBlur,Aa=ke.onKeyUp,Yi=ke.onKeyDown,ao=ke.onMouseDown,Yn=(0,Z.Z)(ke,ne),On=we(Tn),Fi=(Wr!==void 0?Wr:On)||Tn==="combobox",xi=(0,Ne.Z)({},Yn);$e.forEach(function(ma){delete xi[ma]}),jr==null||jr.forEach(function(ma){delete xi[ma]});var ha=p.useState(!1),Oo=(0,te.Z)(ha,2),na=Oo[0],Zi=Oo[1];p.useEffect(function(){Zi((0,P.Z)())},[]);var ja=p.useRef(null),Ma=p.useRef(null),eo=p.useRef(null),vo=p.useRef(null),ba=p.useRef(null),Ai=V(),ua=(0,te.Z)(Ai,3),Do=ua[0],uo=ua[1],Xa=ua[2];p.useImperativeHandle(Ee,function(){var ma,oa;return{focus:(ma=vo.current)===null||ma===void 0?void 0:ma.focus,blur:(oa=vo.current)===null||oa===void 0?void 0:oa.blur,scrollTo:function(Za){var to;return(to=ba.current)===null||to===void 0?void 0:to.scrollTo(Za)}}});var Di=p.useMemo(function(){var ma;if(Tn!=="combobox")return Pn;var oa=(ma=Yr[0])===null||ma===void 0?void 0:ma.value;return typeof oa=="string"||typeof oa=="number"?String(oa):""},[Pn,Tn,Yr]),Po=Tn==="combobox"&&typeof Zt=="function"&&Zt()||null,fo=typeof qt=="function"&&qt(),il=(0,M.x1)(Ma,fo==null||($t=fo.props)===null||$t===void 0?void 0:$t.ref),$o=p.useState(!1),Hs=(0,te.Z)($o,2),Zo=Hs[0],vl=Hs[1];(0,F.Z)(function(){vl(!0)},[]);var za=(0,h.Z)(!1,{defaultValue:Wt,value:mr}),Ra=(0,te.Z)(za,2),Ea=Ra[0],js=Ra[1],yi=Zo?Ea:!1,Vi=!Qn&&rn;(sn||Vi&&yi&&Tn==="combobox")&&(yi=!1);var Oi=Vi?!1:yi,Wi=p.useCallback(function(ma){var oa=ma!==void 0?ma:!yi;sn||(js(oa),yi!==oa&&(Cr==null||Cr(oa)))},[sn,yi,js,Cr]),da=p.useMemo(function(){return(Jn||[]).some(function(ma){return[`
`,`\r
`].includes(ma)})},[Jn]),La=function(oa,ho,Za){var to=!0,Ro=oa;Gr==null||Gr(null);var Ya=Za?null:H(oa,Jn);return Tn!=="combobox"&&Ya&&(Ro="",bi==null||bi(Ya),Wi(!1),to=!1),ei&&Di!==Ro&&ei(Ro,{source:ho?"typing":"effect"}),to},Vo=function(oa){!oa||!oa.trim()||ei(oa,{source:"submit"})};p.useEffect(function(){!yi&&!On&&Tn!=="combobox"&&La("",!1,!1)},[yi]),p.useEffect(function(){Ea&&sn&&js(!1),sn&&uo(!1)},[sn]);var _o=K(),Bo=(0,te.Z)(_o,2),$a=Bo[0],wa=Bo[1],pa=function(oa){var ho=$a(),Za=oa.which;if(Za===R.Z.ENTER&&(Tn!=="combobox"&&oa.preventDefault(),yi||Wi(!0)),wa(!!Di),Za===R.Z.BACKSPACE&&!ho&&On&&!Di&&Yr.length){for(var to=(0,ue.Z)(Yr),Ro=null,Ya=to.length-1;Ya>=0;Ya-=1){var Wo=to[Ya];if(!Wo.disabled){to.splice(Ya,1),Ro=Wo;break}}Ro&&mn(to,{type:"remove",values:[Ro]})}for(var Ds=arguments.length,hl=new Array(Ds>1?Ds-1:0),Xs=1;Xs<Ds;Xs++)hl[Xs-1]=arguments[Xs];if(yi&&ba.current){var al;(al=ba.current).onKeyDown.apply(al,[oa].concat(hl))}Yi==null||Yi.apply(void 0,[oa].concat(hl))},Oa=function(oa){for(var ho=arguments.length,Za=new Array(ho>1?ho-1:0),to=1;to<ho;to++)Za[to-1]=arguments[to];if(yi&&ba.current){var Ro;(Ro=ba.current).onKeyUp.apply(Ro,[oa].concat(Za))}Aa==null||Aa.apply(void 0,[oa].concat(Za))},Ja=function(oa){var ho=Yr.filter(function(Za){return Za!==oa});mn(ho,{type:"remove",values:[oa]})},oo=p.useRef(!1),Ta=function(){uo(!0),sn||(li&&!oo.current&&li.apply(void 0,arguments),jn.includes("focus")&&Wi(!0)),oo.current=!0},ka=function(){uo(!1,function(){oo.current=!1,Wi(!1)}),!sn&&(Di&&(Tn==="tags"?ei(Di,{source:"submit"}):Tn==="multiple"&&ei("",{source:"blur"})),wi&&wi.apply(void 0,arguments))},Fo=[];p.useEffect(function(){return function(){Fo.forEach(function(ma){return clearTimeout(ma)}),Fo.splice(0,Fo.length)}},[]);var Ll=function(oa){var ho,Za=oa.target,to=(ho=eo.current)===null||ho===void 0?void 0:ho.getPopupElement();if(to&&to.contains(Za)){var Ro=setTimeout(function(){var hl=Fo.indexOf(Ro);if(hl!==-1&&Fo.splice(hl,1),Xa(),!na&&!to.contains(document.activeElement)){var Xs;(Xs=vo.current)===null||Xs===void 0||Xs.focus()}});Fo.push(Ro)}for(var Ya=arguments.length,Wo=new Array(Ya>1?Ya-1:0),Ds=1;Ds<Ya;Ds++)Wo[Ds-1]=arguments[Ds];ao==null||ao.apply(void 0,[oa].concat(Wo))},cs=p.useState({}),dl=(0,te.Z)(cs,2),No=dl[1];function ks(){No({})}var Io;fo&&(Io=function(oa){Wi(oa)}),se(function(){var ma;return[ja.current,(ma=eo.current)===null||ma===void 0?void 0:ma.getPopupElement()]},Oi,Wi,!!fo);var Kn=p.useMemo(function(){return(0,Ne.Z)((0,Ne.Z)({},ke),{},{notFoundContent:Qn,open:yi,triggerOpen:Oi,id:Er,showSearch:Fi,multiple:On,toggleOpen:Wi})},[ke,Qn,Oi,yi,Er,Fi,On,Wi]),kl=!!on||Qt,To;kl&&(To=p.createElement(Q,{className:S()("".concat(sr,"-arrow"),(0,U.Z)({},"".concat(sr,"-arrow-loading"),Qt)),customizeIcon:on,customizeIconProps:{loading:Qt,searchValue:Di,open:yi,focused:Do,showSearch:Fi}}));var Hl=function(){var oa;ui==null||ui(),(oa=vo.current)===null||oa===void 0||oa.focus(),mn([],{type:"clear",values:Yr}),La("",!1,!1)},zs=ce(sr,Hl,Yr,Hn,pi,sn,Di,Tn),ms=zs.allowClear,Da=zs.clearIcon,Uo=p.createElement(Ln,{ref:ba}),jl=S()(sr,Kr,(Nt={},(0,U.Z)(Nt,"".concat(sr,"-focused"),Do),(0,U.Z)(Nt,"".concat(sr,"-multiple"),On),(0,U.Z)(Nt,"".concat(sr,"-single"),!On),(0,U.Z)(Nt,"".concat(sr,"-allow-clear"),Hn),(0,U.Z)(Nt,"".concat(sr,"-show-arrow"),kl),(0,U.Z)(Nt,"".concat(sr,"-disabled"),sn),(0,U.Z)(Nt,"".concat(sr,"-loading"),Qt),(0,U.Z)(Nt,"".concat(sr,"-open"),yi),(0,U.Z)(Nt,"".concat(sr,"-customize-input"),Po),(0,U.Z)(Nt,"".concat(sr,"-show-search"),Fi),Nt)),tc=p.createElement(_,{ref:eo,disabled:sn,prefixCls:sr,visible:Oi,popupElement:Uo,animation:ri,transitionName:vi,dropdownStyle:_i,dropdownClassName:Xn,direction:Vr,dropdownMatchSelectWidth:Bi,dropdownRender:ra,dropdownAlign:ii,placement:cn,builtinPlacements:nn,getPopupContainer:Un,empty:rn,getTriggerDOMNode:function(){return Ma.current},onPopupVisibleChange:Io,onPopupMouseEnter:ks},fo?p.cloneElement(fo,{ref:il}):p.createElement(hr,(0,pe.Z)({},ke,{domRef:Ma,prefixCls:sr,inputElement:Po,ref:vo,id:Er,showSearch:Fi,autoClearSearchValue:oi,mode:Tn,activeDescendantId:Mn,tagRender:tn,values:Yr,open:yi,onToggleOpen:Wi,activeValue:Mr,searchValue:Di,onSearch:La,onSearchSubmit:Vo,onRemove:Ja,tokenWithEnter:da}))),fl;return fo?fl=tc:fl=p.createElement("div",(0,pe.Z)({className:jl},xi,{ref:ja,onMouseDown:Ll,onKeyDown:pa,onKeyUp:Oa,onFocus:Ta,onBlur:ka}),Do&&!yi&&p.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Yr.map(function(ma){var oa=ma.label,ho=ma.value;return["number","string"].includes((0,B.Z)(oa))?oa:ho}).join(", "))),tc,To,ms&&Da),p.createElement(W.Provider,{value:Kn},fl)}),qe=ve,St=function(ke,Ee){var $t=p.useRef({values:new Map,options:new Map}),Nt=p.useMemo(function(){var sr=$t.current,Kr=sr.values,Wr=sr.options,tn=ke.map(function(Yr){if(Yr.label===void 0){var mn;return(0,Ne.Z)((0,Ne.Z)({},Yr),{},{label:(mn=Kr.get(Yr.value))===null||mn===void 0?void 0:mn.label})}return Yr}),Vr=new Map,jr=new Map;return tn.forEach(function(Yr){Vr.set(Yr.value,Yr),jr.set(Yr.value,Ee.get(Yr.value)||Wr.get(Yr.value))}),$t.current.values=Vr,$t.current.options=jr,tn},[ke,Ee]),Er=p.useCallback(function(sr){return Ee.get(sr)||$t.current.options.get(sr)},[Ee]);return[Nt,Er]};function me(ke,Ee){return de(ke).join("").toUpperCase().includes(Ee)}var ft=function(ke,Ee,$t,Nt,Er){return p.useMemo(function(){if(!$t||Nt===!1)return ke;var sr=Ee.options,Kr=Ee.label,Wr=Ee.value,tn=[],Vr=typeof Nt=="function",jr=$t.toUpperCase(),Yr=Vr?Nt:function(rn,Dn){return Er?me(Dn[Er],jr):Dn[sr]?me(Dn[Kr!=="children"?Kr:"label"],jr):me(Dn[Wr],jr)},mn=Vr?function(rn){return Ce(rn)}:function(rn){return rn};return ke.forEach(function(rn){if(rn[sr]){var Dn=Yr($t,mn(rn));if(Dn)tn.push(rn);else{var Qn=rn[sr].filter(function(ui){return Yr($t,mn(ui))});Qn.length&&tn.push((0,Ne.Z)((0,Ne.Z)({},rn),{},(0,U.Z)({},sr,Qn)))}return}Yr($t,mn(rn))&&tn.push(rn)}),tn},[ke,Nt,Er,$t,Ee])},lt=w(17115),Pe=w(11592),Le=["children","value"],pt=["children"];function zt(ke){var Ee=ke,$t=Ee.key,Nt=Ee.props,Er=Nt.children,sr=Nt.value,Kr=(0,Z.Z)(Nt,Le);return(0,Ne.Z)({key:$t,value:sr!==void 0?sr:$t,children:Er},Kr)}function Ht(ke){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Pe.Z)(ke).map(function($t,Nt){if(!p.isValidElement($t)||!$t.type)return null;var Er=$t,sr=Er.type.isSelectOptGroup,Kr=Er.key,Wr=Er.props,tn=Wr.children,Vr=(0,Z.Z)(Wr,pt);return Ee||!sr?zt($t):(0,Ne.Z)((0,Ne.Z)({key:"__RC_SELECT_GRP__".concat(Kr===null?Nt:Kr,"__"),label:Kr},Vr),{},{options:Ht(tn)})}).filter(function($t){return $t})}function er(ke,Ee,$t,Nt,Er){return p.useMemo(function(){var sr=ke,Kr=!ke;Kr&&(sr=Ht(Ee));var Wr=new Map,tn=new Map,Vr=function(mn,rn,Dn){Dn&&typeof Dn=="string"&&mn.set(rn[Dn],rn)};function jr(Yr){for(var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rn=0;rn<Yr.length;rn+=1){var Dn=Yr[rn];!Dn[$t.options]||mn?(Wr.set(Dn[$t.value],Dn),Vr(tn,Dn,$t.label),Vr(tn,Dn,Nt),Vr(tn,Dn,Er)):jr(Dn[$t.options],!0)}}return jr(sr),{options:sr,valueOptions:Wr,labelOptions:tn}},[ke,Ee,$t,Nt,Er])}function Pr(ke){var Ee=p.useRef();Ee.current=ke;var $t=p.useCallback(function(){return Ee.current.apply(Ee,arguments)},[]);return $t}var pr=function(){return null};pr.isSelectOptGroup=!0;var kr=pr,Dr=function(){return null};Dr.isSelectOption=!0;var vr=Dr,dr=w(80547),$r=w(2738),un=w(6790),_n=p.createContext(null),qr=_n;function Bn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ti=["disabled","title","children","style","className"];function Ir(ke){return typeof ke=="string"||typeof ke=="number"}var qn=function(Ee,$t){var Nt=J(),Er=Nt.prefixCls,sr=Nt.id,Kr=Nt.open,Wr=Nt.multiple,tn=Nt.mode,Vr=Nt.searchValue,jr=Nt.toggleOpen,Yr=Nt.notFoundContent,mn=Nt.onPopupScroll,rn=p.useContext(qr),Dn=rn.flattenOptions,Qn=rn.onActiveValue,ui=rn.defaultActiveFirstOption,Tn=rn.onSelect,sn=rn.menuItemSelectedIcon,Qt=rn.rawValues,Zt=rn.fieldNames,qt=rn.virtual,mr=rn.direction,Wt=rn.listHeight,Cr=rn.listItemHeight,Mr="".concat(Er,"-item"),Gr=(0,dr.Z)(function(){return Dn},[Kr,Dn],function(ii,cn){return cn[0]&&ii[1]!==cn[1]}),Mn=p.useRef(null),Pn=function(cn){cn.preventDefault()},oi=function(cn){Mn.current&&Mn.current.scrollTo(typeof cn=="number"?{index:cn}:cn)},ei=function(cn){for(var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Un=Gr.length,wn=0;wn<Un;wn+=1){var jn=(cn+wn*nn+Un)%Un,li=Gr[jn],wi=li.group,Aa=li.data;if(!wi&&!Aa.disabled)return jn}return-1},bi=p.useState(function(){return ei(0)}),Jn=(0,te.Z)(bi,2),Hn=Jn[0],on=Jn[1],pi=function(cn){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;on(cn);var Un={source:nn?"keyboard":"mouse"},wn=Gr[cn];if(!wn){Qn(null,-1,Un);return}Qn(wn.value,cn,Un)};(0,p.useEffect)(function(){pi(ui!==!1?ei(0):-1)},[Gr.length,Vr]);var Ln=p.useCallback(function(ii){return Qt.has(ii)&&tn!=="combobox"},[tn,(0,ue.Z)(Qt).toString(),Qt.size]);(0,p.useEffect)(function(){var ii=setTimeout(function(){if(!Wr&&Kr&&Qt.size===1){var nn=Array.from(Qt)[0],Un=Gr.findIndex(function(wn){var jn=wn.data;return jn.value===nn});Un!==-1&&(pi(Un),oi(Un))}});if(Kr){var cn;(cn=Mn.current)===null||cn===void 0||cn.scrollTo(void 0)}return function(){return clearTimeout(ii)}},[Kr,Vr,Dn.length]);var ri=function(cn){cn!==void 0&&Tn(cn,{selected:!Qt.has(cn)}),Wr||jr(!1)};if(p.useImperativeHandle($t,function(){return{onKeyDown:function(cn){var nn=cn.which,Un=cn.ctrlKey;switch(nn){case R.Z.N:case R.Z.P:case R.Z.UP:case R.Z.DOWN:{var wn=0;if(nn===R.Z.UP?wn=-1:nn===R.Z.DOWN?wn=1:Bn()&&Un&&(nn===R.Z.N?wn=1:nn===R.Z.P&&(wn=-1)),wn!==0){var jn=ei(Hn+wn,wn);oi(jn),pi(jn,!0)}break}case R.Z.ENTER:{var li=Gr[Hn];li&&!li.data.disabled?ri(li.value):ri(void 0),Kr&&cn.preventDefault();break}case R.Z.ESC:jr(!1),Kr&&cn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(cn){oi(cn)}}}),Gr.length===0)return p.createElement("div",{role:"listbox",id:"".concat(sr,"_list"),className:"".concat(Mr,"-empty"),onMouseDown:Pn},Yr);var vi=Object.keys(Zt).map(function(ii){return Zt[ii]}),_i=function(cn){return cn.label};function Xn(ii,cn){var nn=ii.group;return{role:nn?"presentation":"option",id:"".concat(sr,"_list_").concat(cn)}}var Bi=function(cn){var nn=Gr[cn];if(!nn)return null;var Un=nn.data||{},wn=Un.value,jn=nn.group,li=(0,he.Z)(Un,!0),wi=_i(nn);return nn?p.createElement("div",(0,pe.Z)({"aria-label":typeof wi=="string"&&!jn?wi:null},li,{key:cn},Xn(nn,cn),{"aria-selected":Ln(wn)}),wn):null},ra={role:"listbox",id:"".concat(sr,"_list")};return p.createElement(p.Fragment,null,qt&&p.createElement("div",(0,pe.Z)({},ra,{style:{height:0,width:0,overflow:"hidden"}}),Bi(Hn-1),Bi(Hn),Bi(Hn+1)),p.createElement(un.Z,{itemKey:"key",ref:Mn,data:Gr,height:Wt,itemHeight:Cr,fullHeight:!1,onMouseDown:Pn,onScroll:mn,virtual:qt,direction:mr,innerProps:qt?null:ra},function(ii,cn){var nn,Un=ii.group,wn=ii.groupOption,jn=ii.data,li=ii.label,wi=ii.value,Aa=jn.key;if(Un){var Yi,ao=(Yi=jn.title)!==null&&Yi!==void 0?Yi:Ir(li)?li.toString():void 0;return p.createElement("div",{className:S()(Mr,"".concat(Mr,"-group")),title:ao},li!==void 0?li:Aa)}var Yn=jn.disabled,On=jn.title,Fi=jn.children,xi=jn.style,ha=jn.className,Oo=(0,Z.Z)(jn,ti),na=(0,$r.Z)(Oo,vi),Zi=Ln(wi),ja="".concat(Mr,"-option"),Ma=S()(Mr,ja,ha,(nn={},(0,U.Z)(nn,"".concat(ja,"-grouped"),wn),(0,U.Z)(nn,"".concat(ja,"-active"),Hn===cn&&!Yn),(0,U.Z)(nn,"".concat(ja,"-disabled"),Yn),(0,U.Z)(nn,"".concat(ja,"-selected"),Zi),nn)),eo=_i(ii),vo=!sn||typeof sn=="function"||Zi,ba=typeof eo=="number"?eo:eo||wi,Ai=Ir(ba)?ba.toString():void 0;return On!==void 0&&(Ai=On),p.createElement("div",(0,pe.Z)({},(0,he.Z)(na),qt?{}:Xn(ii,cn),{"aria-selected":Zi,className:Ma,title:Ai,onMouseMove:function(){Hn===cn||Yn||pi(cn)},onClick:function(){Yn||ri(wi)},style:xi}),p.createElement("div",{className:"".concat(ja,"-content")},ba),p.isValidElement(sn)||Zi,vo&&p.createElement(Q,{className:"".concat(Mr,"-option-state"),customizeIcon:sn,customizeIconProps:{isSelected:Zi}},Zi?"\u2713":null))}))},Ti=p.forwardRef(qn);Ti.displayName="OptionList";var ci=Ti;function Ui(ke){var Ee=ke.mode,$t=ke.options,Nt=ke.children,Er=ke.backfill,sr=ke.allowClear,Kr=ke.placeholder,Wr=ke.getInputElement,tn=ke.showSearch,Vr=ke.onSearch,jr=ke.defaultOpen,Yr=ke.autoFocus,mn=ke.labelInValue,rn=ke.value,Dn=ke.inputValue,Qn=ke.optionLabelProp,ui=isMultiple(Ee),Tn=tn!==void 0?tn:ui||Ee==="combobox",sn=$t||convertChildrenToData(Nt);if(warning(Ee!=="tags"||sn.every(function(mr){return!mr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ee==="tags"||Ee==="combobox"){var Qt=sn.some(function(mr){return mr.options?mr.options.some(function(Wt){return typeof("value"in Wt?Wt.value:Wt.key)=="number"}):typeof("value"in mr?mr.value:mr.key)=="number"});warning(!Qt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ee!=="combobox"||!Qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ee==="combobox"||!Er,"`backfill` only works with `combobox` mode."),warning(Ee==="combobox"||!Wr,"`getInputElement` only work with `combobox` mode."),noteOnce(Ee!=="combobox"||!Wr||!sr||!Kr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Vr&&!Tn&&Ee!=="combobox"&&Ee!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!jr||Yr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),rn!=null){var Zt=toArray(rn);warning(!mn||Zt.every(function(mr){return _typeof(mr)==="object"&&("key"in mr||"value"in mr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ui||Array.isArray(rn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Nt){var qt=null;toNodeArray(Nt).some(function(mr){if(!React.isValidElement(mr)||!mr.type)return!1;var Wt=mr,Cr=Wt.type;if(Cr.isSelectOption)return!1;if(Cr.isSelectOptGroup){var Mr=toNodeArray(mr.props.children).every(function(Gr){return!React.isValidElement(Gr)||!mr.type||Gr.type.isSelectOption?!0:(qt=Gr.type,!1)});return!Mr}return qt=Cr,!0}),qt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(qt.displayName||qt.name||qt,"`.")),warning(Dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ei(ke,Ee){if(ke){var $t=function Nt(Er){for(var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kr=0;Kr<Er.length;Kr++){var Wr=Er[Kr];if(Wr[Ee==null?void 0:Ee.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!sr&&Array.isArray(Wr[Ee==null?void 0:Ee.options])&&Nt(Wr[Ee==null?void 0:Ee.options],!0))break}};$t(ke)}}var $i=null,Ha=["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"],Ji=["inputValue"];function gi(ke){return!ke||(0,B.Z)(ke)!=="object"}var ki=p.forwardRef(function(ke,Ee){var $t=ke.id,Nt=ke.mode,Er=ke.prefixCls,sr=Er===void 0?"rc-select":Er,Kr=ke.backfill,Wr=ke.fieldNames,tn=ke.inputValue,Vr=ke.searchValue,jr=ke.onSearch,Yr=ke.autoClearSearchValue,mn=Yr===void 0?!0:Yr,rn=ke.onSelect,Dn=ke.onDeselect,Qn=ke.dropdownMatchSelectWidth,ui=Qn===void 0?!0:Qn,Tn=ke.filterOption,sn=ke.filterSort,Qt=ke.optionFilterProp,Zt=ke.optionLabelProp,qt=ke.options,mr=ke.children,Wt=ke.defaultActiveFirstOption,Cr=ke.menuItemSelectedIcon,Mr=ke.virtual,Gr=ke.direction,Mn=ke.listHeight,Pn=Mn===void 0?200:Mn,oi=ke.listItemHeight,ei=oi===void 0?20:oi,bi=ke.value,Jn=ke.defaultValue,Hn=ke.labelInValue,on=ke.onChange,pi=(0,Z.Z)(ke,Ha),Ln=(0,lt.ZP)($t),ri=we(Nt),vi=!!(!qt&&mr),_i=p.useMemo(function(){return Tn===void 0&&Nt==="combobox"?!1:Tn},[Tn,Nt]),Xn=p.useMemo(function(){return x(Wr,vi)},[JSON.stringify(Wr),vi]),Bi=(0,h.Z)("",{value:Vr!==void 0?Vr:tn,postState:function(Vi){return Vi||""}}),ra=(0,te.Z)(Bi,2),ii=ra[0],cn=ra[1],nn=er(qt,mr,Xn,Qt,Zt),Un=nn.valueOptions,wn=nn.labelOptions,jn=nn.options,li=p.useCallback(function(yi){var Vi=de(yi);return Vi.map(function(Oi){var Wi,da,La,Vo,_o;if(gi(Oi))Wi=Oi;else{var Bo;La=Oi.key,da=Oi.label,Wi=(Bo=Oi.value)!==null&&Bo!==void 0?Bo:La}var $a=Un.get(Wi);if($a){var wa;if(da===void 0&&(da=$a==null?void 0:$a[Zt||Xn.label]),La===void 0&&(La=(wa=$a==null?void 0:$a.key)!==null&&wa!==void 0?wa:Wi),Vo=$a==null?void 0:$a.disabled,_o=$a==null?void 0:$a.title,0)var pa}return{label:da,value:Wi,key:La,disabled:Vo,title:_o}})},[Xn,Zt,Un]),wi=(0,h.Z)(Jn,{value:bi}),Aa=(0,te.Z)(wi,2),Yi=Aa[0],ao=Aa[1],Yn=p.useMemo(function(){var yi,Vi=li(Yi);return Nt==="combobox"&&be((yi=Vi[0])===null||yi===void 0?void 0:yi.value)?[]:Vi},[Yi,li,Nt]),On=St(Yn,Un),Fi=(0,te.Z)(On,2),xi=Fi[0],ha=Fi[1],Oo=p.useMemo(function(){if(!Nt&&xi.length===1){var yi=xi[0];if(yi.value===null&&(yi.label===null||yi.label===void 0))return[]}return xi.map(function(Vi){var Oi;return(0,Ne.Z)((0,Ne.Z)({},Vi),{},{label:(Oi=Vi.label)!==null&&Oi!==void 0?Oi:Vi.value})})},[Nt,xi]),na=p.useMemo(function(){return new Set(xi.map(function(yi){return yi.value}))},[xi]);p.useEffect(function(){if(Nt==="combobox"){var yi,Vi=(yi=xi[0])===null||yi===void 0?void 0:yi.value;cn(Oe(Vi)?String(Vi):"")}},[xi]);var Zi=Pr(function(yi,Vi){var Oi,Wi=Vi!=null?Vi:yi;return Oi={},(0,U.Z)(Oi,Xn.value,yi),(0,U.Z)(Oi,Xn.label,Wi),Oi}),ja=p.useMemo(function(){if(Nt!=="tags")return jn;var yi=(0,ue.Z)(jn),Vi=function(Wi){return Un.has(Wi)};return(0,ue.Z)(xi).sort(function(Oi,Wi){return Oi.value<Wi.value?-1:1}).forEach(function(Oi){var Wi=Oi.value;Vi(Wi)||yi.push(Zi(Wi,Oi.label))}),yi},[Zi,jn,Un,xi,Nt]),Ma=ft(ja,Xn,ii,_i,Qt),eo=p.useMemo(function(){return Nt!=="tags"||!ii||Ma.some(function(yi){return yi[Qt||"value"]===ii})||Ma.some(function(yi){return yi[Xn.value]===ii})?Ma:[Zi(ii)].concat((0,ue.Z)(Ma))},[Zi,Qt,Nt,Ma,ii,Xn]),vo=p.useMemo(function(){return sn?(0,ue.Z)(eo).sort(function(yi,Vi){return sn(yi,Vi)}):eo},[eo,sn]),ba=p.useMemo(function(){return ee(vo,{fieldNames:Xn,childrenAsData:vi})},[vo,Xn,vi]),Ai=function(Vi){var Oi=li(Vi);if(ao(Oi),on&&(Oi.length!==xi.length||Oi.some(function(La,Vo){var _o;return((_o=xi[Vo])===null||_o===void 0?void 0:_o.value)!==(La==null?void 0:La.value)}))){var Wi=Hn?Oi:Oi.map(function(La){return La.value}),da=Oi.map(function(La){return Ce(ha(La.value))});on(ri?Wi:Wi[0],ri?da:da[0])}},ua=p.useState(null),Do=(0,te.Z)(ua,2),uo=Do[0],Xa=Do[1],Di=p.useState(0),Po=(0,te.Z)(Di,2),fo=Po[0],il=Po[1],$o=Wt!==void 0?Wt:Nt!=="combobox",Hs=p.useCallback(function(yi,Vi){var Oi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wi=Oi.source,da=Wi===void 0?"keyboard":Wi;il(Vi),Kr&&Nt==="combobox"&&yi!==null&&da==="keyboard"&&Xa(String(yi))},[Kr,Nt]),Zo=function(Vi,Oi,Wi){var da=function(){var oo,Ta=ha(Vi);return[Hn?{label:Ta==null?void 0:Ta[Xn.label],value:Vi,key:(oo=Ta==null?void 0:Ta.key)!==null&&oo!==void 0?oo:Vi}:Vi,Ce(Ta)]};if(Oi&&rn){var La=da(),Vo=(0,te.Z)(La,2),_o=Vo[0],Bo=Vo[1];rn(_o,Bo)}else if(!Oi&&Dn&&Wi!=="clear"){var $a=da(),wa=(0,te.Z)($a,2),pa=wa[0],Oa=wa[1];Dn(pa,Oa)}},vl=Pr(function(yi,Vi){var Oi,Wi=ri?Vi.selected:!0;Wi?Oi=ri?[].concat((0,ue.Z)(xi),[yi]):[yi]:Oi=xi.filter(function(da){return da.value!==yi}),Ai(Oi),Zo(yi,Wi),Nt==="combobox"?Xa(""):(!we||mn)&&(cn(""),Xa(""))}),za=function(Vi,Oi){Ai(Vi);var Wi=Oi.type,da=Oi.values;(Wi==="remove"||Wi==="clear")&&da.forEach(function(La){Zo(La.value,!1,Wi)})},Ra=function(Vi,Oi){if(cn(Vi),Xa(null),Oi.source==="submit"){var Wi=(Vi||"").trim();if(Wi){var da=Array.from(new Set([].concat((0,ue.Z)(na),[Wi])));Ai(da),Zo(Wi,!0),cn("")}return}Oi.source!=="blur"&&(Nt==="combobox"&&Ai(Vi),jr==null||jr(Vi))},Ea=function(Vi){var Oi=Vi;Nt!=="tags"&&(Oi=Vi.map(function(da){var La=wn.get(da);return La==null?void 0:La.value}).filter(function(da){return da!==void 0}));var Wi=Array.from(new Set([].concat((0,ue.Z)(na),(0,ue.Z)(Oi))));Ai(Wi),Wi.forEach(function(da){Zo(da,!0)})},js=p.useMemo(function(){var yi=Mr!==!1&&ui!==!1;return(0,Ne.Z)((0,Ne.Z)({},nn),{},{flattenOptions:ba,onActiveValue:Hs,defaultActiveFirstOption:$o,onSelect:vl,menuItemSelectedIcon:Cr,rawValues:na,fieldNames:Xn,virtual:yi,direction:Gr,listHeight:Pn,listItemHeight:ei,childrenAsData:vi})},[nn,ba,Hs,$o,vl,Cr,na,Xn,Mr,ui,Pn,ei,vi]);return p.createElement(qr.Provider,{value:js},p.createElement(qe,(0,pe.Z)({},pi,{id:Ln,prefixCls:sr,ref:Ee,omitDomProps:Ji,mode:Nt,displayValues:Oo,onDisplayValuesChange:za,direction:Gr,searchValue:ii,onSearch:Ra,autoClearSearchValue:mn,onSearchSplit:Ea,dropdownMatchSelectWidth:ui,OptionList:ci,emptyOptions:!ba.length,activeValue:uo,activeDescendantId:"".concat(Ln,"_list_").concat(fo)})))}),Pi=ki;Pi.Option=vr,Pi.OptGroup=kr;var nt=Pi,Ie=nt},9296:function(xn,Jt,w){"use strict";w.r(Jt),w.d(Jt,{ResizableTextArea:function(){return je},default:function(){return be}});var pe=w(32855),ue=w(27247),U=w(74430),Ne=w(34666),te=w(11913),Z=w(43079),B=w(3300),h=w(92310),E=w.n(h),p=w(93681),j=w(5643),S=w(18929),F=w(59301),P=w(29301),R=w(34280),M=w(16089),Y=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Q=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ce={},W;function J(He){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=He.getAttribute("id")||He.getAttribute("data-reactid")||He.getAttribute("name");if(ge&&ce[De])return ce[De];var fe=window.getComputedStyle(He),Se=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),ct=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),dt=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),at=Q.map(function(It){return"".concat(It,":").concat(fe.getPropertyValue(It))}).join(";"),st={sizingStyle:at,paddingSize:ct,borderSize:dt,boxSizing:Se};return ge&&De&&(ce[De]=st),st}function V(He){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;W||(W=document.createElement("textarea"),W.setAttribute("tab-index","-1"),W.setAttribute("aria-hidden","true"),document.body.appendChild(W)),He.getAttribute("wrap")?W.setAttribute("wrap",He.getAttribute("wrap")):W.removeAttribute("wrap");var Se=J(He,ge),ct=Se.paddingSize,dt=Se.borderSize,at=Se.boxSizing,st=Se.sizingStyle;W.setAttribute("style","".concat(st,";").concat(Y)),W.value=He.value||He.placeholder||"";var It=void 0,Ut=void 0,Kt,hr=W.scrollHeight;if(at==="border-box"?hr+=dt:at==="content-box"&&(hr-=ct),De!==null||fe!==null){W.value=" ";var or=W.scrollHeight-ct;De!==null&&(It=or*De,at==="border-box"&&(It=It+ct+dt),hr=Math.max(It,hr)),fe!==null&&(Ut=or*fe,at==="border-box"&&(Ut=Ut+ct+dt),Kt=hr>Ut?"":"hidden",hr=Math.min(Ut,hr))}var Sr={height:hr,overflowY:Kt,resize:"none"};return It&&(Sr.minHeight=It),Ut&&(Sr.maxHeight=Ut),Sr}var K=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],se=0,he=1,Te=2,xe=F.forwardRef(function(He,ge){var De=He,fe=De.prefixCls,Se=De.onPressEnter,ct=De.defaultValue,dt=De.value,at=De.autoSize,st=De.onResize,It=De.className,Ut=De.style,Kt=De.disabled,hr=De.onChange,or=De.onInternalAutoSize,Sr=(0,Z.Z)(De,K),ur=(0,S.Z)(ct,{value:dt,postState:function(kr){return kr!=null?kr:""}}),G=(0,te.Z)(ur,2),wt=G[0],_=G[1],f=function(kr){_(kr.target.value),hr==null||hr(kr)},u=F.useRef();F.useImperativeHandle(ge,function(){return{textArea:u.current}});var x=F.useMemo(function(){return at&&(0,Ne.Z)(at)==="object"?[at.minRows,at.maxRows]:[]},[at]),ee=(0,te.Z)(x,2),Ce=ee[0],H=ee[1],ne=!!at,$e=function(){try{if(document.activeElement===u.current){var kr=u.current,Dr=kr.selectionStart,vr=kr.selectionEnd,dr=kr.scrollTop;u.current.setSelectionRange(Dr,vr),u.current.scrollTop=dr}}catch($r){}},we=F.useState(Te),ve=(0,te.Z)(we,2),qe=ve[0],St=ve[1],me=F.useState(),ft=(0,te.Z)(me,2),lt=ft[0],Pe=ft[1],Le=function(){St(se)};(0,R.Z)(function(){ne&&Le()},[dt,Ce,H,ne]),(0,R.Z)(function(){if(qe===se)St(he);else if(qe===he){var pr=V(u.current,!1,Ce,H);St(Te),Pe(pr)}else $e()},[qe]);var pt=F.useRef(),zt=function(){M.Z.cancel(pt.current)},Ht=function(kr){qe===Te&&(st==null||st(kr),at&&(zt(),pt.current=(0,M.Z)(function(){Le()})))};F.useEffect(function(){return zt},[]);var er=ne?lt:null,Pr=(0,ue.Z)((0,ue.Z)({},Ut),er);return(qe===se||qe===he)&&(Pr.overflowY="hidden",Pr.overflowX="hidden"),F.createElement(P.Z,{onResize:Ht,disabled:!(at||st)},F.createElement("textarea",(0,pe.Z)({},Sr,{ref:u,style:Pr,className:E()(fe,It,(0,U.Z)({},"".concat(fe,"-disabled"),Kt)),disabled:Kt,value:wt,onChange:f})))}),je=xe,X=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function de(He,ge){return(0,B.Z)(He||"").slice(0,ge).join("")}function k(He,ge,De,fe){var Se=De;return He?Se=de(De,fe):(0,B.Z)(ge||"").length<De.length&&(0,B.Z)(De||"").length>fe&&(Se=ge),Se}var rt=F.forwardRef(function(He,ge){var De,fe=He.defaultValue,Se=He.value,ct=He.onFocus,dt=He.onBlur,at=He.onChange,st=He.allowClear,It=He.maxLength,Ut=He.onCompositionStart,Kt=He.onCompositionEnd,hr=He.suffix,or=He.prefixCls,Sr=or===void 0?"rc-textarea":or,ur=He.classes,G=He.showCount,wt=He.className,_=He.style,f=He.disabled,u=He.hidden,x=He.classNames,ee=He.styles,Ce=He.onResize,H=(0,Z.Z)(He,X),ne=(0,S.Z)(fe,{value:Se,defaultValue:fe}),$e=(0,te.Z)(ne,2),we=$e[0],ve=$e[1],qe=(0,F.useRef)(null),St=F.useState(!1),me=(0,te.Z)(St,2),ft=me[0],lt=me[1],Pe=F.useState(!1),Le=(0,te.Z)(Pe,2),pt=Le[0],zt=Le[1],Ht=F.useRef(),er=F.useRef(0),Pr=F.useState(null),pr=(0,te.Z)(Pr,2),kr=pr[0],Dr=pr[1],vr=function(){var gi;(gi=qe.current)===null||gi===void 0||gi.textArea.focus()};(0,F.useImperativeHandle)(ge,function(){return{resizableTextArea:qe.current,focus:vr,blur:function(){var gi;(gi=qe.current)===null||gi===void 0||gi.textArea.blur()}}}),(0,F.useEffect)(function(){lt(function(Ji){return!f&&Ji})},[f]);var dr=Number(It)>0,$r=function(gi){zt(!0),Ht.current=we,er.current=gi.currentTarget.selectionStart,Ut==null||Ut(gi)},un=function(gi){zt(!1);var ki=gi.currentTarget.value;if(dr){var Pi,nt=er.current>=It+1||er.current===((Pi=Ht.current)===null||Pi===void 0?void 0:Pi.length);ki=k(nt,Ht.current,ki,It)}ki!==we&&(ve(ki),(0,j.rJ)(gi.currentTarget,gi,at,ki)),Kt==null||Kt(gi)},_n=function(gi){var ki=gi.target.value;if(!pt&&dr){var Pi=gi.target.selectionStart>=It+1||gi.target.selectionStart===ki.length||!gi.target.selectionStart;ki=k(Pi,we,ki,It)}ve(ki),(0,j.rJ)(gi.currentTarget,gi,at,ki)},qr=function(gi){var ki=H.onPressEnter,Pi=H.onKeyDown;gi.key==="Enter"&&ki&&ki(gi),Pi==null||Pi(gi)},Bn=function(gi){lt(!0),ct==null||ct(gi)},ti=function(gi){lt(!1),dt==null||dt(gi)},Ir=function(gi){var ki;ve(""),vr(),(0,j.rJ)((ki=qe.current)===null||ki===void 0?void 0:ki.textArea,gi,at)},qn=(0,j.D7)(we);!pt&&dr&&Se==null&&(qn=de(qn,It));var Ti=hr,ci;if(G){var Ui=(0,B.Z)(qn).length;(0,Ne.Z)(G)==="object"?ci=G.formatter({value:qn,count:Ui,maxLength:It}):ci="".concat(Ui).concat(dr?" / ".concat(It):""),Ti=F.createElement(F.Fragment,null,Ti,F.createElement("span",{className:E()("".concat(Sr,"-data-count"),x==null?void 0:x.count),style:ee==null?void 0:ee.count},ci))}var Ei=function(gi){var ki;Ce==null||Ce(gi),(ki=qe.current)!==null&&ki!==void 0&&ki.textArea.style.height&&Dr(!0)},$i=!H.autoSize&&!G&&!st,Ha=F.createElement(p.BaseInput,{value:qn,allowClear:st,handleReset:Ir,suffix:Ti,prefixCls:Sr,classes:{affixWrapper:E()(ur==null?void 0:ur.affixWrapper,(De={},(0,U.Z)(De,"".concat(Sr,"-show-count"),G),(0,U.Z)(De,"".concat(Sr,"-textarea-allow-clear"),st),De))},disabled:f,focused:ft,className:wt,style:(0,ue.Z)((0,ue.Z)({},_),kr&&!$i?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ci=="string"?ci:void 0}},hidden:u,inputElement:F.createElement(je,(0,pe.Z)({},H,{onKeyDown:qr,onChange:_n,onFocus:Bn,onBlur:ti,onCompositionStart:$r,onCompositionEnd:un,className:x==null?void 0:x.textarea,style:(0,ue.Z)((0,ue.Z)({},ee==null?void 0:ee.textarea),{},{resize:_==null?void 0:_.resize}),disabled:f,prefixCls:Sr,onResize:Ei,ref:qe}))});return Ha}),Oe=rt,be=Oe},39417:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return he}});var pe=w(32855),ue=w(74430),U=w(43079),Ne=w(27247),te=w(33377),Z=w(93912),B=w(83383),h=w(18881),E=w(85461),p=w(92310),j=w.n(p),S=w(26112),F=w(59301),P=w(39378),R=function(xe){for(var je=xe.prefixCls,X=xe.level,de=xe.isStart,k=xe.isEnd,rt="".concat(je,"-indent-unit"),Oe=[],be=0;be<X;be+=1){var He;Oe.push(F.createElement("span",{key:be,className:j()(rt,(He={},(0,ue.Z)(He,"".concat(rt,"-start"),de[be]),(0,ue.Z)(He,"".concat(rt,"-end"),k[be]),He))}))}return F.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},Oe)},M=F.memo(R),Y=w(67841),Q=w(71430),ce=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],W="open",J="close",V="---",K=function(Te){(0,h.Z)(je,Te);var xe=(0,E.Z)(je);function je(){var X;(0,te.Z)(this,je);for(var de=arguments.length,k=new Array(de),rt=0;rt<de;rt++)k[rt]=arguments[rt];return X=xe.call.apply(xe,[this].concat(k)),X.state={dragNodeHighlight:!1},X.selectHandle=void 0,X.cacheIndent=void 0,X.onSelectorClick=function(Oe){var be=X.props.context.onNodeClick;be(Oe,(0,Q.F)(X.props)),X.isSelectable()?X.onSelect(Oe):X.onCheck(Oe)},X.onSelectorDoubleClick=function(Oe){var be=X.props.context.onNodeDoubleClick;be(Oe,(0,Q.F)(X.props))},X.onSelect=function(Oe){if(!X.isDisabled()){var be=X.props.context.onNodeSelect;be(Oe,(0,Q.F)(X.props))}},X.onCheck=function(Oe){if(!X.isDisabled()){var be=X.props,He=be.disableCheckbox,ge=be.checked,De=X.props.context.onNodeCheck;if(!(!X.isCheckable()||He)){var fe=!ge;De(Oe,(0,Q.F)(X.props),fe)}}},X.onMouseEnter=function(Oe){var be=X.props.context.onNodeMouseEnter;be(Oe,(0,Q.F)(X.props))},X.onMouseLeave=function(Oe){var be=X.props.context.onNodeMouseLeave;be(Oe,(0,Q.F)(X.props))},X.onContextMenu=function(Oe){var be=X.props.context.onNodeContextMenu;be(Oe,(0,Q.F)(X.props))},X.onDragStart=function(Oe){var be=X.props.context.onNodeDragStart;Oe.stopPropagation(),X.setState({dragNodeHighlight:!0}),be(Oe,(0,B.Z)(X));try{Oe.dataTransfer.setData("text/plain","")}catch(He){}},X.onDragEnter=function(Oe){var be=X.props.context.onNodeDragEnter;Oe.preventDefault(),Oe.stopPropagation(),be(Oe,(0,B.Z)(X))},X.onDragOver=function(Oe){var be=X.props.context.onNodeDragOver;Oe.preventDefault(),Oe.stopPropagation(),be(Oe,(0,B.Z)(X))},X.onDragLeave=function(Oe){var be=X.props.context.onNodeDragLeave;Oe.stopPropagation(),be(Oe,(0,B.Z)(X))},X.onDragEnd=function(Oe){var be=X.props.context.onNodeDragEnd;Oe.stopPropagation(),X.setState({dragNodeHighlight:!1}),be(Oe,(0,B.Z)(X))},X.onDrop=function(Oe){var be=X.props.context.onNodeDrop;Oe.preventDefault(),Oe.stopPropagation(),X.setState({dragNodeHighlight:!1}),be(Oe,(0,B.Z)(X))},X.onExpand=function(Oe){var be=X.props,He=be.loading,ge=be.context.onNodeExpand;He||ge(Oe,(0,Q.F)(X.props))},X.setSelectHandle=function(Oe){X.selectHandle=Oe},X.getNodeState=function(){var Oe=X.props.expanded;return X.isLeaf()?null:Oe?W:J},X.hasChildren=function(){var Oe=X.props.eventKey,be=X.props.context.keyEntities,He=(0,Y.Z)(be,Oe)||{},ge=He.children;return!!(ge||[]).length},X.isLeaf=function(){var Oe=X.props,be=Oe.isLeaf,He=Oe.loaded,ge=X.props.context.loadData,De=X.hasChildren();return be===!1?!1:be||!ge&&!De||ge&&He&&!De},X.isDisabled=function(){var Oe=X.props.disabled,be=X.props.context.disabled;return!!(be||Oe)},X.isCheckable=function(){var Oe=X.props.checkable,be=X.props.context.checkable;return!be||Oe===!1?!1:be},X.syncLoadData=function(Oe){var be=Oe.expanded,He=Oe.loading,ge=Oe.loaded,De=X.props.context,fe=De.loadData,Se=De.onNodeLoad;He||fe&&be&&!X.isLeaf()&&!X.hasChildren()&&!ge&&Se((0,Q.F)(X.props))},X.isDraggable=function(){var Oe=X.props,be=Oe.data,He=Oe.context.draggable;return!!(He&&(!He.nodeDraggable||He.nodeDraggable(be)))},X.renderDragHandler=function(){var Oe=X.props.context,be=Oe.draggable,He=Oe.prefixCls;return be!=null&&be.icon?F.createElement("span",{className:"".concat(He,"-draggable-icon")},be.icon):null},X.renderSwitcherIconDom=function(Oe){var be=X.props.switcherIcon,He=X.props.context.switcherIcon,ge=be||He;return typeof ge=="function"?ge((0,Ne.Z)((0,Ne.Z)({},X.props),{},{isLeaf:Oe})):ge},X.renderSwitcher=function(){var Oe=X.props.expanded,be=X.props.context.prefixCls;if(X.isLeaf()){var He=X.renderSwitcherIconDom(!0);return He!==!1?F.createElement("span",{className:j()("".concat(be,"-switcher"),"".concat(be,"-switcher-noop"))},He):null}var ge=j()("".concat(be,"-switcher"),"".concat(be,"-switcher_").concat(Oe?W:J)),De=X.renderSwitcherIconDom(!1);return De!==!1?F.createElement("span",{onClick:X.onExpand,className:ge},De):null},X.renderCheckbox=function(){var Oe=X.props,be=Oe.checked,He=Oe.halfChecked,ge=Oe.disableCheckbox,De=X.props.context.prefixCls,fe=X.isDisabled(),Se=X.isCheckable();if(!Se)return null;var ct=typeof Se!="boolean"?Se:null;return F.createElement("span",{className:j()("".concat(De,"-checkbox"),be&&"".concat(De,"-checkbox-checked"),!be&&He&&"".concat(De,"-checkbox-indeterminate"),(fe||ge)&&"".concat(De,"-checkbox-disabled")),onClick:X.onCheck},ct)},X.renderIcon=function(){var Oe=X.props.loading,be=X.props.context.prefixCls;return F.createElement("span",{className:j()("".concat(be,"-iconEle"),"".concat(be,"-icon__").concat(X.getNodeState()||"docu"),Oe&&"".concat(be,"-icon_loading"))})},X.renderSelector=function(){var Oe=X.state.dragNodeHighlight,be=X.props,He=be.title,ge=He===void 0?V:He,De=be.selected,fe=be.icon,Se=be.loading,ct=be.data,dt=X.props.context,at=dt.prefixCls,st=dt.showIcon,It=dt.icon,Ut=dt.loadData,Kt=dt.titleRender,hr=X.isDisabled(),or="".concat(at,"-node-content-wrapper"),Sr;if(st){var ur=fe||It;Sr=ur?F.createElement("span",{className:j()("".concat(at,"-iconEle"),"".concat(at,"-icon__customize"))},typeof ur=="function"?ur(X.props):ur):X.renderIcon()}else Ut&&Se&&(Sr=X.renderIcon());var G;typeof ge=="function"?G=ge(ct):Kt?G=Kt(ct):G=ge;var wt=F.createElement("span",{className:"".concat(at,"-title")},G);return F.createElement("span",{ref:X.setSelectHandle,title:typeof ge=="string"?ge:"",className:j()("".concat(or),"".concat(or,"-").concat(X.getNodeState()||"normal"),!hr&&(De||Oe)&&"".concat(at,"-node-selected")),onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave,onContextMenu:X.onContextMenu,onClick:X.onSelectorClick,onDoubleClick:X.onSelectorDoubleClick},Sr,wt,X.renderDropIndicator())},X.renderDropIndicator=function(){var Oe=X.props,be=Oe.disabled,He=Oe.eventKey,ge=X.props.context,De=ge.draggable,fe=ge.dropLevelOffset,Se=ge.dropPosition,ct=ge.prefixCls,dt=ge.indent,at=ge.dropIndicatorRender,st=ge.dragOverNodeKey,It=ge.direction,Ut=!!De,Kt=!be&&Ut&&st===He,hr=dt!=null?dt:X.cacheIndent;return X.cacheIndent=dt,Kt?at({dropPosition:Se,dropLevelOffset:fe,indent:hr,prefixCls:ct,direction:It}):null},X}return(0,Z.Z)(je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var de=this.props.selectable,k=this.props.context.selectable;return typeof de=="boolean"?de:k}},{key:"render",value:function(){var de,k=this.props,rt=k.eventKey,Oe=k.className,be=k.style,He=k.dragOver,ge=k.dragOverGapTop,De=k.dragOverGapBottom,fe=k.isLeaf,Se=k.isStart,ct=k.isEnd,dt=k.expanded,at=k.selected,st=k.checked,It=k.halfChecked,Ut=k.loading,Kt=k.domRef,hr=k.active,or=k.data,Sr=k.onMouseMove,ur=k.selectable,G=(0,U.Z)(k,ce),wt=this.props.context,_=wt.prefixCls,f=wt.filterTreeNode,u=wt.keyEntities,x=wt.dropContainerKey,ee=wt.dropTargetKey,Ce=wt.draggingNodeKey,H=this.isDisabled(),ne=(0,S.Z)(G,{aria:!0,data:!0}),$e=(0,Y.Z)(u,rt)||{},we=$e.level,ve=ct[ct.length-1],qe=this.isDraggable(),St=!H&&qe,me=Ce===rt,ft=ur!==void 0?{"aria-selected":!!ur}:void 0;return F.createElement("div",(0,pe.Z)({ref:Kt,className:j()(Oe,"".concat(_,"-treenode"),(de={},(0,ue.Z)(de,"".concat(_,"-treenode-disabled"),H),(0,ue.Z)(de,"".concat(_,"-treenode-switcher-").concat(dt?"open":"close"),!fe),(0,ue.Z)(de,"".concat(_,"-treenode-checkbox-checked"),st),(0,ue.Z)(de,"".concat(_,"-treenode-checkbox-indeterminate"),It),(0,ue.Z)(de,"".concat(_,"-treenode-selected"),at),(0,ue.Z)(de,"".concat(_,"-treenode-loading"),Ut),(0,ue.Z)(de,"".concat(_,"-treenode-active"),hr),(0,ue.Z)(de,"".concat(_,"-treenode-leaf-last"),ve),(0,ue.Z)(de,"".concat(_,"-treenode-draggable"),qe),(0,ue.Z)(de,"dragging",me),(0,ue.Z)(de,"drop-target",ee===rt),(0,ue.Z)(de,"drop-container",x===rt),(0,ue.Z)(de,"drag-over",!H&&He),(0,ue.Z)(de,"drag-over-gap-top",!H&&ge),(0,ue.Z)(de,"drag-over-gap-bottom",!H&&De),(0,ue.Z)(de,"filter-node",f&&f((0,Q.F)(this.props))),de)),style:be,draggable:St,"aria-grabbed":me,onDragStart:St?this.onDragStart:void 0,onDragEnter:qe?this.onDragEnter:void 0,onDragOver:qe?this.onDragOver:void 0,onDragLeave:qe?this.onDragLeave:void 0,onDrop:qe?this.onDrop:void 0,onDragEnd:qe?this.onDragEnd:void 0,onMouseMove:Sr},ft,ne),F.createElement(M,{prefixCls:_,level:we,isStart:Se,isEnd:ct}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(F.Component),se=function(xe){return F.createElement(P.k.Consumer,null,function(je){return F.createElement(K,(0,pe.Z)({},xe,{context:je}))})};se.displayName="TreeNode",se.isTreeNode=1;var he=se},39378:function(xn,Jt,w){"use strict";w.d(Jt,{k:function(){return ue}});var pe=w(59301),ue=pe.createContext(null)},54030:function(xn,Jt,w){"use strict";w.d(Jt,{O:function(){return he.Z},Z:function(){return wt}});var pe=w(32855),ue=w(74430),U=w(34666),Ne=w(27247),te=w(3300),Z=w(33377),B=w(93912),h=w(83383),E=w(18881),p=w(85461),j=w(92310),S=w.n(j),F=w(10228),P=w(26112),R=w(48736),M=w(59301),Y=w(39378);function Q(_){var f=_.dropPosition,u=_.dropLevelOffset,x=_.indent,ee={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(f){case-1:ee.top=0,ee.left=-u*x;break;case 1:ee.bottom=0,ee.left=-u*x;break;case 0:ee.bottom=0,ee.left=x;break}return M.createElement("div",{style:ee})}function ce(_){if(_==null)throw new TypeError("Cannot destructure "+_)}var W=w(11913),J=w(43079),V=w(34280),K=w(6790),se=w(77900),he=w(39417);function Te(_,f){var u=M.useState(!1),x=(0,W.Z)(u,2),ee=x[0],Ce=x[1];M.useLayoutEffect(function(){if(ee)return _(),function(){f()}},[ee]),M.useLayoutEffect(function(){return Ce(!0),function(){Ce(!1)}},[])}var xe=w(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],X=function(f,u){var x=f.className,ee=f.style,Ce=f.motion,H=f.motionNodes,ne=f.motionType,$e=f.onMotionStart,we=f.onMotionEnd,ve=f.active,qe=f.treeNodeRequiredProps,St=(0,J.Z)(f,je),me=M.useState(!0),ft=(0,W.Z)(me,2),lt=ft[0],Pe=ft[1],Le=M.useContext(Y.k),pt=Le.prefixCls,zt=H&&ne!=="hide";(0,V.Z)(function(){H&&zt!==lt&&Pe(zt)},[H]);var Ht=function(){H&&$e()},er=M.useRef(!1),Pr=function(){H&&!er.current&&(er.current=!0,we())};Te(Ht,Pr);var pr=function(Dr){zt===Dr&&Pr()};return H?M.createElement(se.default,(0,pe.Z)({ref:u,visible:lt},Ce,{motionAppear:ne==="show",onVisibleChanged:pr}),function(kr,Dr){var vr=kr.className,dr=kr.style;return M.createElement("div",{ref:Dr,className:S()("".concat(pt,"-treenode-motion"),vr),style:dr},H.map(function($r){var un=(0,pe.Z)({},(ce($r.data),$r.data)),_n=$r.title,qr=$r.key,Bn=$r.isStart,ti=$r.isEnd;delete un.children;var Ir=(0,xe.H8)(qr,qe);return M.createElement(he.Z,(0,pe.Z)({},un,Ir,{title:_n,active:ve,data:$r.data,key:qr,isStart:Bn,isEnd:ti}))}))}):M.createElement(he.Z,(0,pe.Z)({domRef:u,className:x,style:ee},St,{active:ve}))};X.displayName="MotionTreeNode";var de=M.forwardRef(X),k=de;function rt(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=_.length,x=f.length;if(Math.abs(u-x)!==1)return{add:!1,key:null};function ee(Ce,H){var ne=new Map;Ce.forEach(function(we){ne.set(we,!0)});var $e=H.filter(function(we){return!ne.has(we)});return $e.length===1?$e[0]:null}return u<x?{add:!0,key:ee(_,f)}:{add:!1,key:ee(f,_)}}function Oe(_,f,u){var x=_.findIndex(function(ne){return ne.key===u}),ee=_[x+1],Ce=f.findIndex(function(ne){return ne.key===u});if(ee){var H=f.findIndex(function(ne){return ne.key===ee.key});return f.slice(Ce+1,H)}return f.slice(Ce+1)}var be=["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"],He={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ge=function(){},De="RC_TREE_MOTION_".concat(Math.random()),fe={key:De},Se={key:De,level:0,index:0,pos:"0",node:fe,nodes:[fe]},ct={parent:null,children:[],pos:Se.pos,data:fe,title:null,key:De,isStart:[],isEnd:[]};function dt(_,f,u,x){return f===!1||!u?_:_.slice(0,Math.ceil(u/x)+1)}function at(_){var f=_.key,u=_.pos;return(0,xe.km)(f,u)}function st(_){for(var f=String(_.data.key),u=_;u.parent;)u=u.parent,f="".concat(u.data.key," > ").concat(f);return f}var It=M.forwardRef(function(_,f){var u=_.prefixCls,x=_.data,ee=_.selectable,Ce=_.checkable,H=_.expandedKeys,ne=_.selectedKeys,$e=_.checkedKeys,we=_.loadedKeys,ve=_.loadingKeys,qe=_.halfCheckedKeys,St=_.keyEntities,me=_.disabled,ft=_.dragging,lt=_.dragOverNodeKey,Pe=_.dropPosition,Le=_.motion,pt=_.height,zt=_.itemHeight,Ht=_.virtual,er=_.focusable,Pr=_.activeItem,pr=_.focused,kr=_.tabIndex,Dr=_.onKeyDown,vr=_.onFocus,dr=_.onBlur,$r=_.onActiveChange,un=_.onListChangeStart,_n=_.onListChangeEnd,qr=(0,J.Z)(_,be),Bn=M.useRef(null),ti=M.useRef(null);M.useImperativeHandle(f,function(){return{scrollTo:function(Yr){Bn.current.scrollTo(Yr)},getIndentWidth:function(){return ti.current.offsetWidth}}});var Ir=M.useState(H),qn=(0,W.Z)(Ir,2),Ti=qn[0],ci=qn[1],Ui=M.useState(x),Ei=(0,W.Z)(Ui,2),$i=Ei[0],Ha=Ei[1],Ji=M.useState(x),gi=(0,W.Z)(Ji,2),ki=gi[0],Pi=gi[1],nt=M.useState([]),Ie=(0,W.Z)(nt,2),ke=Ie[0],Ee=Ie[1],$t=M.useState(null),Nt=(0,W.Z)($t,2),Er=Nt[0],sr=Nt[1],Kr=M.useRef(x);Kr.current=x;function Wr(){var jr=Kr.current;Ha(jr),Pi(jr),Ee([]),sr(null),_n()}(0,V.Z)(function(){ci(H);var jr=rt(Ti,H);if(jr.key!==null)if(jr.add){var Yr=$i.findIndex(function(Tn){var sn=Tn.key;return sn===jr.key}),mn=dt(Oe($i,x,jr.key),Ht,pt,zt),rn=$i.slice();rn.splice(Yr+1,0,ct),Pi(rn),Ee(mn),sr("show")}else{var Dn=x.findIndex(function(Tn){var sn=Tn.key;return sn===jr.key}),Qn=dt(Oe(x,$i,jr.key),Ht,pt,zt),ui=x.slice();ui.splice(Dn+1,0,ct),Pi(ui),Ee(Qn),sr("hide")}else $i!==x&&(Ha(x),Pi(x))},[H,x]),M.useEffect(function(){ft||Wr()},[ft]);var tn=Le?ki:x,Vr={expandedKeys:H,selectedKeys:ne,loadedKeys:we,loadingKeys:ve,checkedKeys:$e,halfCheckedKeys:qe,dragOverNodeKey:lt,dropPosition:Pe,keyEntities:St};return M.createElement(M.Fragment,null,pr&&Pr&&M.createElement("span",{style:He,"aria-live":"assertive"},st(Pr)),M.createElement("div",null,M.createElement("input",{style:He,disabled:er===!1||me,tabIndex:er!==!1?kr:null,onKeyDown:Dr,onFocus:vr,onBlur:dr,value:"",onChange:ge,"aria-label":"for screen reader"})),M.createElement("div",{className:"".concat(u,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},M.createElement("div",{className:"".concat(u,"-indent")},M.createElement("div",{ref:ti,className:"".concat(u,"-indent-unit")}))),M.createElement(K.Z,(0,pe.Z)({},qr,{data:tn,itemKey:at,height:pt,fullHeight:!1,virtual:Ht,itemHeight:zt,prefixCls:"".concat(u,"-list"),ref:Bn,onVisibleChange:function(Yr,mn){var rn=new Set(Yr),Dn=mn.filter(function(Qn){return!rn.has(Qn)});Dn.some(function(Qn){return at(Qn)===De})&&Wr()}}),function(jr){var Yr=jr.pos,mn=(0,pe.Z)({},(ce(jr.data),jr.data)),rn=jr.title,Dn=jr.key,Qn=jr.isStart,ui=jr.isEnd,Tn=(0,xe.km)(Dn,Yr);delete mn.key,delete mn.children;var sn=(0,xe.H8)(Tn,Vr);return M.createElement(k,(0,pe.Z)({},mn,sn,{title:rn,active:!!Pr&&Dn===Pr.key,pos:Yr,data:jr.data,isStart:Qn,isEnd:ui,motion:Le,motionNodes:Dn===De?ke:null,motionType:Er,onMotionStart:un,onMotionEnd:Wr,treeNodeRequiredProps:Vr,onMouseMove:function(){$r(null)}}))}))});It.displayName="NodeList";var Ut=It,Kt=w(35654),hr=w(90782),or=w(67841),Sr=10,ur=function(_){(0,E.Z)(u,_);var f=(0,p.Z)(u);function u(){var x;(0,Z.Z)(this,u);for(var ee=arguments.length,Ce=new Array(ee),H=0;H<ee;H++)Ce[H]=arguments[H];return x=f.call.apply(f,[this].concat(Ce)),x.destroyed=!1,x.delayedDragEnterLogic=void 0,x.loadingRetryTimes={},x.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,xe.w$)()},x.dragStartMousePosition=null,x.dragNode=void 0,x.currentMouseOverDroppableNodeKey=null,x.listRef=M.createRef(),x.onNodeDragStart=function(ne,$e){var we=x.state,ve=we.expandedKeys,qe=we.keyEntities,St=x.props.onDragStart,me=$e.props.eventKey;x.dragNode=$e,x.dragStartMousePosition={x:ne.clientX,y:ne.clientY};var ft=(0,Kt._5)(ve,me);x.setState({draggingNodeKey:me,dragChildrenKeys:(0,Kt.wA)(me,qe),indent:x.listRef.current.getIndentWidth()}),x.setExpandedKeys(ft),window.addEventListener("dragend",x.onWindowDragEnd),St==null||St({event:ne,node:(0,xe.F)($e.props)})},x.onNodeDragEnter=function(ne,$e){var we=x.state,ve=we.expandedKeys,qe=we.keyEntities,St=we.dragChildrenKeys,me=we.flattenNodes,ft=we.indent,lt=x.props,Pe=lt.onDragEnter,Le=lt.onExpand,pt=lt.allowDrop,zt=lt.direction,Ht=$e.props,er=Ht.pos,Pr=Ht.eventKey,pr=(0,h.Z)(x),kr=pr.dragNode;if(x.currentMouseOverDroppableNodeKey!==Pr&&(x.currentMouseOverDroppableNodeKey=Pr),!kr){x.resetDragState();return}var Dr=(0,Kt.OM)(ne,kr,$e,ft,x.dragStartMousePosition,pt,me,qe,ve,zt),vr=Dr.dropPosition,dr=Dr.dropLevelOffset,$r=Dr.dropTargetKey,un=Dr.dropContainerKey,_n=Dr.dropTargetPos,qr=Dr.dropAllowed,Bn=Dr.dragOverNodeKey;if(St.indexOf($r)!==-1||!qr){x.resetDragState();return}if(x.delayedDragEnterLogic||(x.delayedDragEnterLogic={}),Object.keys(x.delayedDragEnterLogic).forEach(function(ti){clearTimeout(x.delayedDragEnterLogic[ti])}),kr.props.eventKey!==$e.props.eventKey&&(ne.persist(),x.delayedDragEnterLogic[er]=window.setTimeout(function(){if(x.state.draggingNodeKey!==null){var ti=(0,te.Z)(ve),Ir=(0,or.Z)(qe,$e.props.eventKey);Ir&&(Ir.children||[]).length&&(ti=(0,Kt.L0)(ve,$e.props.eventKey)),"expandedKeys"in x.props||x.setExpandedKeys(ti),Le==null||Le(ti,{node:(0,xe.F)($e.props),expanded:!0,nativeEvent:ne.nativeEvent})}},800)),kr.props.eventKey===$r&&dr===0){x.resetDragState();return}x.setState({dragOverNodeKey:Bn,dropPosition:vr,dropLevelOffset:dr,dropTargetKey:$r,dropContainerKey:un,dropTargetPos:_n,dropAllowed:qr}),Pe==null||Pe({event:ne,node:(0,xe.F)($e.props),expandedKeys:ve})},x.onNodeDragOver=function(ne,$e){var we=x.state,ve=we.dragChildrenKeys,qe=we.flattenNodes,St=we.keyEntities,me=we.expandedKeys,ft=we.indent,lt=x.props,Pe=lt.onDragOver,Le=lt.allowDrop,pt=lt.direction,zt=(0,h.Z)(x),Ht=zt.dragNode;if(Ht){var er=(0,Kt.OM)(ne,Ht,$e,ft,x.dragStartMousePosition,Le,qe,St,me,pt),Pr=er.dropPosition,pr=er.dropLevelOffset,kr=er.dropTargetKey,Dr=er.dropContainerKey,vr=er.dropAllowed,dr=er.dropTargetPos,$r=er.dragOverNodeKey;ve.indexOf(kr)!==-1||!vr||(Ht.props.eventKey===kr&&pr===0?x.state.dropPosition===null&&x.state.dropLevelOffset===null&&x.state.dropTargetKey===null&&x.state.dropContainerKey===null&&x.state.dropTargetPos===null&&x.state.dropAllowed===!1&&x.state.dragOverNodeKey===null||x.resetDragState():Pr===x.state.dropPosition&&pr===x.state.dropLevelOffset&&kr===x.state.dropTargetKey&&Dr===x.state.dropContainerKey&&dr===x.state.dropTargetPos&&vr===x.state.dropAllowed&&$r===x.state.dragOverNodeKey||x.setState({dropPosition:Pr,dropLevelOffset:pr,dropTargetKey:kr,dropContainerKey:Dr,dropTargetPos:dr,dropAllowed:vr,dragOverNodeKey:$r}),Pe==null||Pe({event:ne,node:(0,xe.F)($e.props)}))}},x.onNodeDragLeave=function(ne,$e){x.currentMouseOverDroppableNodeKey===$e.props.eventKey&&!ne.currentTarget.contains(ne.relatedTarget)&&(x.resetDragState(),x.currentMouseOverDroppableNodeKey=null);var we=x.props.onDragLeave;we==null||we({event:ne,node:(0,xe.F)($e.props)})},x.onWindowDragEnd=function(ne){x.onNodeDragEnd(ne,null,!0),window.removeEventListener("dragend",x.onWindowDragEnd)},x.onNodeDragEnd=function(ne,$e){var we=x.props.onDragEnd;x.setState({dragOverNodeKey:null}),x.cleanDragState(),we==null||we({event:ne,node:(0,xe.F)($e.props)}),x.dragNode=null,window.removeEventListener("dragend",x.onWindowDragEnd)},x.onNodeDrop=function(ne,$e){var we,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,qe=x.state,St=qe.dragChildrenKeys,me=qe.dropPosition,ft=qe.dropTargetKey,lt=qe.dropTargetPos,Pe=qe.dropAllowed;if(Pe){var Le=x.props.onDrop;if(x.setState({dragOverNodeKey:null}),x.cleanDragState(),ft!==null){var pt=(0,Ne.Z)((0,Ne.Z)({},(0,xe.H8)(ft,x.getTreeNodeRequiredProps())),{},{active:((we=x.getActiveItem())===null||we===void 0?void 0:we.key)===ft,data:(0,or.Z)(x.state.keyEntities,ft).node}),zt=St.indexOf(ft)!==-1;(0,R.ZP)(!zt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ht=(0,Kt.yx)(lt),er={event:ne,node:(0,xe.F)(pt),dragNode:x.dragNode?(0,xe.F)(x.dragNode.props):null,dragNodesKeys:[x.dragNode.props.eventKey].concat(St),dropToGap:me!==0,dropPosition:me+Number(Ht[Ht.length-1])};ve||Le==null||Le(er),x.dragNode=null}}},x.cleanDragState=function(){var ne=x.state.draggingNodeKey;ne!==null&&x.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),x.dragStartMousePosition=null,x.currentMouseOverDroppableNodeKey=null},x.triggerExpandActionExpand=function(ne,$e){var we=x.state,ve=we.expandedKeys,qe=we.flattenNodes,St=$e.expanded,me=$e.key,ft=$e.isLeaf;if(!(ft||ne.shiftKey||ne.metaKey||ne.ctrlKey)){var lt=qe.filter(function(Le){return Le.key===me})[0],Pe=(0,xe.F)((0,Ne.Z)((0,Ne.Z)({},(0,xe.H8)(me,x.getTreeNodeRequiredProps())),{},{data:lt.data}));x.setExpandedKeys(St?(0,Kt._5)(ve,me):(0,Kt.L0)(ve,me)),x.onNodeExpand(ne,Pe)}},x.onNodeClick=function(ne,$e){var we=x.props,ve=we.onClick,qe=we.expandAction;qe==="click"&&x.triggerExpandActionExpand(ne,$e),ve==null||ve(ne,$e)},x.onNodeDoubleClick=function(ne,$e){var we=x.props,ve=we.onDoubleClick,qe=we.expandAction;qe==="doubleClick"&&x.triggerExpandActionExpand(ne,$e),ve==null||ve(ne,$e)},x.onNodeSelect=function(ne,$e){var we=x.state.selectedKeys,ve=x.state,qe=ve.keyEntities,St=ve.fieldNames,me=x.props,ft=me.onSelect,lt=me.multiple,Pe=$e.selected,Le=$e[St.key],pt=!Pe;pt?lt?we=(0,Kt.L0)(we,Le):we=[Le]:we=(0,Kt._5)(we,Le);var zt=we.map(function(Ht){var er=(0,or.Z)(qe,Ht);return er?er.node:null}).filter(function(Ht){return Ht});x.setUncontrolledState({selectedKeys:we}),ft==null||ft(we,{event:"select",selected:pt,node:$e,selectedNodes:zt,nativeEvent:ne.nativeEvent})},x.onNodeCheck=function(ne,$e,we){var ve=x.state,qe=ve.keyEntities,St=ve.checkedKeys,me=ve.halfCheckedKeys,ft=x.props,lt=ft.checkStrictly,Pe=ft.onCheck,Le=$e.key,pt,zt={event:"check",node:$e,checked:we,nativeEvent:ne.nativeEvent};if(lt){var Ht=we?(0,Kt.L0)(St,Le):(0,Kt._5)(St,Le),er=(0,Kt._5)(me,Le);pt={checked:Ht,halfChecked:er},zt.checkedNodes=Ht.map(function(dr){return(0,or.Z)(qe,dr)}).filter(function(dr){return dr}).map(function(dr){return dr.node}),x.setUncontrolledState({checkedKeys:Ht})}else{var Pr=(0,hr.S)([].concat((0,te.Z)(St),[Le]),!0,qe),pr=Pr.checkedKeys,kr=Pr.halfCheckedKeys;if(!we){var Dr=new Set(pr);Dr.delete(Le);var vr=(0,hr.S)(Array.from(Dr),{checked:!1,halfCheckedKeys:kr},qe);pr=vr.checkedKeys,kr=vr.halfCheckedKeys}pt=pr,zt.checkedNodes=[],zt.checkedNodesPositions=[],zt.halfCheckedKeys=kr,pr.forEach(function(dr){var $r=(0,or.Z)(qe,dr);if($r){var un=$r.node,_n=$r.pos;zt.checkedNodes.push(un),zt.checkedNodesPositions.push({node:un,pos:_n})}}),x.setUncontrolledState({checkedKeys:pr},!1,{halfCheckedKeys:kr})}Pe==null||Pe(pt,zt)},x.onNodeLoad=function(ne){var $e=ne.key,we=new Promise(function(ve,qe){x.setState(function(St){var me=St.loadedKeys,ft=me===void 0?[]:me,lt=St.loadingKeys,Pe=lt===void 0?[]:lt,Le=x.props,pt=Le.loadData,zt=Le.onLoad;if(!pt||ft.indexOf($e)!==-1||Pe.indexOf($e)!==-1)return null;var Ht=pt(ne);return Ht.then(function(){var er=x.state.loadedKeys,Pr=(0,Kt.L0)(er,$e);zt==null||zt(Pr,{event:"load",node:ne}),x.setUncontrolledState({loadedKeys:Pr}),x.setState(function(pr){return{loadingKeys:(0,Kt._5)(pr.loadingKeys,$e)}}),ve()}).catch(function(er){if(x.setState(function(pr){return{loadingKeys:(0,Kt._5)(pr.loadingKeys,$e)}}),x.loadingRetryTimes[$e]=(x.loadingRetryTimes[$e]||0)+1,x.loadingRetryTimes[$e]>=Sr){var Pr=x.state.loadedKeys;(0,R.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),x.setUncontrolledState({loadedKeys:(0,Kt.L0)(Pr,$e)}),ve()}qe(er)}),{loadingKeys:(0,Kt.L0)(Pe,$e)}})});return we.catch(function(){}),we},x.onNodeMouseEnter=function(ne,$e){var we=x.props.onMouseEnter;we==null||we({event:ne,node:$e})},x.onNodeMouseLeave=function(ne,$e){var we=x.props.onMouseLeave;we==null||we({event:ne,node:$e})},x.onNodeContextMenu=function(ne,$e){var we=x.props.onRightClick;we&&(ne.preventDefault(),we({event:ne,node:$e}))},x.onFocus=function(){var ne=x.props.onFocus;x.setState({focused:!0});for(var $e=arguments.length,we=new Array($e),ve=0;ve<$e;ve++)we[ve]=arguments[ve];ne==null||ne.apply(void 0,we)},x.onBlur=function(){var ne=x.props.onBlur;x.setState({focused:!1}),x.onActiveChange(null);for(var $e=arguments.length,we=new Array($e),ve=0;ve<$e;ve++)we[ve]=arguments[ve];ne==null||ne.apply(void 0,we)},x.getTreeNodeRequiredProps=function(){var ne=x.state,$e=ne.expandedKeys,we=ne.selectedKeys,ve=ne.loadedKeys,qe=ne.loadingKeys,St=ne.checkedKeys,me=ne.halfCheckedKeys,ft=ne.dragOverNodeKey,lt=ne.dropPosition,Pe=ne.keyEntities;return{expandedKeys:$e||[],selectedKeys:we||[],loadedKeys:ve||[],loadingKeys:qe||[],checkedKeys:St||[],halfCheckedKeys:me||[],dragOverNodeKey:ft,dropPosition:lt,keyEntities:Pe}},x.setExpandedKeys=function(ne){var $e=x.state,we=$e.treeData,ve=$e.fieldNames,qe=(0,xe.oH)(we,ne,ve);x.setUncontrolledState({expandedKeys:ne,flattenNodes:qe},!0)},x.onNodeExpand=function(ne,$e){var we=x.state.expandedKeys,ve=x.state,qe=ve.listChanging,St=ve.fieldNames,me=x.props,ft=me.onExpand,lt=me.loadData,Pe=$e.expanded,Le=$e[St.key];if(!qe){var pt=we.indexOf(Le),zt=!Pe;if((0,R.ZP)(Pe&&pt!==-1||!Pe&&pt===-1,"Expand state not sync with index check"),zt?we=(0,Kt.L0)(we,Le):we=(0,Kt._5)(we,Le),x.setExpandedKeys(we),ft==null||ft(we,{node:$e,expanded:zt,nativeEvent:ne.nativeEvent}),zt&&lt){var Ht=x.onNodeLoad($e);Ht&&Ht.then(function(){var er=(0,xe.oH)(x.state.treeData,we,St);x.setUncontrolledState({flattenNodes:er})}).catch(function(){var er=x.state.expandedKeys,Pr=(0,Kt._5)(er,Le);x.setExpandedKeys(Pr)})}}},x.onListChangeStart=function(){x.setUncontrolledState({listChanging:!0})},x.onListChangeEnd=function(){setTimeout(function(){x.setUncontrolledState({listChanging:!1})})},x.onActiveChange=function(ne){var $e=x.state.activeKey,we=x.props.onActiveChange;$e!==ne&&(x.setState({activeKey:ne}),ne!==null&&x.scrollTo({key:ne}),we==null||we(ne))},x.getActiveItem=function(){var ne=x.state,$e=ne.activeKey,we=ne.flattenNodes;return $e===null?null:we.find(function(ve){var qe=ve.key;return qe===$e})||null},x.offsetActiveKey=function(ne){var $e=x.state,we=$e.flattenNodes,ve=$e.activeKey,qe=we.findIndex(function(ft){var lt=ft.key;return lt===ve});qe===-1&&ne<0&&(qe=we.length),qe=(qe+ne+we.length)%we.length;var St=we[qe];if(St){var me=St.key;x.onActiveChange(me)}else x.onActiveChange(null)},x.onKeyDown=function(ne){var $e=x.state,we=$e.activeKey,ve=$e.expandedKeys,qe=$e.checkedKeys,St=$e.fieldNames,me=x.props,ft=me.onKeyDown,lt=me.checkable,Pe=me.selectable;switch(ne.which){case F.Z.UP:{x.offsetActiveKey(-1),ne.preventDefault();break}case F.Z.DOWN:{x.offsetActiveKey(1),ne.preventDefault();break}}var Le=x.getActiveItem();if(Le&&Le.data){var pt=x.getTreeNodeRequiredProps(),zt=Le.data.isLeaf===!1||!!(Le.data[St.children]||[]).length,Ht=(0,xe.F)((0,Ne.Z)((0,Ne.Z)({},(0,xe.H8)(we,pt)),{},{data:Le.data,active:!0}));switch(ne.which){case F.Z.LEFT:{zt&&ve.includes(we)?x.onNodeExpand({},Ht):Le.parent&&x.onActiveChange(Le.parent.key),ne.preventDefault();break}case F.Z.RIGHT:{zt&&!ve.includes(we)?x.onNodeExpand({},Ht):Le.children&&Le.children.length&&x.onActiveChange(Le.children[0].key),ne.preventDefault();break}case F.Z.ENTER:case F.Z.SPACE:{lt&&!Ht.disabled&&Ht.checkable!==!1&&!Ht.disableCheckbox?x.onNodeCheck({},Ht,!qe.includes(we)):!lt&&Pe&&!Ht.disabled&&Ht.selectable!==!1&&x.onNodeSelect({},Ht);break}}}ft==null||ft(ne)},x.setUncontrolledState=function(ne){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!x.destroyed){var ve=!1,qe=!0,St={};Object.keys(ne).forEach(function(me){if(me in x.props){qe=!1;return}ve=!0,St[me]=ne[me]}),ve&&(!$e||qe)&&x.setState((0,Ne.Z)((0,Ne.Z)({},St),we))}},x.scrollTo=function(ne){x.listRef.current.scrollTo(ne)},x}return(0,B.Z)(u,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ee=this.props.activeKey;ee!==void 0&&ee!==this.state.activeKey&&(this.setState({activeKey:ee}),ee!==null&&this.scrollTo({key:ee}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var ee,Ce=this.state,H=Ce.focused,ne=Ce.flattenNodes,$e=Ce.keyEntities,we=Ce.draggingNodeKey,ve=Ce.activeKey,qe=Ce.dropLevelOffset,St=Ce.dropContainerKey,me=Ce.dropTargetKey,ft=Ce.dropPosition,lt=Ce.dragOverNodeKey,Pe=Ce.indent,Le=this.props,pt=Le.prefixCls,zt=Le.className,Ht=Le.style,er=Le.showLine,Pr=Le.focusable,pr=Le.tabIndex,kr=pr===void 0?0:pr,Dr=Le.selectable,vr=Le.showIcon,dr=Le.icon,$r=Le.switcherIcon,un=Le.draggable,_n=Le.checkable,qr=Le.checkStrictly,Bn=Le.disabled,ti=Le.motion,Ir=Le.loadData,qn=Le.filterTreeNode,Ti=Le.height,ci=Le.itemHeight,Ui=Le.virtual,Ei=Le.titleRender,$i=Le.dropIndicatorRender,Ha=Le.onContextMenu,Ji=Le.onScroll,gi=Le.direction,ki=Le.rootClassName,Pi=Le.rootStyle,nt=(0,P.Z)(this.props,{aria:!0,data:!0}),Ie;return un&&((0,U.Z)(un)==="object"?Ie=un:typeof un=="function"?Ie={nodeDraggable:un}:Ie={}),M.createElement(Y.k.Provider,{value:{prefixCls:pt,selectable:Dr,showIcon:vr,icon:dr,switcherIcon:$r,draggable:Ie,draggingNodeKey:we,checkable:_n,checkStrictly:qr,disabled:Bn,keyEntities:$e,dropLevelOffset:qe,dropContainerKey:St,dropTargetKey:me,dropPosition:ft,dragOverNodeKey:lt,indent:Pe,direction:gi,dropIndicatorRender:$i,loadData:Ir,filterTreeNode:qn,titleRender:Ei,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},M.createElement("div",{role:"tree",className:S()(pt,zt,ki,(ee={},(0,ue.Z)(ee,"".concat(pt,"-show-line"),er),(0,ue.Z)(ee,"".concat(pt,"-focused"),H),(0,ue.Z)(ee,"".concat(pt,"-active-focused"),ve!==null),ee)),style:Pi},M.createElement(Ut,(0,pe.Z)({ref:this.listRef,prefixCls:pt,style:Ht,data:ne,disabled:Bn,selectable:Dr,checkable:!!_n,motion:ti,dragging:we!==null,height:Ti,itemHeight:ci,virtual:Ui,focusable:Pr,focused:H,tabIndex:kr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ha,onScroll:Ji},this.getTreeNodeRequiredProps(),nt))))}}],[{key:"getDerivedStateFromProps",value:function(ee,Ce){var H=Ce.prevProps,ne={prevProps:ee};function $e(Pr){return!H&&Pr in ee||H&&H[Pr]!==ee[Pr]}var we,ve=Ce.fieldNames;if($e("fieldNames")&&(ve=(0,xe.w$)(ee.fieldNames),ne.fieldNames=ve),$e("treeData")?we=ee.treeData:$e("children")&&((0,R.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,xe.zn)(ee.children)),we){ne.treeData=we;var qe=(0,xe.I8)(we,{fieldNames:ve});ne.keyEntities=(0,Ne.Z)((0,ue.Z)({},De,Se),qe.keyEntities)}var St=ne.keyEntities||Ce.keyEntities;if($e("expandedKeys")||H&&$e("autoExpandParent"))ne.expandedKeys=ee.autoExpandParent||!H&&ee.defaultExpandParent?(0,Kt.r7)(ee.expandedKeys,St):ee.expandedKeys;else if(!H&&ee.defaultExpandAll){var me=(0,Ne.Z)({},St);delete me[De],ne.expandedKeys=Object.keys(me).map(function(Pr){return me[Pr].key})}else!H&&ee.defaultExpandedKeys&&(ne.expandedKeys=ee.autoExpandParent||ee.defaultExpandParent?(0,Kt.r7)(ee.defaultExpandedKeys,St):ee.defaultExpandedKeys);if(ne.expandedKeys||delete ne.expandedKeys,we||ne.expandedKeys){var ft=(0,xe.oH)(we||Ce.treeData,ne.expandedKeys||Ce.expandedKeys,ve);ne.flattenNodes=ft}if(ee.selectable&&($e("selectedKeys")?ne.selectedKeys=(0,Kt.BT)(ee.selectedKeys,ee):!H&&ee.defaultSelectedKeys&&(ne.selectedKeys=(0,Kt.BT)(ee.defaultSelectedKeys,ee))),ee.checkable){var lt;if($e("checkedKeys")?lt=(0,Kt.E6)(ee.checkedKeys)||{}:!H&&ee.defaultCheckedKeys?lt=(0,Kt.E6)(ee.defaultCheckedKeys)||{}:we&&(lt=(0,Kt.E6)(ee.checkedKeys)||{checkedKeys:Ce.checkedKeys,halfCheckedKeys:Ce.halfCheckedKeys}),lt){var Pe=lt,Le=Pe.checkedKeys,pt=Le===void 0?[]:Le,zt=Pe.halfCheckedKeys,Ht=zt===void 0?[]:zt;if(!ee.checkStrictly){var er=(0,hr.S)(pt,!0,St);pt=er.checkedKeys,Ht=er.halfCheckedKeys}ne.checkedKeys=pt,ne.halfCheckedKeys=Ht}}return $e("loadedKeys")&&(ne.loadedKeys=ee.loadedKeys),ne}}]),u}(M.Component);ur.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Q,allowDrop:function(){return!0},expandAction:!1},ur.TreeNode=he.Z;var G=ur,wt=G},35654:function(xn,Jt,w){"use strict";w.d(Jt,{BT:function(){return M},E6:function(){return ce},L0:function(){return p},OM:function(){return R},_5:function(){return E},r7:function(){return W},wA:function(){return S},yx:function(){return j}});var pe=w(3300),ue=w(34666),U=w(48736),Ne=w(59301),te=w(39417),Z=w(67841),B=w(71430),h=null;function E(J,V){if(!J)return[];var K=J.slice(),se=K.indexOf(V);return se>=0&&K.splice(se,1),K}function p(J,V){var K=(J||[]).slice();return K.indexOf(V)===-1&&K.push(V),K}function j(J){return J.split("-")}function S(J,V){var K=[],se=(0,Z.Z)(V,J);function he(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Te.forEach(function(xe){var je=xe.key,X=xe.children;K.push(je),he(X)})}return he(se.children),K}function F(J){if(J.parent){var V=j(J.pos);return Number(V[V.length-1])===J.parent.children.length-1}return!1}function P(J){var V=j(J.pos);return Number(V[V.length-1])===0}function R(J,V,K,se,he,Te,xe,je,X,de){var k,rt=J.clientX,Oe=J.clientY,be=J.target.getBoundingClientRect(),He=be.top,ge=be.height,De=(de==="rtl"?-1:1)*(((he==null?void 0:he.x)||0)-rt),fe=(De-12)/se,Se=(0,Z.Z)(je,K.props.eventKey);if(Oe<He+ge/2){var ct=xe.findIndex(function(wt){return wt.key===Se.key}),dt=ct<=0?0:ct-1,at=xe[dt].key;Se=(0,Z.Z)(je,at)}var st=Se.key,It=Se,Ut=Se.key,Kt=0,hr=0;if(!X.includes(st))for(var or=0;or<fe&&F(Se);or+=1)Se=Se.parent,hr+=1;var Sr=V.props.data,ur=Se.node,G=!0;return P(Se)&&Se.level===0&&Oe<He+ge/2&&Te({dragNode:Sr,dropNode:ur,dropPosition:-1})&&Se.key===K.props.eventKey?Kt=-1:(It.children||[]).length&&X.includes(Ut)?Te({dragNode:Sr,dropNode:ur,dropPosition:0})?Kt=0:G=!1:hr===0?fe>-1.5?Te({dragNode:Sr,dropNode:ur,dropPosition:1})?Kt=1:G=!1:Te({dragNode:Sr,dropNode:ur,dropPosition:0})?Kt=0:Te({dragNode:Sr,dropNode:ur,dropPosition:1})?Kt=1:G=!1:Te({dragNode:Sr,dropNode:ur,dropPosition:1})?Kt=1:G=!1,{dropPosition:Kt,dropLevelOffset:hr,dropTargetKey:Se.key,dropTargetPos:Se.pos,dragOverNodeKey:Ut,dropContainerKey:Kt===0?null:((k=Se.parent)===null||k===void 0?void 0:k.key)||null,dropAllowed:G}}function M(J,V){if(J){var K=V.multiple;return K?J.slice():J.length?[J[0]]:J}}var Y=function(V){return V};function Q(J,V){if(!J)return[];var K=V||{},se=K.processProps,he=se===void 0?Y:se,Te=Array.isArray(J)?J:[J];return Te.map(function(xe){var je=xe.children,X=_objectWithoutProperties(xe,h),de=Q(je,V);return React.createElement(TreeNode,_extends({key:X.key},he(X)),de)})}function ce(J){if(!J)return null;var V;if(Array.isArray(J))V={checkedKeys:J,halfCheckedKeys:void 0};else if((0,ue.Z)(J)==="object")V={checkedKeys:J.checked||void 0,halfCheckedKeys:J.halfChecked||void 0};else return(0,U.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return V}function W(J,V){var K=new Set;function se(he){if(!K.has(he)){var Te=(0,Z.Z)(V,he);if(Te){K.add(he);var xe=Te.parent,je=Te.node;je.disabled||xe&&se(xe.key)}}}return(J||[]).forEach(function(he){se(he)}),(0,pe.Z)(K)}},90782:function(xn,Jt,w){"use strict";w.d(Jt,{S:function(){return B}});var pe=w(48736),ue=w(67841);function U(h,E){var p=new Set;return h.forEach(function(j){E.has(j)||p.add(j)}),p}function Ne(h){var E=h||{},p=E.disabled,j=E.disableCheckbox,S=E.checkable;return!!(p||j)||S===!1}function te(h,E,p,j){for(var S=new Set(h),F=new Set,P=0;P<=p;P+=1){var R=E.get(P)||new Set;R.forEach(function(ce){var W=ce.key,J=ce.node,V=ce.children,K=V===void 0?[]:V;S.has(W)&&!j(J)&&K.filter(function(se){return!j(se.node)}).forEach(function(se){S.add(se.key)})})}for(var M=new Set,Y=p;Y>=0;Y-=1){var Q=E.get(Y)||new Set;Q.forEach(function(ce){var W=ce.parent,J=ce.node;if(!(j(J)||!ce.parent||M.has(ce.parent.key))){if(j(ce.parent.node)){M.add(W.key);return}var V=!0,K=!1;(W.children||[]).filter(function(se){return!j(se.node)}).forEach(function(se){var he=se.key,Te=S.has(he);V&&!Te&&(V=!1),!K&&(Te||F.has(he))&&(K=!0)}),V&&S.add(W.key),K&&F.add(W.key),M.add(W.key)}})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(U(F,S))}}function Z(h,E,p,j,S){for(var F=new Set(h),P=new Set(E),R=0;R<=j;R+=1){var M=p.get(R)||new Set;M.forEach(function(W){var J=W.key,V=W.node,K=W.children,se=K===void 0?[]:K;!F.has(J)&&!P.has(J)&&!S(V)&&se.filter(function(he){return!S(he.node)}).forEach(function(he){F.delete(he.key)})})}P=new Set;for(var Y=new Set,Q=j;Q>=0;Q-=1){var ce=p.get(Q)||new Set;ce.forEach(function(W){var J=W.parent,V=W.node;if(!(S(V)||!W.parent||Y.has(W.parent.key))){if(S(W.parent.node)){Y.add(J.key);return}var K=!0,se=!1;(J.children||[]).filter(function(he){return!S(he.node)}).forEach(function(he){var Te=he.key,xe=F.has(Te);K&&!xe&&(K=!1),!se&&(xe||P.has(Te))&&(se=!0)}),K||F.delete(J.key),se&&P.add(J.key),Y.add(J.key)}})}return{checkedKeys:Array.from(F),halfCheckedKeys:Array.from(U(P,F))}}function B(h,E,p,j){var S=[],F;j?F=j:F=Ne;var P=new Set(h.filter(function(Q){var ce=!!(0,ue.Z)(p,Q);return ce||S.push(Q),ce})),R=new Map,M=0;Object.keys(p).forEach(function(Q){var ce=p[Q],W=ce.level,J=R.get(W);J||(J=new Set,R.set(W,J)),J.add(ce),M=Math.max(M,W)}),(0,pe.ZP)(!S.length,"Tree missing follow keys: ".concat(S.slice(0,100).map(function(Q){return"'".concat(Q,"'")}).join(", ")));var Y;return E===!0?Y=te(P,R,M,F):Y=Z(P,E.halfCheckedKeys,R,M,F),Y}},67841:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return pe}});function pe(ue,U){return ue[U]}},71430:function(xn,Jt,w){"use strict";w.d(Jt,{F:function(){return W},H8:function(){return ce},I8:function(){return Q},km:function(){return S},oH:function(){return M},w$:function(){return F},zn:function(){return R}});var pe=w(34666),ue=w(3300),U=w(27247),Ne=w(43079),te=w(11592),Z=w(2738),B=w(48736),h=w(67841),E=["children"];function p(J,V){return"".concat(J,"-").concat(V)}function j(J){return J&&J.type&&J.type.isTreeNode}function S(J,V){return J!=null?J:V}function F(J){var V=J||{},K=V.title,se=V._title,he=V.key,Te=V.children,xe=K||"title";return{title:xe,_title:se||[xe],key:he||"key",children:Te||"children"}}function P(J,V){var K=new Map;function se(he){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(he||[]).forEach(function(xe){var je=xe[V.key],X=xe[V.children];warning(je!=null,"Tree node must have a certain key: [".concat(Te).concat(je,"]"));var de=String(je);warning(!K.has(de)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(de)),K.set(de,!0),se(X,"".concat(Te).concat(de," > "))})}se(J)}function R(J){function V(K){var se=(0,te.Z)(K);return se.map(function(he){if(!j(he))return(0,B.ZP)(!he,"Tree/TreeNode can only accept TreeNode as children."),null;var Te=he.key,xe=he.props,je=xe.children,X=(0,Ne.Z)(xe,E),de=(0,U.Z)({key:Te},X),k=V(je);return k.length&&(de.children=k),de}).filter(function(he){return he})}return V(J)}function M(J,V,K){var se=F(K),he=se._title,Te=se.key,xe=se.children,je=new Set(V===!0?[]:V),X=[];function de(k){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return k.map(function(Oe,be){for(var He=p(rt?rt.pos:"0",be),ge=S(Oe[Te],He),De,fe=0;fe<he.length;fe+=1){var Se=he[fe];if(Oe[Se]!==void 0){De=Oe[Se];break}}var ct=(0,U.Z)((0,U.Z)({},(0,Z.Z)(Oe,[].concat((0,ue.Z)(he),[Te,xe]))),{},{title:De,key:ge,parent:rt,pos:He,children:null,data:Oe,isStart:[].concat((0,ue.Z)(rt?rt.isStart:[]),[be===0]),isEnd:[].concat((0,ue.Z)(rt?rt.isEnd:[]),[be===k.length-1])});return X.push(ct),V===!0||je.has(ge)?ct.children=de(Oe[xe]||[],ct):ct.children=[],ct})}return de(J),X}function Y(J,V,K){var se={};(0,pe.Z)(K)==="object"?se=K:se={externalGetKey:K},se=se||{};var he=se,Te=he.childrenPropName,xe=he.externalGetKey,je=he.fieldNames,X=F(je),de=X.key,k=X.children,rt=Te||k,Oe;xe?typeof xe=="string"?Oe=function(ge){return ge[xe]}:typeof xe=="function"&&(Oe=function(ge){return xe(ge)}):Oe=function(ge,De){return S(ge[de],De)};function be(He,ge,De,fe){var Se=He?He[rt]:J,ct=He?p(De.pos,ge):"0",dt=He?[].concat((0,ue.Z)(fe),[He]):[];if(He){var at=Oe(He,ct),st={node:He,index:ge,pos:ct,key:at,parentPos:De.node?De.pos:null,level:De.level+1,nodes:dt};V(st)}Se&&Se.forEach(function(It,Ut){be(It,Ut,{node:He,pos:ct,level:De?De.level+1:-1},dt)})}be(null)}function Q(J){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=V.initWrapper,se=V.processEntity,he=V.onProcessFinished,Te=V.externalGetKey,xe=V.childrenPropName,je=V.fieldNames,X=arguments.length>2?arguments[2]:void 0,de=Te||X,k={},rt={},Oe={posEntities:k,keyEntities:rt};return K&&(Oe=K(Oe)||Oe),Y(J,function(be){var He=be.node,ge=be.index,De=be.pos,fe=be.key,Se=be.parentPos,ct=be.level,dt=be.nodes,at={node:He,nodes:dt,index:ge,key:fe,pos:De,level:ct},st=S(fe,De);k[De]=at,rt[st]=at,at.parent=k[Se],at.parent&&(at.parent.children=at.parent.children||[],at.parent.children.push(at)),se&&se(at,Oe)},{externalGetKey:de,childrenPropName:xe,fieldNames:je}),he&&he(Oe),Oe}function ce(J,V){var K=V.expandedKeys,se=V.selectedKeys,he=V.loadedKeys,Te=V.loadingKeys,xe=V.checkedKeys,je=V.halfCheckedKeys,X=V.dragOverNodeKey,de=V.dropPosition,k=V.keyEntities,rt=(0,h.Z)(k,J),Oe={eventKey:J,expanded:K.indexOf(J)!==-1,selected:se.indexOf(J)!==-1,loaded:he.indexOf(J)!==-1,loading:Te.indexOf(J)!==-1,checked:xe.indexOf(J)!==-1,halfChecked:je.indexOf(J)!==-1,pos:String(rt?rt.pos:""),dragOver:X===J&&de===0,dragOverGapTop:X===J&&de===-1,dragOverGapBottom:X===J&&de===1};return Oe}function W(J){var V=J.data,K=J.expanded,se=J.selected,he=J.checked,Te=J.loaded,xe=J.loading,je=J.halfChecked,X=J.dragOver,de=J.dragOverGapTop,k=J.dragOverGapBottom,rt=J.pos,Oe=J.active,be=J.eventKey,He=(0,U.Z)((0,U.Z)({},V),{},{expanded:K,selected:se,checked:he,loaded:Te,loading:xe,halfChecked:je,dragOver:X,dragOverGapTop:de,dragOverGapBottom:k,pos:rt,active:Oe,key:be});return"props"in He||Object.defineProperty(He,"props",{get:function(){return(0,B.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),J}}),He}},8224:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return ue}});var pe=w(4676);function ue(U,Ne,te,Z){var B=pe.unstable_batchedUpdates?function(E){pe.unstable_batchedUpdates(te,E)}:te;return U!=null&&U.addEventListener&&U.addEventListener(Ne,B,Z),{remove:function(){U!=null&&U.removeEventListener&&U.removeEventListener(Ne,B,Z)}}}},55468:function(xn,Jt,w){"use strict";w.d(Jt,{g1:function(){return j},os:function(){return F}});var pe=/margin|padding|width|height|max|min|offset/,ue={left:!0,top:!0},U={cssFloat:1,styleFloat:1,float:1};function Ne(P){return P.nodeType===1?P.ownerDocument.defaultView.getComputedStyle(P,null):{}}function te(P,R,M){if(R=R.toLowerCase(),M==="auto"){if(R==="height")return P.offsetHeight;if(R==="width")return P.offsetWidth}return R in ue||(ue[R]=pe.test(R)),ue[R]?parseFloat(M)||0:M}function Z(P,R){var M=arguments.length,Y=Ne(P);return R=U[R]?"cssFloat"in P.style?"cssFloat":"styleFloat":R,M===1?Y:te(P,R,Y[R]||P.style[R])}function B(P,R,M){var Y=arguments.length;if(R=U[R]?"cssFloat"in P.style?"cssFloat":"styleFloat":R,Y===3)return typeof M=="number"&&pe.test(R)&&(M="".concat(M,"px")),P.style[R]=M,M;for(var Q in R)R.hasOwnProperty(Q)&&B(P,Q,R[Q]);return Ne(P)}function h(P){return P===document.body?document.documentElement.clientWidth:P.offsetWidth}function E(P){return P===document.body?window.innerHeight||document.documentElement.clientHeight:P.offsetHeight}function p(){var P=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:P,height:R}}function j(){var P=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:P,height:R}}function S(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(P){var R=P.getBoundingClientRect(),M=document.documentElement;return{left:R.left+(window.pageXOffset||M.scrollLeft)-(M.clientLeft||document.body.clientLeft||0),top:R.top+(window.pageYOffset||M.scrollTop)-(M.clientTop||document.body.clientTop||0)}}},24514:function(xn,Jt,w){"use strict";w.d(Jt,{G:function(){return Ne}});var pe=w(47273),ue=function(Z){if((0,pe.Z)()&&window.document.documentElement){var B=Array.isArray(Z)?Z:[Z],h=window.document.documentElement;return B.some(function(E){return E in h.style})}return!1},U=function(Z,B){if(!ue(Z))return!1;var h=document.createElement("div"),E=h.style[Z];return h.style[Z]=B,h.style[Z]!==E};function Ne(te,Z){return!Array.isArray(te)&&Z!==void 0?U(te,Z):ue(te)}},6790:function(xn,Jt,w){"use strict";w.d(Jt,{Z:function(){return ur}});var pe=w(32855),ue=w(34666),U=w(27247),Ne=w(74430),te=w(11913),Z=w(43079),B=w(92310),h=w.n(B),E=w(29301),p=w(70425),j=w(34280),S=w(59301),F=w(4676),P=S.forwardRef(function(G,wt){var _=G.height,f=G.offsetY,u=G.offsetX,x=G.children,ee=G.prefixCls,Ce=G.onInnerResize,H=G.innerProps,ne=G.rtl,$e=G.extra,we={},ve={display:"flex",flexDirection:"column"};return f!==void 0&&(we={height:_,position:"relative",overflow:"hidden"},ve=(0,U.Z)((0,U.Z)({},ve),{},(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({transform:"translateY(".concat(f,"px)")},ne?"marginRight":"marginLeft",-u),"position","absolute"),"left",0),"right",0),"top",0))),S.createElement("div",{style:we},S.createElement(E.Z,{onResize:function(St){var me=St.offsetHeight;me&&Ce&&Ce()}},S.createElement("div",(0,pe.Z)({style:ve,className:h()((0,Ne.Z)({},"".concat(ee,"-holder-inner"),ee)),ref:wt},H),x,$e)))});P.displayName="Filler";var R=P;function M(G){var wt=G.children,_=G.setRef,f=S.useCallback(function(u){_(u)},[]);return S.cloneElement(wt,{ref:f})}function Y(G,wt,_,f,u,x,ee,Ce){var H=Ce.getKey;return G.slice(wt,_+1).map(function(ne,$e){var we=wt+$e,ve=ee(ne,we,{style:{width:f},offsetX:u}),qe=H(ne);return S.createElement(M,{key:qe,setRef:function(me){return x(ne,me)}},ve)})}function Q(G,wt,_,f){var u=_-G,x=wt-_,ee=Math.min(u,x)*2;if(f<=ee){var Ce=Math.floor(f/2);return f%2?_+Ce+1:_-Ce}return u>x?_-(f-x):_+(f-u)}function ce(G,wt,_){var f=G.length,u=wt.length,x,ee;if(f===0&&u===0)return null;f<u?(x=G,ee=wt):(x=wt,ee=G);var Ce={__EMPTY_ITEM__:!0};function H(St){return St!==void 0?_(St):Ce}for(var ne=null,$e=Math.abs(f-u)!==1,we=0;we<ee.length;we+=1){var ve=H(x[we]),qe=H(ee[we]);if(ve!==qe){ne=we,$e=$e||ve!==H(ee[we+1]);break}}return ne===null?null:{index:ne,multiple:$e}}function W(G,wt,_){var f=S.useState(G),u=(0,te.Z)(f,2),x=u[0],ee=u[1],Ce=S.useState(null),H=(0,te.Z)(Ce,2),ne=H[0],$e=H[1];return S.useEffect(function(){var we=ce(x||[],G||[],wt);(we==null?void 0:we.index)!==void 0&&(_==null||_(we.index),$e(G[we.index])),ee(G)},[G]),[ne]}var J=w(16089),V=(typeof navigator=="undefined"?"undefined":(0,ue.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),K=V,se=function(G,wt,_,f){var u=(0,S.useRef)(!1),x=(0,S.useRef)(null);function ee(){clearTimeout(x.current),u.current=!0,x.current=setTimeout(function(){u.current=!1},50)}var Ce=(0,S.useRef)({top:G,bottom:wt,left:_,right:f});return Ce.current.top=G,Ce.current.bottom=wt,Ce.current.left=_,Ce.current.right=f,function(H,ne){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=H?ne<0&&Ce.current.left||ne>0&&Ce.current.right:ne<0&&Ce.current.top||ne>0&&Ce.current.bottom;return $e&&we?(clearTimeout(x.current),u.current=!1):(!we||u.current)&&ee(),!u.current&&we}};function he(G,wt,_,f,u,x,ee){var Ce=(0,S.useRef)(0),H=(0,S.useRef)(null),ne=(0,S.useRef)(null),$e=(0,S.useRef)(!1),we=se(wt,_,f,u);function ve(Pe,Le){if(J.Z.cancel(H.current),!we(!1,Le)){var pt=Pe;if(!pt._virtualHandled)pt._virtualHandled=!0;else return;Ce.current+=Le,ne.current=Le,K||pt.preventDefault(),H.current=(0,J.Z)(function(){var zt=$e.current?10:1;ee(Ce.current*zt,!1),Ce.current=0})}}function qe(Pe,Le){ee(Le,!0),K||Pe.preventDefault()}var St=(0,S.useRef)(null),me=(0,S.useRef)(null);function ft(Pe){if(G){J.Z.cancel(me.current),me.current=(0,J.Z)(function(){St.current=null},2);var Le=Pe.deltaX,pt=Pe.deltaY,zt=Pe.shiftKey,Ht=Le,er=pt;(St.current==="sx"||!St.current&&zt&&pt&&!Le)&&(Ht=pt,er=0,St.current="sx");var Pr=Math.abs(Ht),pr=Math.abs(er);St.current===null&&(St.current=x&&Pr>pr?"x":"y"),St.current==="y"?ve(Pe,er):qe(Pe,Ht)}}function lt(Pe){G&&($e.current=Pe.detail===ne.current)}return[ft,lt]}function Te(G,wt,_,f){var u=S.useMemo(function(){return[new Map,[]]},[G,_.id,f]),x=(0,te.Z)(u,2),ee=x[0],Ce=x[1],H=function($e){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e,ve=ee.get($e),qe=ee.get(we);if(ve===void 0||qe===void 0)for(var St=G.length,me=Ce.length;me<St;me+=1){var ft,lt=G[me],Pe=wt(lt);ee.set(Pe,me);var Le=(ft=_.get(Pe))!==null&&ft!==void 0?ft:f;if(Ce[me]=(Ce[me-1]||0)+Le,Pe===$e&&(ve=me),Pe===we&&(qe=me),ve!==void 0&&qe!==void 0)break}return{top:Ce[ve-1]||0,bottom:Ce[qe]}};return H}var xe=w(33377),je=w(93912),X=function(){function G(){(0,xe.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,je.Z)(G,[{key:"set",value:function(_,f){this.diffRecords.set(_,this.maps[_]),this.maps[_]=f,this.id+=1}},{key:"get",value:function(_){return this.maps[_]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),G}(),de=X;function k(G){var wt=parseFloat(G);return isNaN(wt)?0:wt}function rt(G,wt,_){var f=S.useState(0),u=(0,te.Z)(f,2),x=u[0],ee=u[1],Ce=(0,S.useRef)(new Map),H=(0,S.useRef)(new de),ne=(0,S.useRef)(0);function $e(){ne.current+=1}function we(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;$e();var St=function(){var lt=!1;Ce.current.forEach(function(Pe,Le){if(Pe&&Pe.offsetParent){var pt=Pe.offsetHeight,zt=getComputedStyle(Pe),Ht=zt.marginTop,er=zt.marginBottom,Pr=k(Ht),pr=k(er),kr=pt+Pr+pr;H.current.get(Le)!==kr&&(H.current.set(Le,kr),lt=!0)}}),lt&&ee(function(Pe){return Pe+1})};if(qe)St();else{ne.current+=1;var me=ne.current;Promise.resolve().then(function(){me===ne.current&&St()})}}function ve(qe,St){var me=G(qe),ft=Ce.current.get(me);St?(Ce.current.set(me,St),we()):Ce.current.delete(me),!ft!=!St&&(St?wt==null||wt(qe):_==null||_(qe))}return(0,S.useEffect)(function(){return $e},[]),[ve,we,H.current,x]}var Oe=14/15;function be(G,wt,_){var f=(0,S.useRef)(!1),u=(0,S.useRef)(0),x=(0,S.useRef)(0),ee=(0,S.useRef)(null),Ce=(0,S.useRef)(null),H,ne=function(qe){if(f.current){var St=Math.ceil(qe.touches[0].pageX),me=Math.ceil(qe.touches[0].pageY),ft=u.current-St,lt=x.current-me,Pe=Math.abs(ft)>Math.abs(lt);Pe?u.current=St:x.current=me;var Le=_(Pe,Pe?ft:lt,!1,qe);Le&&qe.preventDefault(),clearInterval(Ce.current),Le&&(Ce.current=setInterval(function(){Pe?ft*=Oe:lt*=Oe;var pt=Math.floor(Pe?ft:lt);(!_(Pe,pt,!0)||Math.abs(pt)<=.1)&&clearInterval(Ce.current)},16))}},$e=function(){f.current=!1,H()},we=function(qe){H(),qe.touches.length===1&&!f.current&&(f.current=!0,u.current=Math.ceil(qe.touches[0].pageX),x.current=Math.ceil(qe.touches[0].pageY),ee.current=qe.target,ee.current.addEventListener("touchmove",ne,{passive:!1}),ee.current.addEventListener("touchend",$e,{passive:!0}))};H=function(){ee.current&&(ee.current.removeEventListener("touchmove",ne),ee.current.removeEventListener("touchend",$e))},(0,j.Z)(function(){return G&&wt.current.addEventListener("touchstart",we,{passive:!0}),function(){var ve;(ve=wt.current)===null||ve===void 0||ve.removeEventListener("touchstart",we),H(),clearInterval(Ce.current)}},[G])}function He(G){return Math.floor(Math.pow(G,.5))}function ge(G,wt){var _="touches"in G?G.touches[0]:G;return _[wt?"pageX":"pageY"]-window[wt?"scrollX":"scrollY"]}function De(G,wt,_){S.useEffect(function(){var f=wt.current;if(G&&f){var u=!1,x,ee,Ce=function(){J.Z.cancel(x)},H=function ve(){Ce(),x=(0,J.Z)(function(){_(ee),ve()})},ne=function(qe){if(!(qe.target.draggable||qe.button!==0)){var St=qe;St._virtualHandled||(St._virtualHandled=!0,u=!0)}},$e=function(){u=!1,Ce()},we=function(qe){if(u){var St=ge(qe,!1),me=f.getBoundingClientRect(),ft=me.top,lt=me.bottom;if(St<=ft){var Pe=ft-St;ee=-He(Pe),H()}else if(St>=lt){var Le=St-lt;ee=He(Le),H()}else Ce()}};return f.addEventListener("mousedown",ne),f.ownerDocument.addEventListener("mouseup",$e),f.ownerDocument.addEventListener("mousemove",we),function(){f.removeEventListener("mousedown",ne),f.ownerDocument.removeEventListener("mouseup",$e),f.ownerDocument.removeEventListener("mousemove",we),Ce()}}},[G])}var fe=10;function Se(G,wt,_,f,u,x,ee,Ce){var H=S.useRef(),ne=S.useState(null),$e=(0,te.Z)(ne,2),we=$e[0],ve=$e[1];return(0,j.Z)(function(){if(we&&we.times<fe){if(!G.current){ve(function(ti){return(0,U.Z)({},ti)});return}x();var qe=we.targetAlign,St=we.originAlign,me=we.index,ft=we.offset,lt=G.current.clientHeight,Pe=!1,Le=qe,pt=null;if(lt){for(var zt=qe||St,Ht=0,er=0,Pr=0,pr=Math.min(wt.length-1,me),kr=0;kr<=pr;kr+=1){var Dr=u(wt[kr]);er=Ht;var vr=_.get(Dr);Pr=er+(vr===void 0?f:vr),Ht=Pr}for(var dr=zt==="top"?ft:lt-ft,$r=pr;$r>=0;$r-=1){var un=u(wt[$r]),_n=_.get(un);if(_n===void 0){Pe=!0;break}if(dr-=_n,dr<=0)break}switch(zt){case"top":pt=er-ft;break;case"bottom":pt=Pr-lt+ft;break;default:{var qr=G.current.scrollTop,Bn=qr+lt;er<qr?Le="top":Pr>Bn&&(Le="bottom")}}pt!==null&&ee(pt),pt!==we.lastTop&&(Pe=!0)}Pe&&ve((0,U.Z)((0,U.Z)({},we),{},{times:we.times+1,targetAlign:Le,lastTop:pt}))}},[we,G.current]),function(qe){if(qe==null){Ce();return}if(J.Z.cancel(H.current),typeof qe=="number")ee(qe);else if(qe&&(0,ue.Z)(qe)==="object"){var St,me=qe.align;"index"in qe?St=qe.index:St=wt.findIndex(function(Pe){return u(Pe)===qe.key});var ft=qe.offset,lt=ft===void 0?0:ft;ve({times:0,index:St,offset:lt,originAlign:me})}}}var ct=S.forwardRef(function(G,wt){var _=G.prefixCls,f=G.rtl,u=G.scrollOffset,x=G.scrollRange,ee=G.onStartMove,Ce=G.onStopMove,H=G.onScroll,ne=G.horizontal,$e=G.spinSize,we=G.containerSize,ve=G.style,qe=G.thumbStyle,St=G.showScrollBar,me=S.useState(!1),ft=(0,te.Z)(me,2),lt=ft[0],Pe=ft[1],Le=S.useState(null),pt=(0,te.Z)(Le,2),zt=pt[0],Ht=pt[1],er=S.useState(null),Pr=(0,te.Z)(er,2),pr=Pr[0],kr=Pr[1],Dr=!f,vr=S.useRef(),dr=S.useRef(),$r=S.useState(St),un=(0,te.Z)($r,2),_n=un[0],qr=un[1],Bn=S.useRef(),ti=function(){St===!0||St===!1||(clearTimeout(Bn.current),qr(!0),Bn.current=setTimeout(function(){qr(!1)},3e3))},Ir=x-we||0,qn=we-$e||0,Ti=S.useMemo(function(){if(u===0||Ir===0)return 0;var Pi=u/Ir;return Pi*qn},[u,Ir,qn]),ci=function(nt){nt.stopPropagation(),nt.preventDefault()},Ui=S.useRef({top:Ti,dragging:lt,pageY:zt,startTop:pr});Ui.current={top:Ti,dragging:lt,pageY:zt,startTop:pr};var Ei=function(nt){Pe(!0),Ht(ge(nt,ne)),kr(Ui.current.top),ee(),nt.stopPropagation(),nt.preventDefault()};S.useEffect(function(){var Pi=function(Ee){Ee.preventDefault()},nt=vr.current,Ie=dr.current;return nt.addEventListener("touchstart",Pi,{passive:!1}),Ie.addEventListener("touchstart",Ei,{passive:!1}),function(){nt.removeEventListener("touchstart",Pi),Ie.removeEventListener("touchstart",Ei)}},[]);var $i=S.useRef();$i.current=Ir;var Ha=S.useRef();Ha.current=qn,S.useEffect(function(){if(lt){var Pi,nt=function(Ee){var $t=Ui.current,Nt=$t.dragging,Er=$t.pageY,sr=$t.startTop;J.Z.cancel(Pi);var Kr=vr.current.getBoundingClientRect(),Wr=we/(ne?Kr.width:Kr.height);if(Nt){var tn=(ge(Ee,ne)-Er)*Wr,Vr=sr;!Dr&&ne?Vr-=tn:Vr+=tn;var jr=$i.current,Yr=Ha.current,mn=Yr?Vr/Yr:0,rn=Math.ceil(mn*jr);rn=Math.max(rn,0),rn=Math.min(rn,jr),Pi=(0,J.Z)(function(){H(rn,ne)})}},Ie=function(){Pe(!1),Ce()};return window.addEventListener("mousemove",nt,{passive:!0}),window.addEventListener("touchmove",nt,{passive:!0}),window.addEventListener("mouseup",Ie,{passive:!0}),window.addEventListener("touchend",Ie,{passive:!0}),function(){window.removeEventListener("mousemove",nt),window.removeEventListener("touchmove",nt),window.removeEventListener("mouseup",Ie),window.removeEventListener("touchend",Ie),J.Z.cancel(Pi)}}},[lt]),S.useEffect(function(){return ti(),function(){clearTimeout(Bn.current)}},[u]),S.useImperativeHandle(wt,function(){return{delayHidden:ti}});var Ji="".concat(_,"-scrollbar"),gi={position:"absolute",visibility:_n?null:"hidden"},ki={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ne?(Object.assign(gi,{height:8,left:0,right:0,bottom:0}),Object.assign(ki,(0,Ne.Z)({height:"100%",width:$e},Dr?"left":"right",Ti))):(Object.assign(gi,(0,Ne.Z)({width:8,top:0,bottom:0},Dr?"right":"left",0)),Object.assign(ki,{width:"100%",height:$e,top:Ti})),S.createElement("div",{ref:vr,className:h()(Ji,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(Ji,"-horizontal"),ne),"".concat(Ji,"-vertical"),!ne),"".concat(Ji,"-visible"),_n)),style:(0,U.Z)((0,U.Z)({},gi),ve),onMouseDown:ci,onMouseMove:ti},S.createElement("div",{ref:dr,className:h()("".concat(Ji,"-thumb"),(0,Ne.Z)({},"".concat(Ji,"-thumb-moving"),lt)),style:(0,U.Z)((0,U.Z)({},ki),qe),onMouseDown:Ei}))}),dt=ct,at=20;function st(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=G/wt*G;return isNaN(_)&&(_=0),_=Math.max(_,at),Math.floor(_)}var It=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ut=[],Kt={overflowY:"auto",overflowAnchor:"none"};function hr(G,wt){var _=G.prefixCls,f=_===void 0?"rc-virtual-list":_,u=G.className,x=G.height,ee=G.itemHeight,Ce=G.fullHeight,H=Ce===void 0?!0:Ce,ne=G.style,$e=G.data,we=G.children,ve=G.itemKey,qe=G.virtual,St=G.direction,me=G.scrollWidth,ft=G.component,lt=ft===void 0?"div":ft,Pe=G.onScroll,Le=G.onVirtualScroll,pt=G.onVisibleChange,zt=G.innerProps,Ht=G.extraRender,er=G.styles,Pr=G.showScrollBar,pr=Pr===void 0?"optional":Pr,kr=(0,Z.Z)(G,It),Dr=S.useCallback(function(Yn){return typeof ve=="function"?ve(Yn):Yn==null?void 0:Yn[ve]},[ve]),vr=rt(Dr,null,null),dr=(0,te.Z)(vr,4),$r=dr[0],un=dr[1],_n=dr[2],qr=dr[3],Bn=!!(qe!==!1&&x&&ee),ti=S.useMemo(function(){return Object.values(_n.maps).reduce(function(Yn,On){return Yn+On},0)},[_n.id,_n.maps]),Ir=Bn&&$e&&(Math.max(ee*$e.length,ti)>x||!!me),qn=St==="rtl",Ti=h()(f,(0,Ne.Z)({},"".concat(f,"-rtl"),qn),u),ci=$e||Ut,Ui=(0,S.useRef)(),Ei=(0,S.useRef)(),$i=(0,S.useRef)(),Ha=(0,S.useState)(0),Ji=(0,te.Z)(Ha,2),gi=Ji[0],ki=Ji[1],Pi=(0,S.useState)(0),nt=(0,te.Z)(Pi,2),Ie=nt[0],ke=nt[1],Ee=(0,S.useState)(!1),$t=(0,te.Z)(Ee,2),Nt=$t[0],Er=$t[1],sr=function(){Er(!0)},Kr=function(){Er(!1)},Wr={getKey:Dr};function tn(Yn){ki(function(On){var Fi;typeof Yn=="function"?Fi=Yn(On):Fi=Yn;var xi=ei(Fi);return Ui.current.scrollTop=xi,xi})}var Vr=(0,S.useRef)({start:0,end:ci.length}),jr=(0,S.useRef)(),Yr=W(ci,Dr),mn=(0,te.Z)(Yr,1),rn=mn[0];jr.current=rn;var Dn=S.useMemo(function(){if(!Bn)return{scrollHeight:void 0,start:0,end:ci.length-1,offset:void 0};if(!Ir){var Yn;return{scrollHeight:((Yn=Ei.current)===null||Yn===void 0?void 0:Yn.offsetHeight)||0,start:0,end:ci.length-1,offset:void 0}}for(var On=0,Fi,xi,ha,Oo=ci.length,na=0;na<Oo;na+=1){var Zi=ci[na],ja=Dr(Zi),Ma=_n.get(ja),eo=On+(Ma===void 0?ee:Ma);eo>=gi&&Fi===void 0&&(Fi=na,xi=On),eo>gi+x&&ha===void 0&&(ha=na),On=eo}return Fi===void 0&&(Fi=0,xi=0,ha=Math.ceil(x/ee)),ha===void 0&&(ha=ci.length-1),ha=Math.min(ha+1,ci.length-1),{scrollHeight:On,start:Fi,end:ha,offset:xi}},[Ir,Bn,gi,ci,qr,x]),Qn=Dn.scrollHeight,ui=Dn.start,Tn=Dn.end,sn=Dn.offset;Vr.current.start=ui,Vr.current.end=Tn,S.useLayoutEffect(function(){var Yn=_n.getRecord();if(Yn.size===1){var On=Array.from(Yn.keys())[0],Fi=Yn.get(On),xi=ci[ui];if(xi&&Fi===void 0){var ha=Dr(xi);if(ha===On){var Oo=_n.get(On),na=Oo-ee;tn(function(Zi){return Zi+na})}}}_n.resetRecord()},[Qn]);var Qt=S.useState({width:0,height:x}),Zt=(0,te.Z)(Qt,2),qt=Zt[0],mr=Zt[1],Wt=function(On){mr({width:On.offsetWidth,height:On.offsetHeight})},Cr=(0,S.useRef)(),Mr=(0,S.useRef)(),Gr=S.useMemo(function(){return st(qt.width,me)},[qt.width,me]),Mn=S.useMemo(function(){return st(qt.height,Qn)},[qt.height,Qn]),Pn=Qn-x,oi=(0,S.useRef)(Pn);oi.current=Pn;function ei(Yn){var On=Yn;return Number.isNaN(oi.current)||(On=Math.min(On,oi.current)),On=Math.max(On,0),On}var bi=gi<=0,Jn=gi>=Pn,Hn=Ie<=0,on=Ie>=me,pi=se(bi,Jn,Hn,on),Ln=function(){return{x:qn?-Ie:Ie,y:gi}},ri=(0,S.useRef)(Ln()),vi=(0,p.useEvent)(function(Yn){if(Le){var On=(0,U.Z)((0,U.Z)({},Ln()),Yn);(ri.current.x!==On.x||ri.current.y!==On.y)&&(Le(On),ri.current=On)}});function _i(Yn,On){var Fi=Yn;On?((0,F.flushSync)(function(){ke(Fi)}),vi()):tn(Fi)}function Xn(Yn){var On=Yn.currentTarget.scrollTop;On!==gi&&tn(On),Pe==null||Pe(Yn),vi()}var Bi=function(On){var Fi=On,xi=me?me-qt.width:0;return Fi=Math.max(Fi,0),Fi=Math.min(Fi,xi),Fi},ra=(0,p.useEvent)(function(Yn,On){On?((0,F.flushSync)(function(){ke(function(Fi){var xi=Fi+(qn?-Yn:Yn);return Bi(xi)})}),vi()):tn(function(Fi){var xi=Fi+Yn;return xi})}),ii=he(Bn,bi,Jn,Hn,on,!!me,ra),cn=(0,te.Z)(ii,2),nn=cn[0],Un=cn[1];be(Bn,Ui,function(Yn,On,Fi,xi){var ha=xi;return pi(Yn,On,Fi)?!1:!ha||!ha._virtualHandled?(ha&&(ha._virtualHandled=!0),nn({preventDefault:function(){},deltaX:Yn?On:0,deltaY:Yn?0:On}),!0):!1}),De(Ir,Ui,function(Yn){tn(function(On){return On+Yn})}),(0,j.Z)(function(){function Yn(Fi){var xi=bi&&Fi.detail<0,ha=Jn&&Fi.detail>0;Bn&&!xi&&!ha&&Fi.preventDefault()}var On=Ui.current;return On.addEventListener("wheel",nn,{passive:!1}),On.addEventListener("DOMMouseScroll",Un,{passive:!0}),On.addEventListener("MozMousePixelScroll",Yn,{passive:!1}),function(){On.removeEventListener("wheel",nn),On.removeEventListener("DOMMouseScroll",Un),On.removeEventListener("MozMousePixelScroll",Yn)}},[Bn,bi,Jn]),(0,j.Z)(function(){if(me){var Yn=Bi(Ie);ke(Yn),vi({x:Yn})}},[qt.width,me]);var wn=function(){var On,Fi;(On=Cr.current)===null||On===void 0||On.delayHidden(),(Fi=Mr.current)===null||Fi===void 0||Fi.delayHidden()},jn=Se(Ui,ci,_n,ee,Dr,function(){return un(!0)},tn,wn);S.useImperativeHandle(wt,function(){return{nativeElement:$i.current,getScrollInfo:Ln,scrollTo:function(On){function Fi(xi){return xi&&(0,ue.Z)(xi)==="object"&&("left"in xi||"top"in xi)}Fi(On)?(On.left!==void 0&&ke(Bi(On.left)),jn(On.top)):jn(On)}}}),(0,j.Z)(function(){if(pt){var Yn=ci.slice(ui,Tn+1);pt(Yn,ci)}},[ui,Tn,ci]);var li=Te(ci,Dr,_n,ee),wi=Ht==null?void 0:Ht({start:ui,end:Tn,virtual:Ir,offsetX:Ie,offsetY:sn,rtl:qn,getSize:li}),Aa=Y(ci,ui,Tn,me,Ie,$r,we,Wr),Yi=null;x&&(Yi=(0,U.Z)((0,Ne.Z)({},H?"height":"maxHeight",x),Kt),Bn&&(Yi.overflowY="hidden",me&&(Yi.overflowX="hidden"),Nt&&(Yi.pointerEvents="none")));var ao={};return qn&&(ao.dir="rtl"),S.createElement("div",(0,pe.Z)({ref:$i,style:(0,U.Z)((0,U.Z)({},ne),{},{position:"relative"}),className:Ti},ao,kr),S.createElement(E.Z,{onResize:Wt},S.createElement(lt,{className:"".concat(f,"-holder"),style:Yi,ref:Ui,onScroll:Xn,onMouseEnter:wn},S.createElement(R,{prefixCls:f,height:Qn,offsetX:Ie,offsetY:sn,scrollWidth:me,onInnerResize:un,ref:Ei,innerProps:zt,rtl:qn,extra:wi},Aa))),Ir&&Qn>x&&S.createElement(dt,{ref:Cr,prefixCls:f,scrollOffset:gi,scrollRange:Qn,rtl:qn,onScroll:_i,onStartMove:sr,onStopMove:Kr,spinSize:Mn,containerSize:qt.height,style:er==null?void 0:er.verticalScrollBar,thumbStyle:er==null?void 0:er.verticalScrollBarThumb,showScrollBar:pr}),Ir&&me>qt.width&&S.createElement(dt,{ref:Mr,prefixCls:f,scrollOffset:Ie,scrollRange:me,rtl:qn,onScroll:_i,onStartMove:sr,onStopMove:Kr,spinSize:Gr,containerSize:qt.width,horizontal:!0,style:er==null?void 0:er.horizontalScrollBar,thumbStyle:er==null?void 0:er.horizontalScrollBarThumb,showScrollBar:pr}))}var or=S.forwardRef(hr);or.displayName="List";var Sr=or,ur=Sr},45614:function(xn){"use strict";xn.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"},48136:function(xn,Jt,w){"use strict";var pe=Object.defineProperty,ue=Object.defineProperties,U=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,B=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))te.call(t,r)&&B(e,r,t[r]);if(Ne)for(var r of Ne(t))Z.call(t,r)&&B(e,r,t[r]);return e},E=(e,t)=>ue(e,U(t)),p=e=>typeof e=="symbol"?e:e+"",j=(e,t)=>{var r={};for(var n in e)te.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ne)for(var n of Ne(e))t.indexOf(n)<0&&Z.call(e,n)&&(r[n]=e[n]);return r};function S(e){return Array.isArray(e)}var F={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function P(){return"window"in globalThis&&"document"in globalThis}function R(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function M(){return typeof navigator.vibrate=="function"}function Y(){var e,t;if(!P())return"other";const r=(t=(e=navigator.userAgentData)==null?void 0:e.platform)!=null?t:navigator.platform;return/^mac/i.test(r)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(r)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function Q(){if(!P())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);return e?parseInt(e[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);return e?parseInt(e[1])>=79:!1}return!0}function ce(){return HTMLElement.prototype.hasOwnProperty("popover")}var W={strings:F,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return W._locale||(W._locale=P()?navigator.language.slice(0,5):"en-US"),W._locale},set locale(e){W._locale=e,W._numberFormatter=void 0,W.dirty=!0},get numberFormatter(){return W._numberFormatter||(W._numberFormatter=new Intl.NumberFormat(W.locale)),W._numberFormatter},merge(e,t){if(typeof e=="string"&&t)W.strings[e]=h(h({},W.strings[e]),t),W.dirty=!0;else for(const r of Object.keys(e))W.merge(r,e[r])},get dirty(){return W._dirty},set dirty(e){W._dirty||W._dirty===e||(W._dirty=!0,setTimeout(()=>{W._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return W._subscribers.push(e),W._subscribers.length-1},unsubscribe(e){e<0||e>=W._subscribers.length||(W._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const r of t){const n=r.getAttribute("data-l10n-tooltip");if(n){const i=J(n);i&&r.setAttribute("data-tooltip",i)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const r of t){const n=r.getAttribute("data-l10n-arial-label");if(n){const i=J(n);i&&r.setAttribute("aria-label",i)}}}};function J(e,...t){if(e===void 0)return;let r="";const n=W.locale;W.strings[n]&&(r=W.strings[n][e]);const i=n.slice(0,2);if(!r&&W.strings[i]&&(r=W.strings[i][e]),r||(r=W.strings.en[e]),!r)return;const s=/(%@|%([0-9]+)\$@)/g;let A=s.exec(r),L=0;for(;A;){if(t[L++]){const q=A[2]?parseInt(A[2],10)-1:L-1;let Ae=t[q];typeof Ae=="number"&&(Ae=W.numberFormatter.format(Ae)),r=r.replace(A[1],Ae)}A=s.exec(r)}return r=r.replace(/%%/g,"%"),r}var V={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},K={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},se={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},he={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},Te={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"},xe={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 je(e){var t,r,n,i,s,A;const L=e.split("!");let z,q,Ae,Qe=255,At=255,Ft=255,Ot=-1;const Fr=L.length>0&&L[0].startsWith("-");Fr&&(L[0]=L[0].slice(1));for(let In=0;In<L.length;In++){z=Qe,q=At,Ae=Ft;const Br=(t=L[In].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],an=Br==null?void 0:Br.toLowerCase(),Rn=Br&&(A=(s=(i=(n=(r=he[an])!=null?r:he[Te[Br]])!=null?n:K[Br])!=null?i:xe[Br])!=null?s:V[Br])!=null?A:L[In].trim();let pn=Rn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(pn!=null&&pn[1]&&pn[2]&&pn[3])Qe=Math.max(0,Math.min(255,Number.parseInt(pn[1],16))),At=Math.max(0,Math.min(255,Number.parseInt(pn[2],16))),Ft=Math.max(0,Math.min(255,Number.parseInt(pn[3],16)));else if(pn=Rn.match(/^#([\da-f]{3})$/i),pn!=null&&pn[1]){const Ci=Number.parseInt(pn[1][0],16),ji=Number.parseInt(pn[1][1],16),Ni=Number.parseInt(pn[1][2],16);Qe=Math.max(0,Math.min(255,Ci*16+Ci)),At=Math.max(0,Math.min(255,ji*16+ji)),Ft=Math.max(0,Math.min(255,Ni*16+Ni))}else if(pn=Rn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),pn!=null&&pn[1]&&pn[2]&&pn[3])Qe=Math.max(0,Math.min(255,Number.parseInt(pn[1]))),At=Math.max(0,Math.min(255,Number.parseInt(pn[2]))),Ft=Math.max(0,Math.min(255,Number.parseInt(pn[3])));else return;Ot>=0&&(Qe=(1-Ot)*Qe+Ot*z,At=(1-Ot)*At+Ot*q,Ft=(1-Ot)*Ft+Ot*Ae,Ot=-1),In+1<L.length&&(Ot=Math.max(0,Math.min(100,Number.parseInt(L[++In])))/100)}return Ot>=0&&(Qe=Ot*Qe+(1-Ot)*z,At=Ot*At+(1-Ot)*q,Ft=Ot*Ft+(1-Ot)*Ae),Fr&&(Qe=255-Qe,At=255-At,Ft=255-Ft),"#"+("00"+Math.round(Qe).toString(16)).slice(-2)+("00"+Math.round(At).toString(16)).slice(-2)+("00"+Math.round(Ft).toString(16)).slice(-2)}function X(e){var t,r;return e=e.trim(),(r=(t=se[e.toLowerCase()])!=null?t:se[Te[e]])!=null?r:je(e)}function de(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&t.a===void 0&&(t.a=1),t}function k(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 rt(e){let[t,r,n]=[e.h,e.s,e.l];t=(t+360)%360/60,n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1));const i=n<=.5?n*(r+1):n+r-n*r,s=n*2-i;return{r:Math.round(255*k(s,i,t+2)),g:Math.round(255*k(s,i,t)),b:Math.round(255*k(s,i,t-2))}}function Oe(e){return e<0?0:e>255?255:Math.round(e)}function be(e){const{r:t,g:r,b:n}=e;let i=((1<<24)+(Oe(t)<<16)+(Oe(r)<<8)+Oe(n)).toString(16).slice(1);return i[0]===i[1]&&i[2]===i[3]&&i[4]===i[5]&&i[6]===i[7]&&(i=i[0]+i[2]+i[4]),"#"+i}function He(e){let{r:t,g:r,b:n}=e;t=t/255,r=r/255,n=n/255;const i=Math.min(t,r,n),s=Math.max(t,r,n),A=s-i;let L,z;s===i?L=0:t===s?L=(r-n)/A:r===s?L=2+(n-t)/A:n===s&&(L=4+(t-r)/A),L=Math.min(L*60,360),L<0&&(L+=360);const q=(i+s)/2;return s===i?z=0:q<=.5?z=A/(s+i):z=A/(2-s-i),{h:L,s:z,l:q}}function ge(e){let t=de(e);if(!t)return e;let{h:r,s:n,l:i}=He(t);return n+=.1,i-=.1,be(rt({h:r,s:n,l:i}))}var De={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},fe={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Se=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function ct(e,t,r){if(!/[A-Za-z\d]/.test(e)||(r==="up"&&(r=void 0),!t&&!r))return e;const n=e.codePointAt(0);if(n===void 0)return e;for(const i of Se)if((!t||i.variant===t)&&(!r||i.style===r)&&n>=i.offset&&n<i.offset+i.len){const s=i.start+n-i.offset;return String.fromCodePoint(fe[s]||s)}return e}function dt(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in fe)if(fe[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of Se)if(e>=r.start&&e<r.start+r.len)return{char:String.fromCodePoint(e-r.start+r.offset),variant:r.variant,style:r.style};return{char:String.fromCodePoint(e)}}function at(e){var t;let r="";for(const n of e){if("{}<>[]$&#^_%:'\u02DC".includes(n)){r+=n;continue}const i=(t=n.codePointAt(0))!=null?t:0;let s=De[i];if(s)s.startsWith("\\")?r+=s+" ":r+=s;else{const{char:A,variant:L,style:z}=dt(i);switch(s=A,L){case"double-struck":s=`\\mathbb{${s}}`;break;case"fraktur":s=`\\mathfrak{${s}}`;break;case"script":s=`\\mathscr{${s}}`;break;case"sans-serif":s=`\\mathsf{${s}}`;break;case"monospace":s=`\\mathtt{${s}}`;break;case"calligraphic":s=`\\mathcal{${s}}`;break}switch(z){case"bold":s=`\\mathbf{${s}}`;break;case"italic":s=`\\mathit{${s}}`;break;case"bolditalic":s=`\\mathbfit{${s}}`;break}r+=s}}return r}function st(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var It={},Ut=h({},De),Kt={},hr={},or={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}"},Sr={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}},ur={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:ur},"amsmath.sty":{package:Sr,primitive:!0},"texvc.sty":{package:or,primitive:!1}},wt={" ":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},_=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,f,u;Q()?(f=new RegExp("\\p{Letter}","u"),u=new RegExp("[0-9\\p{Letter}]","u")):(f=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,u=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function x(e,t,r="mord",n){t!==void 0&&(It[e]={definitionType:"symbol",type:r,variant:n,codepoint:t},Ut[t]||(Ut[t]=e))}function ee(e,t,r){if(typeof e=="string"){for(let n=0;n<e.length;n++){const i=e.charAt(n);x(i,i.codePointAt(0))}return}for(const[n,i,s,A]of e)x(n,i,s!=null?s:t,A!=null?A:r)}function Ce(e,t){for(let r=e;r<=t;r++)x(String.fromCodePoint(r),r)}function H(e){var t;return(t=hr[e])!=null?t:null}function ne(e,t){var r,n;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const i=[];for(const A in Kt)A.startsWith(t)&&!Kt[A].infix&&i.push({match:A,frequency:(r=Kt[A].frequency)!=null?r:0});for(const A in It)A.startsWith(t)&&i.push({match:A,frequency:(n=It[A].frequency)!=null?n:0});const s=t.substring(1);for(const A of Object.keys(e.options.macros))A.startsWith(s)&&i.push({match:"\\"+A,frequency:0});return i.sort((A,L)=>{var z,q;return A.frequency===L.frequency?A.match.length===L.match.length?A.match<L.match?-1:1:A.match.length-L.match.length:((z=L.frequency)!=null?z:0)-((q=A.frequency)!=null?q:0)}),i.map(A=>A.match)}function $e(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:$e(r[0].slice(1))});for(let n=1;n<=r.length;n++)t.push(...we(r[n]))}else if(r=e.split("}"),r[0].startsWith("{")){t.push({isOptional:!1,type:$e(r[0].slice(1))});for(let n=1;n<=r.length;n++)t.push(...we(r[n]))}return t}function ve(e){if(!e)return"";let t="",r=!0;for(const n of e)typeof n.value=="string"?t+=n.value:r=!1;return r?t:""}function qe(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const n of e)hr[n]=r}function St(e,t,r){typeof e=="string"&&(e=[e]);const i={tabular:!0,params:we(t),createAtom:r};for(const s of e)hr[s]=i}function me(e,t,r){var n,i;r||(r={});const s={definitionType:"function",params:we(t),ifMode:r.ifMode,isFunction:(n=r.isFunction)!=null?n:!1,applyMode:r.applyMode,infix:(i=r.infix)!=null?i:!1,parse:r.parse,createAtom:r.createAtom,applyStyle:r.applyStyle,serialize:r.serialize,render:r.render};if(typeof e=="string")Kt["\\"+e]=s;else for(const A of e)Kt["\\"+A]=s}var ft;function lt(e){return ft||(ft=Le(G)),e?Le(h(h({},ft),e)):ft}function Pe(e,t){var r,n,i,s;if(typeof e=="string"){let A=0;const L=e;return/(^|[^\\])#1/.test(L)&&(A=1),/(^|[^\\])#2/.test(L)&&(A=2),/(^|[^\\])#3/.test(L)&&(A=3),/(^|[^\\])#4/.test(L)&&(A=4),/(^|[^\\])#5/.test(L)&&(A=5),/(^|[^\\])#6/.test(L)&&(A=6),/(^|[^\\])#7/.test(L)&&(A=7),/(^|[^\\])#8/.test(L)&&(A=8),/(^|[^\\])#9/.test(L)&&(A=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(n=t==null?void 0:t.captureSelection)!=null?n:!0,args:A,def:L}}return h({expand:(i=t==null?void 0:t.expand)!=null?i:!0,captureSelection:(s=t==null?void 0:t.captureSelection)!=null?s:!0,args:0},e)}function Le(e){if(!e)return{};const t={};for(const r of Object.keys(e)){const n=e[r];if(n==null)delete t[r];else if(typeof n=="object"&&"package"in n)for(const i of Object.keys(n.package))t[i]=Pe(n.package[i],{expand:!n.primitive,captureSelection:n.captureSelection});else t[r]=Pe(n)}return t}function pt(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Kt[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=It[e]:wt[e]&&(r={definitionType:"symbol",type:"mord",codepoint:wt[e]})}else if(t==="math"){if(r=It[e],!r&&e.length===1){const n=Ht("math",e.codePointAt(0));return n.startsWith("\\")?E(h({},pt(n,"math")),{command:n}):null}}else wt[e]?r={definitionType:"symbol",type:"mord",codepoint:wt[e]}:t==="text"&&(r={definitionType:"symbol",type:"mord",codepoint:e.codePointAt(0)});return r!=null?r:null}function zt(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function Ht(e,t){if(t===void 0)return"";if(e==="math"&&Ut[t])return Ut[t];if(e==="text"){const r=Object.keys(wt).find(n=>wt[n]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var er=[0,.68889,0,0,.72222],Pr=[0,.68889,0,0,.66667],pr=[0,.68889,0,0,.77778],kr=[0,.68889,0,0,.61111],Dr=[.16667,.68889,0,0,.77778],vr=[0,.68889,0,0,.55556],dr=[0,0,0,0,.25],$r=[0,.825,0,0,2.33334],un=[0,.9,0,0,2.33334],_n=[0,.68889,0,0,.54028],qr=[-.03598,.46402,0,0,.5],Bn=[-.13313,.36687,0,0,1],ti=[.01354,.52239,0,0,1],Ir=[.01354,.52239,0,0,1.11111],qn=[0,.54986,0,0,1],Ti=[0,.69224,0,0,.5],ci=[0,.43056,0,0,1],Ui=[.08198,.58198,0,0,.77778],Ei=[.19444,.69224,0,0,.41667],$i=[.1808,.675,0,0,1],Ha=[.19444,.69224,0,0,.83334],Ji=[.13667,.63667,0,0,1],gi=[-.064,.437,0,0,1.334],ki=[.08167,.58167,0,0,.77778],Pi=[0,.69224,0,0,.72222],nt=[0,.69224,0,0,.66667],Ie=[-.13313,.36687,0,0,.77778],ke=[.06062,.54986,0,0,.77778],Ee=[0,.69224,0,0,.77778],$t=[.25583,.75583,0,0,.77778],Nt=[.25142,.75726,0,0,.77778],Er=[.20576,.70576,0,0,.77778],sr=[.30274,.79383,0,0,.77778],Kr=[.22958,.72958,0,0,.77778],Wr=[.1808,.675,0,0,.77778],tn=[.13667,.63667,0,0,.77778],Vr=[.13597,.63597,0,0,.77778],jr=[.03517,.54986,0,0,.77778],Yr=[0,.675,0,0,.77778],mn=[.19444,.69224,0,0,.61111],rn=[0,.54986,0,0,.76042],Dn=[0,.54986,0,0,.66667],Qn=[.0391,.5391,0,0,.77778],ui=[.03517,.54986,0,0,1.33334],Tn=[.38569,.88569,0,0,.77778],sn=[.23222,.74111,0,0,.77778],Qt=[.19444,.69224,0,0,.77778],Zt=[0,.37788,0,0,.5],qt=[0,.54986,0,0,.72222],mr=[0,.69224,0,0,.83334],Wt=[.11111,.69224,0,0,.66667],Cr=[.26167,.75726,0,0,.77778],Mr=[.48256,.98256,0,0,.77778],Gr=[.28481,.79383,0,0,.77778],Mn=[.08167,.58167,0,0,.22222],Pn=[.08167,.58167,0,0,.38889],oi=[0,.43056,.04028,0,.66667],ei=[.41951,.91951,0,0,.77778],bi=[.24982,.74947,0,0,.38865],Jn=[.08319,.58283,0,0,.75623],Hn=[0,.10803,0,0,.27764],on=[0,.47534,0,0,.50181],pi=[.18906,.47534,0,0,.50181],Ln=[0,.69141,0,0,.50181],ri=[.24982,.74947,0,0,.27764],vi=[0,.69141,0,0,.21471],_i=[.25,.75,0,0,.44722],Xn=[0,.64444,0,0,.575],Bi=[.08556,.58556,0,0,.89444],ra=[0,.69444,0,0,.89444],ii=[0,.68611,0,0,.9],cn=[0,.68611,0,0,.86944],nn=[.25,.75,0,0,.575],Un=[.25,.75,0,0,.31944],wn=[0,.69444,0,0,.63889],jn=[0,.69444,0,0,.31944],li=[0,.44444,0,0,.63889],wi=[0,.44444,0,0,.51111],Aa=[0,.69444,0,0,.575],Yi=[.13333,.63333,0,0,.89444],ao=[0,.44444,0,0,.31944],Yn=[0,.69444,0,0,.86944],On=[0,.68611,0,0,.69166],Fi=[0,.68611,0,0,.83055],xi=[0,.68611,0,0,.89444],ha=[0,.69444,0,0,.60278],Oo=[.19444,.69444,0,0,.51111],na=[0,.69444,0,0,.83055],Zi=[-.10889,.39111,0,0,1.14999],ja=[.19444,.69444,0,0,.575],Ma=[.19444,.69444,0,0,1.14999],eo=[.19444,.69444,0,0,.70277],vo=[.05556,.75,0,0,.575],ba=[0,.68611,0,0,.95833],Ai=[.08556,.58556,0,0,.76666],ua=[-.02639,.47361,0,0,.575],Do=[0,.44444,0,0,.89444],uo=[0,.55556,0,0,.76666],Xa=[-.10889,.39111,0,0,.89444],Di=[.00222,.50222,0,0,.89444],Po=[.19667,.69667,0,0,.89444],fo=[.08556,.58556,0,0,1.14999],il=[0,.69444,0,0,.70277],$o=[-.02778,.47222,0,0,.575],Hs=[.25,.75,0,0,.51111],Zo=[-.13889,.36111,0,0,1.14999],vl=[.19444,.69444,0,0,1.02222],za=[.12963,.69444,0,0,.89444],Ra=[.19444,.69444,0,0,.44722],Ea=[0,.64444,.13167,0,.59111],js=[.19444,.64444,.13167,0,.59111],yi=[0,.68611,.17208,0,.8961],Vi=[.19444,.44444,.105,0,.53222],Oi=[0,.44444,.085,0,.82666],Wi=[0,.69444,.06709,0,.59111],da=[0,.69444,.12945,0,.35555],La=[0,.69444,0,0,.94888],Vo=[0,.69444,.11472,0,.59111],_o=[0,.68611,.10778,0,.88555],Bo=[0,.69444,.07939,0,.62055],$a=[0,.69444,.12417,0,.30667],wa=[0,.64444,.13556,0,.51111],pa=[.19444,.64444,.13556,0,.51111],Oa=[0,.68333,.16389,0,.74333],Ja=[.19444,.43056,.08847,0,.46],oo=[0,.43056,.07514,0,.71555],Ta=[0,.69444,.06646,0,.51111],ka=[0,.69444,0,0,.83129],Fo=[0,.69444,.1225,0,.51111],Ll=[0,.68333,.09403,0,.76666],cs=[0,.68333,.11111,0,.76666],dl=[0,.69444,.06961,0,.51444],No=[0,.69444,0,0,.27778],ks=[.25,.75,0,0,.38889],Io=[0,.64444,0,0,.5],Kn=[0,.69444,0,0,.77778],kl=[0,.68333,0,0,.75],To=[0,.68333,0,0,.77778],Hl=[0,.68333,0,0,.68056],zs=[0,.68333,0,0,.72222],ms=[.25,.75,0,0,.5],Da=[.25,.75,0,0,.27778],Uo=[0,.69444,0,0,.5],jl=[0,.69444,0,0,.55556],tc=[0,.43056,0,0,.44445],fl=[0,.43056,0,0,.5],ma=[.19444,.43056,0,0,.55556],oa=[0,.43056,0,0,.55556],ho=[.08333,.58333,0,0,.77778],Za=[0,.43056,0,0,.27778],to=[0,.66786,0,0,.27778],Ro=[0,.69444,0,0,.75],Ya=[0,.66786,0,0,.5],Wo=[0,.68333,0,0,.625],Ds=[.19444,.69444,0,0,.44445],hl=[0,.69444,0,0,.72222],Xs=[.19444,.69444,0,0,.5],al=[.19444,.69444,0,0,1],Wc=[.011,.511,0,0,1.126],Dl=[.19444,.69444,0,0,.61111],Js=[.05556,.75,0,0,.5],lA=[0,.68333,0,0,.83334],cA=[.0391,.5391,0,0,.66667],hc=[-.05555,.44445,0,0,.5],wA=[0,.43056,0,0,.77778],Pl=[0,.55556,0,0,.66667],Ys=[-.03625,.46375,0,0,.77778],ol=[-.01688,.48312,0,0,.77778],sl=[.0391,.5391,0,0,1],Na=[0,.69444,0,0,.61111],po=[-.03472,.46528,0,0,.5],mo=[.25,.75,0,0,.44445],Go=[-.14236,.35764,0,0,1],Ps=[.244,.744,0,0,.412],kc=[.19444,.69444,0,0,.88889],yl=[.12963,.69444,0,0,.77778],Gc=[.19444,.69444,0,0,.38889],xA=[.011,.511,0,0,1.638],CA=[.19444,.69444,0,0,0],pc=[0,.44444,0,0,.575],mc=[.19444,.44444,0,0,.575],Uu=[0,.68611,0,0,.75555],KA=[0,.69444,0,0,.66759],ed=[0,.68611,0,0,.80555],td=[0,.68611,.08229,0,.98229],lu=[0,.68611,0,0,.76666],vd=[0,.44444,0,0,.58472],Ru=[.19444,.44444,0,0,.6118],cu=[.19444,.43056,0,0,.5],c=[0,.68333,.02778,.08334,.76278],o=[0,.68333,.08125,.05556,.83125],l=[0,.43056,0,.05556,.48472],b=[.19444,.43056,0,.08334,.51702],I=[.25,.75,0,0,.42778],C=[0,.69444,0,0,.55],N=[0,.69444,0,0,.73334],$=[0,.69444,0,0,.79445],ae=[0,.69444,0,0,.51945],_e=[0,.69444,0,0,.70278],Ze=[0,.69444,0,0,.76389],Ve=[.25,.75,0,0,.34306],it=[0,.69444,0,0,.56111],ye=[0,.69444,0,0,.25556],kt=[.19444,.45833,0,0,.56111],bt=[0,.45833,0,0,.56111],Dt=[0,.69444,0,0,.30556],ht=[0,.69444,0,0,.58056],Pt=[0,.69444,0,0,.67223],ir=[0,.69444,0,0,.85556],xr=[0,.69444,0,0,.55834],Hr=[0,.65556,.11156,0,.5],hn=[0,.69444,.08094,0,.70834],Lr=[.17014,0,0,0,.44445],Vt=[0,.69444,.0799,0,.5],Or=[0,.69444,0,0,.73752],Jr=[0,.69444,.09205,0,.5],gt=[0,.69444,.09031,0,.77778],Ct=[0,.69444,.07816,0,.27778],rr=[0,.69444,.00316,0,.5],T=[.19444,.69444,0,0,.83334],re=[.05556,.75,0,0,.83334],Be=[0,.75,0,0,.5],Ue=[.125,.08333,0,0,.27778],Ke=[0,.08333,0,0,.27778],Xe=[0,.65556,0,0,.5],ut=[0,.69444,0,0,.47222],Et=[0,.69444,0,0,.66667],le=[0,.69444,0,0,.59722],Re=[0,.69444,0,0,.54167],Ye=[0,.69444,0,0,.70834],et=[.25,.75,0,0,.28889],yt=[0,.69444,0,0,.51667],_t=[0,.44444,0,0,.44445],Mt=[.19444,.44444,0,0,.51667],Rt=[0,.44444,0,0,.38333],lr=[0,.44444,0,0,.51667],Ar=[0,.69444,0,0,.83334],gr=[.35001,.85,0,0,.45834],_r=[.35001,.85,0,0,.57778],dn=[.35001,.85,0,0,.41667],ar=[.35001,.85,0,0,.58334],vt=[0,.72222,0,0,.55556],Fn=[1e-5,.6,0,0,.66667],gn=[1e-5,.6,0,0,.77778],yr=[.25001,.75,0,0,.94445],Ur=[.306,.805,.19445,0,.47222],Rr=[.30612,.805,.19445,0,.47222],wr=[.25001,.75,0,0,.83334],Zr=[.35001,.85,0,0,.47222],Cn=[.25001,.75,0,0,1.11111],Gn=[.65002,1.15,0,0,.59722],Zn=[.65002,1.15,0,0,.81111],Nn=[.65002,1.15,0,0,.47222],di=[.65002,1.15,0,0,.66667],zn=[0,.75,0,0,1],Ii=[.55001,1.05,0,0,1.27778],vn=[.862,1.36,.44445,0,.55556],_a=[.86225,1.36,.44445,0,.55556],Hi=[.55001,1.05,0,0,1.11111],Ri=[.65002,1.15,0,0,.52778],ia=[.65002,1.15,0,0,.61111],Ki=[.55001,1.05,0,0,1.51112],Qa=[.95003,1.45,0,0,.73611],Gi=[.95003,1.45,0,0,1.04445],As=[.95003,1.45,0,0,.52778],Sn=[.95003,1.45,0,0,.75],fi=[0,.75,0,0,1.44445],mi=[.95003,1.45,0,0,.58334],$n=[1.25003,1.75,0,0,.79167],ai=[1.25003,1.75,0,0,1.27778],kn=[1.25003,1.75,0,0,.58334],Qi=[1.25003,1.75,0,0,.80556],Xi=[0,.825,0,0,1.8889],qi=[1.25003,1.75,0,0,.63889],Mo=[.64502,1.155,0,0,.875],Mi=[1e-5,.6,0,0,.875],ns=[-99e-5,.601,0,0,.66667],ro=[.64502,1.155,0,0,.66667],Qo=[1e-5,.9,0,0,.88889],bn=[.65002,1.15,0,0,.88889],no=[.90001,0,0,0,.88889],Cs=[-.00499,.605,0,0,1.05556],ga=[0,.12,0,0,.45],en=[0,.61111,0,0,.525],fa=[.08333,.69444,0,0,.525],so=[-.08056,.53055,0,0,.525],Va=[-.05556,.55556,0,0,.525],Si=[0,.43056,0,0,.525],bo=[.22222,.43056,0,0,.525],Ko=[0,0,0,0,.525],Bs={"AMS-Regular":{32:dr,65:er,66:Pr,67:er,68:er,69:Pr,70:kr,71:pr,72:pr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:pr,76:Pr,77:[0,.68889,0,0,.94445],78:er,79:Dr,80:kr,81:Dr,82:er,83:vr,84:Pr,85:er,86:er,87:[0,.68889,0,0,1],88:er,89:er,90:Pr,107:vr,160:dr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:vr,295:_n,710:$r,732:un,770:$r,771:un,989:ki,1008:oi,8245:[0,.54986,0,0,.275],8463:_n,8487:er,8498:vr,8502:Pr,8503:[0,.68889,0,0,.44445],8504:Pr,8513:[0,.68889,0,0,.63889],8592:qr,8594:qr,8602:Bn,8603:Bn,8606:ti,8608:ti,8610:Ir,8611:Ir,8619:qn,8620:qn,8621:[-.13313,.37788,0,0,1.38889],8622:Bn,8624:Ti,8625:Ti,8630:ci,8631:ci,8634:Ui,8635:Ui,8638:Ei,8639:Ei,8642:Ei,8643:Ei,8644:$i,8646:$i,8647:$i,8648:Ha,8649:$i,8650:Ha,8651:ti,8652:ti,8653:Bn,8654:Bn,8655:Bn,8666:Ji,8667:Ji,8669:[-.13313,.37788,0,0,1],8672:gi,8674:gi,8705:[0,.825,0,0,.5],8708:vr,8709:ki,8717:[0,.43056,0,0,.42917],8722:qr,8724:[.08198,.69224,0,0,.77778],8726:ki,8733:Ee,8736:Pi,8737:Pi,8738:[.03517,.52239,0,0,.72222],8739:Mn,8740:[.25142,.74111,0,0,.27778],8741:Pn,8742:[.25142,.74111,0,0,.5],8756:nt,8757:nt,8764:Ie,8765:[-.13313,.37788,0,0,.77778],8769:Ie,8770:Ys,8774:sr,8776:ol,8778:ki,8782:ke,8783:ke,8785:Ui,8786:Ui,8787:Ui,8790:Ee,8791:Kr,8796:[.08198,.91667,0,0,.77778],8806:$t,8807:$t,8808:Nt,8809:Nt,8812:[.25583,.75583,0,0,.5],8814:Er,8815:Er,8816:sr,8817:sr,8818:Kr,8819:Kr,8822:Wr,8823:Wr,8828:tn,8829:tn,8830:Kr,8831:Kr,8832:Er,8833:Er,8840:sr,8841:sr,8842:Vr,8843:Vr,8847:jr,8848:jr,8858:Ui,8859:Ui,8861:Ui,8862:Yr,8863:Yr,8864:Yr,8865:Yr,8872:[0,.69224,0,0,.61111],8873:Pi,8874:[0,.69224,0,0,.88889],8876:kr,8877:kr,8878:er,8879:er,8882:jr,8883:jr,8884:tn,8885:tn,8888:[0,.54986,0,0,1.11111],8890:ma,8891:mn,8892:mn,8901:[0,.54986,0,0,.27778],8903:ki,8905:ki,8906:ki,8907:Ee,8908:Ee,8909:[-.03598,.46402,0,0,.77778],8910:rn,8911:rn,8912:jr,8913:jr,8914:Dn,8915:Dn,8916:nt,8918:Qn,8919:Qn,8920:ui,8921:ui,8922:Tn,8923:Tn,8926:tn,8927:tn,8928:sr,8929:sr,8934:sn,8935:sn,8936:sn,8937:sn,8938:Er,8939:Er,8940:sr,8941:sr,8994:Qt,8995:Qt,9416:[.15559,.69224,0,0,.90222],9484:Ti,9488:Ti,9492:Zt,9496:Zt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Yr,9633:Yr,9650:qt,9651:qt,9654:jr,9660:qt,9661:qt,9664:jr,9674:Wt,9733:[.19444,.69224,0,0,.94445],10003:mr,10016:mr,10731:Wt,10846:[.19444,.75583,0,0,.61111],10877:tn,10878:tn,10885:$t,10886:$t,10887:Vr,10888:Vr,10889:Cr,10890:Cr,10891:Mr,10892:Mr,10901:tn,10902:tn,10933:Nt,10934:Nt,10935:Cr,10936:Cr,10937:Cr,10938:Cr,10949:$t,10950:$t,10955:Gr,10956:Gr,57350:Mn,57351:Pn,57352:ki,57353:oi,57356:Nt,57357:Nt,57358:ei,57359:sr,57360:sr,57361:ei,57366:Nt,57367:Nt,57368:Nt,57369:Nt,57370:Vr,57371:Vr},"Caligraphic-Regular":{32:dr,65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:dr},"Fraktur-Regular":{32:dr,33:[0,.69141,0,0,.29574],34:vi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:bi,41:bi,42:[0,.62119,0,0,.27764],43:Jn,44:Hn,45:Jn,46:Hn,47:[.24982,.74947,0,0,.50181],48:on,49:on,50:on,51:pi,52:pi,53:pi,54:Ln,55:pi,56:Ln,57:pi,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:ri,93:ri,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:dr,8216:vi,8217:vi,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:dr,33:[0,.69444,0,0,.35],34:ha,35:[.19444,.69444,0,0,.95833],36:vo,37:[.05556,.75,0,0,.95833],38:ra,39:jn,40:_i,41:_i,42:[0,.75,0,0,.575],43:Yi,44:[.19444,.15556,0,0,.31944],45:Rt,46:[0,.15556,0,0,.31944],47:nn,48:Xn,49:Xn,50:Xn,51:Xn,52:Xn,53:Xn,54:Xn,55:Xn,56:Xn,57:Xn,58:ao,59:[.19444,.44444,0,0,.31944],60:Bi,61:Xa,62:Bi,63:[0,.69444,0,0,.54305],64:ra,65:cn,66:[0,.68611,0,0,.81805],67:Fi,68:[0,.68611,0,0,.88194],69:Uu,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:ii,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:On,77:[0,.68611,0,0,1.09166],78:ii,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:cn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Un,92:nn,93:Un,94:Aa,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:wn,99:wi,100:wn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:wn,105:jn,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:jn,109:[0,.44444,0,0,.95833],110:li,111:pc,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:li,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:wi,123:nn,124:Un,125:nn,126:[.35,.34444,0,0,.575],160:dr,163:[0,.69444,0,0,.86853],168:Aa,172:[0,.44444,0,0,.76666],176:Yn,177:Yi,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Yi,216:[.04861,.73472,0,0,.89444],223:le,230:[0,.44444,0,0,.83055],247:Yi,248:[.09722,.54167,0,0,.575],305:ao,338:[0,.68611,0,0,1.16944],339:Do,567:[.19444,.44444,0,0,.35139],710:Aa,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Aa,715:Aa,728:Aa,729:jn,730:Yn,732:Aa,733:Aa,915:On,916:ba,920:xi,923:ed,926:lu,928:ii,931:Fi,933:xi,934:Fi,936:xi,937:Fi,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:jn,8217:jn,8220:ha,8221:ha,8224:Oo,8225:Oo,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:KA,8465:na,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:na,8501:il,8592:Zi,8593:ja,8594:Zi,8595:ja,8596:Zi,8597:nn,8598:Ma,8599:Ma,8600:Ma,8601:Ma,8636:Zi,8637:Zi,8640:Zi,8641:Zi,8656:Zi,8657:eo,8658:Zi,8659:eo,8660:Zi,8661:[.25,.75,0,0,.70277],8704:wn,8706:[0,.69444,.06389,0,.62847],8707:wn,8709:vo,8711:ba,8712:Ai,8715:Ai,8722:Yi,8723:Yi,8725:nn,8726:nn,8727:$o,8728:ua,8729:ua,8730:[.18,.82,0,0,.95833],8733:Do,8734:[0,.44444,0,0,1.14999],8736:Pi,8739:Un,8741:nn,8743:uo,8744:uo,8745:uo,8746:uo,8747:[.19444,.69444,.12778,0,.56875],8764:Xa,8768:[.19444,.69444,0,0,.31944],8771:Di,8776:[.02444,.52444,0,0,.89444],8781:Di,8801:Di,8804:Po,8805:Po,8810:fo,8811:fo,8826:Bi,8827:Bi,8834:Bi,8835:Bi,8838:Po,8839:Po,8846:uo,8849:Po,8850:Po,8851:uo,8852:uo,8853:Yi,8854:Yi,8855:Yi,8856:Yi,8857:Yi,8866:il,8867:il,8868:ra,8869:ra,8900:ua,8901:[-.02639,.47361,0,0,.31944],8902:$o,8968:Hs,8969:Hs,8970:Hs,8971:Hs,8994:Zo,8995:Zo,9651:vl,9657:$o,9661:vl,9667:$o,9711:Ma,9824:za,9825:za,9826:za,9827:za,9837:[0,.75,0,0,.44722],9838:Ra,9839:Ra,10216:_i,10217:_i,10815:ii,10927:Po,10928:Po,57376:CA},"Main-BoldItalic":{32:dr,33:[0,.69444,.11417,0,.38611],34:Bo,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:da,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:Ea,49:Ea,50:Ea,51:Ea,52:js,53:Ea,54:Ea,55:js,56:Ea,57:Ea,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Vo,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:yi,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:yi,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:Wi,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:Vi,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:Vi,114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:dr,168:[0,.69444,.11473,0,.59111],176:La,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:Oi,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Oi,567:[.19444,.44444,.04611,0,.385],710:Wi,711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:da,730:La,732:Vo,733:Vo,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:yi,931:[0,.68611,.11431,0,.82666],933:_o,934:[0,.68611,.05632,0,.82666],936:_o,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:da,8217:da,8220:[0,.69444,.16772,0,.62055],8221:Bo},"Main-Italic":{32:dr,33:$a,34:dl,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:$a,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:wa,49:wa,50:wa,51:wa,52:pa,53:wa,54:wa,55:pa,56:wa,57:wa,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Fo,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:Oa,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:Oa,79:Ll,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:Oa,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:Ta,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:Ja,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:Ja,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:dr,168:[0,.66786,.10474,0,.51111],176:ka,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:oo,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:oo,710:Ta,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:ka,732:[0,.66786,.11585,0,.51111],733:Fo,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Ll,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Oa,931:[0,.68333,.12028,0,.71555],933:cs,934:[0,.68333,.05986,0,.71555],936:cs,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:$a,8217:$a,8220:[0,.69444,.1685,0,.51444],8221:dl,8463:_n},"Main-Regular":{32:dr,33:No,34:Uo,35:T,36:Js,37:re,38:Kn,39:No,40:ks,41:ks,42:Be,43:ho,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ms,48:Io,49:Io,50:Io,51:Io,52:Io,53:Io,54:Io,55:Io,56:Io,57:Io,58:Za,59:[.19444,.43056,0,0,.27778],60:Qn,61:Ie,62:Qn,63:ut,64:Kn,65:kl,66:[0,.68333,0,0,.70834],67:zs,68:[0,.68333,0,0,.76389],69:Hl,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:kl,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:To,76:Wo,77:[0,.68333,0,0,.91667],78:kl,79:To,80:Hl,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:zs,85:kl,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:kl,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Da,92:ms,93:Da,94:Uo,95:[.31,.12056,.02778,0,.5],97:fl,98:jl,99:tc,100:jl,101:tc,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:jl,105:to,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:No,109:[0,.43056,0,0,.83334],110:oa,111:fl,112:ma,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:oa,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:tc,123:ms,124:Da,125:ms,126:[.35,.31786,0,0,.5],160:dr,163:[0,.69444,0,0,.76909],167:Ds,168:Ya,172:[0,.43056,0,0,.66667],176:Ro,177:ho,182:Dl,184:Lr,198:[0,.68333,0,0,.90278],215:ho,216:[.04861,.73194,0,0,.77778],223:Uo,230:[0,.43056,0,0,.72222],247:ho,248:[.09722,.52778,0,0,.5],305:Za,338:[0,.68333,0,0,1.01389],339:wA,567:[.19444,.43056,0,0,.30556],710:Uo,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Uo,715:Uo,728:Uo,729:to,730:Ro,732:Ya,733:Uo,915:Wo,916:lA,920:To,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:kl,931:zs,933:To,934:zs,936:To,937:zs,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:No,8217:No,8220:Uo,8221:Uo,8224:Ds,8225:Ds,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:_n,8465:hl,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:hl,8501:Na,8592:Bn,8593:Xs,8594:Bn,8595:Xs,8596:Bn,8597:ms,8598:al,8599:al,8600:al,8601:al,8614:[.011,.511,0,0,1],8617:Wc,8618:Wc,8636:Bn,8637:Bn,8640:Bn,8641:Bn,8652:[.011,.671,0,0,1],8656:Bn,8657:Dl,8658:Bn,8659:Dl,8660:Bn,8661:[.25,.75,0,0,.61111],8704:jl,8706:[0,.69444,.05556,.08334,.5309],8707:jl,8709:Js,8711:lA,8712:cA,8715:cA,8722:ho,8723:ho,8725:ms,8726:ms,8727:po,8728:hc,8729:hc,8730:[.2,.8,0,0,.83334],8733:wA,8734:ci,8736:Pi,8739:Da,8741:ms,8743:Pl,8744:Pl,8745:Pl,8746:Pl,8747:[.19444,.69444,.11111,0,.41667],8764:Ie,8768:[.19444,.69444,0,0,.27778],8771:Ys,8773:[-.022,.589,0,0,1],8776:ol,8781:Ys,8784:[-.133,.67,0,0,.778],8801:Ys,8804:Vr,8805:Vr,8810:sl,8811:sl,8826:Qn,8827:Qn,8834:Qn,8835:Qn,8838:Vr,8839:Vr,8846:Pl,8849:Vr,8850:Vr,8851:Pl,8852:Pl,8853:ho,8854:ho,8855:ho,8856:ho,8857:ho,8866:Na,8867:Na,8868:Kn,8869:Kn,8872:[.249,.75,0,0,.867],8900:hc,8901:[-.05555,.44445,0,0,.27778],8902:po,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:mo,8969:mo,8970:mo,8971:mo,8994:Go,8995:Go,9136:Ps,9137:Ps,9651:kc,9657:po,9661:kc,9667:po,9711:al,9824:yl,9825:yl,9826:yl,9827:yl,9837:[0,.75,0,0,.38889],9838:Gc,9839:Gc,10216:ks,10217:ks,10222:Ps,10223:Ps,10229:[.011,.511,0,0,1.609],10230:xA,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:xA,10815:kl,10927:Vr,10928:Vr,57376:CA},"Math-BoldItalic":{32:dr,48:pc,49:pc,50:pc,51:mc,52:mc,53:mc,54:Xn,55:mc,56:Xn,57:mc,65:cn,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:td,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Uu,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:KA,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:vd,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:dr,915:[0,.68611,.15972,0,.65694],916:ba,920:[0,.68611,.03194,0,.86722],923:ed,926:[0,.68611,.07458,0,.84125],928:td,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:lu,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:vd,960:[0,.44444,.03704,0,.68241],961:Ru,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:Ru,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:dr,48:fl,49:fl,50:fl,51:cu,52:cu,53:cu,54:Io,55:cu,56:Io,57:cu,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:o,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:c,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:l,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:dr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:c,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:o,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:l,960:[0,.43056,.03588,0,.57003],961:b,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:b,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:dr,33:[0,.69444,0,0,.36667],34:xr,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:Dt,40:I,41:I,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:C,49:C,50:C,51:C,52:C,53:C,54:C,55:C,56:C,57:C,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:ae,64:N,65:N,66:N,67:_e,68:$,69:[0,.69444,0,0,.64167],70:Na,71:N,72:$,73:[0,.69444,0,0,.33056],74:ae,75:Ze,76:ht,77:[0,.69444,0,0,.97778],78:$,79:$,80:_e,81:[.10556,.69444,0,0,.79445],82:_e,83:Na,84:N,85:Ze,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:N,89:[0,.69444,.0275,0,.73334],90:Pt,91:Ve,93:Ve,94:C,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:it,99:[0,.45833,0,0,.48889],100:it,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:it,105:ye,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:ye,109:[0,.45833,0,0,.86667],110:bt,111:[0,.45833,0,0,.55],112:kt,113:kt,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:bt,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:dr,168:C,176:N,180:C,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:C,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:C,729:Dt,730:N,732:C,733:C,915:ht,916:[0,.69444,0,0,.91667],920:ir,923:Pt,926:N,928:$,931:$,933:ir,934:$,936:ir,937:$,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Dt,8217:Dt,8220:xr,8221:xr},"SansSerif-Italic":{32:dr,33:[0,.69444,.05733,0,.31945],34:rr,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:Ct,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:Ue,45:[0,.44444,.01946,0,.33333],46:Ke,47:[.25,.75,.13164,0,.5],48:Hr,49:Hr,50:Hr,51:Hr,52:Hr,53:Hr,54:Hr,55:Hr,56:Hr,57:Hr,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:Et,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:hn,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Re,77:[0,.69444,.08094,0,.875],78:hn,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:Vt,95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:dr,168:[0,.67937,.06385,0,.5],176:Or,184:Lr,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Vt,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Jr,715:Uo,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Or,732:[0,.67659,.08826,0,.5],733:Jr,915:[0,.69444,.13372,0,.54167],916:Ar,920:[0,.69444,.07555,0,.77778],923:Na,926:[0,.69444,.12816,0,.66667],928:hn,931:[0,.69444,.11983,0,.72222],933:gt,934:[0,.69444,.04603,0,.72222],936:gt,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Ct,8217:Ct,8220:[0,.69444,.14205,0,.5],8221:rr},"SansSerif-Regular":{32:dr,33:[0,.69444,0,0,.31945],34:Uo,35:T,36:Js,37:re,38:[0,.69444,0,0,.75834],39:No,40:ks,41:ks,42:Be,43:ho,44:Ue,45:[0,.44444,0,0,.33333],46:Ke,47:ms,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:ut,64:Et,65:Et,66:Et,67:wn,68:[0,.69444,0,0,.72223],69:le,70:[0,.69444,0,0,.56945],71:Et,72:Ye,73:No,74:ut,75:[0,.69444,0,0,.69445],76:Re,77:[0,.69444,0,0,.875],78:Ye,79:[0,.69444,0,0,.73611],80:wn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:jl,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:Et,89:[0,.69444,.025,0,.66667],90:Na,91:et,93:et,94:Uo,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:yt,99:_t,100:yt,101:_t,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:yt,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:lr,111:[0,.44444,0,0,.5],112:Mt,113:Mt,114:[0,.44444,.01389,0,.34167],115:Rt,116:[0,.57143,0,0,.36111],117:lr,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:dr,168:[0,.67937,0,0,.5],176:Et,184:Lr,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Uo,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Uo,715:Uo,728:Uo,729:[0,.67937,0,0,.27778],730:Et,732:[0,.67659,0,0,.5],733:Uo,915:Re,916:Ar,920:Kn,923:Na,926:Et,928:Ye,931:hl,933:Kn,934:hl,936:Kn,937:hl,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:No,8217:No,8220:Uo,8221:Uo},"Script-Regular":{32:dr,65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:dr},"Size1-Regular":{32:dr,40:gr,41:gr,47:_r,91:dn,92:_r,93:dn,123:ar,125:ar,160:dr,710:vt,732:vt,770:vt,771:vt,8214:[-99e-5,.601,0,0,.77778],8593:Fn,8595:Fn,8657:gn,8659:gn,8719:yr,8720:yr,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:Rr,8748:Ur,8749:Ur,8750:Rr,8896:wr,8897:wr,8898:wr,8899:wr,8968:Zr,8969:Zr,8970:Zr,8971:Zr,9168:ns,10216:Zr,10217:Zr,10752:Cn,10753:Cn,10754:Cn,10756:wr,10758:wr},"Size2-Regular":{32:dr,40:Gn,41:Gn,47:Zn,91:Nn,92:Zn,93:Nn,123:di,125:di,160:dr,710:zn,732:zn,770:zn,771:zn,8719:Ii,8720:Ii,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:_a,8748:vn,8749:vn,8750:_a,8896:Hi,8897:Hi,8898:Hi,8899:Hi,8968:Ri,8969:Ri,8970:Ri,8971:Ri,10216:ia,10217:ia,10752:Ki,10753:Ki,10754:Ki,10756:Hi,10758:Hi},"Size3-Regular":{32:dr,40:Qa,41:Qa,47:Gi,91:As,92:Gi,93:As,123:Sn,125:Sn,160:dr,710:fi,732:fi,770:fi,771:fi,8730:[.95003,1.45,0,0,1],8968:mi,8969:mi,8970:mi,8971:mi,10216:Sn,10217:Sn},"Size4-Regular":{32:dr,40:$n,41:$n,47:ai,91:kn,92:ai,93:kn,123:Qi,125:Qi,160:dr,710:Xi,732:Xi,770:Xi,771:Xi,8730:[1.25003,1.75,0,0,1],8968:qi,8969:qi,8970:qi,8971:qi,9115:Mo,9116:Mi,9117:Mo,9118:Mo,9119:Mi,9120:Mo,9121:ro,9122:ns,9123:ro,9124:ro,9125:ns,9126:ro,9127:Qo,9128:bn,9129:no,9130:[0,.3,0,0,.88889],9131:Qo,9132:bn,9133:no,9143:[.88502,.915,0,0,1.05556],10216:Qi,10217:Qi,57344:Cs,57345:Cs,57680:ga,57681:ga,57682:ga,57683:ga},"Typewriter-Regular":{32:Ko,33:en,34:en,35:en,36:fa,37:fa,38:en,39:en,40:fa,41:fa,42:[0,.52083,0,0,.525],43:so,44:[.13889,.125,0,0,.525],45:so,46:[0,.125,0,0,.525],47:fa,48:en,49:en,50:en,51:en,52:en,53:en,54:en,55:en,56:en,57:en,58:Si,59:[.13889,.43056,0,0,.525],60:Va,61:[-.19549,.41562,0,0,.525],62:Va,63:en,64:en,65:en,66:en,67:en,68:en,69:en,70:en,71:en,72:en,73:en,74:en,75:en,76:en,77:en,78:en,79:en,80:en,81:[.13889,.61111,0,0,.525],82:en,83:en,84:en,85:en,86:en,87:en,88:en,89:en,90:en,91:fa,92:fa,93:fa,94:en,95:[.09514,0,0,0,.525],96:en,97:Si,98:en,99:Si,100:en,101:Si,102:en,103:bo,104:en,105:en,106:[.22222,.61111,0,0,.525],107:en,108:en,109:Si,110:Si,111:Si,112:bo,113:bo,114:Si,115:Si,116:[0,.55358,0,0,.525],117:Si,118:Si,119:Si,120:Si,121:bo,122:Si,123:fa,124:fa,125:fa,126:en,127:en,160:Ko,176:en,184:[.19445,0,0,0,.525],305:Si,567:bo,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:en,715:en,728:en,730:en,770:en,771:en,776:en,915:en,916:en,920:en,923:en,926:en,928:en,931:en,933:en,934:en,936:en,937:en,8216:en,8217:en,8242:en,9251:[.11111,.21944,0,0,.525]}},gs=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,is=10,us=.25,bl=1.2,as=.431,$s={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[as,as,as],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:[us,us,us],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]},ds=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Lo=5,wo={"\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 qs(e,t){e===void 0&&(e=77);const r=Bs[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 n=String.fromCodePoint(e);if(n in wo)e=wo[n].codePointAt(0);else if(gs.test(n))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 Ol={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]},zl={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]},wl={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 BA(e){if(zl[e]){const[q,Ae,Qe]=zl[e],At=`<span class="stretchy" style="height:${Qe}em"><svg width="100%" height="${Qe}em" viewBox="0 0 ${q} ${Ae}" preserveAspectRatio="none" ><path fill="currentcolor" d="${wl[e]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Qe/2)/100}em;min-width:0">${At}</span>`}const[t,r,n,i]=Ol[e];let s,A;const L=n/1e3;t.length===3?(s=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],A=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(s=["slice-1-of-2","slice-2-of-2"],A=["xMinYMin","xMaxYMin"]):(s=["slice-1-of-1"],A=[i]);const z=t.map((q,Ae)=>`<span class="${s[Ae]}" style=height:${L}em><svg width=400em height=${L}em viewBox="0 0 400000 ${n}" preserveAspectRatio="${A[Ae]} slice"><path fill="currentcolor" d="${wl[q]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${L}em;min-width:${r}em;">${z}</span>`}function Xc(e){return Ol[e]?Ol[e][2]/1e3:zl[e][2]}function xa(e){const t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n===13&&e.charCodeAt(r+1)===10&&(n=10,r++),(n===13||n===12)&&(n=10),n===0&&(n=65533),n>=55296&&n<=56319){const i=e.charCodeAt(r+1);if(i>=56320&&i<=57343){const s=n-55296,A=i-56320;n=Tu(2,16)+s*Tu(2,10)+A,r++}}t.push(n)}return t}var ea=8205,vs=[[ea,1],[65038,2],[127995,5],[129456,4],[917536,96]],go,fs=[127462,127487];function Ss(e){var t;if(go===void 0){go={};for(const r of vs)for(let n=r[0];n<=r[0]+r[1]-1;n++)go[n]=!0}return(t=go[e])!=null?t:!1}function Es(e){return e>=fs[0]&&e<=fs[1]}function _s(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],r=xa(e);let n=0;for(;n<r.length;){const i=r[n++],s=r[n];if(s===ea){const A=n-1;for(n+=2;r[n]===ea;)n+=2;t.push(String.fromCodePoint(...r.slice(A,n-A+1)))}else if(Ss(s)){const A=n-1;for(;Ss(r[n]);)n+=r[n]===ea?2:1;t.push(String.fromCodePoint(...r.slice(A,2*n-A-1)))}else Es(i)?(n+=1,t.push(String.fromCodePoint(...r.slice(n-2,2)))):t.push(String.fromCodePoint(i))}return t}var Dc=class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=_s(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 ll(e,t){var r,n,i,s;const A=[];let L=e.next();if(L&&L!=="\\relax"){if(L==="\\noexpand")L=e.next(),L&&A.push(L);else if(L==="\\obeyspaces")e.obeyspaces=!0;else if(L==="\\bgroup")A.push("<{>");else if(L==="\\egroup")A.push("<}>");else if(L==="\\string"){if(L=e.next(),L)if(L.startsWith("\\"))for(const z of L)A.push(z==="\\"?"\\backslash":z);else L==="<{>"?A.push("\\{"):L==="<space>"?A.push("~"):L==="<}>"&&A.push("\\}")}else if(L==="\\csname"){for(;e.peek()==="<space>";)e.next();let z="",q=!1,Ae=[];do{if(Ae.length===0)if(/^#[\d?@]$/.test(e.peek())){const Qe=e.get().slice(1);Ae=gc((n=(r=t==null?void 0:t(Qe))!=null?r:t==null?void 0:t("?"))!=null?n:"\\placeholder{}",t),L=Ae[0]}else L=e.next(),Ae=L?[L]:[];q=Ae.length===0,!q&&L==="\\endcsname"&&(q=!0,Ae.shift()),q||(q=L==="<$>"||L==="<$$>"||L==="<{>"||L==="<}>"||typeof L=="string"&&L.length>1&&L.startsWith("\\")),q||(z+=Ae.shift())}while(!q);z&&A.push("\\"+z),A.push(...Ae)}else if(L!=="\\endcsname")if(L.length>1&&L.startsWith("#")){const z=L.slice(1);A.push(...gc((s=(i=t==null?void 0:t(z))!=null?i:t==null?void 0:t("?"))!=null?s:"\\placeholder{}",t))}else A.push(L)}return A}function gc(e,t=null){const r=[];let n="";for(const A of e.toString().split(/\r?\n/)){n&&r.push(n),n=" ";const L=A.match(/((?:\\%)|[^%])*/);L!==null&&r.push(L[0])}const i=new Dc(at(r.join(""))),s=[];do s.push(...ll(i,t));while(!i.end());return s}function Ca(e){let t="";const r=[];for(const n of e)n&&(t&&/^[a-zA-Z\*]/.test(n)&&r.push(t),r.push(n),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(n)&&r.push(" "),t=/\\[a-zA-Z]+\*?$/.test(n)?" ":"");return r.join("")}function So(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:Ca([e,...t.map(r=>`{${r}}`)])}function xl(e){return Ca(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var rc=class Kf{constructor(t){Kf._registry[t]=this}static createAtom(t,r,n){return Kf._registry[t].createAtom(r,pt(r,t),n)}static serialize(t,r){var n;if(!t||t.length===0)return"";if((n=r.skipStyles)!=null&&n){const i=[];for(const s of HA(t)){const A=Kf._registry[s[0].mode];i.push(...A.serialize(s,r))}return Ca(i)}return Ca(Jc(t,r))}static getFont(t,r,n){return Kf._registry[t].getFont(r,n)}};rc._registry={};var Os=rc;function HA(e){const t=[];let r=[],n="NONE";for(const i of e)i.type!=="first"&&(i.mode!==n?(r.length>0&&t.push(r),r=[i],n=i.mode):r.push(i));return r.length>0&&t.push(r),t}function Cl(e,t){const r=[];let n=[],i;for(const s of e)if(s.type!=="first"&&s.style){let A;t==="variant"?(A=s.style.variant,s.style.variantStyle&&s.style.variantStyle!=="up"&&(A+="-"+s.style.variantStyle)):A=s.style[t],A===i?n.push(s):(n.length>0&&r.push(n),n=[s],i=A)}return n.length>0&&r.push(n),r}function jA(e,t){var r;const{parent:n}=e[0],i=n==null?void 0:n.computedStyle.color,s=[];for(const A of HA(e)){const L=t.defaultMode;for(const z of Cl(A,"color")){const q=z[0].computedStyle,Ae=Os._registry[z[0].mode].serialize(z,E(h({},t),{defaultMode:L==="text"?"text":"math"}));!t.skipStyles&&q.color&&q.color!=="none"&&(!n||i!==q.color)?s.push(So("\\textcolor",(r=q.verbatimColor)!=null?r:q.color,Ca(Ae))):s.push(Ca(Ae))}}return s}function zA(e,t){const{parent:r}=e[0],n=r==null?void 0:r.computedStyle.backgroundColor;return Cl(e,"backgroundColor").map(i=>{var s;if(i.length>0||i[0].type!=="box"){const A=i[0].computedStyle;if(A.backgroundColor&&A.backgroundColor!=="none"&&(!r||n!==A.backgroundColor))return So("\\colorbox",(s=A.verbatimBackgroundColor)!=null?s:A.backgroundColor,Ca(jA(i,E(h({},t),{defaultMode:"text"}))))}return Ca(jA(i,t))})}function Jc(e,t){if(e.length===0)return[];const{parent:r}=e[0],n=r==null?void 0:r.computedStyle.fontSize,i=[];for(const s of Cl(e,"fontSize")){const A=s[0].computedStyle.fontSize,L=zA(s,t);L&&(A&&A!=="auto"&&(!r||n!==A)?i.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][A],...L):i.push(...L))}return i}function $l(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 vc(e){if(e.length===0)return"ord";const t=$l(e[0].type),r=$l(e[e.length-1].type);return t&&t===r?t:"ord"}function nc(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 fn=class Gh{constructor(t,r){var n,i,s,A,L;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:S(t)?this.children=t.filter(q=>q!==null):t&&t instanceof Gh&&(this.children=[t]),this.children)for(const q of this.children)q.parent=this;this.type=(n=r==null?void 0:r.type)!=null?n:"ignore",this.isSelected=(r==null?void 0:r.isSelected)===!0,r!=null&&r.caret&&(this.caret=r.caret),this.classes=(i=r==null?void 0:r.classes)!=null?i:"",this.isTight=(s=r==null?void 0:r.isTight)!=null?s:!1,r!=null&&r.attributes&&(this.attributes=r.attributes);let z=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&(z=(L=Os.getFont((A=r.mode)!=null?A:"math",this,E(h({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?L:void 0),z||(z="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(r==null?void 0:r.maxFontSize)!==void 0&&(this.maxFontSize=r.maxFontSize),EA(this,z)}set atomID(t){t===void 0||t.length===0||(this.id=t)}selected(t){if(this.isSelected!==t&&(this.isSelected=t,this.children))for(const r of this.children)r.selected(t)}setStyle(t,r,n){if(r===void 0)return;const i=nc(r,n);i.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[t]=i)}setTop(t){Number.isFinite(t)&&Math.abs(t)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=nc(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"]=nc(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"]=nc(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"]=nc(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 n=t.color;n&&n!==r.color&&this.setStyle("color",n);let i=t.backgroundColor;this.isSelected&&(i=ge(i)),i&&i!==r.backgroundColor&&(this.setStyle("background-color",i),this.setStyle("display","inline-block"));const s=t.scalingFactor;return this.scale=s,this.skew*=s,this.italic*=s,this}toMarkup(){var t,r,n,i;let s=(t=this.value)!=null?t:"";if(this.children)for(const Ft of this.children)s+=Ft.toMarkup();let A="";if(this.svgBody)A=BA(this.svgBody);else if(this.svgOverlay){A='<span style="',A+="display: inline-block;",A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,A+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,A+='">',A+=s,A+="</span>",A+='<svg style="position:absolute;overflow:visible;',A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Ft=(r=this.cssProperties)==null?void 0:r.padding;Ft?(A+=`top:${Ft};`,A+=`left:${Ft};`,A+=`width:calc(100% - 2 * ${Ft} );`):A+="top:0;left:0;width:100%;",A+="z-index:2;",A+='"',this.svgStyle&&(A+=this.svgStyle),A+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,A+=`>${this.svgOverlay}</svg>`}let L="";const z=this.classes.split(" ");z.push((n={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?n:""),this.caret==="latex"&&z.push("ML__latex-caret"),this.isSelected&&z.push("ML__selected");const q=z.length===1?z[0]:z.filter((Ft,Ot,Fr)=>Ft.length>0&&Fr.indexOf(Ft)===Ot).join(" ");if(q.length>0&&(L+=` class="${q}"`),this.id&&(L+=` data-atom-id=${this.id}`),this.cssId&&(L+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(L+=" "+Object.keys(this.attributes).map(Ft=>`${Ft}="${this.attributes[Ft]}"`).join(" ")),this.htmlData){const Ft=this.htmlData.split(",");for(const Ot of Ft){const Fr=Ot.match(/([^=]+)=(.+$)/);if(Fr){const In=Fr[1].trim().replace(/ /g,"-");In&&(L+=` data-${In}="${Fr[2]}" `)}else{const In=Ot.trim().replace(/ /g,"-");In&&(L+=` data-${In} `)}}}const Ae=(i=this.cssProperties)!=null?i:{};this.hasExplicitWidth&&Ae.width===void 0&&(Ae.width=`${Math.ceil(this._width*100)/100}em`);const Qe=Object.keys(Ae).map(Ft=>`${Ft}:${Ae[Ft]}`);if(this.scale!==void 0&&this.scale!==1&&(s.length>0||A.length>0)&&Qe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Ft=this.htmlStyle.split(";");let Ot="";for(const Fr of Ft){const In=Fr.match(/([^=]+):(.+$)/);if(In){const Br=In[1].trim().replace(/ /g,"-");Br&&(Ot+=`${Br}:${In[2]};`)}}Ot&&(L+=` style="${Ot}"`)}Qe.length>0&&(L+=` style="${Qe.join(";")}"`);let At="";return L.length>0||A.length>0?At=`<span${L}>${s}${A}</span>`:At=s,this.caret==="text"?At+='<span class="ML__text-caret"></span>':this.caret==="math"&&(At+='<span class="ML__caret"></span>'),At}tryCoalesceWith(t){if(this.svgBody||!this.value||t.svgBody||!t.value)return!1;const r=this.children&&this.children.length>0,n=t.children&&t.children.length>0;if(r||n)return!1;if(t.cssProperties||this.cssProperties){for(const z of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&z in t.cssProperties||this.cssProperties&&z in this.cssProperties)return!1}const i=this.cssProperties?Object.keys(this.cssProperties).length:0,s=t.cssProperties?Object.keys(t.cssProperties).length:0;if(i!==s)return!1;if(i>0){for(const z of Object.keys(this.cssProperties))if(this.cssProperties[z]!==t.cssProperties[z])return!1}const A=this.classes.trim().replace(/\s+/g," ").split(" "),L=t.classes.trim().replace(/\s+/g," ").split(" ");if(A.length!==L.length)return!1;A.sort(),L.sort();for(const[z,q]of A.entries())if(q==="vertical-separator"||q!==L[z])return!1;return this.value+=t.value,this.height=Math.max(this.height,t.height),this.depth=Math.max(this.depth,t.depth),this._width=this._width+t._width,this.maxFontSize=Math.max(this.maxFontSize,t.maxFontSize),this.italic=t.italic,!0}};function Fs(e){if(!e||e.length===0)return[];e[0].children=Fs(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=Fs(e[r].children),t.push(e[r]));return t}function SA(e){return e.children&&(e.children=Fs(e.children)),e}function AA(e,t){if(!e)return new fn(null,t);const r=new fn(null,{classes:"ML__strut",type:"ignore"});r.setStyle("height",Math.max(0,e.height),"em");const n=[r];if(e.depth!==0){const i=new fn(null,{classes:"ML__strut--bottom",type:"ignore"});i.setStyle("height",e.height+e.depth,"em"),i.setStyle("vertical-align",-e.depth,"em"),n.push(i)}return n.push(e),new fn(n,E(h({},t),{type:"lift"}))}function sa(e){const t=Xc(e)/2,r=new fn(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function EA(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 n=0;n<e.value.length;n++){const i=qs(e.value.codePointAt(n),t);e.height=Math.max(e.height,i.height),e.depth=Math.max(e.depth,i.depth),e._width+=i.width,e.skew=i.skew,e.italic=i.italic}return}if(e.children&&e.children.length>0){let n=-1/0,i=-1/0,s=0;for(const A of e.children)A.height>n&&(n=A.height),A.depth>i&&(i=A.depth),s=Math.max(s,(r=A.maxFontSize)!=null?r:0);e.height=n,e.depth=i,e._width=e.children.reduce((A,L)=>A+L.width,0),e.maxFontSize=s}}function $A(e){if("individualShift"in e){const t=e.individualShift;let r=t[0];const n=[r],i=-r.shift-r.box.depth;let s=i;for(let A=1;A<t.length;A++){const L=t[A],z=-L.shift-s-L.box.depth,q=z-(r.box.height+r.box.depth);s=s+z,n.push(q),n.push(L),r=L}return[n,i]}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 Zl(e){var t;const[r,n]=$A(e);if(!r)return[[],0,0];const i=new fn(null,{classes:"pstrut"});let s=0;for(const Ot of r)if(typeof Ot!="number"){const Fr=Ot.box;s=Math.max(s,Fr.maxFontSize,Fr.height)}s+=2,i.height=s,i.setStyle("height",s,"em");const A=[];let L=n,z=n,q=n,Ae=0;for(const Ot of r){if(typeof Ot=="number")q+=Ot;else{const Fr=Ot.box,In=(t=Ot.classes)!=null?t:[],Br=new fn([i,Fr],{classes:In.join(" "),style:Ot.style});Fr.setStyle("height",Fr.height+Fr.depth,"em"),Fr.setStyle("display","inline-block"),Br.setStyle("top",-s-q-Fr.depth,"em"),Ot.marginLeft&&Br.setStyle("margin-left",Ot.marginLeft,"em"),Ot.marginRight&&Br.setStyle("margin-right",Ot.marginRight,"em"),A.push(Br),q+=Fr.height+Fr.depth,Ae=Math.max(Ae,Br.width)}L=Math.min(L,q),z=Math.max(z,q)}A.forEach(Ot=>{Ot.softWidth=Ae});const Qe=new fn(A,{classes:"vlist"});if(Qe.softWidth=Ae,Qe.height=z,Qe.setStyle("height",z,"em"),L>=0)return[[new fn(Qe,{classes:"vlist-r"})],z,-L];const At=new fn(new fn(null),{classes:"vlist"});At.height=-L,At.setStyle("height",-L,"em");const Ft=new fn(8203,{classes:"vlist-s",maxFontSize:0});return Ft.softWidth=0,Ft.height=0,Ft.depth=0,[[new fn([Qe,Ft],{classes:"vlist-r"}),new fn(At,{classes:"vlist-r"})],z,-L]}var Xo=class extends fn{constructor(e,t){var r;const[n,i,s]=Zl(e);super(n.length===1?n[0]:n,{type:t==null?void 0:t.type,classes:((r=t==null?void 0:t.classes)!=null?r:"")+" vlist-t"+(n.length===2?" vlist-t2":"")}),this.height=i,this.depth=s,this.softWidth=n.reduce((A,L)=>Math.max(A,L.width),0)}};function ZA(e,t){var r,n,i,s,A;const L=e.metrics,z=new fn(t.base),q=(r=t.baseShift)!=null?r:0,Ae=(n=t.slant)!=null?n:0;let Qe=0,At=0;t.above&&(Qe=(i=t.aboveShift)!=null?i:Math.max(L.bigOpSpacing1,L.bigOpSpacing3-t.above.depth)),t.below&&(At=(s=t.belowShift)!=null?s:Math.max(L.bigOpSpacing2,L.bigOpSpacing4-t.below.height));let Ft=null;if(t.below&&t.above){const Ot=L.bigOpSpacing5+t.below.height+t.below.depth+At+z.depth+q;Ft=new Xo({bottom:Ot,children:[L.bigOpSpacing5,{box:t.below,marginLeft:-Ae,classes:["ML__center"]},At,{box:z,classes:["ML__center"]},Qe,{box:t.above,marginLeft:Ae,classes:["ML__center"]},L.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)Ft=new Xo({top:z.height-q,children:[L.bigOpSpacing5,{box:t.below,marginLeft:-Ae,classes:["ML__center"]},At,{box:z,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const Ot=z.depth+q;Ft=new Xo({bottom:Ot,children:[{box:z,classes:["ML__center"]},Qe,{box:t.above,marginLeft:Ae,classes:["ML__center"]},L.bigOpSpacing5]}).wrap(e)}else{const Ot=z.depth+q;Ft=new Xo({bottom:Ot,children:[{box:z},L.bigOpSpacing5]}).wrap(e)}return new fn(Ft,{type:(A=t.type)!=null?A:"op"})}var Pc=7,yc=6,_A=5,Vl=4,ic=3,lo=2,Ns=1,ts=0,bc=class{constructor(e,t,r){this.id=e,this.sizeDelta=t,this.cramped=r;const n={"-4":2,"-3":1,0:0}[t];this.metrics=Object.keys($s).reduce((i,s)=>E(h({},i),{[s]:$s[s][n]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return Ba[[ts,Ns,ts,Ns,lo,ic,lo,ic][this.id]]}get sub(){return Ba[[ts,ts,ts,ts,lo,lo,lo,lo][this.id]]}get fracNum(){return Ba[[ts,Ns,ts,Ns,lo,ic,Vl,_A][this.id]]}get fracDen(){return Ba[[ts,ts,ts,ts,lo,lo,Vl,Vl][this.id]]}get cramp(){return Ba[[ts,ts,lo,lo,Vl,Vl,yc,yc][this.id]]}get isTight(){return this.sizeDelta<0}},va={7:new bc(Pc,0,!1),6:new bc(yc,0,!0),5:new bc(_A,0,!1),4:new bc(Vl,0,!0),3:new bc(ic,-3,!1),2:new bc(lo,-3,!0),1:new bc(Ns,-4,!1),0:new bc(ts,-4,!0)},Ba=E(h({},va),{displaystyle:va[Pc],textstyle:va[_A],scriptstyle:va[ic],scriptscriptstyle:va[Ns]});function Zs(e,t){var r;if(!e)return 0;const n={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:is,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 i=Tu(10,t);return Math.round(e.dimension/is*n*i)/i}return e.dimension*n}function Wl(e,t){if(e===null)return 0;const r=Zs(e)/is;if(Number.isFinite(t)){const n=Tu(10,t);return Math.round(r*n)/n}return r}function Nl(e){var t;return`${e.dimension}${(t=e.unit)!=null?t:"pt"}`}function VA(e){let t=Nl(e.glue);return e.grow&&e.grow.dimension!==0&&(t+=` plus ${Nl(e.grow)}`),e.shrink&&e.shrink.dimension!==0&&(t+=` minus ${Nl(e.shrink)}`),t}function os(e){var t,r;if(e==null)return null;let n="";if("dimension"in e&&(n=`${e.dimension}${(t=e.unit)!=null?t:"pt"}`),"glue"in e&&(n=VA(e)),"number"in e)if(!("base"in e)||e.base==="decimal")n=Number(e.number).toString();else if(e.base==="alpha")n=`\`${String.fromCodePoint(e.number)}`;else{const i=Math.round(e.number)>>>0;e.base==="hexadecimal"?(n=Number(i).toString(16).toUpperCase(),i<=255?n=n.padStart(2,"0"):i<=65535?n=n.padStart(4,"0"):i<=16777215?n=n.padStart(6,"0"):n=n.padStart(8,"0"),n=`"${n}`):e.base==="octal"&&(n=Number(i).toString(8),i<=63?n=n.padStart(2,"0"):i<=30583?n=n.padStart(4,"0"):n=n.padStart(8,"0"),n=`'${n}`)}return"register"in e&&("factor"in e&&(e.factor===-1?n="-":e.factor!==1&&(n=Number(e.factor).toString())),"global"in e&&e.global&&(n+="\\global"),n+=`\\${e.register}`),"string"in e&&(n=e.string),(r=e.relax)!=null&&r&&(n+="\\relax"),n}function ys(e,t){return e==null?null:"number"in e?E(h({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?E(h({},e),{factor:e.factor*t}):E(h({},e),{factor:t}):"dimension"in e?E(h({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:ys(e.glue,t),shrink:ys(e.shrink,t),grow:ys(e.grow,t)}:e.shrink?{glue:ys(e.glue,t),shrink:ys(e.shrink,t)}:e.grow?{glue:ys(e.glue,t),grow:ys(e.grow,t)}:{glue:ys(e.glue,t)}:null}var ac={"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 FA(){return h({},ac)}function Oc(){return{registers:FA(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:W.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:je,backgroundColorMap:X,getMacro:e=>zt(e,lt())}}var la=class Xh{constructor(t,r){var n,i,s,A,L,z,q,Ae,Qe,At,Ft,Ot,Fr,In,Br;let an;t!=null&&t.parent?(this.parent=t.parent,an=t.parent,this.registers={}):(an=h(h({},Oc()),(n=t==null?void 0:t.from)!=null?n:{}),this.registers=an.registers),an.atomIdsSettings&&(this.atomIdsSettings=h({},an.atomIdsSettings)),this.renderPlaceholder=an.renderPlaceholder,this.isPhantom=(A=(s=t==null?void 0:t.isPhantom)!=null?s:(i=this.parent)==null?void 0:i.isPhantom)!=null?A:!1,this.letterShapeStyle=an.letterShapeStyle,this.minFontScale=an.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=(z=(L=this.parent)==null?void 0:L.color)!=null?z:"",r!=null&&r.backgroundColor&&r.backgroundColor!=="none"?this.backgroundColor=r.backgroundColor:this.backgroundColor=(Ae=(q=this.parent)==null?void 0:q.backgroundColor)!=null?Ae:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Qe=this.parent)==null?void 0:Qe.size)?this.size=r.fontSize:this.size=(Ft=(At=this.parent)==null?void 0:At.size)!=null?Ft:Lo;let Rn=(Fr=(Ot=this.parent)==null?void 0:Ot.mathstyle)!=null?Fr:Ba.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(an instanceof Xh)switch(t.mathstyle){case"cramp":Rn=Rn.cramp;break;case"superscript":Rn=Rn.sup;break;case"subscript":Rn=Rn.sub;break;case"numerator":Rn=Rn.fracNum;break;case"denominator":Rn=Rn.fracDen;break}switch(t.mathstyle){case"textstyle":Rn=Ba.textstyle;break;case"displaystyle":Rn=Ba.displaystyle;break;case"scriptstyle":Rn=Ba.scriptstyle;break;case"scriptscriptstyle":Rn=Ba.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Rn,this.smartFence=an.smartFence,this.placeholderSymbol=an.placeholderSymbol,this.colorMap=(In=an.colorMap)!=null?In:pn=>pn,this.backgroundColorMap=(Br=an.backgroundColorMap)!=null?Br:pn=>pn,this.getMacro=an.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===Pc||this.mathstyle.id===yc}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(ds[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 n=this.registers[t];return typeof n=="object"&&"glue"in n?n:typeof n=="object"&&"dimension"in n?{glue:{dimension:n.dimension}}:typeof n=="number"?{glue:{dimension:n}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(t)}getRegisterAsEm(t,r){return Wl(this.getRegisterAsDimension(t),r)}getRegisterAsDimension(t){var r;if((r=this.registers)!=null&&r[t]){const n=this.registers[t];return typeof n=="object"&&"glue"in n?n.glue:typeof n=="object"&&"dimension"in n?n:typeof n=="number"?{dimension:n}: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 n=1;"factor"in t&&t.factor!==1&&t.factor!==void 0&&(n=t.factor);const i=r.getRegister(t.register);if(i===void 0)return;if(typeof i=="string")return{string:Number(i).toString()+i};if(typeof i=="number")return{number:n*i};const s=r.evaluate(i);if(s!==void 0)return"string"in s?{string:Number(i).toString()+s.string}:"number"in s?{number:n*s.number}:"dimension"in s?E(h({},s),{dimension:n*s.dimension}):"glue"in s?E(h({},s),{glue:E(h({},s.glue),{dimension:n*s.glue.dimension}),shrink:s.shrink?E(h({},s.shrink),{dimension:n*s.shrink.dimension}):void 0,grow:s.grow?E(h({},s.grow),{dimension:n*s.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 n=this.toDimension(t);return n===null?0:Zs(n,r)/is}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,n;if(t===null)return null;const i=this.evaluate(t);return i===void 0?null:"string"in i?(n=(r=this.colorMap)==null?void 0:r.call(this,i.string))!=null?n:i.string:null}toBackgroundColor(t){var r,n;if(t===null)return null;const i=this.evaluate(t);return i===void 0?null:"string"in i?(n=(r=this.backgroundColorMap)==null?void 0:r.call(this,i.string))!=null?n:i.string:null}},Nc=["body","above","below","superscript","subscript"];function Gl(e){return typeof e=="string"&&Nc.includes(e)}function IA(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var zr=class Yu{constructor(t){var r,n,i,s,A,L;this.type=t.type,typeof t.value=="string"&&(this.value=t.value),this.command=(n=(r=t.command)!=null?r:this.value)!=null?n:"",this.mode=(i=t.mode)!=null?i:"math",t.isFunction&&(this.isFunction=!0),t.limits&&(this.subsupPlacement=t.limits),this.style=h({},t.style),this.displayContainsHighlight=(s=t.displayContainsHighlight)!=null?s:!1,this.captureSelection=(A=t.captureSelection)!=null?A:!1,this.skipBoundary=(L=t.skipBoundary)!=null?L:!1,t.verbatimLatex!==void 0&&t.verbatimLatex!==null&&(this.verbatimLatex=t.verbatimLatex),t.args&&(this.args=t.args),t.body&&(this.body=t.body),this._changeCounter=0}static createBox(t,r,n){var i;if(!r)return null;const s=yd(r),A=[];for(const z of s){const q=z[0].style,Ae=Qu(t,z,{style:{color:q.color,backgroundColor:q.backgroundColor,fontSize:q.fontSize}});Ae&&A.push(Ae)}if(A.length===0)return null;const L=((i=n==null?void 0:n.classes)!=null?i:"").trim();return A.length===1&&!L&&!(n!=null&&n.type)?A[0].wrap(t):new fn(A,{classes:L,type:n==null?void 0:n.type}).wrap(t)}static serialize(t,r){return Os.serialize(t,r)}static commonAncestor(t,r){if(t===r||t.parent===r.parent)return t.parent;const n=new WeakSet;let{parent:i}=t;for(;i;)n.add(i),i=i.parent;for(i=r.parent;i;){if(n.has(i))return i;i=i.parent}console.assert(!!i)}static fromJson(t){return typeof t=="string"?new Yu({type:"mord",value:t,mode:"math"}):new Yu(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=h({},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=GA(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(n=>n.type!=="first").map(n=>n.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=pt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?Ca([So(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?Ca([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Os.serialize(this.body,E(h({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return Os.serialize(this.above,t)}belowToLatex(t){return Os.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=E(h({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const n=Os.serialize(this.subscript,t);n.length===0?r+="_{}":n.length===1?/^[0-9]$/.test(n)?r+=`_${n}`:r+=`_{${n}}`:r+=`_{${n}}`}if(this.branch("superscript")!==void 0){const n=Os.serialize(this.superscript,t);n.length===0?r+="^{}":n.length===1?n==="\u2032"?r+="^\\prime ":n==="\u2033"?r+="^\\doubleprime ":/^[0-9]$/.test(n)?r+=`^${n}`:r+=`^{${n}}`:r+=`^{${n}}`}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(Gl(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of Nc)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(Gl(t)),Gl(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 IA(this.parentBranch)?this.parentBranch[0]:-1}get col(){return IA(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 n=typeof this.style.verbatimColor=="string",i=typeof this.style.verbatimBackgroundColor=="string",s=h(h({},(r=(t=this.parent)==null?void 0:t.computedStyle)!=null?r:{}),this.style);return delete s.variant,delete s.variantStyle,i||delete s.verbatimBackgroundColor,n||delete s.verbatimColor,s}applyStyle(t){this.isDirty=!0,this.style=h(h({},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,n;return this.hasEmptyBranch("body")?this:(console.assert(((t=this.body)==null?void 0:t[0].type)==="first"),(n=(r=this.body[1])==null?void 0:r.getInitialBaseElement())!=null?n: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 n;if(!t||(console.assert(Gl(r)),!Gl(r)))return;console.assert(((n=t[0])==null?void 0:n.type)!=="first");const i=[this.makeFirstAtom(r),...t];this._branches?this._branches[r]=i:this._branches={[r]:i};for(const s of t)s.parent=this,s.parentBranch=r;this.isDirty=!0}makeFirstAtom(t){const r=new Yu({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 n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r),0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildAfter(t,r){console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r)+1,0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildren(t,r){const n=this.createBranch(r);for(const i of t)i.parent=this,i.parentBranch=r,n.push(i);this.isDirty=!0}addChildrenAfter(t,r){console.assert(t.length===0||t[0].type!=="first"),console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r)+1,0,...t),this.isDirty=!0;for(const i of t)i.parent=this,i.parentBranch=r.parentBranch;return t[t.length-1]}removeBranch(t){const r=this.branch(t);if(Gl(t)&&(this._branches[t]=void 0),!r)return[];for(const n of r)n.parent=void 0,n.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),n=r.indexOf(t);console.assert(n>=0),r.splice(n,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 Nc)if(this._branches[r])for(const n of this._branches[r])t.push(...n.children),t.push(n);return this._children=t,t}render(t){if(this.type==="first"&&!t.atomIdsSettings)return null;const r=pt(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const n=new la({parent:t},this.style);let i=this.createBox(n,{classes:this.parent?"":"ML__base"});return i?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(i=this.attachSupsub(n,{base:i})),i.wrap(n)):null}attachSupsub(t,r){var n;const i=r.base,s=this.superscript,A=this.subscript;if(!s&&!A)return i;let L=null,z=null;const q=(n=r.isCharacterBox)!=null?n:this.isCharacterBox();let Ae=0;if(s){const Fr=new la({parent:t,mathstyle:"superscript"});L=Yu.createBox(Fr,s),q||(Ae=i.height-t.metrics.supDrop*Fr.scalingFactor)}let Qe=0;if(A){const Fr=new la({parent:t,mathstyle:"subscript"});z=Yu.createBox(Fr,A),q||(Qe=i.depth+t.metrics.subDrop*Fr.scalingFactor)}let At;t.isDisplayStyle?At=t.metrics.sup1:t.isCramped?At=t.metrics.sup3:At=t.metrics.sup2;const Ft=.5/is/t.scalingFactor;let Ot=null;if(z&&L){Ae=Math.max(Ae,At,L.depth+.25*t.metrics.xHeight),Qe=Math.max(Qe,t.metrics.sub2);const Fr=t.metrics.defaultRuleThickness;if(Ae-L.depth-(z.height-Qe)<4*Fr){Qe=4*Fr-(Ae-L.depth)+z.height;const Br=.8*t.metrics.xHeight-(Ae-L.depth);Br>0&&(Ae+=Br,Qe-=Br)}const In=this.isExtensibleSymbol&&i.italic?-i.italic:0;Ot=new Xo({individualShift:[{box:z,shift:Qe,marginLeft:In},{box:L,shift:-Ae}]}).wrap(t)}else z&&!L?(Qe=Math.max(Qe,t.metrics.sub1,z.height-.8*as),Ot=new Xo({shift:Qe,children:[{box:z,marginRight:Ft,marginLeft:this.isCharacterBox()?-i.italic:0}]})):!z&&L&&(Ae=Math.max(Ae,At,L.depth+.25*as),Ot=new Xo({shift:-Ae,children:[{box:L,marginRight:Ft}]}));return new fn([i,new fn(Ot,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const n=this.superscript?Yu.createBox(new la({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,i=this.subscript?Yu.createBox(new la({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!n&&!i?r.base.wrap(t):ZA(t,E(h({},r),{above:n,below:i}))}bind(t,r){if(!r||t.isPhantom||this.value==="\u200B")return r;let n=this.parent;for(;n&&!n.captureSelection;)n=n.parent;return n!=null&&n.captureSelection||(this.id||(this.id=t.makeID()),r.atomID=this.id),r}createBox(t,r){var n,i,s,A;const L=(n=this.value)!=null?n:this.body,z=(i=r==null?void 0:r.boxType)!=null?i:$l(this.type);let q=(s=r==null?void 0:r.classes)!=null?s:"";this.mode==="text"&&(q+=" ML__text");const Ae=typeof L=="string"||L===void 0?new fn(L!=null?L:null,{type:z,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:E(h({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:q}):(A=Yu.createBox(t,L,{type:z,classes:q}))!=null?A:new fn(null);return t.isTight&&(Ae.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Ae.italic=0),Ae.right=Ae.italic,this.bind(t,Ae),this.caret&&!this.superscript&&!this.subscript&&(Ae.caret=this.caret),Ae}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 yd(e){let t;const r=[];let n=[];for(const i of e)if(!t&&!i.style)n.push(i);else{const s=i.computedStyle;t&&s.color===t.color&&s.backgroundColor===t.backgroundColor&&s.fontSize===t.fontSize?n.push(i):(n.length>0&&r.push(n),n=[i],t=s)}return n.length>0&&r.push(n),r}function Qu(e,t,r){var n,i,s,A,L;if(!t||t.length===0)return null;const z=new la({parent:e},r.style),q=!((n=z.atomIdsSettings)!=null&&n.groupNumbers);let Ae=[];if(t.length===1){const At=t[0],Ft=At.render(z);Ft&&(q&&At.isSelected&&Ft.selected(!0),Ae=[Ft])}else{let At="",Ft=!0;for(const Ot of t){(i=z.atomIdsSettings)!=null&&i.groupNumbers&&At&&(Ft&&Ot.isDigit()||!Ft&&WA(Ot))&&(z.atomIdsSettings.overrideID=At);const Fr=Ot.render(z);z.atomIdsSettings&&(z.atomIdsSettings.overrideID=void 0),Fr&&((s=z.atomIdsSettings)!=null&&s.groupNumbers&&((Ot.isDigit()||WA(Ot))&&(!At||Ft!==Ot.isDigit())&&(Ft=Ot.isDigit(),At=(A=Ot.id)!=null?A:""),At&&(!(Ot.isDigit()||WA(Ot))||!Ot.hasEmptyBranch("superscript")||!Ot.hasEmptyBranch("subscript"))&&(At="")),q&&Ot.isSelected&&Fr.selected(!0),Ae.push(Fr))}}if(Ae.length===0)return null;const Qe=new fn(Ae,E(h({isTight:z.isTight},r),{type:(L=r.type)!=null?L:"lift"}));return Qe.isSelected=Ae.every(At=>At.isSelected),Qe.wrap(z)}function WA(e){return e.mode==="text"}function GA(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof zr?{atoms:t.map(r=>r.toJson())}:typeof t=="object"&&"group"in t?{group:t.group.map(r=>r.toJson())}:t)}var oc=class Jh extends zr{constructor(t,r,n){super({type:"text",command:t,mode:"text",displayContainsHighlight:!0}),this.value=r,this.verbatimLatex=r,this.applyStyle(n)}static fromJson(t){return new Jh(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:Ht("text",this.value.codePointAt(0))}};function Ku(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let n=0;for(;n<r&&Au(e.ranges[n],t.ranges[n])==="equal";)n++;return n===r?"equal":"different"}}return"different"}function Au(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Is(e){let t=1/0,r=-1/0;for(const n of e.ranges)t=Math.min(t,n[0],n[1]),r=Math.max(r,n[0],n[1]);return[t,r]}function Tc(e){return typeof e=="number"&&!Number.isNaN(e)}function Yc(e){return Array.isArray(e)&&e.length===2}function Uc(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function Hu(e,t){const r=e.at(t);let n;if(r){n=r.mode;let i=r.parent;for(;!n&&i;)i&&(n=i.mode),i=i.parent}return n}function Rc(e,t){if(!t)return"";if(typeof t=="string")return t;if(!e||t.after===void 0)return t.value;let r=!1,n=!1,i=!1,s=!1,A=!1,L=!1,z=!1,q=!1,Ae=!1,Qe=!1,At=!1,Ft=!1,Ot=!1,Fr=!1,In=!1,Br=e[0],an=0;for(;Br!=null&&Br.type&&/^(subsup|placeholder)$/.test(Br.type);)an+=1,Br=e[an];return r=!Br||Br.type==="first",Br&&(Fr=Br.mode==="text",n=!Fr&&Br.type==="mord"&&f.test(Br.value),i=!Fr&&Br.type==="mord"&&/\d+$/.test(Br.value),s=!Fr&&Br.isFunction,A=Br.type==="genfrac",L=Br.type==="surd",z=Br.type==="mbin",q=Br.type==="mrel",Ae=Br.type==="mop"||Br.type==="operator"||Br.type==="extensible-symbol",Qe=Br.type==="mpunct"||Br.type==="minner",At=Br.type==="array",Ft=Br.type==="mopen",Ot=Br.type==="mclose"||Br.type==="leftright",In=Br.type==="space"),t.after.includes("nothing")&&r||t.after.includes("letter")&&n||t.after.includes("digit")&&i||t.after.includes("function")&&s||t.after.includes("frac")&&A||t.after.includes("surd")&&L||t.after.includes("binop")&&z||t.after.includes("relop")&&q||t.after.includes("operator")&&Ae||t.after.includes("punct")&&Qe||t.after.includes("array")&&At||t.after.includes("openfence")&&Ft||t.after.includes("closefence")&&Ot||t.after.includes("text")&&Fr||t.after.includes("space")&&In?t.value:""}function MA(e,t,r){return r?Rc(e,r[t]):""}var D={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Ge(e,t){var r;let n=(r=t==null?void 0:t.format)!=null?r:"auto";return n==="auto"&&([n,e]=Li(e)),n==="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",Lt(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function Lt(e,t){var r,n,i;if(!e)return"";let s=!1,A;const L=(r=t.inlineShortcuts)!=null?r:D;if(!s&&(e.startsWith("^")||e.startsWith("_"))&&(A=Yt(e.slice(1),{inlineShortcuts:L,noWrap:!0}),e=e[0]+"{"+A.match+"}",e+=Lt(A.rest,t),s=!0),s||(A=e.match(/^(sqrt|\u221A)(.*)/),A&&(A=Yt(A[2],{inlineShortcuts:L,noWrap:!0}),e="\\sqrt{"+((n=A.match)!=null?n:"\\placeholder{}")+"}",e+=Lt(A.rest,t),s=!0)),s||(A=e.match(/^(\\cbrt|\u221B)(.*)/),A&&(A=Yt(A[2],{inlineShortcuts:L,noWrap:!0}),e="\\sqrt[3]{"+((i=A.match)!=null?i:"\\placeholder{}")+"}",e+=Lt(A.rest,t),s=!0)),s||(A=e.match(/^abs(.*)/),A&&(A=Yt(A[1],{inlineShortcuts:L,noWrap:!0}),e="\\left|"+A.match+"\\right|",e+=Lt(A.rest,t),s=!0)),s||(A=e.match(/^["”“](.*?)["”“](.*)/),A&&(e="\\text{"+A[1]+"}",e+=Lt(A[2],t),s=!0)),s||(A=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),A&&(e=br(A[1],L),e+=Lt(A[2],t),s=!0)),!s&&/^([fgh])[^a-zA-Z]/.test(e)&&(A=Yt(e.slice(1),{inlineShortcuts:L,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+A.match+"\\right)":e[0]+A.match,e+=Lt(A.rest,t),s=!0),s||(A=e.match(/^([a-zA-Z]+)(.*)/),A&&(e=br(A[1],L),e+=Lt(A[2],t),s=!0)),!s)if(A=Yt(e,{inlineShortcuts:L,noWrap:!0}),A.match&&A.rest[0]==="/"){const z=Yt(A.rest.slice(1),{inlineShortcuts:L,noWrap:!0});z.match&&(e="\\frac{"+A.match+"}{"+z.match+"}"+Lt(z.rest,t)),s=!0}else A.match&&(e=e.startsWith("(")?"\\left("+A.match+"\\right)"+Lt(A.rest,t):A.match+Lt(A.rest,t),s=!0);return s||(A=e.match(/^(\s+)(.*)$/),A&&(e=" "+Lt(A[2],t),s=!0)),e}function Yt(e,t){let r="";e=e.trim();let n=e,i=e.charAt(0),s={"(":")","{":"}","[":"]"}[i];if(s){let A=1,L=1;for(;L<e.length&&A>0;)e[L]===i&&A++,e[L]===s&&A--,L++;A===0?(t.noWrap&&i==="("?r=Lt(e.substring(1,L-1),t):(i==="{"&&s==="}"&&(i="\\{",s="\\}"),r="\\left"+i+Lt(e.substring(1,L-1),t)+"\\right"+s),n=e.slice(Math.max(0,L))):(r=e.substring(1,L),n="")}else{let A=e.match(/^([a-zA-Z]+)/);if(A){let L=MA(null,e,t.inlineShortcuts);if(L)return L=L.replace("_{#?}",""),L=L.replace("^{#?}",""),{match:L,rest:e.slice(L.length)}}if(A=e.match(/^([a-zA-Z])/),A)return{match:A[1],rest:e.slice(1)};if(A=e.match(/^(-)?\d+(\.\d*)?/),A)return{match:A[0],rest:e.slice(A[0].length)};/^\\(left|right)/.test(e)||(A=e.match(/^(\\[a-zA-Z]+)/),A&&(n=e.slice(A[1].length),r=A[1]))}return{match:r,rest:n}}function br(e,t){let r=MA(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var Xr=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function En(e){const t=e.trim();for(const r of Xr)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 Li(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=En(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 ta="$$",Pa="$$",Fa=(e,t,r)=>(Xr.some(n=>t.startsWith(n[0])&&t.endsWith(n[1]))||(t=`${ta} ${t} ${Pa}`),t),co=class p0{constructor(t){p0._modes[t]=this}static onPaste(t,r,n){var i;if(!r.contentEditable&&r.userSelect==="none")return r.model.announce("plonk"),!1;if(typeof n=="string"){const A=new DataTransfer;A.setData("text/plain",n),n=A}const s=new ClipboardEvent("paste",{clipboardData:n,cancelable:!0});return(i=r.host)!=null&&i.dispatchEvent(s)?p0._modes[t].onPaste(r,n):!1}static copyToClipboard(t,r){if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const n=t.model,i=n.selectionIsCollapsed?[0,n.lastOffset]:Is(n.selection),s=n.getValue(i,r);navigator.clipboard.writeText(s).then(()=>{},()=>t.model.announce("plonk"))}static onCopy(t,r){var n;if(!r.clipboardData)return;if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const i=t.model,s=i.selectionIsCollapsed?[0,i.lastOffset]:Is(i.selection);let A=i.getAtoms(s);if(A.every(L=>L.mode==="text"||!L.mode))r.clipboardData.setData("text/plain",A.filter(L=>L instanceof oc).map(L=>L.value).join(""));else if(A.every(L=>L.mode==="latex"))r.clipboardData.setData("text/plain",i.getAtoms(s,{includeChildren:!0}).map(L=>{var z;return(z=L.value)!=null?z:""}).join(""));else{let L;A.length===1&&A[0].verbatimLatex!==void 0?L=A[0].verbatimLatex:L=i.getValue(s,"latex-expanded"),r.clipboardData.setData("application/x-latex",L);try{r.clipboardData.setData("text/plain",t.options.onExport(t,L,s))}catch(z){}if(A.length===1){const z=A[0];(z.type==="root"||z.type==="group")&&(A=z.body.filter(q=>q.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(A.map(z=>z.toJson())))}catch(z){}if((n=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&n.ComputeEngine){const z=window.MathfieldElement.computeEngine;if(z)try{const q=z.jsonSerializationOptions;z.jsonSerializationOptions={metadata:["latex"]};const Ae=z.parse(i.getValue(s,"latex-unstyled"));z.jsonSerializationOptions=q;const Qe=JSON.stringify(Ae.json);Qe&&r.clipboardData.setData("application/json",Qe)}catch(q){}}}r.preventDefault()}static insert(t,r,n={}){var i;const s=n.mode==="auto"?t.mode:(i=n.mode)!=null?i:t.mode;return p0._modes[s].insert(t,r,n)}onPaste(t,r){return!1}insert(t,r,n){return!1}};co._modes={};var aa=co,bs=[{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","^"]}],Ts={"\\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 hs(e){var t;return((t=e.element)==null?void 0:t.mathfield)===e}function el(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 Bl(e){const t=el(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function sc(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 Xl(e,t,r){if(!t)return null;const n=e.field.getBoundingClientRect(),i=t.right-t.left,s=t.bottom-t.top,A=Math.ceil(t.left-n.left+e.field.scrollLeft*r),L=Math.ceil(t.top-n.top);return{left:A,right:A+i,top:L,bottom:L+s}}function LA(e){const t=e.getBoundingClientRect(),r=parseInt(getComputedStyle(e).marginRight),n={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 n;for(const i of e.children)if(i.nodeType===1&&"atomId"in i.dataset&&!i.classList.contains("pstrut")){const s=LA(i);n.left=Math.min(n.left,s.left),n.right=Math.max(n.right,s.right),n.top=Math.min(n.top,s.top),n.bottom=Math.max(n.bottom,s.bottom)}return n}function qc(e,t){var r,n;if(!t.id)return null;let i=(n=(r=e.atomBoundsCache)==null?void 0:r.get(t.id))!=null?n:null;if(i!==null)return i;const s=e.field.querySelector(`[data-atom-id="${t.id}"]`);return i=s?LA(s):null,e.atomBoundsCache&&(i?e.atomBoundsCache.set(t.id,i):e.atomBoundsCache.delete(t.id)),i!=null?i:null}function uu(e,t,r){const n=new Map;for(const i of e.model.getAtoms(t,{includeChildren:!0})){if(r!=null&&r.excludeAtomsWithBackground&&i.style.backgroundColor)continue;const s=e.field,A=s.offsetWidth;let z=Math.floor(s.getBoundingClientRect().width)/A;z=isNaN(z)?1:z;const q=Xl(e,qc(e,i),z);if(q){const Ae=sc(i);if(n.has(Ae)){const Qe=n.get(Ae);n.set(Ae,{left:Math.min(Qe.left,q.left),right:Math.max(Qe.right,q.right),top:Math.min(Qe.top,q.top),bottom:Math.max(Qe.bottom,q.bottom)})}else n.set(Ae,q)}}return[...n.values()]}function XA(e,t){return e.model.selection.ranges.reduce((r,n)=>r.concat(...uu(e,n,t)),[])}function kA(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function JA(e){let t=0,r=0;const n=e.offsetWidth,i=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent;return new DOMRect(r,t,n,i)}var du=`@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;
}
`,pl=`.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);
}
`,Qc=`#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);
}
`,YA=`/* 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;
}
`,rs=`/* 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);*/
}
`,Kc=`.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));
}
`,tl=`: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;
}
`,eA=`.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;
}
`,rl;function Jl(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=pl;break;case"mathfield":t=du;break;case"environment-popover":t=Qc;break;case"suggestion-popover":t=YA;break;case"keystroke-caption":t=rs;break;case"virtual-keyboard":t=Kc;break;case"ui":t=tl;break;case"menu":t=eA;break;default:debugger}return t}function ss(e){return rl||(rl={}),rl[e]||(rl[e]=new CSSStyleSheet,rl[e].replaceSync(Jl(e))),rl[e]}var Tl;function lc(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(Jl(e))),window.document.head.appendChild(r);return}if(Tl||(Tl={}),((t=Tl[e])!=null?t:0)!==0)Tl[e]+=1;else{const r=ss(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],Tl[e]=1}}function wc(e){if("adoptedStyleSheets"in document&&Tl!=null&&Tl[e]&&(Tl[e]-=1,Tl[e]<=0)){const t=rl[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var cc=class Yh extends zr{constructor(t){var r;super(E(h({},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 Yh(t)}toJson(){return E(h({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const n=new la({parent:t,mathstyle:"cramp"},this.style),i=(r=zr.createBox(n,this.body))!=null?r:new fn("\u25A2",{style:this.style});let s=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(s=i.skew);let A=Math.min(i.height,as),L;if(this.svgAccent)L=sa(this.svgAccent),A=n.metrics.bigOpSpacing1-A;else if(this.accent){const q=new fn(this.accent,{fontFamily:"Main-Regular"});q.italic=0;const Ae=this.accent===8407?" ML__accent-vec":"";L=new fn(new fn(q),{classes:"ML__accent-body"+Ae})}L=new Xo({shift:0,children:[{box:new fn(i)},-A,{box:L,marginLeft:i.left+2*s,classes:["ML__center"]}]});const z=new fn(L,{type:"lift"});return this.caret&&(z.caret=this.caret),this.bind(n,z.wrap(n)),this.attachSupsub(n,{base:z})}},Yl={"(":")","{":"}","[":"]","|":"|","\\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"},cl=Object.fromEntries(Object.entries(Yl).map(([e,t])=>[t,e]));function nl(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 xc(e,t,r,n){var i;const A=new fn(nl(e),{fontFamily:"Main-Regular",isSelected:n.isSelected,classes:"ML__small-delim "+((i=n.classes)!=null?i:"")}).wrap(t);return r&&A.setTop((1-t.scalingFactor)*us),A}function tA(e,t,r,n,i){var s,A;const L=new la({parent:n,mathstyle:"textstyle"},i==null?void 0:i.style),z=new fn(nl(e),{fontFamily:`Size${t}-Regular`,isSelected:i.isSelected,classes:((s=i.classes)!=null?s:"")+` ML__delim-size${t}`,type:(A=i.type)!=null?A:"ignore"}).wrap(L);return r&&z.setTop((1-L.scalingFactor)*us),z}function rA(e,t,r,n,i){var s;let A,L,z,q;A=z=q=nl(e),L=null;let Ae="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?z=A=q=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?z=A=q=8741:e==="\\uparrow"?z=q=9168:e==="\\Uparrow"?z=q=8214:e==="\\downarrow"?A=z=9168:e==="\\Downarrow"?A=z=8214:e==="\\updownarrow"?(A=8593,z=9168,q=8595):e==="\\Updownarrow"?(A=8657,z=8214,q=8659):e==="["||e==="\\lbrack"?(A=9121,z=9122,q=9123,Ae="Size4-Regular"):e==="]"||e==="\\rbrack"?(A=9124,z=9125,q=9126,Ae="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(z=A=9122,q=9123,Ae="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(A=9121,z=q=9122,Ae="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(z=A=9125,q=9126,Ae="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(A=9124,z=q=9125,Ae="Size4-Regular"):e==="("||e==="\\lparen"?(A=9115,z=9116,q=9117,Ae="Size4-Regular"):e===")"||e==="\\rparen"?(A=9118,z=9119,q=9120,Ae="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(A=9127,L=9128,q=9129,z=9130,Ae="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(A=9131,L=9132,q=9133,z=9130,Ae="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(A=9127,q=9129,z=9130,Ae="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(A=9131,q=9133,z=9130,Ae="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(A=9127,q=9133,z=9130,Ae="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(A=9131,q=9129,z=9130,Ae="Size4-Regular"):e==="\\surd"?(A=57345,q=9143,z=57344,Ae="Size4-Regular"):e==="\\ulcorner"?(A=9484,z=q=32):e==="\\urcorner"?(A=9488,z=q=32):e==="\\llcorner"?(q=9492,z=A=32):e==="\\lrcorner"&&(A=9496,z=A=32);const Qe=qs(A,Ae),At=Qe.height+Qe.depth,Ft=qs(z,Ae),Ot=Ft.height+Ft.depth,Fr=qs(q,Ae),In=Fr.height+Fr.depth;let Br=0,an=1;if(L!==null){const Il=qs(L,Ae);Br=Il.height+Il.depth,an=2}const Rn=At+In+Br,pn=Math.max(0,Math.ceil((t-Rn)/(an*Ot))),Ci=Rn+pn*an*Ot;let ji=us;r&&(ji=ji*n.scalingFactor);const Ni=Ci/2-ji,io=.008,zo=[];zo.push({box:new fn(q,{fontFamily:Ae})}),zo.push(-io);const Vn=new fn(z,{fontFamily:Ae});if(L===null)for(let Il=0;Il<pn;Il++)zo.push({box:Vn});else{for(let Il=0;Il<pn;Il++)zo.push({box:Vn});zo.push(-io),zo.push({box:new fn(L,{fontFamily:Ae})}),zo.push(-io);for(let Il=0;Il<pn;Il++)zo.push({box:Vn})}zo.push(-io),zo.push({box:new fn(A,{fontFamily:Ae})});let yA="";Ae==="Size1-Regular"?yA=" delim-size1":Ae==="Size4-Regular"&&(yA=" delim-size4");const ku=new Xo({bottom:Ni,children:zo},{classes:yA});return new fn(ku,E(h({},i!=null?i:{}),{classes:((s=i==null?void 0:i.classes)!=null?s:"")+" ML__delim-mult"}))}var qA=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),uA=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Ms=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),eu=[0,1.2,1.8,2.4,3];function Ul(e,t,r,n){return e===void 0||e==="."?uc(r,n.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),qA.has(e)||Ms.has(e)?tA(e,t,!1,r,n):uA.has(e)?rA(e,eu[t],!1,r,n):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}var Cc=[{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}],fu=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],rd=[{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 ju(e){return e.type==="small"?"Main-Regular":e.type==="large"?"Size"+e.size+"-Regular":(console.assert(e.type==="stack"),"Size4-Regular")}function dA(e,t,r,n){const i={"-4":0,"-3":1,0:2}[n.mathstyle.sizeDelta];for(let s=i;s<r.length&&r[s].type!=="stack";s++){const A=qs(e,ju(r[s]));if(A.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let L=A.height+A.depth;if(r[s].type==="small"&&(r[s].mathstyle==="scriptscriptstyle"?L*=Math.max(ds[Math.max(1,n.size-2)],n.minFontScale):r[s].mathstyle==="scriptstyle"&&(L*=Math.max(ds[Math.max(1,n.size-1)],n.minFontScale))),L>t)return r[s]}return r[r.length-1]}function Bc(e,t,r,n,i,s){if(!t||t.length===0||t===".")return uc(i);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let A;Ms.has(t)?A=Cc:qA.has(t)?A=rd:A=fu;const L=dA(nl(t),r,A,i),z=new la({parent:i,mathstyle:L.mathstyle},s==null?void 0:s.style);return L.type==="small"?xc(t,z,n,E(h({},s),{type:e})):L.type==="large"?tA(t,L.size,n,z,E(h({},s),{type:e})):(console.assert(L.type==="stack"),rA(t,r,n,z,E(h({},s),{type:e})))}function Ac(e,t,r,n,i,s){if(t===".")return uc(i,s==null?void 0:s.classes);const A=us*i.scalingFactor,L=901,z=5/is,q=Math.max(r-A,n+A),Ae=Math.max(q/500*L,2*q-z);return Bc(e,t,Ae,!0,i,s)}function uc(e,t){const r=new fn(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new la({parent:e,mathstyle:"textstyle"}))}var ql=class qh extends zr{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 qh(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{}"}},fA=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],hA=["cases","dcases","rcases"],hu=["align","align*","aligned","gather","gathered","split"],Sc=["array","subequations","eqnarray"];function Ec(e){return Sc.concat(hu).concat(hA).concat(fA).includes(e)}function Jo(e){return fA.includes(e)}function Ho(e){return hA.includes(e)}function Us(e){return hu.includes(e)}function Rs(e,t,r){let n=0;for(const q of r)"align"in q&&(n+=1);let i=0;const s=[];for(const q of t){let Ae=0;for(i=Math.max(i,Math.min(q.length,n));Ae<q.length;){const Qe=[],At=Math.min(q.length,Ae+n);for(;Ae<At;){const Ft=q[Ae];Ft.length===0?Qe.push([new zr({type:"first",mode:e.mode})]):Ft[0].type!=="first"?Qe.push([new zr({type:"first",mode:e.mode}),...Ft]):(console.assert(!Ft.slice(1).some(Ot=>Ot.type==="first")),Qe.push(Ft)),Ae+=1}s.push(Qe)}}s.length>0&&s[s.length-1].length===1&&s[s.length-1][0].length===1&&s[s.length-1][0][0].type==="first"&&s.pop();const A=[];for(const q of s){if(q.length!==i)for(let Ae=q.length;Ae<i;Ae++)q.push([new zr({type:"first",mode:e.mode}),new ql]);A.push(q)}let L=0,z=0;for(const q of A){z=0;for(const Ae of q){for(const Qe of Ae)Qe.parent=e,Qe.parentBranch=[L,z];z+=1}L+=1}return e.isDirty=!0,A}var Ua=class ep extends zr{constructor(t,r,n,i={}){var s;super({type:"array"}),this.environmentName=t,this.rowGaps=n,i.mathstyleName&&(this.mathstyleName=i.mathstyleName),i.columns&&(i.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=i.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=Rs(this,r,this.colFormat),i.leftDelim&&(this.leftDelim=i.leftDelim),i.rightDelim&&(this.rightDelim=i.rightDelim),i.arraycolsep!==void 0&&(this.arraycolsep=i.arraycolsep),this.colSeparationType=i.colSeparationType,i.arraystretch!==void 0&&(this.arraystretch=i.arraystretch),this.minColumns=(s=i.minColumns)!=null?s:1}static fromJson(t){return new ep(t.environmentName,t.array,t.rowGaps,t)}toJson(){const t=E(h({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(r=>r.map(n=>n.map(i=>i.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(IA(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return IA(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(Gl(t))return super.removeBranch(t);const r=this.branch(t);return this.array[t[0]][t[1]]=void 0,r.forEach(n=>{n.parent=void 0,n.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 n of r)if(n)for(const i of n)t.push(...i.children),t.push(i);return[...t,...super.children]}render(t){var r,n,i,s,A,L;const z=new la({parent:t,mathstyle:this.mathstyleName},this.style),q=z.getRegisterAsEm("arrayrulewidth"),Ae=z.getRegisterAsEm("arraycolsep"),Qe=z.getRegisterAsEm("doublerulesep"),At=(n=(r=this.arraystretch)!=null?r:z.getRegisterAsNumber("arraystretch"))!=null?n:1;let Ft=typeof this.arraycolsep=="number"?this.arraycolsep:Ae;this.colSeparationType==="small"&&(Ft=.2778*(new la({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const Ot=At*bl,Fr=.7*Ot,In=.3*Ot;let Br=0;const an=[];let Rn=0;const pn=this.array.length;for(let es=0;es<pn;++es){const Gs=this.array[es];Rn=Math.max(Rn,Gs.length);const Ml=new la({parent:z,mathstyle:this.mathstyleName},this.style);let Du=Fr/Ml.scalingFactor,Pu=In/Ml.scalingFactor;const Ou={cells:[],height:0,depth:0,pos:0};for(const su of Gs){const J0=(i=zr.createBox(Ml,su,{type:"ignore"}))!=null?i:new fn(null,{type:"ignore"});Pu=Math.max(Pu,J0.depth),Du=Math.max(Du,J0.height),Ou.cells.push(J0)}let Nu=(s=Wl(this.rowGaps[es]))!=null?s:0;Nu>0&&(Nu+=In,Pu=Math.max(Pu,Nu),Nu=0),es<pn-1&&!Jo(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Pu+=z.getRegisterAsEm("jot")),Ou.height=Du,Ou.depth=Pu,Br+=Du,Ou.pos=Br,Br+=Pu+Nu,an.push(Ou)}const Ci=Br/2+us,ji=[];for(let es=0;es<Rn;es++){const Gs=[];for(const Ml of an){const Du=Ml.cells[es];Du.depth=Ml.depth,Du.height=Ml.height,Gs.push({box:Du,shift:Ml.pos-Ci})}Gs.length>0&&ji.push(new Xo({individualShift:Gs}))}const Ni=[];let io=!1,zo=!1,Vn=0,yA=!this.leftDelim;const{colFormat:ku}=this;for(const es of ku){if("align"in es&&Vn>=ji.length)break;if("align"in es)io?Ni.push(ec(2*Ft)):(zo||yA)&&Ni.push(ec(Ft)),Ni.push(new fn(ji[Vn],{classes:"col-align-"+es.align})),Vn++,io=!0,zo=!1,yA=!1;else if("gap"in es){if(typeof es.gap=="number")Ni.push(ec(es.gap));else{const Gs=tu(t,an,Ci,es.gap);Gs&&Ni.push(Gs)}io=!1,zo=!1,yA=!1}else if("separator"in es){const Gs=new fn(null,{classes:"vertical-separator"});Gs.height=Br,Gs.setStyle("height",Br,"em"),Gs.setStyle("border-right",`${q}em ${es.separator} currentColor`),Gs.setStyle("vertical-align",-(Br-Ci),"em");let Ml=0;zo?Ml=Qe-q:io&&(Ml=Ft-q),Gs.left=Ml,Ni.push(Gs),io=!1,zo=!0,yA=!1}}io&&!this.rightDelim&&Ni.push(ec(Ft));const RA=new fn(Ni,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(RA.caret=this.caret),this.bind(t,RA);const Il=RA.height,bA=RA.depth,Vc=this.bind(t,new fn([this.bind(t,Ac("open",(A=this.leftDelim)!=null?A:".",Il,bA,z,{isSelected:this.isSelected})),RA,this.bind(t,Ac("close",(L=this.rightDelim)!=null?L:".",Il,bA,z,{isSelected:this.isSelected}))],{type:"ord"}));return Vc?(Vc.setStyle("display","inline-block"),this.caret&&(Vc.caret=this.caret),this.bind(t,this.attachSupsub(t,{base:Vc}))):null}_serialize(t){var r;const n=[];if(this.environmentName==="lines"?n.push("{\\displaylines"):n.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(n.push("{"),this.colFormat!==void 0)for(const i of this.colFormat)"align"in i&&typeof i.align=="string"?n.push(i.align):"separator"in i&&i.separator==="solid"?n.push("|"):"separator"in i&&i.separator==="dashed"&&n.push(":");n.push("}")}for(let i=0;i<this.array.length;i++){for(let s=0;s<this.array[i].length;s++)s>0&&n.push(" & "),n.push(zr.serialize(this.array[i][s],t));if(i<this.array.length-1){const s=this.rowGaps[i];s!=null&&s.dimension?n.push(`\\\\[${s.dimension} ${(r=s.unit)!=null?r:"pt"}] `):n.push("\\\\ ")}}return this.environmentName==="lines"?n.push("}"):n.push(`\\end{${this.environmentName}}`),Ca(n)}getCell(t,r){return this.array[t][r]}setCell(t,r,n){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[t][r]!==void 0);for(const s of this.array[t][r])s.parent=void 0,s.parentBranch=void 0;let i=n;(n.length===0||n[0].type!=="first")&&(i=[new zr({type:"first",mode:this.mode}),...n]),this.array[t][r]=i;for(const s of i)s.parent=this,s.parentBranch=[t,r];this.isDirty=!0}addRowBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let n=0;n<this.colCount;n++)r.push(hi(this));this.array.splice(t,0,r);for(let n=t;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}addRowAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let n=0;n<this.colCount;n++)r.push(hi(this));this.array.splice(t+1,0,r);for(let n=t+1;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}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 n of r)for(const i of n)if(i)for(const s of i)s.parent=void 0,s.parentBranch=void 0;for(let n=t;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}addColumnBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t,0,hi(this));for(let r=0;r<this.rowCount;r++)for(let n=t;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}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,hi(this));for(let r=0;r<this.rowCount;r++)for(let n=t+1;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}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 n=r.splice(t,1);for(const i of n)if(i)for(const s of i)s.parent=void 0,s.parentBranch=void 0}for(let r=0;r<this.rowCount;r++)for(let n=t;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}get cells(){const t=[];for(const r of this.array)for(const n of r)n&&t.push(n.filter(i=>i.type!=="first"));return t}};function hi(e){const t=new zr({type:"first",mode:e.mode});t.parent=e;const r=new ql;return r.parent=e,[t,r]}function ec(e){const t=new fn(null,{classes:"arraycolsep"});return t.width=e,t}function tu(e,t,r,n){if(!n)return null;const i=[];for(const s of t){const A=zr.createBox(e,n,{type:"ignore"});A&&(A.depth=s.depth,A.height=s.height,i.push({box:A,shift:s.pos-r}))}return new Xo({individualShift:i}).wrap(e)}var Qs=class tp extends zr{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 tp(t)}toJson(){return E(h({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(t){var r,n,i,s;const A=zr.createBox(t,this.body,{type:"lift"});if(!A)return null;const L=t.toEm((r=this.offset)!=null?r:{dimension:0});A.depth+=L,A.setStyle("display","inline-block"),A.setStyle("position","relative"),A.setStyle("height",Math.floor(100*A.height+A.depth)/100,"em"),A.setStyle("vertical-align",-Math.floor(100*A.height)/100,"em");const z=new la({parent:t},this.style),q=z.toEm((n=this.padding)!=null?n:{register:"fboxsep"}),Ae=new fn(null,{classes:"ML__box"});Ae.height=A.height+q,Ae.depth=A.depth+q,Ae.setStyle("box-sizing","border-box"),Ae.setStyle("position","absolute"),Ae.setStyle("top",-q+.3,"em"),Ae.setStyle("left",0),Ae.setStyle("height",Ae.height+Ae.depth,"em"),Ae.setStyle("width","100%"),this.backgroundcolor&&Ae.setStyle("background-color",(i=z.toColor(this.backgroundcolor))!=null?i:"transparent"),this.framecolor&&Ae.setStyle("border",`${z.getRegisterAsEm("fboxrule",2)}em solid ${(s=z.toColor(this.framecolor))!=null?s:"black"}`),this.border&&Ae.setStyle("border",this.border);const Qe=new fn([Ae,A],{type:"lift"});return Qe.setStyle("display","inline-block"),Qe.setStyle("position","relative"),Qe.setStyle("line-height",0),Qe.height=A.height+q+(L>0?L:0),Qe.depth=A.depth+q+(L<0?-L:0),Qe.setStyle("padding-left",q,"em"),Qe.setStyle("padding-right",q,"em"),Qe.setStyle("height",Math.floor(100*(A.height+A.depth+2*q+Math.abs(L)))/100,"em"),Qe.setStyle("margin-top",-q,"em"),Qe.setStyle("top",Math.floor(100*(A.depth-A.height+2*q-L))/100,"em"),Qe.setStyle("vertical-align",Math.floor(100*(A.depth+2*q))/100,"em"),this.caret&&(Qe.caret=this.caret),this.attachSupsub(t,{base:Qe})}_serialize(t){return t.skipStyles?Ca([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},zu=class rp extends zr{constructor(t,r){var n;super({type:"composition",mode:(n=r==null?void 0:r.mode)!=null?n:"math",value:t})}static fromJson(t){return new rp(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(t){const r=new fn(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},ya=class np extends zr{constructor(t){super({type:"error",value:t,command:t,mode:"math"}),this.verbatimLatex=t}static fromJson(t){return new np(t.command)}toJson(){return super.toJson()}render(t){const r=this.createBox(t,{classes:"ML__error"});return this.caret&&(r.caret=this.caret),r}},Ao=class ip extends zr{constructor(t,r,n){super({type:"group",mode:r,style:n}),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 ip(t.body,t.mode,t.style)}render(t){const r=zr.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=pt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):`{${this.bodyToLatex(t)}}`}},ko=class ap extends zr{constructor(t,r,n){super({type:"leftright",style:n.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=n.leftDelim,this.rightDelim=n.rightDelim}static fromJson(t){var r;return new ap((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,n;const i=this.matchingRightDelim();return this.variant==="left...right"?Ca(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",i]):this.variant==="mleft...mright"?Ca(["\\mleft",(n=this.leftDelim)!=null?n:".",this.bodyToLatex(t),"\\mright",i]):Ca([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(t),i])}matchingRightDelim(){var t,r;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const n=(t=this.leftDelim)!=null?t:".";return(r=Yl[n])!=null?r:n}render(t){var r,n;const i=new la({parent:t},this.style);console.assert(this.body!==void 0);const s=new la({parent:t,mathstyle:"textstyle"},this.style),A=(r=zr.createBox(i,this.body,{type:"inner"}))!=null?r:new fn(null,{type:"inner"}),L=A.height/s.scalingFactor,z=A.depth/s.scalingFactor,q=[];if(this.leftDelim&&q.push(this.bind(s,Ac("open",this.leftDelim,L,z,s,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),A&&($u(A.children,this,i,L,z),q.push(A)),this.rightDelim){let Ft=this.containsCaret?" ML__contains-caret":"",Ot=this.rightDelim;Ot==="?"&&(i.smartFence?(Ot=this.matchingRightDelim(),Ft+=" ML__smart-fence__close"):Ot="."),q.push(this.bind(s,Ac("close",Ot,L,z,s,{isSelected:this.isSelected,classes:Ft+" ML__close",mode:this.mode,style:this.style})))}let Ae=this.variant==="mleft...mright";const Qe=this.leftSibling;Qe&&(!Ae&&Qe.isFunction&&(Ae=!0),!Ae&&Qe.type==="subsup"&&((n=Qe.leftSibling)!=null&&n.isFunction)&&(Ae=!0));const At=new fn(q,{type:Ae?"close":"inner",classes:"left-right"});return At.setStyle("margin-top",`${-A.depth}em`),At.setStyle("height",`${A.height+A.depth}em`),this.caret&&(At.caret=this.caret),this.bind(i,At.wrap(i))}};function $u(e,t,r,n,i){if(e)for(let s=0;s<e.length;s++){const A=e[s];A.type==="middle"?(e[s]=t.bind(r,Ac("inner",A.value,n,i,r,{isSelected:t.isSelected})),e[s].caret=A.caret,e[s].isSelected=A.isSelected,e[s].cssId=A.cssId,e[s].htmlData=A.htmlData,e[s].htmlStyle=A.htmlStyle,e[s].attributes=A.attributes,e[s].cssProperties=A.cssProperties):A.children&&$u(A.children,t,r,n,i)}}var pu=class op extends zr{constructor(t,r){var n;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=(n=r.expand)!=null?n:!1}static fromJson(t){return new op(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=zr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},nd=class sp extends zr{constructor(){super({type:"macro-argument"})}static fromJson(t){return new sp}toJson(){return super.toJson()}_serialize(t){return""}render(t){return null}},DA=class lp extends zr{constructor(t,r,n=!1,i,s){var A;super({type:"prompt",mode:(A=s==null?void 0:s.mode)!=null?A:"math",style:s==null?void 0:s.style,command:"\\placeholder"}),this.body=i,this.correctness=r,this.placeholderId=t,this.locked=n,this.captureSelection=this.locked}static fromJson(t){return new lp(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 la({parent:t}),n=r.getRegisterAsEm("fboxsep"),i=n,s=n,A=zr.createBox(t,this.body);if(!A)return null;A.height||(A.height=r.metrics.xHeight),A.setStyle("vertical-align",-A.height,"em"),this.correctness==="correct"?A.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&A.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const L=new fn(A,{type:"ord"});L.setStyle("display","inline-block"),L.setStyle("height",A.height+A.depth,"em"),L.setStyle("vertical-align",-s,"em");let z="ML__prompt ";this.locked?z+=" ML__lockedPromptBox ":z+=" ML__editablePromptBox ",this.correctness==="correct"?z+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(z+=" ML__incorrectPromptBox "),this.containsCaret&&(z+=" ML__focusedPromptBox ");const q=new fn(null,{classes:z,attributes:{part:"prompt"}});q.height=L.height+s,q.depth=L.depth+s,q.width=L.width+2*i,q.setStyle("box-sizing","border-box"),q.setStyle("position","absolute"),q.setStyle("height",L.height+L.depth+2*s,"em"),i===0&&q.setStyle("width","100%"),i!==0&&(q.setStyle("width",`calc(100% + ${2*i}em)`),q.setStyle("top",n,"em"),q.setStyle("left",-i,"em")),(!this.body||this.body.length===1)&&(q.width=3*i,q.setStyle("width",`calc(100% + ${3*i}em)`),q.setStyle("left",-1.5*i,"em"));let Ae="";this.correctness==="incorrect"&&(Ae+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Ae&&(q.svgOverlay=Ae);const Qe=new fn([q,L],{classes:"ML__prompt-atom"});return Qe.setStyle("position","relative"),Qe.setStyle("display","inline-block"),Qe.setStyle("line-height",0),Qe.height=L.height+s+.2,Qe.depth=L.depth+s,Qe.left=i,Qe.right=i,Qe.setStyle("height",L.height+s,"em"),Qe.setStyle("top",L.depth-L.height,"em"),Qe.setStyle("vertical-align",L.depth+s,"em"),Qe.setStyle("margin-left",.5,"em"),Qe.setStyle("margin-right",.5,"em"),this.caret&&(Qe.caret=this.caret),this.bind(r,this.attachSupsub(t,{base:Qe}))}_serialize(t){var r;const n=(r=this.bodyToLatex(t))!=null?r:"";if(t.skipPlaceholders)return n;let i="\\placeholder";return this.placeholderId&&(i+=`[${this.placeholderId}]`),this.correctness==="correct"?i+="[correct]":this.correctness==="incorrect"&&(i+="[incorrect]"),this.locked&&(i+="[locked]"),So(i,n)}},mu=class cp extends zr{constructor(t){super({type:"subsup",style:t==null?void 0:t.style}),this.subsupPlacement="auto"}static fromJson(t){const r=new cp(t);for(const n of Nc)t[n]&&r.setChildren(t[n],n);return r}render(t){var r;const n=new la({parent:t,isPhantom:!0}),i=this.leftSibling,s=(r=i.render(n))!=null?r:new fn(null),A=new fn(null);return A.height=s.height,A.depth=s.depth,this.attachSupsub(t,{base:A,isCharacterBox:i.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function ru(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var Zu=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var n,i,s,A;r!=null||(r={}),this.tokens=e,this.context=t instanceof la&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new la({from:t,mathstyle:r.mathstyle},r.style),this.args=(n=r.args)!=null?n:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(i=r.style)!=null?i:{},parseMode:(s=r.parseMode)!=null?s:"math",mathstyle:(A=r.mathstyle)!=null?A:"displaystyle",tabular:!1}}beginContext(e){var t,r,n;const i=this.parsingContext,s={parent:i,mathlist:[],style:h({},i.style),parseMode:(t=e==null?void 0:e.mode)!=null?t:i.parseMode,mathstyle:(r=e==null?void 0:e.mathstyle)!=null?r:i.mathstyle,tabular:(n=e==null?void 0:e.tabular)!=null?n:!1};this.parsingContext=s}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(h({before:xl(this.tokens.slice(this.index,this.index+10)),after:xl(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 h({},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 mu({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=pt(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?Al(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new ql({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(),n="";for(;!r;){const s=this.get();ru(s)?(n+=s,r=this.end()||n.length>=e.length):r=!0}const i=e.toUpperCase()===n.toUpperCase();return i||(this.index=t),i}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(ru(t))e+=t;else return e;this.next()}return e}scanBalancedString(){let e="",t=this.end(),r=1;for(;!t;){const n=this.get();n==="<space>"?e+=" ":n==="<{>"?(e+="{",r+=1):n==="<}>"?(r-=1,r>0?e+="}":this.index-=1):n==="<$>"?e+="$":n==="<$$>"?e+="$$":e+=n,t=r===0||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",r=1;for(;r>0&&!this.end();){const n=this.get();n==="<}>"?(r-=1,r>0&&(t+="}")):n==="<{>"?(r+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(n)&&(t+=" "),t+=(e={"<space>":" ","<$$>":"$$","<$>":"$"}[n])!=null?e:n)}return t}scanNumber(e=!0){var t,r;let n=!1,i=this.peek();for(;i==="<space>"||i==="+"||i==="-";)this.get(),i==="-"&&(n=!n),i=this.peek();e=!!e;let s=10,A=/\d/;if(this.match("'"))s=8,A=/[0-7]/,e=!0;else if(this.match('"'))s=16,A=/[\dA-F]/,e=!0;else if(this.match("x"))s=16,A=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return i=this.get(),i?i.length===2&&i.startsWith("\\")?{number:(n?-1:1)*((t=i.codePointAt(1))!=null?t:0),base:"alpha"}:{number:(n?-1:1)*((r=i.codePointAt(0))!=null?r:0),base:"alpha"}:null;let L="";for(;this.hasPattern(A);)L+=this.get();if(!e&&(this.match(".")||this.match(",")))for(L+=".";this.hasPattern(A);)L+=this.get();const z=e?Number.parseInt(L,s):Number.parseFloat(L);return Number.isNaN(z)?null:{number:n?-z:z,base:s===16?"hexadecimal":s===8?"octal":"decimal"}}scanRegister(){var e;const t=this.index,r=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return r;let n=!1;if(r===null)for(;;){const s=this.peek();if(s==="-")n=!n;else if(s!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const s=this.get();return s.startsWith("\\")?r?{register:s,global:!0,factor:(n?-1:1)*r.number}:n?{register:s,global:!0,factor:-1}:{register:s,global:!0}:(this.index=t,null)}let i=this.get();return i!=null&&i.startsWith("\\")?(i=i.substring(1),this.context.registers[i]?!n||r!==null?{register:i,factor:(n?-1:1)*((e=r==null?void 0:r.number)!=null?e:1)}:{register:i}:(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 n=this.scanNumber();if(n)return n;if(this.end()||!ru(this.peek()))return null;const i=this.scanString();return i.length>0?{string:i}:null}scanDimen(){const e=this.scanNumber(!1);if(e===null)return null;const t=e.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let r;return this.matchKeyword("pt")?r="pt":this.matchKeyword("mm")?r="mm":this.matchKeyword("cm")?r="cm":this.matchKeyword("ex")?r="ex":this.matchKeyword("px")?r="px":this.matchKeyword("em")?r="em":this.matchKeyword("bp")?r="bp":this.matchKeyword("dd")?r="dd":this.matchKeyword("pc")?r="pc":this.matchKeyword("in")?r="in":this.matchKeyword("mu")&&(r="mu"),r?{dimension:t,unit:r}:{dimension:t}}scanGlueOrDimen(){const e=this.scanDimen();if(e===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return e;const t={glue:e};if(this.matchKeyword("plus")){const r=this.scanDimen();if(r)t.grow=r;else return t}if(this.skipWhitespace(),this.match("\\relax"))return t;if(this.skipWhitespace(),this.matchKeyword("minus")){const r=this.scanDimen();if(r)t.shrink=r;else return t}return!t.grow&&!t.shrink?e:t}scanColspec(){this.skipWhitespace();const e=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const t=this.get();t==="c"||t==="r"||t==="l"?e.push({align:t}):t==="|"?e.push({separator:"solid"}):t===":"?e.push({separator:"dashed"}):t==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),e.push({gap:this.scan(r=>r==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return e}scanModeSet(){let e;if(this.match("\\(")&&(e="textstyle"),!e&&this.match("\\[")&&(e="displaystyle"),!e)return null;this.beginContext({mode:"math",mathstyle:e});const t=this.scan(r=>r===(e==="displaystyle"?"\\]":"\\)"));return this.match(e==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const t=this.scan(r=>r===e);return this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanEnvironment(){if(!this.match("\\begin"))return null;const e=this.scanArgument("string");if(!e)return null;const t=H(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const r=[];if(t.params)for(const L of t.params)if(L.isOptional)r.push(this.scanOptionalArgument(L.type));else{const z=this.scanArgument(L.type);z||this.onError({code:"missing-argument",arg:e}),r.push(z)}this.beginContext({tabular:t.tabular});const n=[],i=[];let s=[],A=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A)if(this.matchColumnSeparator())s.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){s.push(this.mathlist),this.mathlist=[];let L=null;this.skipWhitespace(),this.match("[")&&(L=this.scanDimen(),this.skipWhitespace(),this.match("]")),i.push(L!=null?L:{dimension:0}),n.push(s),s=[]}else this.mathlist.push(...this.scan(L=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(L)));while(!A);return s.push(this.mathlist),s.length>0&&n.push(s),this.endContext(),t.createAtom(e,n,i,r)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=A=>A==="<}>");let t="",r=null,n=[],i=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=pt(t,"math"),r&&(n=this.scanArguments(r)[1]),i=this.mathlist,this.mathlist=[]):this.parseExpression();let s;return t?(console.assert(!!r),n.unshift(this.mathlist),i&&n.unshift(i),s=[r.createAtom({command:t,args:n,style:this.style,mode:this.parseMode})]):s=this.mathlist,this.endContext(),s}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(n=>n==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new Ao(t,this.parseMode,this.style);return r.verbatimLatex=xl(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 ko("",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(!ru(e)&&!e.startsWith("\\"))return null;this.next();const t=pt(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 ya("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new ya("\\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 ya(t==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const n=this.mathlist;this.endContext();const i=(e=this.scanDelim())!=null?e:".";return new ko(t==="\\right"?"left...right":"mleft...mright",n,{leftDelim:r,rightDelim:i,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 zr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new zr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(st(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 n=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return n===null?!1:(n.explicitSubsupPlacement=!0,e&&(n.subsupPlacement="over-under"),t&&(n.subsupPlacement="adjacent"),r&&(n.subsupPlacement="auto"),!0)}scanArguments(e){if(!(e!=null&&e.params))return[void 0,[]];let t;const r=[];let n=e.infix?2:0;for(;n<e.params.length;){const i=e.params[n];i.type==="rest"?r.push(this.scan(s=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(s))):i.isOptional?r.push(this.scanOptionalArgument(i.type)):i.type.endsWith("*")?t=i.type.slice(0,-1):r.push(this.scanArgument(i.type)),n+=1}return[t,r]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;this.next();let t;if(ru(e)){const r=Os.createAtom(this.parseMode,e,h({},this.style));return r?[r]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const r=pt(e,this.parseMode);if(!r)return this.onError({code:"unknown-command",arg:e}),[new ya(e)];if(r.definitionType==="symbol"){const n=h({},this.style);r.variant&&(n.variant=r.variant),t=new zr({type:r.type,command:e,style:n,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 ya(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 i=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),i}if(e==="text"){e!==r&&this.beginContext({mode:"text"});const i=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),i}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 i=this.mathlist;return this.endContext(),{group:i}}if(e==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}let n=null;if(e==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}return e==="string"?n=this.scanString():e==="balanced-string"?n=this.scanBalancedString():e==="colspec"?n=this.scanColspec():e==="value"&&(n=this.scanValue()),this.skipUntilToken("<}>"),n}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={},n=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const i of n){const s=i.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(s)r.padding={dimension:parseInt(s[1]),unit:s[2]};else{const A=i.match(/^\s*border\s*:\s*(.*)/);A?r.border=A[1]:r.backgroundcolor={string:i}}}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,n;if(e==="\\placeholder"){const L=this.scanOptionalArgument("string"),z=this.scanOptionalArgument("math"),q=zr.serialize(z,{defaultMode:"math"});let Ae=[],Qe;!Qe&&q==="correct"?Qe="correct":!Qe&&q==="incorrect"?Qe="incorrect":q!==""&&(Ae=z);const At=this.scanOptionalArgument("string")==="locked",Ft=this.scanArgument("auto");let Ot;return Ft&&Array.isArray(Ft)&&Ft.length>0?Ot=Ft:Ft&&typeof Ft=="object"&&"group"in Ft?Ot=Ft.group:Ot=Ae,L?[new DA(L,Qe,At,Ot!=null?Ot:Ae,{mode:this.parseMode,style:this.style})]:[new ql({mode:this.parseMode,style:this.style})]}if(e==="\\renewcommand"||e==="\\newcommand"||e==="\\providecommand"||e==="\\def"){const L=this.index,z=this.scanLiteralGroup()||this.next();if(!z)return null;if(this.context.registers[z.substring(1)]){const q=this.scanArgument("string");q!==null&&(this.context.registers[z.substring(1)]=q);const Ae=Ca([e,xl(this.tokens.slice(L,this.index))]);return[new zr({type:"text",value:"",verbatimLatex:Ae})]}}let i=this.scanMacro(e);if(i)return[i];const s=pt(e,this.parseMode);if(!s)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(L=>new zr({type:"text",value:L,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new ya(e)]);const A=this.index;if(s.definitionType==="symbol"){const L=h({},this.style);s.variant&&(L.variant=s.variant),i=new zr({type:s.type,command:e,style:L,value:String.fromCodePoint(s.codepoint),mode:this.parseMode})}else{if(s.ifMode&&!s.ifMode.includes(this.parseMode))return[];const L=this.parseMode;s.applyMode&&(this.parseMode=s.applyMode);let z,q=[];if(s.parse?q=s.parse(this):[z,q]=this.scanArguments(s),this.parseMode=L,s.applyMode&&!s.applyStyle&&!s.createAtom)return st(q[0]);if(s.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if(typeof s.createAtom=="function")i=s.createAtom({command:e,args:q,style:this.style,mode:this.parseMode}),z&&(i.body=st(this.scanArgument(z)));else if(typeof s.applyStyle=="function"){const Ae=h(h({},this.style),s.applyStyle(e,q,this.context)),Qe=this.parseMode;if(s.applyMode&&(this.parseMode=s.applyMode),z){const At=this.style;this.style=Ae;const Ft=this.scanArgument(z);return this.style=At,this.parseMode=Qe,st(Ft)}this.style=Ae}else i=new zr({type:"mord",command:(r=s.command)!=null?r:e,style:h({},this.style),value:e,mode:(n=s.applyMode)!=null?n:this.parseMode})}if(!i)return null;if(i instanceof zr&&i.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const L=Ca([e,xl(this.tokens.slice(A,this.index))]);L&&(i.verbatimLatex=L)}if(i.verbatimLatex===null&&(i.verbatimLatex=void 0),i.isFunction&&this.smartFence){const L=this.scanSmartFence();if(L)return[i,L]}return[i]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(ru(e)){const t=Os.createAtom(this.parseMode,e,h({},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 oc(" "," ",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 n=this.index,i=r.args,s={"?":(t=this.args)==null?void 0:t.call(this,"?")};for(let A=1;A<=i;A++){let L=this.scanLiteralGroup();if(!L){const z=this.index;this.scanExpression(),L=xl(this.tokens.slice(z,this.index))}s[A]=L}return new pu(e,{expand:r.expand,captureSelection:r.captureSelection,args:n===this.index?null:xl(this.tokens.slice(n,this.index)),style:this.parsingContext.style,body:Al(r.def,{context:this.context,parseMode:this.parseMode,args:A=>s[A],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,r,n;let i=(n=(r=(t=(e=this.scanEnvironment())!=null?e:this.scanModeShift())!=null?t:this.scanModeSet())!=null?r:this.scanGroup())!=null?n:this.scanLeftRight();if(i===null){if(this.parseSupSub()||this.parseLimits())return!0;i=this.scanSymbolCommandOrLiteral()}return i?(Array.isArray(i)?this.mathlist.push(...i):this.mathlist.push(i),!0):!1}};function Al(e,t){var r,n,i,s;const A=(r=t==null?void 0:t.args)!=null?r:void 0,L=new Zu(gc(e,A),t==null?void 0:t.context,{args:A,mathstyle:(n=t==null?void 0:t.mathstyle)!=null?n:"displaystyle",parseMode:(i=t==null?void 0:t.parseMode)!=null?i:"math",style:(s=t==null?void 0:t.style)!=null?s:{}}),z=[];for(;!L.end();)z.push(...L.scan(()=>!1));return z}function gu(e,t){var r;const n=new Zu(gc(e,null),t==null?void 0:t.context,{mathstyle:"displaystyle",parseMode:(r=t==null?void 0:t.parseMode)!=null?r:"math"});for(;!n.end();)n.scan();return n.errors}var id=class Ap extends zr{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const n=jo.go(yn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=Al(n),this._verbatimLatex=t+"{"+r+"}",this.arg=r,this.captureSelection=!0}static fromJson(t){return new Ap(t.command,t.arg)}set verbatimLatex(t){}get verbatimLatex(){return this._verbatimLatex}toJson(){return E(h({},super.toJson()),{arg:this.arg})}render(t){const r=zr.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}};me(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new id(e.command,(t=e.args[0])!=null?t:"")}});var yn={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",n={};n.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var i,s=10,A=[];;){i!==e?(s=10,i=e):s--;var L=yn.stateMachines[t],z=L.transitions[r]||L.transitions["*"];e:for(var q=0;q<z.length;q++){var Ae=yn.patterns.match_(z[q].pattern,e);if(Ae){for(var Qe=z[q].task,At=0;At<Qe.action_.length;At++){var Ft;if(L.actions[Qe.action_[At].type_])Ft=L.actions[Qe.action_[At].type_](n,Ae.match_,Qe.action_[At].option);else if(yn.actions[Qe.action_[At].type_])Ft=yn.actions[Qe.action_[At].type_](n,Ae.match_,Qe.action_[At].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Qe.action_[At].type_+")"];yn.concatArray(A,Ft)}if(r=Qe.nextState||r,e.length>0){if(Qe.revisit||(e=Ae.remainder),!Qe.toContinue)break e}else return A}}if(s<=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=yn.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 yn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return yn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return yn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return yn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return yn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return yn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return yn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return yn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return yn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return yn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return yn.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 yn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return yn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return yn.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 yn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return yn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return yn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return yn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return yn.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=yn.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,n,i,s,A,L,z,q){var Ae=function(Br,an){if(typeof an=="string")return Br.indexOf(an)!==0?null:an;var Rn=Br.match(an);return Rn?Rn[0]:null},Qe=function(Br,an,Rn){for(var pn=0;an<Br.length;){var Ci=Br.charAt(an),ji=Ae(Br.substr(an),Rn);if(ji!==null&&pn===0)return{endMatchBegin:an,endMatchEnd:an+ji.length};if(Ci==="{")pn++;else if(Ci==="}"){if(pn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];pn--}an++}return pn>0,null},At=Ae(e,t);if(At===null||(e=e.substr(At.length),At=Ae(e,r),At===null))return null;var Ft=Qe(e,At.length,n||i);if(Ft===null)return null;var Ot=e.substring(0,n?Ft.endMatchEnd:Ft.endMatchBegin);if(s||A){var Fr=this.findObserveGroups(e.substr(Ft.endMatchEnd),s,A,L,z);if(Fr===null)return null;var In=[Ot,Fr.match_];return{match_:q?In.join(""):In,remainder:Fr.remainder}}else return{match_:Ot,remainder:e.substr(Ft.endMatchEnd)}},match_:function(e,t){var r=yn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return yn.patterns.patterns[e](t);var n=t.match(r);if(n){var i;return n[2]?i=[n[1],n[2]]:n[1]?i=n[1]:i=n[0],{match_:i,remainder:t.substr(n[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 yn.go(t,"text")},"{text}":function(e,t){var r=["{"];return yn.concatArray(r,yn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return yn.go(t,"tex-math")},"tex-math tight":function(e,t){return yn.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 yn.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return yn.go(t,"9,9")}},createTransitions:function(e){var t,r,n,i,s={};for(t in e)for(r in e[t])for(n=r.split("|"),e[t][r].stateArray=n,i=0;i<n.length;i++)s[n[i]]=[];for(t in e)for(r in e[t])for(n=e[t][r].stateArray||[],i=0;i<n.length;i++){var A=e[t][r];if(A.action_){A.action_=[].concat(A.action_);for(var L=0;L<A.action_.length;L++)typeof A.action_[L]=="string"&&(A.action_[L]={type_:A.action_[L]})}else A.action_=[];for(var z=t.split("|"),q=0;q<z.length;q++)if(n[i]==="*")for(var Ae in s)s[Ae].push({pattern:z[q],task:A});else s[n[i]].push({pattern:z[q],task:A})}return s},stateMachines:{}};yn.stateMachines={ce:{transitions:yn.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 n=e.d;e.d=void 0,r=this.output(e),e.b=n}else r=this.output(e);return yn.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 yn.concatArray(r,this.output(e)),yn.concatArray(r,yn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var n=yn.patterns.match_("orbital",e.o||""),i=yn.patterns.match_("one lowercase greek letter $",e.o||""),s=yn.patterns.match_("one lowercase latin letter $",e.o||""),A=yn.patterns.match_("$one lowercase latin letter$ $",e.o||""),L=t==="-"&&(n&&n.remainder===""||i||s||A);L&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!n&&s&&(e.o="$"+e.o+"$");var z=[];return L?(yn.concatArray(z,this.output(e)),z.push({type_:"hyphen"})):(n=yn.patterns.match_("digits",e.d||""),r&&n&&n.remainder===""?(yn.concatArray(z,yn.actions["d="](e,t)),yn.concatArray(z,this.output(e))):(yn.concatArray(z,this.output(e)),yn.concatArray(z,yn.actions.bond(e,t,"-")))),z},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:yn.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),n=r!==t;return n&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n;if(!e.r)n=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&n.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"&&yn.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),n.push({type_:"chemfive",a:yn.go(e.a,"a"),b:yn.go(e.b,"bd"),p:yn.go(e.p,"pq"),o:yn.go(e.o,"o"),q:yn.go(e.q,"pq"),d:yn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var i;e.rdt==="M"?i=yn.go(e.rd,"tex-math"):e.rdt==="T"?i=[{type_:"text",p1:e.rd||""}]:i=yn.go(e.rd);var s;e.rqt==="M"?s=yn.go(e.rq,"tex-math"):e.rqt==="T"?s=[{type_:"text",p1:e.rq||""}]:s=yn.go(e.rq),n={type_:"arrow",r:e.r,rd:i,rq:s}}for(var A in e)A!=="parenthesisLevel"&&A!=="beginsWithBond"&&delete e[A];return n},"oxidation-output":function(e,t){var r=["{"];return yn.concatArray(r,yn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:yn.go(t[0]),p2:yn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:yn.go(t[0]),p2:yn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:yn.go(t[0]),p2:yn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:yn.go(t[0]),p2:yn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:yn.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:yn.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:yn.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:yn.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:yn.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:yn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:yn.go(t[1],"pq")}}}},bd:{transitions:yn.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:yn.go(t[1],"bd")}}}},oxidation:{transitions:yn.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:yn.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:yn.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:yn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:yn.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]&&(yn.concatArray(r,yn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?yn.concatArray(r,yn.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]),yn.concatArray(r,yn.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=yn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var n=yn.patterns.match_("{(...)}",e.q||"");if(n&&n.remainder===""&&(e.q=n.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 i={d:yn.go(e.d,"pu"),q:yn.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:i.d,p2:i.q}:(t=i.d,i.d.length>1||i.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),yn.concatArray(t,i.q))}else t=yn.go(e.d,"pu-2");for(var s in e)delete e[s];return t}}},"pu-2":{transitions:yn.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=yn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=yn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:yn.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 n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var i in e)delete e[i];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var i in e)delete e[i];return t}}}};var jo={go:function(e,t){if(!e)return"";for(var r="",n=!1,i=0;i<e.length;i++){var s=e[i];typeof s=="string"?r+=s:(r+=jo._go2(s),s.type_==="1st-level escape"&&(n=!0))}return!t&&!n&&r&&(r="{"+r+"}"),r},_goInner:function(e){return e&&jo.go(e,!0)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:jo._goInner(e.a),b:jo._goInner(e.b),p:jo._goInner(e.p),o:jo._goInner(e.o),q:jo._goInner(e.q),d:jo._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 "+jo._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+jo._goInner(e.p1);break;case"bond":if(t=jo._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var i="\\frac{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+i+"}{"+i+"}{"+i+"}{"+i+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+jo._goInner(e.p1)+"}_{"+jo._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+jo._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var s={rd:jo._goInner(e.rd),rq:jo._goInner(e.rq)},A=jo._getArrow(e.r);s.rd||s.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(A="\\long"+A,s.rd&&(A="\\overset{"+s.rd+"}{"+A+"}"),s.rq&&(e.r==="<-->"?A="\\underset{\\lower2mu{"+s.rq+"}}{"+A+"}":A="\\underset{\\lower6mu{"+s.rq+"}}{"+A+"}"),A=" {}\\mathrel{"+A+"}{} "):(s.rq&&(A+="[{"+s.rq+"}]"),A+="{"+s.rd+"}",A=" {}\\mathrel{\\x"+A+"}{} "):A=" {}\\mathrel{\\long"+A+"}{} ",t=A;break;case"operator":t=jo._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 bd(e){}function gf(e){}var Zd=class up extends zr{constructor(t){super(E(h({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new up(t)}toJson(){return E(h({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new fn(this.value,{type:"middle"})}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=pt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):So(this.command,this.value)}},wd=class dp extends zr{constructor(t){super(E(h({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new dp(t)}toJson(){return E(h({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=Ul(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=pt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):So(this.command,this.value)}},Vu=class fp extends zr{constructor(t,r,n,i){var s,A;super({type:"enclose",command:t,style:i.style}),this.body=r,this.backgroundcolor=i.backgroundcolor,n.updiagonalarrow&&(n.updiagonalstrike=!1),n.box&&(n.left=!1,n.right=!1,n.bottom=!1,n.top=!1),this.notation=n,this.shadow=(s=i.shadow)!=null?s:"none",this.strokeWidth=(A=i.strokeWidth)!=null?A:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=i.strokeStyle,this.svgStrokeStyle=i.svgStrokeStyle,this.strokeColor=i.strokeColor,this.borderStyle=i.borderStyle,this.padding=i.padding,this.captureSelection=!1}static fromJson(t){return new fp(t.command,t.body,t.notation,t)}toJson(){return E(h({},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 n=pt(this.command,this.mode);if(n!=null&&n.serialize)return n.serialize(this,t);let i=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){i+="{"+Object.keys(this.notation).join(" ")+"}";let s="",A="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(s+=A+'mathbackground="'+this.backgroundcolor+'"',A=","),this.shadow&&this.shadow!=="auto"&&(s+=A+'shadow="'+this.shadow+'"',A=","),this.strokeWidth||this.strokeStyle!=="solid"?(s+=A+this.borderStyle,A=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(s+=A+'mathcolor="'+this.strokeColor+'"',A=","),s&&(i+=`[${s}]`)}return So(i,this.bodyToLatex(t))}render(t){const r=new la({parent:t},this.style),n=zr.createBox(r,this.body);if(!n)return null;const i=xd(this.borderStyle),s=r.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});n.setStyle("position","relative"),n.setStyle("display","inline-block"),n.setStyle("top",s,"em"),n.setStyle("height",n.height+n.depth,"em"),n.setStyle("width",n.width,"em");const A=new fn(null,{classes:"ML__notation"});let L=n.height+n.depth+2*s;const z=n.width+2*s;let q="";if(this.notation.horizontalstrike&&(q+=this.line(3,50,97,50)),this.notation.verticalstrike&&(q+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(q+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(q+=this.line(3,3,97,97)),this.notation.updiagonalarrow){q+=this.line(s.toString(),(s+n.depth+n.height).toString(),(s+n.width).toString(),s.toString());const Ot=.03*Math.sqrt(z*z+L*L)*1,Fr=n.width*Ot,In=(n.depth+n.height)*Ot,Br=s+n.width;let an=s;an+In-.4*Fr<0&&(an=.4*Fr-In),q+='<polygon points="',q+=`${Br},${an} ${Br-Fr-.4*In},${an+In-.4*Fr} `,q+=`${Br-.7*Fr},${an+.7*In} ${Br-Fr+.4*In},${an+In+.4*Fr} `,q+=`${Br},${an}`,q+=`" stroke='none' fill="${this.strokeColor}"`,q+="/>"}let Ae=0;if(this.notation.phasorangle){const At=ml(r),Ft=(n.height+n.depth+2*At+s).toString(),Ot=(n.height+n.depth)/2;q+=this.line(s.toString(),Ft,(s+Ot+n.width).toString(),Ft),q+=this.line(s.toString(),Ft,(s+Ot).toString(),(s-At).toString()),L+=At,Ae=Ot,n.left+=L/2-s}if(this.notation.longdiv){const At=ml(r);L+=At,q+=this.line(s.toString(),s.toString(),(s+n.width).toString(),s.toString());const Ft=.3;Ae=Ft+At,n.left+=Ft+At,n.setTop(s+At),q+='<path d="',q+=`M ${s} ${s} a${Ft} ${(n.depth+n.height+2*At)/2}, 0, 1, 1, 0 ${n.depth+n.height+2*At} "`,q+=` stroke-width="${vu(r)}" stroke="${this.strokeColor}" fill="none"`,q+="/>"}if(A.width=n.width+2*s+Ae,A.height=n.height+s,A.depth=n.depth+s,A.setStyle("box-sizing","border-box"),A.setStyle("left",`calc(-${i} / 2 )`),A.setStyle("height",`${Math.floor(100*L)/100}em`),A.setStyle("top",`calc(${i} / 2 )`),this.backgroundcolor&&A.setStyle("background-color",this.backgroundcolor),this.notation.box&&A.setStyle("border","1px solid red"),this.notation.actuarial&&(A.setStyle("border-top",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(A.setStyle("border-bottom",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(A.setStyle("border-radius","8px"),A.setStyle("border",this.borderStyle)),this.notation.circle&&(A.setStyle("border-radius","50%"),A.setStyle("border",this.borderStyle)),this.notation.top&&A.setStyle("border-top",this.borderStyle),this.notation.left&&A.setStyle("border-left",this.borderStyle),this.notation.right&&A.setStyle("border-right",this.borderStyle),this.notation.bottom&&A.setStyle("border-bottom",this.borderStyle),q){let At="";this.shadow==="auto"&&(At+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(At+=`filter: drop-shadow(${this.shadow})`),At+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,At+=' stroke-linecap="round"',this.svgStrokeStyle&&(At+=` stroke-dasharray="${this.svgStrokeStyle}"`),A.svgStyle=At,A.svgOverlay=q}const Qe=new fn([A,n]);return Qe.setStyle("position","relative"),Qe.setStyle("vertical-align",s,"em"),Qe.setStyle("height",`${Math.floor(100*(n.height+n.depth+2*s))/100}em`),Qe.setStyle("display","inline-block"),Qe.height=A.height,Qe.depth=A.depth,Qe.width=A.width-2*s,Qe.left=s,Qe.right=s,this.caret&&(Qe.caret=this.caret),Qe.wrap(r)}line(t,r,n,i){return`<line x1="${ad(t)}" y1="${ad(r)}" x2="${ad(n)}" y2="${ad(i)}" vector-effect="non-scaling-stroke"></line>`}};function ad(e){return typeof e=="number"?`${Math.floor(100*e)/100}%`:e}function xd(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return t===null?"1px":t[1]}function vu(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function ml(e){const t=e.isDisplayStyle?as:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var nu=class hp extends zr{constructor(t,r,n){var i,s;super(E(h({},n),{type:"genfrac",displayContainsHighlight:!0})),this.above=t,this.below=r,this.hasBarLine=(i=n==null?void 0:n.hasBarLine)!=null?i:!0,this.continuousFraction=(s=n==null?void 0:n.continuousFraction)!=null?s:!1,this.numerPrefix=n==null?void 0:n.numerPrefix,this.denomPrefix=n==null?void 0:n.denomPrefix,this.mathstyleName=n==null?void 0:n.mathstyleName,this.leftDelim=n==null?void 0:n.leftDelim,this.rightDelim=n==null?void 0:n.rightDelim,this.fractionNavigationOrder=n==null?void 0:n.fractionNavigationOrder}static fromJson(t){return new hp(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),h(h({},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,n;const i=new la({parent:t,mathstyle:this.mathstyleName},this.style),s=i.metrics,A=new la({parent:i,mathstyle:this.continuousFraction?"":"numerator"},this.style),L=this.numerPrefix?new fn([new fn(this.numerPrefix),zr.createBox(A,this.above)],{isTight:A.isTight,type:"ignore"}):(r=zr.createBox(A,this.above,{type:"ignore"}))!=null?r:new fn(null,{type:"ignore"}),z=new la({parent:i,mathstyle:this.continuousFraction?"":"denominator"},this.style),q=this.denomPrefix?new fn([new fn(this.denomPrefix),zr.createBox(z,this.below,{type:"ignore"})]):(n=zr.createBox(z,this.below,{type:"ignore"}))!=null?n:new fn(null,{type:"ignore"}),Ae=this.hasBarLine?s.defaultRuleThickness:0;let Qe,At=0,Ft;i.isDisplayStyle?(Qe=A.metrics.num1,At=Ae>0?3*Ae:7*Ae,Ft=z.metrics.denom1):(Ae>0?(Qe=A.metrics.num2,At=Ae):(Qe=A.metrics.num3,At=3*s.defaultRuleThickness),Ft=z.metrics.denom2);const Ot=[];this.isSelected&&Ot.push("ML__selected");const Fr=L.depth,In=q.height;let Br;if(Ae<=0){const Ni=Qe-Fr-(In-Ft);Ni<At&&(Qe+=(At-Ni)/2,Ft+=(At-Ni)/2),Br=new Xo({individualShift:[{box:L,shift:-Qe,classes:[...Ot,"ML__center"]},{box:q,shift:Ft,classes:[...Ot,"ML__center"]}]}).wrap(i)}else{const Ni=new fn(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ni.softWidth=Math.max(L.width,q.width),Ni.height=Ae/2,Ni.depth=Ae/2;const io=us+Ae/2;Qe<At+Fr+io&&(Qe=At+Fr+io);const zo=us-Ae/2;Ft<At+In-zo&&(Ft=At+In-zo),Br=new Xo({individualShift:[{box:q,shift:Ft,classes:[...Ot,"ML__center"]},{box:Ni,shift:-zo,classes:Ot},{box:L,shift:-Qe,classes:[...Ot,"ML__center"]}]}).wrap(i)}const an=i.isDisplayStyle?s.delim1:s.delim2,Rn=this.leftDelim?this.bind(t,Bc("open",this.leftDelim,an,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):uc(i,"open");let pn=null;this.continuousFraction?pn=new fn(null,{type:"close"}):this.rightDelim?pn=this.bind(t,Bc("close",this.rightDelim,an,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):pn=uc(i,"close");const Ci=new fn([Rn,Br,pn],{isTight:i.isTight,type:"inner",classes:"mfrac"}),ji=this.bind(t,Ci);return this.caret&&(ji.caret=this.caret),this.attachSupsub(t,{base:ji})}},Ls=class pp extends zr{constructor(t,r){var n;super({type:"latex",value:t,mode:"latex"}),this.isSuggestion=(n=r==null?void 0:r.isSuggestion)!=null?n:!1,this.isError=!1}static fromJson(t){const r=new pp(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),h({type:"latex",value:this.value},t)}get computedStyle(){return{}}render(t){const r=new fn(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}},yu=class mp extends zr{constructor(t){super({type:"latexgroup",mode:"latex"}),this.body=[...t].map(r=>new Ls(r)),this.skipBoundary=!1}static fromJson(t){return new mp("")}toJson(){return super.toJson()}render(t){const r=zr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){var r,n;return(n=(r=this.body)==null?void 0:r.map(i=>i.value).join(""))!=null?n:""}},Cd=class gp extends zr{constructor(t,r){super(E(h({},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 gp(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 n=t.isDisplayStyle&&this.value!=="\\smallint",i=new fn(this.value,{fontFamily:n?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(n?"large-op":"small-op"),type:"op",maxFontSize:t.scalingFactor,isSelected:this.isSelected});if(!i)return null;i.right=i.italic;const s=(i.height-i.depth)/2-us*t.scalingFactor,A=i.italic;i.setTop(s);let L=i;if(this.superscript||this.subscript){const z=(r=this.subsupPlacement)!=null?r:"auto";L=z==="over-under"||z==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i,baseShift:s,slant:A}):this.attachSupsub(t,{base:i})}return new fn(this.bind(t,L),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=pt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=[];return n.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&n.push("\\limits"),this.subsupPlacement==="adjacent"&&n.push("\\nolimits"),this.subsupPlacement==="auto"&&n.push("\\displaylimits")),n.push(this.supsubToLatex(t)),Ca(n)}},pA=class vp extends zr{constructor(t){const r=t.body;super(E(h({},t),{type:"overlap",body:typeof r=="string"?[new zr({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 vp(t)}toJson(){const t={};return this.align&&(t.align=this.align),this.boxType&&(t.boxType=this.boxType),h(h({},super.toJson()),t)}render(t){const r=zr.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new fn([r,new fn(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},gl=class yp extends zr{constructor(t){var r,n,i,s;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=(n=t.boxType)!=null?n:"ord",this.paddedBody=(i=t.paddedBody)!=null?i:!1,this.paddedLabels=(s=t.paddedLabels)!=null?s:!1}static fromJson(t){return new yp(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?sa(this.svgBody):zr.createBox(t,this.body,{type:"ignore"});const n=new la({parent:t,mathstyle:"scriptstyle"},this.style);let i=null;this.svgAbove?i=sa(this.svgAbove):this.above&&(i=zr.createBox(n,this.above,{type:"ignore"}));let s=null;this.svgBelow?s=sa(this.svgBelow):this.below&&(s=zr.createBox(n,this.below,{type:"ignore"})),this.paddedBody&&(r=new fn([uc(t,"open"),r,uc(t,"close")],{type:"ignore"}));let A=od(t,{base:r,above:i,below:s,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return A?(this.subsupPlacement==="over-under"?A=this.attachLimits(t,{base:A,type:A.type}):A=this.attachSupsub(t,{base:A}),this.caret&&(A.caret=this.caret),this.bind(t,A)):null}};function od(e,t){if(!t.base)return null;if(!t.above&&!t.below){const L=new fn(t.base,{type:t.type});return L.setStyle("position","relative"),L}let r=0;t.above&&(r=e.metrics.bigOpSpacing5);let n=null;const i=t.base,s=0,A=["ML__center"];if(t.paddedAboveBelow&&A.push("ML__label_padding"),t.below&&t.above){const L=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+i.depth+s;n=new Xo({bottom:L,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]})}else t.below?n=new Xo({top:i.height-s,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]}]}):t.above&&(n=new Xo({bottom:i.depth+s,children:[{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]}));return new fn(n,{type:t.type})}var _c=class bp extends zr{constructor(t){var r,n,i,s;super(E(h({},t),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(r=t.isInvisible)!=null?r:!1,this.smashDepth=(n=t.smashDepth)!=null?n:!1,this.smashHeight=(i=t.smashHeight)!=null?i:!1,this.smashWidth=(s=t.smashWidth)!=null?s:!1}static fromJson(t){return new bp(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),h(h({},super.toJson()),t)}render(t){const r=new la({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),zr.createBox(r,this.body,{classes:"inner"});const n=zr.createBox(this.isInvisible?r:t,this.body);if(!n)return null;if(this.smashWidth){const i=new fn(null,{classes:"fix"});return new fn([n,i],{classes:"rlap"}).wrap(t)}if(!this.smashHeight&&!this.smashDepth)return n;if(this.smashHeight&&(n.height=0),this.smashDepth&&(n.depth=0),n.children)for(const i of n.children)this.smashHeight&&(i.height=0),this.smashDepth&&(i.depth=0);return new Xo({firstBaseline:[{box:n}]},{type:n.type}).wrap(t)}},Vs=class wp extends zr{constructor(t){var r;super(h({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 wp(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 fn(this.mode==="math"?null:" ");let n;if(this.width!==void 0)n=new fn(null,{classes:"mspace"}),n.left=t.toEm(this.width);else{const i=(r={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?r:"mediumspace";n=new fn(null,{classes:i})}return n=this.bind(t,n),this.caret&&(n.caret=this.caret),n}_serialize(t){var r;if(!t.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const n=pt(this.command,this.mode);if(n!=null&&n.serialize)return n.serialize(this,t);const i=(r=this.command)!=null?r:"";return this.width===void 0?i:this._braced&&!("register"in this.width)?`${i}{${os(this.width)}}`:`${i}${os(this.width)}`}},nA=class xp extends zr{constructor(t){var r;super(E(h({},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 xp(E(h({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=pt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=this.command,i=this.bodyToLatex(t);return this.above&&!this.hasEmptyBranch("above")?So(`${n}[${this.aboveToLatex(t)}]`,i):/^[0-9]$/.test(i)?`${n}${i}`:So(n,i)}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 n=new la({parent:t,mathstyle:"cramp"},this.style),i=(r=zr.createBox(n,this.body,{type:"inner"}))!=null?r:new fn(null),s=n.scalingFactor,A=n.metrics.defaultRuleThickness/s,L=t.isDisplayStyle?as:A,z=new fn(null,{classes:"ML__sqrt-line",style:this.style});z.height=A,z.softWidth=i.width;let q=s*(A+L/4);const Qe=Math.max(s*2*L,i.height+i.depth)+q+A,At=new la({parent:t},this.style),Ft=this.bind(At,new fn(Bc("inner","\\surd",Qe,!1,At,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Ft)return null;const Ot=Ft.height+Ft.depth-A;Ot>i.height+i.depth+q&&(q=(q+Ot-(i.height+i.depth))/2),Ft.setTop(Ft.height-i.height-q);const Fr=this.bind(t,new Xo({firstBaseline:[{box:new fn(i)},q-2*A,{box:z},A]})),In=zr.createBox(new la({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!In){const Rn=new fn([Ft,Fr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Rn.setStyle("display","inline-block"),Rn.setStyle("height",Rn.height+Rn.depth,"em"),this.caret&&(Rn.caret=this.caret),this.bind(t,Rn)}const Br=new Xo({shift:-.6*(Math.max(Ft.height,Fr.height)-Math.max(Ft.depth,Fr.depth)),children:[{box:In}]}),an=new fn([new fn(Br,{classes:"ML__sqrt-index",type:"ignore"}),Ft,Fr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return an.height=Ft.height,an.depth=Ft.depth,this.caret&&(an.caret=this.caret),this.bind(t,an)}},vf=class extends fn{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 bu(e,t){if(!e.parent)return;const r=e.parent.children,n=r.indexOf(e);let i=n-1;for(;i>=0&&r[i].type==="ignore";)i-=1;if(i<0&&e.parent.parent&&e.parent.type==="lift"){bu(e.parent,t);return}n>0&&r[n-1].type==="skip"?r[n-1].width+=t:r.splice(n,0,new vf(t))}var PA={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}},dc={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function yf(e){wu(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 Wu(e,t){if(!e.children)return e;const r=e.children;yf(r);const n=t.getRegisterAsEm("thinmuskip"),i=t.getRegisterAsEm("medmuskip"),s=t.getRegisterAsEm("thickmuskip");return wu(r,(A,L)=>{var z,q,Ae;if(!A)return;const Qe=A.type,At=L.isTight?(z=dc[Qe])!=null?z:null:(q=PA[Qe])!=null?q:null,Ft=(Ae=At==null?void 0:At[L.type])!=null?Ae:null;Ft===3&&bu(L,n),Ft===4&&bu(L,i),Ft===5&&bu(L,s)}),e}function wu(e,t,r=void 0){if(!e)return r;e=[...e];for(const n of e)n.type==="lift"?r=wu(n.children,t,r):n.type==="ignore"?wu(n.children,t):(t(r,n),wu(n.children,t),r=n);return r}var sd=class Cp extends zr{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new zr({type:"root",mode:t.content,body:t.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new Cp(E(h({},t),{tooltip:mA(t.tooltip)}))}toJson(){var t;const r=(t=this.tooltip.body)==null?void 0:t.filter(n=>n.type!=="first").map(n=>n.toJson());return E(h({},super.toJson()),{tooltip:r})}render(t){const r=zr.createBox(new la,this.body);if(!r)return null;const n=new la({parent:t,mathstyle:"displaystyle"},{fontSize:Lo}),i=SA(Wu(new fn(this.tooltip.render(n),{classes:"ML__tooltip-content"}),n)),s=new fn([i,r],{classes:"ML__tooltip-container"});return this.caret&&(s.caret=this.caret),this.bind(t,s)}},OA=class Bp extends zr{constructor(t,r){super(E(h({},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 Bp(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 n=new fn(this.value,{type:"op",mode:"math",maxFontSize:t.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:t.letterShapeStyle});let i=n;if(this.superscript||this.subscript){const s=(r=this.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:n}):this.attachSupsub(t,{base:n})}return new fn(this.bind(t,i),{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=pt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&n.push("\\limits"),this.subsupPlacement==="adjacent"&&n.push("\\nolimits"),this.subsupPlacement==="auto"&&n.push("\\displaylimits")),n.push(this.supsubToLatex(t)),Ca(n)}};function mA(e){if(S(e))return e.map(n=>mA(n));if(typeof e=="string")return zr.fromJson(e);e=h({},e);for(const n of Nc)e[n]&&(e[n]=mA(e[n]));e.args&&(e.args=bf(e.args)),e.array&&(e.array=mA(e.array));const t=e.type;let r;t==="accent"&&(r=cc.fromJson(e)),t==="array"&&(r=Ua.fromJson(e)),t==="box"&&(r=Qs.fromJson(e)),t==="chem"&&(r=id.fromJson(e)),t==="composition"&&(r=zu.fromJson(e)),t==="delim"&&(r=Zd.fromJson(e)),t==="enclose"&&(r=Vu.fromJson(e)),t==="error"&&(r=ya.fromJson(e)),t==="extensible-symbol"&&(r=Cd.fromJson(e)),t==="genfrac"&&(r=nu.fromJson(e)),t==="group"&&(r=Ao.fromJson(e)),t==="latex"&&(r=Ls.fromJson(e)),t==="latexgroup"&&(r=yu.fromJson(e)),t==="leftright"&&(r=ko.fromJson(e)),t==="macro"&&(r=pu.fromJson(e)),t==="macro-argument"&&(r=nd.fromJson(e)),t==="operator"&&(r=OA.fromJson(e)),t==="overlap"&&(r=pA.fromJson(e)),t==="overunder"&&(r=gl.fromJson(e)),t==="placeholder"&&(r=ql.fromJson(e)),t==="prompt"&&(r=DA.fromJson(e)),t==="phantom"&&(r=_c.fromJson(e)),t==="sizeddelim"&&(r=wd.fromJson(e)),t==="spacing"&&(r=Vs.fromJson(e)),t==="subsup"&&(r=mu.fromJson(e)),t==="surd"&&(r=nA.fromJson(e)),t==="text"&&(r=oc.fromJson(e)),t==="tooltip"&&(r=sd.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=zr.fromJson(e));for(const n of Nc)e[n]&&r.setChildren(e[n],n);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 bf(e){if(e&&Array.isArray(e))return e.map(t=>t==="<null>"?null:typeof t=="object"&&"group"in t?{group:t.group.map(r=>mA(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>mA(r)):t)}var Gu={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"]},xu={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},Cu=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Bd=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Vd=[/^[a-z]$/,/^[A-Z]$/,Cu,Bd],wf={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Wd=class extends Os{constructor(){super("math")}createAtom(e,t,r){var n,i,s,A;if(t===null)return new zr({type:"mord",mode:"math",command:e,value:e,style:r});const L=window.MathfieldElement.isFunction((n=t.command)!=null?n:e);if(t.definitionType==="symbol"){const q=new zr({type:(i=t.type)!=null?i:"mord",mode:"math",command:(s=t.command)!=null?s:e,value:String.fromCodePoint(t.codepoint),style:r});return L&&(q.isFunction=!0),e.startsWith("\\")&&(q.verbatimLatex=e),q}const z=new zr({type:"mord",mode:"math",command:(A=t.command)!=null?A:e,value:e,style:r});return L&&(z.isFunction=!0),e.startsWith("\\")&&(z.verbatimLatex=e),z}serialize(e,t){const r=m(e,E(h({},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:n}=t;r==="normal"&&!n&&/[\u00A3\u0131\u0237]/.test(e.value)&&(r="main",n="italic"),r==="normal"&&!n&&e.value.length===1&&Vd.forEach((L,z)=>{var q;L.test(e.value)&&wf[(q=t.letterShapeStyle)!=null?q:"tex"][z]==="it"&&(n="italic")}),n==="up"&&(n=void 0);const i=n?r+"-"+n:r;console.assert(Gu[i]!==void 0);const[s,A]=Gu[i];return xu[r]&&!xu[r].test(e.value)?(e.value=ct(e.value,r,n),null):(Cu.test(e.value)&&(e.classes+=" lcGreek"),A&&(e.classes+=" "+A),s)}};function m(e,t){const{parent:r}=e[0],n=d(r);return Cl(e,"variant").map(i=>{const s=d(i[0]);let A="";s&&s!==n&&(A={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[s],console.assert(A!==void 0));const L=Ca(i.map(z=>z._serialize(t)));return A?So(A,L):L})}function d(e){if(!e)return"";const{style:t}=e;if(t.variant===void 0)return"";let r=t.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(t.variant)&&t.variantStyle&&t.variantStyle!=="up"&&(r+="-"+t.variantStyle),r}new Wd;function y(e,t){return e.map(r=>r._serialize(t))}function v(e,t){return Cl(e,"fontShape").map(r=>{const n=y(r,t),{fontShape:i}=r[0].style;let s="";return i==="it"&&(s="\\textit"),i==="sl"&&(s="\\textsl"),i==="sc"&&(s="\\textsc"),i==="n"&&(s="\\textup"),!s&&i?`{${So("\\fontshape",i)}${Ca(n)}}`:s?So(s,Ca(n)):Ca(n)})}function ie(e,t){return Cl(e,"fontSeries").map(r=>{const n=v(r,t),{fontSeries:i}=r[0].style;let s="";return i==="b"&&(s="\\textbf"),i==="l"&&(s="\\textlf"),i==="m"&&(s="\\textmd"),i&&!s?`{${So("\\fontseries",i)}${Ca(n)}}`:s?So(s,Ca(n)):Ca(n)})}function Fe(e,t){return Cl(e,"fontSize").map(r=>{var n,i;const s=ie(r,t),A=(i=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(n=r[0].style.fontSize)!=null?n:""])!=null?i:"";return A?`${A} ${Ca(s)}`:Ca(s)})}function tt(e,t,r){return Cl(e,"fontFamily").map(n=>{var i,s;const A=Fe(n,t),L=(s={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(i=n[0].style.fontFamily)!=null?i:""])!=null?s:"";return L?`\\${L}{${Ca(A)}}`:n[0].style.fontFamily?`{\\fontfamily{${n[0].style.fontFamily}} ${Ca(A)}}`:r?`\\text{${Ca(A)}}`:Ca(A)})}var xt={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Bt=class extends Os{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new oc(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return tt(e,E(h({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,n,i,s,A;const{fontFamily:L}=t;if(xt[L]?e.classes+=" "+xt[L]:L&&e.setStyle("font-family",L),t.fontShape&&(e.classes+=" ",e.classes+=(r={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape])!=null?r:""),t.fontSeries){const z=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);z&&(e.classes+=" ",e.classes+=(i={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"}[(n=z[1])!=null?n:""])!=null?i:"",e.classes+=" ",e.classes+=(A={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(s=z[2])!=null?s:""])!=null?A:"")}return"Main-Regular"}};new Bt;var nr=class extends Os{constructor(){super("latex")}createAtom(e){return new Ls(e)}serialize(e,t){return e.filter(r=>r instanceof Ls&&!r.isSuggestion).map(r=>r.value)}getFont(){return null}};new nr;var fr={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:["","=","","="]}},a={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:["","=","","="]}},g={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:["\\","|","",""]}},O={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:[")",")",")",")"]}},oe={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:["=","=","=","="]}},Me={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:["<",">","",""]}},We={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"]}},ze={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:["=","=","=","="]}},Je={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:["<",">","|",""]}},ot={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:[".",".",".","."]}},mt={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"]}},Tt={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:["<",">","",""]}},jt={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 cr(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 Gt(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 Nr={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]"},Tr=[],Xt;function tr(){switch(Y()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Qr(e){(!e.platform||e.platform===tr())&&Tr.push(e)}function ln(e,t){var r;const n={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return n;for(const[i,s]of Object.entries(t.mapping)){if(s[0]===e)return n.key=`[${i}]`,n;if(s[1]===e)return n.shift=!0,n.key=`[${i}]`,n;if(s[2]===e)return n.alt=!0,n.key=`[${i}]`,n;if(s[3]===e)return n.shift=!0,n.alt=!0,n.key=`[${i}]`,n}return n.key=(r=Nr[e])!=null?r:"",n}function An(e){if(e.code)return e;const t=Object.entries(zi().mapping);let r=!1,n=!1,i="";for(let s=0;s<4;s++){for(const[A,L]of t)if(L[s]===e.key){i=A,s===3?(r=!0,n=!0):s===2?r=!0:s===1&&(n=!0);break}if(i)break}return new KeyboardEvent(e.type,E(h({},e),{altKey:r,shiftKey:n,code:i}))}function si(e){var t,r;if(!e||e.key==="Unidentified"||e.key==="Dead")return;const n=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const i of Tr)((t=i.mapping[e.code])==null?void 0:t[n])===e.key?i.score+=1:(r=i.mapping[e.code])!=null&&r[n]&&(i.score=0);Tr.sort((i,s)=>s.score-i.score)}function Wn(e){Xt=Tr.find(t=>e.startsWith(t.locale))}function zi(){return Xt!=null?Xt:Tr[0]}function ni(){switch(tr()){case"apple":return a;case"windows":return g;case"linux":return O}return a}switch(tr()){case"apple":Qr(a),Qr(oe),Qr(mt),Qr(ze);break;case"windows":Qr(g),Qr(Me),Qr(Tt),Qr(Je);break;case"linux":Qr(O),Qr(We),Qr(jt),Qr(ot);break}Qr(fr);function Ka(e){var t;const r=/macos|ios/.test(Y()),n=e.split("+");let i="";for(const s of n)i&&(i+=r?"\u2009":'<span class="ML__shortcut-join">+</span>'),s.startsWith("[Key")?i+=s.slice(4,5):s.startsWith("Key")?i+=s.slice(3,4):s.startsWith("[Digit")?i+=s.slice(6,7):s.startsWith("Digit")?i+=s.slice(5,6):i+=(t={cmd:"\u2318",meta:r?"\u2318":"Ctrl",shift:r?"\u21E7":"Shift",alt:r?"\u2325":"Alt",ctrl:r?"\u2303":"Ctrl","\n":r?"\u23CE":"Return","[return]":r?"\u23CE":"Return","[enter]":r?"\u2324":"Enter","[tab]":r?"\u21E5":"Tab","[escape]":"Esc","[backspace]":r?"\u232B":"Backspace","[delete]":r?"\u2326":"Del","[pageup]":r?"\u21DE":"Page Up","[pagedown]":r?"\u21DF":"Page Down","[home]":r?"\u2912":"Home","[end]":r?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* &#128290;",numpaddivide:"/ &#128290;",numpadsubtract:"- &#128290;",numpadadd:"+ &#128290;",numpaddecimal:". &#128290;",numpadcomma:", &#128290;",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[s.toLowerCase()])!=null?t:s.toUpperCase();return i}function qa(e){if(e instanceof MouseEvent||e instanceof PointerEvent)return{x:e.clientX,y:e.clientY};if(e instanceof TouchEvent){const t=[...e.touches].reduce((n,i)=>({x:n.x+i.clientX,y:n.y+i.clientY}),{x:0,y:0}),r=e.touches.length;return{x:t.x/r,y:t.y/r}}}function Sa(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 Ia(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 xo=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 Wa(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:xo.has(e.code)}function ca(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var Co=class qu{static get scrim(){return qu._scrim||(qu._scrim=new qu),qu._scrim}static open(t){qu.scrim.open(t)}static close(){qu.scrim.close()}static get state(){return qu.scrim.state}static get element(){return qu.scrim.element}constructor(t){var r,n;this.lightDismiss=(r=t==null?void 0:t.lightDismiss)!=null?r:!0,this.translucent=(n=t==null?void 0:t.translucent)!=null?n:!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=ca();const{element:n}=this;((r=t==null?void 0:t.root)!=null?r:document.body).appendChild(n),n.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const i=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const s=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${s+i}px`,t!=null&&t.child&&n.append(t.child),this.state="open"}close(){var t,r,n,i;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:s}=this;s.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),s.remove(),document.body.style.overflow=(t=this.savedOverflow)!=null?t:"",document.body.style.marginRight=(r=this.savedMarginRight)!=null?r:"",ca()!==this.savedActiveElement&&((i=(n=this.savedActiveElement)==null?void 0:n.focus)==null||i.call(n)),s.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 Fc(e,t,r){let n=null,i=null,s=!1,A=!1,L=!1;const z=new AbortController,q=z.signal;return e.addEventListener("keydown",Ae=>{if(s||Ae.key==="Process"||Ae.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Ae.code)){n=null;return}n=Ae,i=null,r.onKeystroke(Ae)?e.textContent="":n=null},{capture:!0,signal:q}),e.addEventListener("keypress",Ae=>{s||(n&&i&&r.onKeystroke(n),i=Ae)},{capture:!0,signal:q}),e.addEventListener("compositionstart",Ae=>{e.textContent="",s=!0,r.onCompositionStart(Ae.data)},{capture:!0,signal:q}),e.addEventListener("compositionupdate",Ae=>{s&&r.onCompositionUpdate(Ae.data)},{capture:!0,signal:q}),e.addEventListener("compositionend",Ae=>{e.textContent="",s&&(s=!1,r.onCompositionEnd(Ae.data))},{capture:!0,signal:q}),e.addEventListener("beforeinput",Ae=>Ae.stopImmediatePropagation(),{signal:q}),e.addEventListener("input",Ae=>{var Qe;if(!s&&(e.textContent="",Ae.inputType!=="insertCompositionText")){if(Ae.inputType==="insertFromPaste"){Ae.preventDefault(),Ae.stopPropagation();return}r.onInput((Qe=Ae.data)!=null?Qe:""),Ae.preventDefault(),Ae.stopPropagation()}},{signal:q}),e.addEventListener("paste",Ae=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(Ae)||Ae.preventDefault(),Ae.stopImmediatePropagation()},{signal:q}),e.addEventListener("cut",Ae=>r.onCut(Ae),{capture:!0,signal:q}),e.addEventListener("copy",Ae=>r.onCopy(Ae),{capture:!0,signal:q}),e.addEventListener("blur",Ae=>{var Qe,At;if(((At=(Qe=Ae.relatedTarget)==null?void 0:Qe._mathfield)==null?void 0:At.element)===t){e.focus({preventScroll:!0}),Ae.preventDefault(),Ae.stopPropagation();return}const Ft=Co.state;if(Ft==="open"||Ft==="opening"){Ae.preventDefault(),Ae.stopPropagation();return}if(Ae.relatedTarget===Ae.target.getRootNode().host){Ae.preventDefault(),Ae.stopPropagation();return}L||A||(L=!0,n=null,i=null,r.onBlur(),L=!1)},{capture:!0,signal:q}),e.addEventListener("focus",Ae=>{L||A||(A=!0,r.onFocus(),A=!1)},{capture:!0,signal:q}),{dispose:()=>z.abort(),cancelComposition:()=>{s&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!A&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>ca()===e,setAriaLabel:Ae=>e.setAttribute("aria-label",Ae),setValue:Ae=>{var Qe;e.textContent=Ae,e.style.left="-1000px",(Qe=window.getSelection())==null||Qe.selectAllChildren(e)},moveTo:(Ae,Qe)=>{e.style.top=`${Qe}px`,e.style.left=`${Ae}px`}}}function ws(e){var t;if(!e||!Wa(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 fc(e){e=An(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 Yo(e){if(P()){const t=Y(),r=e.startsWith("!"),n=e.endsWith(t);if(r&&!n||!r&&n)return!0}return e==="!other"?!1:e==="other"}function Hc(e,t,r){if(e.length===0)return"";const n=Gt(cr(fc(r))),i=Gt({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 s=e.length-1;s>=0;s--)if((e[s].key===n||e[s].key===i)&&(!e[s].ifMode||e[s].ifMode===t))return e[s].command;return""}function Ic(e){let t=e;return S(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function Sl(e,t){let r=[];if(typeof t=="string"){const s=Ts[t];S(s)?r=s.slice():s&&r.push(s)}const n=Ic(t),i=new RegExp("^"+n.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const s of e)i.test(Ic(s.command))&&r.push(s.key);return r.map(Ka)}function Rl(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=cr(e.key);let n=e.ifPlatform;if(r.cmd){if(n&&n!=="macos"&&n!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+n+`"
"cmd" modifier can only be used with macOS or iOS platform.`);n||(n=Y()==="ios"?"ios":"macos"),r.win=!1,r.cmd=!1,r.meta=!0}if(r.win){if(n&&n!=="windows")throw new Error('Unexpected "win" modifier with platform "'+n+`"
"win" modifier can only be used with Windows platform.`);n="windows",r.win=!1,r.cmd=!1,r.meta=!0}if(n&&!Yo(n))return;if(/^\[.+\]$/.test(r.key))return E(h({},e),{key:Gt(r)});const i=ln(r.key,t);if(!i)return E(h({},e),{key:Gt(r)});if(i.shift&&r.shift||i.alt&&r.alt)throw new Error(`The keybinding ${e.key} (${Ql(e.command)}) is conflicting with the key combination ${Gt(i)} using the ${t.displayName} keyboard layout`);return i.shift=i.shift||r.shift,i.alt=i.alt||r.alt,i.meta=r.meta,i.ctrl=r.ctrl,E(h({},e),{key:Gt(i)})}function Ql(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map(r=>typeof r=="string"?`"${r}"`:r.toString()).join(", ")+")"}return e}function iA(e,t){const r=[],n=[];for(const i of e)try{const s=Rl(i,t);if(!s)continue;const A=n.find(L=>L.key===s.key&&L.ifMode===s.ifMode);if(A)throw new Error(`Ambiguous key binding ${i.key} (${Ql(i.command)}) matches ${A.key} (${Ql(A.command)}) with the ${t.displayName} keyboard layout`);n.push(s)}catch(s){s instanceof Error&&r.push(s.message)}return[n,r]}var NA=class extends aa{constructor(){super("latex")}createAtom(e){return new Ls(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"}),xs(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:n}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const i=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(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 s=[];for(const z of t)_.test(z)&&s.push(new Ls(z));let A=e.at(e.position);if(A instanceof yu&&(A=A.lastChild),!(A.parent instanceof yu)){const z=new yu("");A.parent.addChildAfter(z,A),A=z.firstChild}const L=A.parent.addChildrenAfter(s,A);return e.silenceNotifications=i,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(L)):L&&(e.position=e.offsetOf(L))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=n,!0}};function El(e){return e.atoms.find(t=>t.type==="latexgroup")}function jc(e){var t,r;const n=e.atoms.find(i=>i.type==="latexgroup");return n?(r=(t=n.body)==null?void 0:t.filter(i=>i.type==="latex"))!=null?r:[]:[]}function Bu(e,t){var r;let n=0,i=!1;const s=Number.isFinite(t==null?void 0:t.before)?(r=t==null?void 0:t.before)!=null?r:0:e.lastOffset;for(;n<=s&&!i;){const z=e.at(n);i=z instanceof Ls&&z.isSuggestion,i||n++}if(!i)return[void 0,void 0];let A=n,L=!1;for(;A<=s&&!L;){const z=e.at(A);L=!(z instanceof Ls&&z.isSuggestion),L||A++}return[n-1,A-1]}new NA;function iu(e){const t=jc(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 aA(e,t){var r;const{model:n}=e;iu(e);for(const Ae of jc(n))Ae.isError=!1;if(!n.selectionIsCollapsed||e.options.popoverPolicy==="off"){gA(e);return}const i=[];let s=n.at(n.position);for(;s&&s instanceof Ls&&/^[a-zA-Z\*]$/.test(s.value);)s=s.leftSibling;if(s&&s instanceof Ls&&s.value==="\\")for(i.push(s),s=s.rightSibling;s&&s instanceof Ls&&/^[a-zA-Z\*]$/.test(s.value);)i.push(s),s=s.rightSibling;const A=i.map(Ae=>Ae.value).join(""),L=ne(e,A);if(L.length===0){if(/^\\[a-zA-Z\*]+$/.test(A))for(const Ae of i)Ae.isError=!0;gA(e);return}const z=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=z<0?L.length-1:z%L.length;const q=L[e.suggestionIndex];if(q!==A){const Ae=i[i.length-1];Ae.parent.addChildrenAfter([...q.slice(A.length-q.length)].map(Qe=>new Ls(Qe,{isSuggestion:!0})),Ae),TA(e,{interactive:!0})}Ed(e,L)}function Ks(e){const[t,r]=Bu(e,{before:e.position});if(t===void 0||r===void 0)return!1;let n=!1;return e.getAtoms([t,r]).forEach(i=>{i.isSuggestion&&(i.isSuggestion=!1,n=!0)}),n}function Su(e,t="accept",r){var n,i;gA(e);const s=El(e.model);if(!s)return!1;if(t==="accept-suggestion"||t==="accept-all"){const q=jc(e.model).filter(Ae=>Ae.isSuggestion);if(q.length!==0){for(const Ae of q)Ae.isSuggestion=!1;e.model.position=e.model.offsetOf(q[q.length-1])}if(t==="accept-suggestion")return q.length!==0}const L=jc(e.model).filter(q=>!q.isSuggestion).map(q=>q.value).join(""),z=s.leftSibling;return s.parent.removeChild(s),e.model.position=e.model.offsetOf(z),e.switchMode((n=r==null?void 0:r.mode)!=null?n:"math"),t==="reject"||(aa.insert(e.model,L,{selectionMode:(i=r==null?void 0:r.selectItem)!=null&&i?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function Sd(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 Gd(e){var t;const r=document.getElementById(e);if(!r)return;const n=Number.parseInt((t=r.getAttribute("data-refcount"))!=null?t:"0");n<=1?r.remove():r.dataset.refcount=Number(n-1).toString()}function Xd(e,t){const r=new la({from:e.context}),n=new zr({mode:"math",type:"root",body:Al(t,{context:r})}),i=SA(Wu(new fn(n.render(r),{classes:"ML__base"}),r));return AA(i,{classes:"ML__latex"}).toMarkup()}function Ed(e,t){var r;if(t.length===0){gA(e);return}let n="";for(const[s,A]of t.entries()){const L=A,z=Xd(e,A),q=Sl(e.keybindings,L).join("<br>");n+=`<li role="button" data-command="${L}" ${s===e.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${L}</span><span class="ML__popover__command">${z}</span>`,q&&(n+=`<span class="ML__popover__keybinding">${q}</span>`),n+="</li>"}const i=cd(e,`<ul>${n}</ul>`);ld()&&((r=i.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var s;i&&!ld()&&(i.classList.add("is-visible"),Mc(e),(s=i.querySelector(".ML__popover__current"))==null||s.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function ld(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Mc(e,t){var r;if(!e.element||e.element.mathfield!==e||!ld())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){gA(e);return}if(t!=null&&t.deferred){setTimeout(()=>Mc(e),32);return}const n=Bl(e.field);if(!n)return;const i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,A=window.innerWidth-document.documentElement.clientWidth,L=window.innerHeight-document.documentElement.clientHeight,z=window.mathVirtualKeyboard.boundingRect.height,q=document.getElementById("mathlive-suggestion-popover");n.x+q.offsetWidth/2>s-A?q.style.left=`${s-q.offsetWidth-A}px`:n.x-q.offsetWidth/2<0?q.style.left="0":q.style.left=`${n.x-q.offsetWidth/2}px`;const Ae=n.y-n.height;i-L-z-n.y<Ae?(q.classList.add("ML__popover--reverse-direction"),q.classList.remove("top-tip"),q.classList.add("bottom-tip"),q.style.top=`${n.y-n.height-q.offsetHeight-15}px`):(q.classList.remove("ML__popover--reverse-direction"),q.classList.add("top-tip"),q.classList.remove("bottom-tip"),q.style.top=`${n.y+15}px`)}function gA(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function cd(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=Sd("mathlive-suggestion-popover"),lc("suggestion-popover"),lc("core"),r.addEventListener("pointerdown",n=>n.preventDefault()),r.addEventListener("click",n=>{let i=n.target;for(;i&&!i.dataset.command;)i=i.parentElement;i&&(Su(e,"reject"),aa.insert(e.model,i.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})),r.innerHTML=window.MathfieldElement.createHTML(t),r}function Hf(){document.getElementById("mathlive-suggestion-popover")&&(Gd("mathlive-suggestion-popover"),wc("suggestion-popover"),wc("core"))}function Jd(){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 _d=null,Fd,Yd,Ad=((Yd=(Fd=globalThis==null?void 0:globalThis.document)==null?void 0:Fd.currentScript)==null?void 0:Yd.src)||Jd();function ud(e){return gd(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(_d===null)try{const t=yield fetch(Ad,{method:"HEAD"});t.status===200&&(_d=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${Ad}")`)}return new URL(e,_d!=null?_d:Ad).href})}function m0(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var zc="not-loaded";function xf(){return gd(this,null,function*(){return zc="not-loaded",vA()})}function vA(){return gd(this,null,function*(){var e;if(zc!=="not-loaded")return;if(zc="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){zc="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"],n=Array.from(document.fonts).map(A=>A.family);if(r.every(A=>n.includes(A))){zc="ready";return}if(!window.MathfieldElement.fontsDirectory){zc="not-loaded";return}const i=yield ud(window.MathfieldElement.fontsDirectory);if(!i){document.body.classList.add("ML__fonts-did-not-load"),zc="error";return}const s=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(A=>m0(A[0].replace(/-[a-zA-Z]+$/,""),`${i}/${A[0]}`,A[1]));try{(yield Promise.all(s.map(L=>{try{return L.load()}catch(z){}}))).forEach(L=>document.fonts.add(L)),zc="ready";return}catch(A){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${i}"`,{cause:A}),document.body.classList.add("ML__fonts-did-not-load")}zc="error"}})}function g0(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 xs(e,t){e&&(e.dirty||(e.dirty=!0,requestAnimationFrame(()=>{hs(e)&&e.dirty&&(e.atomBoundsCache=new Map,TA(e,t),e.atomBoundsCache=void 0)})))}function v0(e,t){var r;t=t!=null?t:{};const n=new la({from:E(h({},e.context),{atomIdsSettings:{seed:t.forHighlighting?g0(zr.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"}),i=e.model.root.render(n);return AA(Wu(i,n),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Cf(e,t){const{model:r}=e;r.root.caret=void 0,r.root.isSelected=!1,r.root.containsCaret=!0;for(const i of r.atoms)i.caret=void 0,i.isSelected=!1,i.containsCaret=!1;if(r.selectionIsCollapsed){const i=r.at(r.position);i.caret=e.model.mode;let s=i.parent;for(;s;)s.containsCaret=!0,s=s.parent}else{const i=r.getAtoms(r.selection,{includeChildren:!0});for(const s of i)s.isSelected=!0}return v0(e,t).toMarkup()}function TA(e,t){if(!hs(e))return;t!=null||(t={});const r=e.element.querySelector("[part=virtual-keyboard-toggle]");r&&(r.style.display=e.hasEditableContent?"":"none");const n=e.field;if(!n)return;const i=e.isSelectionEditable&&e.hasFocus(),s=n.classList.contains("ML__focused");s&&!i?n.classList.remove("ML__focused"):!s&&i&&n.classList.add("ML__focused");let A=Cf(e,t);const L=e.element.querySelector("[part=menu-toggle]");if(L&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||e.userSelect==="none"?L.style.display="none":L.style.display=""),e.model.atoms.length<=1){const z=e.options.contentPlaceholder;z&&(A+=`<span part=placeholder class="ML__content-placeholder">${Fl(z)}</span>`)}n.innerHTML=window.MathfieldElement.createHTML(A),Id(e,t.interactive),e.dirty=!1}function Id(e,t){const r=e.field;if(!r)return;for(const L of r.querySelectorAll(".ML__selection, .ML__contains-highlight"))L.remove();!(t!=null&&t)&&zc!=="error"&&zc!=="ready"&&setTimeout(()=>{zc==="ready"?Id(e):setTimeout(()=>Id(e),128)},32);const n=e.model,i=r.offsetWidth,s=r.getBoundingClientRect().width;let A=Math.floor(s)/i;if(A=isNaN(A)?1:A,n.selectionIsCollapsed){Mc(e,{deferred:!0});let L=n.at(n.position);for(;L&&L.type!=="prompt"&&!(L.containsCaret&&L.displayContainsHighlight);)L=L.parent;if(L!=null&&L.containsCaret&&L.displayContainsHighlight){const z=Xl(e,qc(e,L),A);if(z){z.left/=A,z.right/=A,z.top/=A,z.bottom/=A;const q=document.createElement("div");q.classList.add("ML__contains-highlight"),q.style.position="absolute",q.style.left=`${z.left+1}px`,q.style.top=`${Math.ceil(z.top)}px`,q.style.width=`${Math.ceil(z.right-z.left)}px`,q.style.height=`${Math.ceil(z.bottom-z.top)}px`,r.insertBefore(q,r.childNodes[0])}}return}for(const L of jf(XA(e,{excludeAtomsWithBackground:!0}))){L.left/=A,L.right/=A,L.top/=A,L.bottom/=A;const z=document.createElement("div");z.classList.add("ML__selection"),z.style.position="absolute",z.style.left=`${L.left}px`,z.style.top=`${L.top}px`,z.style.width=`${Math.ceil(L.right-L.left)}px`,z.style.height=`${Math.ceil(L.bottom-L.top-1)}px`,r.insertBefore(z,r.childNodes[0])}}function jf(e){let t=[];for(const r of e){let n=!1;for(const i of t)if(r.left===i.left&&r.right===i.right&&r.top===i.top&&r.bottom===i.bottom){n=!0;break}n||t.push(r)}e=t,t=[];for(const r of e){let n=0;for(const i of e)if(r.left>=i.left&&r.right<=i.right&&r.top>=i.top&&r.bottom<=i.bottom&&(n+=1,n>1))break;n===1&&t.push(r)}return t}var Md=3,oA;function _l(e,t){t=h({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},t!=null?t:{}),oA||(oA={});for(const r of Object.keys(e))console.assert(!oA[r],"Selector already defined: ",r),oA[r]=E(h({},t),{fn:e[r]})}function qd(e){let t;if(Array.isArray(e)){if(e[0]==="performWithFeedback")return qd(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,r=>r[1].toUpperCase()),oA[t]}function dd(e){var t;return(t=qd(e))==null?void 0:t.target}function ef(e,t){var r;if(!t)return!1;let n,i=[],s=!1,A=!1;S(t)?(n=t[0],i=t.slice(1)):n=t,n=n.replace(/-\w/g,q=>q[1].toUpperCase());const L=oA[n],z=L==null?void 0:L.target;if(z==="model"){if(!e.isSelectionEditable&&(L!=null&&L.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(n)&&(n!=="deleteBackward"&&e.flushInlineShortcutBuffer(),e.snapshot(n)),/^complete/.test(n)||iu(e),oA[n].fn(e.model,...i),aA(e),A=!0,s=!0}else if(z==="virtual-keyboard")A=(r=window.mathVirtualKeyboard.executeCommand(t))!=null?r:!1,s=!0;else if(oA[n]){if(!e.isSelectionEditable&&(L!=null&&L.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(n)&&e.flushInlineShortcutBuffer(),A=oA[n].fn(e,...i),s=!0}else throw new Error(`Unknown command "${n}"`);return z!=="virtual-keyboard"&&(!e.model.selectionIsCollapsed||L!=null&&L.changeSelection&&t!=="deleteBackward")&&(e.flushInlineShortcutBuffer(),L!=null&&L.changeContent||e.stopCoalescingUndo(),e.defaultStyle={}),A&&xs(e),s}function zf(e,t){var r;if(!e)return!1;e.focus(),Hh.keypressVibration&&M()&&navigator.vibrate(Md);const n=qd(t);window.MathfieldElement.playSound((r=n==null?void 0:n.audioFeedback)!=null?r:"keypress");const i=e.executeCommand(t);return e.scrollIntoView(),i}_l({performWithFeedback:(e,t)=>zf(e,t)});function Bf(e){return aA(e,{atIndex:e.suggestionIndex+1}),!1}function Eu(e){return aA(e,{atIndex:e.suggestionIndex-1}),!1}_l({complete:Su},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),_l({nextSuggestion:Bf,previousSuggestion:Eu},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Ld="mathlive#virtual-keyboard-message";function tf(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===Ld}var y0=class Sp{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 Sp),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,n){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,n){this.listeners[t]&&this.listeners[t].delete(r)}handleEvent(t){if(tf(t)){if(!kA(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:n}=t;dd(n)==="virtual-keyboard"&&this.executeCommand(n);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(h({type:Ld,action:t},r),this.targetOrigin)}},Sf={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"&alpha;&beta;&gamma;",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>&#x03c6;</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>&#x03c2;</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>&#x03f5;</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>&rho;</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>&tau;</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>&upsilon;</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>&theta;</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>&iota;</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>&omicron;</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>&pi;</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>&alpha;</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>&sigma;</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>&delta;</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>&gamma;</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>&eta;</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>&xi;</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>&kappa;</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>&lambda;</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>&zeta;</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>&chi;</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>&psi;</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>&omega;</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>&beta;</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>&nu;</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>&mu;</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>&#x03b5;</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>&#x03d1;</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>&#x3f0;</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>&#x03d6;</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>&#x03f1;</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"&infin;\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
.minimalist-backdrop {
display: flex;
justify-content: center;
}
.minimalist-container {
--keycap-height: 40px;
--keycap-max-width: 53px;
--keycap-small-font-size: 12px;
background: var(--keyboard-background);
padding: 20px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: 1px solid var(--keyboard-border);
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
}
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},au={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"}]},kd;function Ef(e,t){var r,n,i;const s=fd.singleton;if(!s)return;const A=nf(e),L=(n=(r=s.getKeycap(A==null?void 0:A.id))==null?void 0:r.variants)!=null?n:"";if(typeof L=="string"&&!Zf(L)||Array.isArray(L)&&L.length===0){t==null||t();return}const z={};let q="";for(const Fr of Pd(L)){const In=Y0(Fr),Br=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);z[Br]=In;const[an,Rn]=Wf(In);q+=`<div id=${Br} class="item ${Rn}">${an}</div>`}const Ae=document.createElement("div");Ae.setAttribute("aria-hidden","true"),Ae.className="MLK__variant-panel",Ae.style.height="auto";const Qe=Object.keys(z).length;let At=5;Qe===1?At=1:Qe===2||Qe===4?At=2:Qe===3||Qe===5||Qe===6?At=3:Qe>=7&&Qe<14&&(At=4),Ae.style.width=`calc(var(--variant-keycap-length) * ${At} + 12px)`,Ae.innerHTML=Hh.createHTML(q),Co.open({root:(i=s==null?void 0:s.container)==null?void 0:i.querySelector(".ML__keyboard"),child:Ae}),kd=new AbortController;const{signal:Ft}=kd,Ot=e==null?void 0:e.getBoundingClientRect();if(Ot){Ot.top-Ae.clientHeight<0&&(Ae.style.width="auto",Qe<=6?Ae.style.height="56px":Qe<=12?Ae.style.height="108px":Qe<=18?Ae.style.height="205px":Ae.classList.add("compact"));const Fr=Math.max(0,Math.min(window.innerWidth-Ae.offsetWidth,(Ot.left+Ot.right-Ae.offsetWidth)/2)),In=Ot.top-Ae.clientHeight+5;Ae.style.transform=`translate(${Fr}px, ${In}px)`,Ae.classList.add("is-visible"),requestAnimationFrame(()=>{Ae.addEventListener("pointerup",Br=>{const an=nf(Br.target);!(an!=null&&an.id)||!z[an.id]||(w0(z[an.id]),Dd(),t==null||t(),Br.preventDefault())},{capture:!0,passive:!1,signal:Ft}),Ae.addEventListener("pointerenter",Br=>{const an=nf(Br.target);!(an!=null&&an.id)||!z[an.id]||an.classList.add("is-active")},{capture:!0,signal:Ft}),Ae.addEventListener("pointerleave",Br=>{const an=nf(Br.target);!(an!=null&&an.id)||!z[an.id]||an.classList.remove("is-active")},{capture:!0,signal:Ft}),window.addEventListener("pointercancel",()=>{Dd(),t==null||t()},{signal:Ft}),window.addEventListener("pointerup",()=>{Dd(),t==null||t()},{signal:Ft})})}}function Dd(){kd==null||kd.abort(),kd=null,Co.state==="open"&&Co.close()}function $f(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(he))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+he[r]+'"></span>',command:["applyStyle",{color:r}]});return t}if(e==="background-color"){const t=[];for(const r of Object.keys(se))t.push({class:"swatch-button",label:'<span style="background:'+se[r]+'"></span>',command:["applyStyle",{backgroundColor:r}]});return t}}function Zf(e){return au[e]!==void 0}function Pd(e){var t;return typeof e!="string"?e:(au[e]||(au[e]=(t=$f(e))!=null?t:[]),au[e])}function _f(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function rf(e){return Object.keys(e).map(t=>`${t} {${_f(e[t])}}`).join("")}function $c(e){if(!e)return"";const t=new la,r=new zr({mode:"math",type:"root",body:Al(e,{context:t,args:i=>i==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),n=SA(Wu(new fn(r.render(t),{classes:"ML__base"}),t));return AA(n,{classes:"ML__latex"}).toMarkup()}function sA(e){var t;if(Array.isArray(e))return e.map(n=>sA(n)).flat();const r=typeof e=="string"?{markup:e}:e;return"rows"in r&&Array.isArray(r.rows)&&(r.rows=r.rows.map(n=>n.map(i=>Y0(i)))),(t=r.id)!=null||(r.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[r]}function _u(){var e,t;let n=window.mathVirtualKeyboard.alphabeticLayout;if(n==="auto"){const L=zi();L&&(n=L.virtualLayout),(!n||n==="auto")&&(n=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[W.locale.slice(0,2)])!=null?e:"qwerty")}const i={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},s=(t=i[n])!=null?t:i.qwerty,A=n==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const L of s){const z=[];for(const q of L)/[a-z]/.test(q)?z.push({label:q,class:"hide-shift",shift:{label:q.toUpperCase()},variants:Zf(q)?q:void 0}):q==="~"?n!=="dvorak"?z.push("[backspace]"):z.push({label:"[backspace]",width:1}):q==="^"?z.push("[shift]"):q===" "&&z.push("[separator-5]");A.push(z)}return A.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:sA({rows:A})}}function Od(e){if(e==="alphabetic")return _u();if(typeof e=="string")return console.assert(Sf[e]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${e}"`),Od(Sf[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 i=e,{rows:s}=i,A=j(i,["rows"]);t=E(h({},A),{layers:sA({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const i=e,{markup:s}=i,A=j(i,["markup"]);t=E(h({},A),{layers:sA(e.markup)})}else t=h({},e),"layers"in e?t.layers=sA(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let r=!1,n=!1;for(const i of t.layers)if(i.rows)for(const s of i.rows.flat()){af(s)&&(r=!0);const A=s.command;typeof A=="string"&&["undo","redo","cut","copy","paste"].includes(A)&&(n=!0)}return(!("displayShiftedKeycaps"in e)||e.displayShiftedKeycaps===void 0)&&(t.displayShiftedKeycaps=r),(!("displayEditToolbar"in e)||e.displayEditToolbar===void 0)&&(t.displayEditToolbar=!n),t}function Ff(e,t){var r,n;let i='<div class="left">';if(e.normalizedLayouts.length>1)for(const[s,A]of e.normalizedLayouts.entries()){const L=A,z=[s===t?"selected":"layer-switch"];L.tooltip&&z.push("MLK__tooltip"),L.labelClass&&z.push(...L.labelClass.split(" ")),i+=`<div class="${z.join(" ")}"`,L.tooltip&&(i+=" data-tooltip='"+((r=J(L.tooltip))!=null?r:L.tooltip)+"' "),s!==t&&(i+=`data-layer="${L.layers[0].id}"`),i+=`>${(n=L.label)!=null?n:"untitled"}</div>`}return i+="</div>",i}function Vf(e,t){let r="";if(e.editToolbar==="none")return"";const i=[];t.selectionIsCollapsed?i.push("undo","redo","pasteFromClipboard"):i.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const s={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+=i.map(A=>s[A]).join(""),r}function b0(e){for(const t of e)If(t)}function If(e){const t=fd.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(n){}e.id=t.registerKeycap(r)}if(!e.innerHTML){const[n,i]=Wf(r);e.innerHTML=window.MathfieldElement.createHTML(n)}}function Mf(){lc("virtual-keyboard"),lc("core"),vA()}function Ip(){wc("core"),wc("virtual-keyboard")}var Mp=`<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 Lp(e){e.resetKeycapRegistry(),Mf();const t=document.createElement("div");t.className="ML__keyboard";const r=document.createElement("div");r.className="MLK__plate",r.innerHTML=window.MathfieldElement.createHTML(Mp+e.normalizedLayouts.map((A,L)=>kp(e,A,L)).join(""));const n=document.createElement("div");n.className="MLK__backdrop",n.appendChild(r),t.appendChild(n),t.addEventListener("pointerdown",Pp,{passive:!1});const i=t.querySelectorAll(".ML__edit-toolbar");if(i)for(const A of i)A.addEventListener("click",L=>{var z,q;let Ae=L.target,Qe="";for(;Ae&&!Qe;)Qe=(z=Ae==null?void 0:Ae.getAttribute("data-command"))!=null?z:"",Ae=(q=Ae==null?void 0:Ae.parentElement)!=null?q:null;Qe&&e.executeCommand(JSON.parse(Qe))});b0(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const s=t.querySelectorAll(".MLK__layer");console.assert(s.length>0,"No virtual keyboards available");for(const A of s)A.addEventListener("pointerdown",L=>L.preventDefault());return e.currentLayer=e.latentLayer,t}function kp(e,t,r){const n=[];if(!("layers"in t))return"";for(const i of t.layers)n.push(`<div tabindex="-1" class="MLK__layer" id="${i.id}">`),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(n.push("<div class='MLK__toolbar' role='toolbar'>"),n.push(Ff(e,r)),t.displayEditToolbar&&n.push('<div class="ML__edit-toolbar right"></div>'),n.push("</div>")),n.push(Dp(e,i)),n.push("</div>");return n.join("")}function Dp(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>${rf(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 n of t.rows){r+="<div dir='ltr' class=MLK__row>";for(const i of n)if(i){const s=e.registerKeycap(i),[A,L]=Wf(i);/(^|\s)separator/.test(L)?r+=`<div class="${L}"`:r+=`<div tabindex="-1" id="${s}" class="${L}"`,i.tooltip&&(r+=` data-tooltip="${i.tooltip}"`),r+=`>${A}</div>`}r+="</div>"}r+="</div>"}else t.markup&&(r+=t.markup);return t.container&&(r+="</div>"),t.backdrop&&(r+="</div>"),r}function Wf(e,t={shifted:!1}){var r,n,i,s,A,L,z;let q="",Ae=(r=e.class)!=null?r:"";if(t.shifted&&af(e)&&(Ae+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?q=$c(e.shift):typeof e.shift=="object"&&(q=e.shift.label?e.shift.label:(n=$c(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?n:""),typeof e.shift=="object"&&(Ae=(s=(i=e.shift.class)!=null?i:e.class)!=null?s:"");else{if(q=e.label?e.label:(A=$c(e.latex||e.insert||"")||e.key)!=null?A:"",e.shift){let Qe;typeof e.shift=="string"?Qe=$c(e.shift):e.shift.label?Qe=e.shift.label:Qe=(L=$c(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?L:"",q+=`<span class="MLK__shift">${Qe}</span>`}e.aside&&(q+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(Ae)&&(Ae+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Ae)||(Ae+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Ae)&&e.width&&(Ae+=(z={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?z:""),[q,Ae||"MLK__keycap"]}var Nd={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"&#x2212;",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"&divide;"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"&times;",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function Y0(e){var t;if(typeof e=="string"){if(e==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(e="[,]"),!Nd[e])return{latex:e};e={label:e}}let r;return"label"in e&&e.label&&Nd[e.label]&&(r=E(h(h({},Nd[e.label]),e),{label:Nd[e.label].label})),"key"in e&&e.key&&Nd[e.key]&&(r=E(h(h({},Nd[e.key]),e),{key:Nd[e.key].key})),r?(r.command==="insertDecimalSeparator"&&(r.label=(t=window.MathfieldElement.decimalSeparator)!=null?t:"."),e.label==="[action]"&&(r=h(h({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=h(h({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=h(h({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=h(h({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var Lf;function Pp(e){var t;if(e.button!==0)return;const r=fd.singleton;if(!r)return;let n=e.target;for(;n&&!n.getAttribute("data-layer");)n=n.parentElement;if(n){r.currentLayer=(t=n.getAttribute("data-layer"))!=null?t:"",e.preventDefault();return}const i=nf(e.target);if(!(i!=null&&i.id))return;const s=r.getKeycap(i.id);if(!s)return;console.assert(e.type==="pointerdown");const A=new AbortController,L=A.signal;i.classList.add("is-pressed"),i.addEventListener("pointerenter",Gf(A),{capture:!0,signal:L}),i.addEventListener("pointerleave",Gf(A),{capture:!0,signal:L}),i.addEventListener("pointercancel",Gf(A),{signal:L}),i.addEventListener("pointerup",Gf(A),{signal:L}),af(s)&&(i.classList.add("is-active"),r.shiftPressCount++),s.variants&&(Lf&&clearTimeout(Lf),Lf=setTimeout(()=>{i.classList.contains("is-pressed")&&(i.classList.remove("is-pressed"),i.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),Ef(i,()=>{A.abort(),i==null||i.classList.remove("is-active")}))},300)),e.preventDefault()}function Gf(e){return t=>{const r=nf(t.target);if(!(r!=null&&r.id))return;const n=fd.singleton;if(!n)return;const i=n.getKeycap(r.id);if(i){if(t.type==="pointerenter"&&t.target===r&&t.isPrimary&&r.classList.add("is-pressed"),t.type==="pointercancel"){r.classList.remove("is-pressed"),af(i)&&(n.shiftPressCount--,r.classList.toggle("is-active",n.isShifted)),e.abort();return}if(t.type==="pointerleave"&&t.target===r){r.classList.remove("is-pressed"),af(i)&&(n.shiftPressCount--,r.classList.toggle("is-active",n.isShifted));return}if(t.type==="pointerup"){Lf&&clearTimeout(Lf),af(i)?r.classList.toggle("is-active",n.isShifted):r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),n.isShifted&&i.shift?typeof i.shift=="string"?n.executeCommand(["insert",i.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):w0(i.shift):w0(i),n.shiftPressCount===1&&!t.shiftKey&&(n.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function w0(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=fd.singleton)==null||t.executeCommand(r)}function Op(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 nf(e){if(!e)return;let t=e;for(;t&&!Op(t);)t=t.parentElement;return t!=null?t:void 0}function af(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var fd=class Ep{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var t,r,n;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(i=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(n=window.top)==null||n.addEventListener("message",this)}catch(i){window.addEventListener("message",this)}document.body.addEventListener("focusin",i=>{const s=i.target;s!=null&&s.isConnected&&setTimeout(()=>{const A=q0();A&&!A.readOnly&&A.mathVirtualKeyboardPolicy==="auto"&&R()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",i=>{i.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{q0()||this.hide()},300)})}get currentLayer(){var t,r,n;return(n=(r=(t=this._element)==null?void 0:t.querySelector(".MLK__layer.is-visible"))==null?void 0:r.id)!=null?n:""}set currentLayer(t){var r;if(!this._element){this.latentLayer=t;return}let n=t?this._element.querySelector(`#${t}.MLK__layer`):null;n||(n=this._element.querySelector(".MLK__layer")),n&&((r=this._element.querySelector(".MLK__layer.is-visible"))==null||r.classList.remove("is-visible"),n.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 n of r)for(const i of n.layers)if(i.id===t)return i}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],n=r.findIndex(i=>i==="default");n>=0&&r.splice(n,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(r),this._normalizedLayouts=r.map(i=>Od(i))}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 Ep}catch(t){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(t,r,n){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,n){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 n=this.boundingRect.height;if(this.container===document.body){(t=this._element)==null||t.style.setProperty("--_keyboard-height",`calc(${n}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const i=n-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${i}px)`:`${i}px`}else(r=this._element)==null||r.style.setProperty("--_keyboard-height",`${n}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 n of r){const i=this.getKeycap(n.id);if(i){const[s,A]=Wf(i,{shifted:this.isShifted});n.innerHTML=window.MathfieldElement.createHTML(s),n.className=A}}}show(t){var r;if(this._visible)return;const n=this.container;if(n&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const i=this._element.getElementsByClassName("MLK__plate")[0];if(i&&this.observer.observe(i),n===window.document.body){const s=n.style.paddingBottom;this.originalContainerBottomPadding=s;const A=i.offsetHeight-1;n.style.paddingBottom=s?`calc(${s} + ${A}px)`:`${A}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,t!=null&&t.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var i;return(i=this._element)==null?void 0:i.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 n=this.container;if(n&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const i=this._element.getElementsByClassName("MLK__plate")[0];i&&this.observer.unobserve(i),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}),Dd(),Ip(),(r=this._element)==null||r.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(n.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=Lp(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",r=>{r.shiftKey||((r.ctrlKey||r.button===2)&&Ef(r.target),r.preventDefault(),r.stopPropagation())},{capture:!0}),(t=this.container)==null||t.appendChild(this.element)}handleEvent(t){if(tf(t)){if(!kA(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:n}=t;if(n==="execute-command"){const{command:i}=t,s=dd(i);if(window.top!==void 0&&s!=="virtual-keyboard")return;this.executeCommand(i);return}if((n==="connect"||n==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r),n!=="disconnect"&&window===window.top){if(n==="show"){typeof t.animate!="undefined"?this.show({animate:t.animate}):this.show();return}if(n==="hide"){typeof t.animate!="undefined"?this.hide({animate:t.animate}):this.hide();return}if(n==="update-setting"){t.alphabeticLayout&&(this.alphabeticLayout=t.alphabeticLayout),t.layouts&&(this.layouts=t.layouts),t.editToolbar&&(this.editToolbar=t.editToolbar);return}if(n==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r);return}}}sendMessage(t,r,n){if(n||(n=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||n===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:h({type:Ld,action:t},r)}));return}if(n)n.postMessage(h({type:Ld,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 i=r.command[1].split("");for(const s of i)this.dispatchEvent(new KeyboardEvent("keydown",{key:s,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:s,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 n=r.querySelectorAll(".ML__edit-toolbar");if(n)for(const i of n)i.innerHTML=Vf(this,t)}update(t){this._style=t.style,this.updateToolbar(t)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(t){let r,n=[],i=dd(t);return S(t)?(r=t[0],r==="performWithFeedback"&&(t=t.slice(1),i=dd(t)),n=t.slice(1)):r=t,r=r.replace(/-\w/g,s=>s[1].toUpperCase()),i==="virtual-keyboard"?oA[r].fn(void 0,...n):(this.sendMessage("execute-command",{command:t}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function q0(){var e,t;let r=ca(),n=null;for(;r;){if("host"in r&&((t=(e=r.host)==null?void 0:e.tagName)==null?void 0:t.toLowerCase())==="math-field"){n=r.host;break}r=r.parentNode}return n}if(P()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=fd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>y0.singleton,configurable:!0});function Xf(e){const t={};for(const r of Object.keys(e))switch(r){case"scriptDepth":const n=e.scriptDepth;if(S(n))t.scriptDepth=[n[0],n[1]];else if(typeof n=="number")t.scriptDepth=[n,n];else if(typeof n=="string"){const[s,A]=n.split(",").map(L=>parseInt(L.trim()));t.scriptDepth=[s,A]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let i=e.mathVirtualKeyboardPolicy.toLowerCase();if(i==="sandboxed"){if(window!==window.top){const s=fd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>s})}i="manual"}t.mathVirtualKeyboardPolicy=i;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?W.locale.startsWith("fr")?t.letterShapeStyle="french":t.letterShapeStyle="tex":t.letterShapeStyle=e.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(e.defaultMode)?t.defaultMode=e.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),t.defaultMode="math");break;case"macros":t.macros=Le(e.macros);break;default:S(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=h({},e[r]):t[r]=e[r]}return t}function Td(e,t){let r;typeof t=="string"?r=[t]:t===void 0?r=Object.keys(e):r=t;const n={};for(const i of r)e[i]===null?n[i]=null:S(e[i])?n[i]=[...e[i]]:typeof e[i]=="object"&&!(e[i]instanceof Element)&&i!=="computeEngine"?n[i]=h({},e[i]):n[i]=e[i];return typeof t=="string"?n[t]:n}function Jf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:je,backgroundColorMap:X,letterShapeStyle:W.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:bs,inlineShortcuts:D,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Fa,value:""}}function eh(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function hd(e,t){!e||!t||(S(e)?e.forEach(r=>hd(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),hd(e.body,t),hd(e.above,t),hd(e.below,t),hd(e.subscript,t),hd(e.superscript,t)))}function x0(e,t,r,n){function i(A,L){for(const z of s)if(z.style[A]!==L)return!1;return!0}if(t=e.normalizeRange(t),t[0]===t[1])return!1;const s=e.getAtoms(t,{includeChildren:!0});n.operation==="toggle"&&(r.color&&i("color",r.color)&&(r.color="none",delete r.verbatimColor),r.backgroundColor&&i("backgroundColor",r.backgroundColor)&&(r.backgroundColor="none",delete r.verbatimBackgroundColor),r.fontFamily&&i("fontFamily",r.fontFamily)&&(r.fontFamily="none"),r.fontSeries&&i("fontSeries",r.fontSeries)&&(r.fontSeries="auto"),r.fontShape&&i("fontShape",r.fontShape)&&(r.fontShape="auto"),r.fontSize&&i("fontSize",r.fontSize)&&(r.fontSize=Lo),r.variant&&i("variant",r.variant)&&(r.variant="normal"),r.variantStyle&&i("variantStyle",r.variantStyle)&&(r.variantStyle=""));for(const A of s)A.applyStyle(r);return!0}function Np(e,t){const r=e.at(e.position);if(r.type==="composition")r.value=t;else{const{caret:n}=r;r.caret=void 0;const i=new zu(t,{mode:r.mode});i.caret=n,r.parent.addChildAfter(i,r),e.position+=1}}function Tp(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}qe(["math","displaymath"],UA),qe("center",UA),me("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(n=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(n)))}while(!0);return e.endContext(),t.push([r]),t},createAtom:e=>new Ua("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),St("array","{columns:colspec}",(e,t,r,n)=>new Ua(e,C0(t),r,{columns:n[0],mathstyleName:"textstyle"})),St(["equation","equation*","subequations"],"",(e,t,r)=>new Ua(e,C0(t),r,{columns:[{align:"c"}]})),St(["multline","multline*"],"",UA),St(["align","align*","aligned","eqnarray"],"",UA),St("split","",UA),St(["gather","gathered"],"",UA),St(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",UA),St(["smallmatrix","smallmatrix*"],"[columns:colspec]",UA),St(["cases","dcases","rcases"],"",UA);function Up(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function C0(e,t=1){return Up(e)?Array(t).fill([[new zr({type:"first"}),new ql]]):e.map(r=>r.length===0?[[new zr({type:"first"})]]:r.map(n=>n.length===0?[new zr({type:"first"})]:(n[0].type!=="first"&&n.unshift(new zr({type:"first"})),n)))}function UA(e,t=[[[]]],r=[],n=[]){switch(t=C0(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":return new Ua(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new Ua(e,t,r,{mathstyleName:"textstyle"});case"center":return new Ua(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new Ua(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Ua(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Ua(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Ud(n[0])});case"bmatrix":case"bmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Ud(n[0])});case"Bmatrix":case"Bmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Ud(n[0])});case"vmatrix":case"vmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Ud(n[0])});case"Vmatrix":case"Vmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Ud(n[0])});case"matrix":case"matrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Ud(n==null?void 0:n[0])});case"smallmatrix":case"smallmatrix*":return new Ua(e,t,r,{mathstyleName:"scriptstyle",columns:Ud(n==null?void 0:n[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Ua(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 Ua(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Ua(e,t,r,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let i=0;for(const L of t)i=Math.max(i,L.length);const s=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let A=2;for(;A<i;)s.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),A+=2;return s.push({gap:0}),new Ua(e,t,r,{arraycolsep:0,columns:s,minColumns:2})}}return new Ua(e,t,r,{mathstyleName:"textstyle"})}function Ud(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 Rp(e,t){let r=e.at(e.position);for(;r&&!(r.parent instanceof Ua);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof Ua)){const n=e.at(e.position);if(r=n,!r.parent.parent){let i=e.extractAtoms([e.position,e.lastOffset]),s=e.extractAtoms([0,e.position]);s.length===0&&(s=e0()),i.length===0&&(i=e0());let A;return t.endsWith("column")?(A=UA("split",[[s,i]]),e.root=A,Rd(A,0,0)?Qd(e,A,0,0):Rd(A,0,1)?Qd(e,A,0,1):e.position=e.offsetOf(n)):(A=UA("lines",[[s],[i]]),e.root=A,Rd(A,0,0)?Qd(e,A,0,0):Rd(A,1,0)?Qd(e,A,1,0):e.position=e.offsetOf(n)),[void 0,[0,0]]}if(r.parent instanceof ko){const i=r.parent;let s=e.extractAtoms([e.position,e.offsetOf(i.lastChild)]),A=e.extractAtoms([e.offsetOf(i.firstChild),e.position]);A.length===0&&(A=e0()),s.length===0&&(s=e0());let L="pmatrix";const z=i.leftDelim,q=i.rightDelim;z==="("&&(q===")"||q==="?")?L="pmatrix":(z==="["||z==="\\lbrack")&&(q==="]"||q==="\\rbrack"||q==="?")?L="bmatrix":z==="\\vert"&&q==="\\vert"?L="vmatrix":z==="\\Vert"&&q==="\\Vert"?L="Vmatrix":(z==="{"||z==="\\lbrace")&&(q==="."||q==="?")&&(L="cases");const Ae=UA(L,t.endsWith("column")?[[A,s]]:[[A],[s]]);return i.parent.addChildBefore(Ae,i),i.parent.removeChild(i),Rd(Ae,0,0)?Qd(e,Ae,0,0):t.endsWith("column")?Rd(Ae,0,1)?Qd(e,Ae,0,1):e.position=e.offsetOf(r):Rd(Ae,1,0)?Qd(e,Ae,1,0):e.position=e.offsetOf(r),[void 0,[0,0]]}}return r&&r.parent instanceof Ua?[r.parent,r.parentBranch]:[void 0,[0,0]]}function Rd(e,t,r){const n=e.getCell(t,r);return!n||n.length!==2?!1:n[1].type==="placeholder"}function Qp(e,t,r,n){const i=t.getCell(r,n);return i?[e.offsetOf(i[0]),e.offsetOf(i[i.length-1])]:-1}function Qd(e,t,r,n){const i=Qp(e,t,r,n);typeof i!="number"&&e.setSelection(i)}function Yf(e,t,r,n,i){const s=t.getCell(r,n);s&&e.setPositionHandlingPlaceholder(e.offsetOf(s[i==="start"?0:s.length-1]))}function qf(e,t){const[r,[n,i]]=Rp(e,t);if(r)switch(t){case"after row":r.addRowAfter(n),Yf(e,r,n+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(i),Yf(e,r,n,i+1,"end");break;case"before row":r.addRowBefore(n),Yf(e,r,n,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(i),Yf(e,r,n,i,"start");break}}function th(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Kp(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function rh(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Hp(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function nh(e,t){if(!e.contentWillChange({}))return!1;e.mathfield.snapshot();let r=".",n=".";switch(t){case"pmatrix":case"pmatrix*":r="(",n=")";break;case"bmatrix":case"bmatrix*":r="[",n="]";break;case"Bmatrix":case"Bmatrix*":r="\\lbrace",n="\\rbrace";break;case"vmatrix":case"vmatrix*":r="\\vert",n="\\vert";break;case"Vmatrix":case"Vmatrix*":r="\\Vert",n="\\Vert";break;case"matrix":case"matrix*":r=".",n=".";break;case"cases":case"dcases":r="\\lbrace";break;case"rcases":n="\\rbrace";break}const i=e.at(e.position),s=i.type==="array"?i:e.parentEnvironment;return s.environmentName=t,s.leftDelim=r,s.rightDelim=n,e.contentDidChange({}),!0}function ih(e,t){let r=e.at(e.position);for(;r&&!(Array.isArray(r.parentBranch)&&r.parent instanceof Ua);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof Ua){const n=r.parent,i=r.parentBranch;let s;switch(t){case"row":if(n.rowCount>1){n.removeRow(i[0]);const A=n.getCell(Math.max(0,i[0]-1),i[1]);s=e.offsetOf(A[A.length-1])}break;case"column":if(n.colCount>n.minColumns){n.removeColumn(i[1]);const A=n.getCell(i[0],Math.max(0,i[1]-1));s=e.offsetOf(A[A.length-1])}break}s&&e.setPositionHandlingPlaceholder(s)}}function jp(e){return e.contentWillChange({inputType:"deleteContent"})?(ih(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function zp(e){return e.contentWillChange({inputType:"deleteContent"})?(ih(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}_l({addRowAfter:th,addColumnAfter:rh,addRowBefore:Kp,addColumnBefore:Hp,removeRow:jp,removeColumn:zp,setEnvironment:nh},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function e0(){return[new ql]}var ah=class _p{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>_p.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=t!=null?t:"",!0):!1}};ah.maximumDepth=1e3;var $p=ah;function B0(e,t,r){if(e.at(t).mode!=="text")return t;const n=r==="backward"?-1:1;let i;if(u.test(e.at(t).value)){let s=t,A;do A=e.at(s).mode==="text"&&u.test(e.at(s).value),s+=n;while(e.at(s)&&A);i=e.at(s)?s-2*n:s-n}else if(/\s/.test(e.at(t).value)){let s=t;for(;e.at(s)&&e.at(s).mode==="text"&&/\s/.test(e.at(s).value);)s+=n;if(!e.at(s))i=s-n;else{let A=!0;do A=e.at(s).mode==="text"&&!/\s/.test(e.at(s).value),s+=n;while(e.at(s)&&A);i=e.at(s)?s-2*n:s-n}}else{let s=t;for(;e.at(s)&&e.at(s).mode==="text"&&!/\s/.test(e.at(s).value);)s+=n;i=e.at(s)?s:s-n;let A=!0;for(;e.at(s)&&A;)A=e.at(s).mode==="text"&&/\s/.test(e.at(s).value),A&&(i=s),s+=n;i=e.at(s)?s-2*n:s-n}return i-(n>0?0:1)}function of(e,t,r){var n,i,s,A,L,z,q;const Ae=e.position;(n=r==null?void 0:r.extend)!=null&&n||e.collapseSelection(t);let Qe=e.at(e.position);if(t==="forward"&&(Qe.type==="subsup"?(Qe=Qe.rightSibling,Qe||(Qe=e.at(e.position+1))):Qe=e.at(e.position+1)),!Qe)return e.announce("plonk"),!1;let At=e.offsetOf(Qe);if(Qe instanceof oc)At=B0(e,At,t);else if(Qe instanceof Ls)if(Qe.isSuggestion)for(console.assert(t==="forward");Qe&&Qe instanceof Ls;)Qe.isSuggestion=!1,At=e.offsetOf(Qe),Qe=Qe.rightSibling;else if(t==="forward"){if(Qe=Qe.rightSibling,!Qe||!(Qe instanceof Ls))return e.announce("plonk"),!1;for(;Qe&&Qe instanceof Ls&&/[a-zA-Z\*]/.test(Qe.value);)At=e.offsetOf(Qe),Qe=Qe.rightSibling}else{if(Qe=Qe.leftSibling,!Qe||!(Qe instanceof Ls))return e.announce("plonk"),!1;for(;Qe&&Qe instanceof Ls&&/[a-zA-Z\*]/.test(Qe.value);)At=e.offsetOf(Qe),Qe=Qe.leftSibling}else if(t==="forward"&&Qe.type==="mopen"){let Ft=0;do Qe.type==="mopen"?Ft+=1:Qe.type==="mclose"&&(Ft-=1),Qe=Qe.rightSibling;while(!Qe.isLastSibling&&Ft!==0);At=e.offsetOf(Qe.leftSibling)}else if(t==="backward"&&Qe.type==="mclose"){let Ft=0;do Qe.type==="mopen"?Ft+=1:Qe.type==="mclose"&&(Ft-=1),Qe=Qe.leftSibling;while(!Qe.isFirstSibling&&Ft!==0);At=e.offsetOf(Qe)}else if(t==="backward")if(Qe.type==="first")for(;At>0&&Qe.type==="first";)At-=1,Qe=e.at(At);else{const Ft=Qe.type;Qe.type==="subsup"&&(At=e.offsetOf(e.at(At).leftSibling)),At-=1;let Ot=(i=e.at(At))==null?void 0:i.type;for(;At>=0&&Ot===Ft;)((s=e.at(At))==null?void 0:s.type)==="subsup"?At=e.offsetOf(e.at(At).leftSibling):At-=1,Ot=e.at(At).type}else{const{type:Ft}=Qe;let Ot=(A=e.at(At))==null?void 0:A.type;const{lastOffset:Fr}=e;for(;At<=Fr&&(Ot===Ft||Ot==="subsup");){for(;((L=e.at(At).rightSibling)==null?void 0:L.type)==="subsup";)At=e.offsetOf(e.at(At).rightSibling);At+=1,Ot=(z=e.at(At))==null?void 0:z.type}At-=1}if((q=r==null?void 0:r.extend)!=null&&q){if(!e.setSelection(e.anchor,At))return e.announce("plonk"),!1}else{if(At===e.position)return e.announce("plonk"),!1;e.position=At}return e.announce("move",Ae),e.mathfield.stopCoalescingUndo(),!0}function Fu(e,t,r){var n,i;if(r=r!=null?r:{extend:!1},e.mathfield.adoptStyle=t==="backward"?"right":"left",t!=="forward"){const[L,z]=Bu(e);L!==void 0&&z!==void 0&&e.deleteAtoms([L,z])}if(t==="upward")return Vp(e,r);if(t==="downward")return Wp(e,r);if(r.extend){let L=t0(e,e.position,t);L<0&&(L=0),L>e.lastOffset&&(L=e.lastOffset);const z=e.setSelection(e.anchor,L);return e.mathfield.stopCoalescingUndo(),z}if(e.selectionIsPlaceholder){e.collapseSelection(t);const L=Fu(e,t);return e.mathfield.stopCoalescingUndo(),L}let s=e.position;const A=s;if(e.collapseSelection(t)?(s=e.position,oh(e,s)||(s=t0(e,s,t))):s=t0(e,s,t),s<0||s>e.lastOffset){let L=!0;return e.silenceNotifications||(L=(i=(n=e.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))!=null?i:!0),L&&e.announce("plonk"),L}return e.setPositionHandlingPlaceholder(s),e.mathfield.stopCoalescingUndo(),e.announce("move",A),!0}function t0(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||oh(e,t)?t:t0(e,t,r)}function oh(e,t){var r;const n=e.at(t);let i=n.parent;for(;i&&!i.inCaptureSelection;)i=i.parent;return!(i!=null&&i.inCaptureSelection||(r=n.parent)!=null&&r.skipBoundary&&(!n.isFirstSibling&&n.isLastSibling||n.type==="first")||e.mathfield.hasEditablePrompts&&!n.parentPrompt)}function Zp(e,t,r){let n=1/0,i=0;for(;i<t.length;i++){const s=JA(e.getHTMLElement(t[i])).right,A=Math.abs(r-s);if(A<=n)n=A;else break}return t[i-1]}function r0(e,t,r,n,i){const s=e.mathfield.hasEditablePrompts,A=s?r.filter(q=>q.type==="prompt"&&!q.captureSelection):r,L=JA(e.mathfield.getHTMLElement(t)).right,z=e.offsetOf(Zp(e.mathfield,A,L))-(s?1:0);if(n){const[q,Ae]=e.selection.ranges[0];let Qe;z<(i==="up"?q:Ae)?Qe={ranges:[[z,Ae]],direction:"backward"}:Qe={ranges:[[q,z]],direction:"forward"},e.setSelection(Qe)}else e.setPositionHandlingPlaceholder(z);e.announce(`move ${i}`)}function Vp(e,t){var r,n;const i=(r=t==null?void 0:t.extend)!=null?r:!1;i||e.collapseSelection("backward");const s=()=>{var z,q;let Ae=!0;return e.silenceNotifications||(Ae=(q=(z=e.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?q:!0),e.announce(Ae?"plonk":"line"),Ae},A=e.at(e.position);let L=A;for(;L&&L.parentBranch!=="below"&&!(Array.isArray(L.parentBranch)&&L.parent instanceof Ua);)L=L.parent;if(Array.isArray(L==null?void 0:L.parentBranch)&&L.parent instanceof Ua){const z=L.parent;if(L.parentBranch[0]<1)return s();const q=L.parentBranch[0]-1,Ae=z.array[q][L.parentBranch[1]];if(!Ae.some(At=>At.type==="prompt"&&!At.captureSelection)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,Ae,i,"up")}else if(L){const z=(n=L.parent.branch("above"))!=null?n:L.parent.createBranch("above");if(!z.some(Ae=>Ae.type==="prompt"&&Ae.placeholderId)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,z,i,"up")}else return s();return e.mathfield.stopCoalescingUndo(),!0}function Wp(e,t){var r,n;const i=(r=t==null?void 0:t.extend)!=null?r:!1;i||e.collapseSelection("forward");const s=()=>{var z,q;let Ae=!0;return e.silenceNotifications||(Ae=(q=(z=e.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?q:!0),e.announce(Ae?"plonk":"line"),Ae},A=e.at(e.position);let L=A;for(;L&&L.parentBranch!=="above"&&!(Array.isArray(L.parentBranch)&&L.parent instanceof Ua);)L=L.parent;if(Array.isArray(L==null?void 0:L.parentBranch)&&L.parent instanceof Ua){const z=L.parent;if(L.parentBranch[0]+1>z.array.length-1)return s();const q=L.parentBranch[0]+1,Ae=z.array[q][L.parentBranch[1]];if(!Ae.some(At=>At.type==="prompt"&&!At.captureSelection)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,Ae,i,"down")}else if(L){const z=(n=L.parent.branch("below"))!=null?n:L.parent.createBranch("below");if(!z.some(Ae=>Ae.type==="prompt")&&e.mathfield.hasEditablePrompts)return s();r0(e,A,z,i,"down")}else return s();return!0}function sh(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 Gp(e){let t=0,r=e.at(e.position),n=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(n=!1):n=!0,r=r.parent;return n?t:0}function Xp(e){let t=0,r=e.at(e.position),n=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(n=!0):n=!1,r=r.parent;return n?t:0}function lh(e){var t;if(e.collapseSelection(),Gp(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 mu({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function ch(e){var t;if(e.collapseSelection(),Xp(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 mu({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 Jp(){function e(z){const q=[],Ae=[];return[...z.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((At,Ft)=>{const Ot=n(At);Ot===0?q.push(At):Ae.push({documentOrder:Ft,tabIndex:Ot,node:At})}),Ae.sort((At,Ft)=>At.tabIndex===Ft.tabIndex?At.documentOrder-Ft.documentOrder:At.tabIndex-Ft.tabIndex).map(At=>At.node).concat(q)}function t(z){return!(!r(z)||i(z)||n(z)<0)}function r(z){return!(z.disabled||z.type==="hidden"&&z.tagName.toUpperCase()==="INPUT"||L(z))}function n(z){var q;const Ae=Number.parseInt((q=z.getAttribute("tabindex"))!=null?q:"NaN",10);return Number.isNaN(Ae)?z.contentEditable==="true"||(z.nodeName==="AUDIO"||z.nodeName==="VIDEO")&&z.getAttribute("tabindex")===null?0:z.tabIndex:Ae}function i(z){return z.tagName.toUpperCase()==="INPUT"&&z.type==="radio"&&!A(z)}function s(z,q){for(const Ae of z)if(Ae.checked&&Ae.form===q)return Ae;return null}function A(z){var q;if(!z.name)return!0;const Qe=((q=z.form)!=null?q:z.ownerDocument).querySelectorAll('input[type="radio"][name="'+z.name+'"]'),At=s(Qe,z.form);return!At||At===z}function L(z){if(!P()||z===document.activeElement||z.contains(document.activeElement))return!1;if(getComputedStyle(z).visibility==="hidden")return!0;const q=z.getBoundingClientRect();if(q.width===0||q.height===0)return!0;for(;z;){if(getComputedStyle(z).display==="none")return!0;z=z.parentElement}return!1}return P()?e(document.body):[]}function Lc(e,t,r="forward"){const n=e.position;if(Array.isArray(t)){const i=e.offsetOf(t[0]),s=e.offsetOf(t[t.length-1]);return r==="forward"?e.setSelection(i,s):e.setSelection(s,i),e.announce("move",n),e.mathfield.stopCoalescingUndo(),!0}return r==="forward"?Lc(e,[t.leftSibling,t]):Lc(e,[t,t.leftSibling])}function ou(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 n=e.offsetOf(t);t.type==="placeholder"?e.setSelection(n-1,n):e.position=n}return e.announce("move",r),e.mathfield.stopCoalescingUndo(),!0}function n0(e,t,r=!0){var n,i;const s=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&Fu(e,t);let A;const L=e.at(e.anchor).parentPrompt;L?t==="forward"?A=e.offsetOf(L)+1:A=e.offsetOf(L.leftSibling):A=Math.max(e.position+s,0);const z=S0(e,A,t);if(!z||t==="forward"&&e.offsetOf(z)<A||t==="backward"&&e.offsetOf(z)>A){if(!r||!((i=(n=e.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))==null||i))return e.announce("plonk"),!1;const Ae=Jp();if(!document.activeElement||Ae.length<=1)return e.announce("plonk"),!1;let Qe=Ae.indexOf(document.activeElement)+s;return Qe<0&&(Qe=Ae.length-1),Qe>=Ae.length&&(Qe=0),Ae[Qe].focus(),e.mathfield.stopCoalescingUndo(),!0}return ou(e,z),!0}function S0(e,t=0,r="forward"){return e.findAtom(n=>n.type==="placeholder"||n.type==="prompt"||!e.mathfield.readOnly&&n.treeDepth>2&&n.isFirstSibling&&n.isLastSibling,t,r)}_l({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},r=e.at(e.position),{parent:n}=r;if(!n)return e.announce("plonk"),!1;const i=r.parentBranch;let s;if(typeof i=="string"&&(s=t[i]),!s){const L=r.subsupPlacement?ch(e):lh(e);return e.mathfield.stopCoalescingUndo(),L}n.branch(s)||n.createBranch(s);const A=e.setSelection(e.getBranchRange(e.offsetOf(n),s));return e.mathfield.stopCoalescingUndo(),A},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>sh(e),moveToNextChar:e=>Fu(e,"forward"),moveToPreviousChar:e=>Fu(e,"backward"),moveUp:e=>Fu(e,"upward"),moveDown:e=>Fu(e,"downward"),moveToNextWord:e=>of(e,"forward"),moveToPreviousWord:e=>of(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,n,i;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return n0(e,"forward");const s=e.at(e.position);if(s.mode==="text"){if(e.selectionIsCollapsed){let At=s;for(;At&&At.mode==="text";)At=At.leftSibling;let Ft=s;for(;((t=Ft.rightSibling)==null?void 0:t.mode)==="text";)Ft=Ft.rightSibling;if(At&&Ft)return Lc(e,[At,Ft])}if(s.rightSibling.mode==="text"){let At=s;for(;At&&At.mode==="text";)At=At.rightSibling;return At?(ou(e,(r=At.leftSibling)!=null?r:At),e.mathfield.switchMode("math"),!0):ou(e,e.lastOffset)}}const L=e.at(e.anchor).parentPrompt,z=L?e.offsetOf(L)+1:Math.max(e.position+1,0),q=S0(e,z,"forward");if(q)return ou(e,q);const Ae=Ah(e,s,At=>At.type==="leftright"||At.type==="text","forward");if(Ae){if(Ae.mode==="text"){let At=Ae;for(;At&&At.mode==="text";)At=At.rightSibling;return Lc(e,[(n=Ae.leftSibling)!=null?n:Ae,(i=At.leftSibling)!=null?i:At])}return Lc(e,Ae)}const Qe=s.parent;if(Qe){if(Qe.type==="leftright"||Qe.type==="surd")return Lc(e,Qe);if(s.parentBranch==="superscript"&&Qe.subscript)return Lc(e,Qe.subscript);if(s.parentBranch==="above"&&Qe.below)return Lc(e,Qe.below);if(s.parentBranch==="superscript"||s.parentBranch==="subscript")return ou(e,Qe);if(s.parentBranch==="above"||s.parentBranch==="below")return Lc(e,Qe)}return ou(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return n0(e,"backward");let r=e.at(e.position);const n=r.mode;if(n==="text"){if(e.selectionIsCollapsed){let L=r;for(;L&&L.mode==="text";)L=L.leftSibling;let z=r;for(;((t=z.rightSibling)==null?void 0:t.mode)==="text";)z=z.rightSibling;if(L&&z)return Lc(e,[L,z])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?ou(e,r):ou(e,0)}const i=e.at(e.anchor).parentPrompt,s=i?e.offsetOf(i.leftSibling):Math.max(e.position-1,0),A=S0(e,s,"backward");if(A)return ou(e,A);if(n==="math"){const L=Ah(e,r,q=>q.type==="leftright"||q.type==="text","backward");if(L){if(L.mode==="text"){let q=L;for(;q&&q.mode==="text";)q=q.leftSibling;return Lc(e,[L,q])}return Lc(e,L)}const z=r.parent;if(z){if(z.type==="leftright"||z.type==="surd")return Lc(e,z);if(r.parentBranch==="subscript"&&z.superscript)return Lc(e,z.superscript);if(r.parentBranch==="below"&&z.above)return Lc(e,z.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return ou(e,z);if(r.parentBranch==="above"||r.parentBranch==="below")return Lc(e,z)}return ou(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:lh,moveToSubscript:ch},{target:"model",changeSelection:!0}),_l({moveToNextPlaceholder:e=>n0(e,"forward"),moveToPreviousPlaceholder:e=>n0(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Ah(e,t,r,n){if(n==="forward"){let s=t.rightSibling;for(;s&&!r(s);)s=s.rightSibling;return s}let i=t.leftSibling;for(;i&&!r(i);)i=i.leftSibling;return i}function i0(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let n=e.position,i=!1,s="";for(;!i;){const A=e.at(n);i=t===0||A===void 0||A.type==="first"||A.mode!=="math"||!(A.type&&/mord|mpunct|operator/.test(A.type)||A.type==="mop"&&/[a-zA-Z ]+/.test(A.value))||!A.hasEmptyBranch("superscript")||!A.hasEmptyBranch("subscript")||typeof r=="function"&&!r(A),i||(A.mode="text",A.command=A.value,A.verbatimLatex=void 0,s+=A.value),n-=1,t-=1}e.contentDidChange({data:s,inputType:"insertText"})}function Kd(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let n=e.position,i=!1;const s=[];for(;!i;){const A=e.at(n);i=t===0||!A||A.type==="first"||A.isFirstSibling||A.mode!=="text"||A.value===" "||typeof r=="function"&&!r(A),i||(s.push(zr.serialize([A],{defaultMode:"math"})),A.mode="math"),n-=1,t-=1}E0(e),e.contentDidChange({data:Ca(s),inputType:"insertText"})}function E0(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 n=e.silenceNotifications;e.silenceNotifications=!0,e.position-=1,e.silenceNotifications=n,e.contentDidChange({inputType:"deleteContent"})}}function Yp(e){let t="",r=e.position,n=!1;for(;!n;){const i=e.at(r);n=!(i&&(i.mode==="text"||i.mode==="math"&&i.type&&/mord|mpunct/.test(i.type))),n||(t=i.value+t),r-=1}return t}function qp(e,t,r){const{model:n}=e;if(n.mode==="latex"||!n.at(n.position).isLastSibling||!r||!Wa(r))return!1;const i=ws(r);if(!n.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(i));const s=Yp(n)+i;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(i))return!0;if(/[\^_]/.test(i))return/(^|\s)[a-zA-Z][^_]$/.test(s)&&Kd(n,1),!0;const A={")":"(","}":"{","]":"["}[i],{parent:L}=n.at(n.position);if(A&&L instanceof ko&&L.leftDelim===A)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(s))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(i))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(s))return Kd(n,1),!1;if(/\D\.[^\d\s]$/.test(s)){Kd(n,1);const z=n.at(n.position);return z.value="\u22C5",z.style.variant="normal",z.command="\\cdot",z.verbatimLatex=void 0,n.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(s)||/\.\d$/.test(s)||/\([\d+\-.]$/.test(s))return Kd(n,1),!0;if(/\([a-z][,;]$/.test(s))return Kd(n,2),!0;if(/[\d+\-=><*|]$/.test(i))return E0(n),!0}else{if(t==="[Space]")return i0(n,void 0,A=>/[a-z][:,;.]$/.test(A.value)),!0;if(/[a-zA-Z]{3,}$/.test(s)&&!/(dxd|abc|xyz|uvw)$/.test(s))return i0(n,void 0,A=>/[a-zA-Z]/.test(A.value)),!0;if(/(^|\W)(if)$/i.test(s))return i0(n,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(s)&&!/(αβγ)$/.test(s))return i0(n,void 0,A=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(A.value)),!0;if(i==="?"||i==="."&&!/[\d-+]\.$/.test(s))return!0}return!1}function em(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=uh(),n=e.element.getBoundingClientRect();r.style.left=`${n.left}px`,r.style.top=`${n.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(Ka(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 tm(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=uh();t.innerHTML=""}else{const t=Sd("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function uh(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(lc("keystroke-caption"),lc("core"),Sd("mathlive-keystroke-caption-panel"))}function rm(){document.getElementById("mathlive-keystroke-caption-panel")&&(Gd("mathlive-keystroke-caption-panel"),wc("core"),wc("keystroke-caption"))}function dh(e,t){var r,n,i;const{model:s}=e,A=fc(t);if(t.isTrusted){si(t);const Ft=zi();e.keyboardLayout!==Ft.id&&(e.keyboardLayout=Ft.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,em(e,A),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let L,z="",q;const Ae=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(s.mode==="math")if(A==="[Backspace]")Ae.pop();else if(!Wa(t))e.flushInlineShortcutBuffer();else{const Ft=ws(t),Ot=[...(n=(r=Ae[Ae.length-1])==null?void 0:r.keystrokes)!=null?n:[],Ft];Ae.push({state:s.getState(),keystrokes:Ot,leftSiblings:nm(e)});let Fr=0,In="";for(;!L&&Fr<Ot.length;)q=Ae.length-(Ot.length-Fr),In=Ot.slice(Fr).join(""),L=MA(Ae[q].leftSiblings,In,e.options.inlineShortcuts),!L&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(In)&&(L=e.options.onInlineShortcut(e,In)),Fr+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(L?e.switchMode("math"):qp(e,A,t)&&(e.switchMode({math:"text",text:"math"}[s.mode]),z=""))}if(!L){if(z||(z=Hc(e.keybindings,s.mode,t)),!z&&(A==="[Enter]"||A==="[Return]")){let Ft=!1;return s.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(Ft=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Ft||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),s.contentDidChange({inputType:"insertLineBreak"})),Ft}if((!z||A==="[Space]")&&s.mode==="math"){if(A==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return aa.insert(s,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),z="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const Ft=s.at(s.position+1),Ot=s.at(s.position-1);if((Ft==null?void 0:Ft.mode)==="text"||(Ot==null?void 0:Ot.mode)==="text")return aa.insert(s," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(i=s.at(s.position))!=null&&i.isDigit()&&window.MathfieldElement.decimalSeparator===","&&ws(t)===","&&(z="insertDecimalSeparator")}}if(!L&&!z){if(s.mathfield.smartFence){if(F0(s,ws(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:Ft}=s.at(s.position);if(Ft instanceof ko&&Ft.rightDelim==="?"&&s.at(s.position).isLastSibling&&/^[)}\]|]$/.test(A))return e.snapshot(),Ft.isDirty=!0,Ft.rightDelim=A,s.position+=1,s.selectionDidChange(),s.contentDidChange({data:ws(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!s.selectionIsCollapsed){const Ot=ws(t);if(Ot==="("||Ot==="{"||Ot==="["){const Fr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Ot],In={"(":")","{":"\\rbrace","[":"\\rbrack"}[Ot],[Br,an]=Is(s.selection);return e.snapshot(),s.position=an,aa.insert(s,In,{format:"latex"}),s.position=Br,aa.insert(s,Fr,{format:"latex"}),s.setSelection(Br+1,an+1),s.contentDidChange({data:Ot,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Qe=s.at(Math.max(s.position,s.anchor)),{parent:At}=Qe;if(z==="moveAfterParent"&&(At==null?void 0:At.type)==="leftright"&&Qe.isLastSibling&&e.options.smartFence&&F0(s,".",e.defaultStyle)&&(z="",xs(e)),e.keyboardDelegate.cancelComposition(),z)e.executeCommand(z);else if(L){const Ft=e.effectiveStyle;s.setState(Ae[q].state);const Ot=Ae[Ae.length-1].keystrokes;for(const Fr of Ot)aa.insert(s,Fr,{silenceNotifications:!0,style:Ft});e.snapshot("insert-shortcut"),s.setState(Ae[q].state),s.deferNotifications({content:!0,selection:!0,data:L,type:"insertText"},()=>(aa.insert(s,L,{format:"latex",style:Ft}),E0(e.model),L.endsWith(" ")&&(e.switchMode("text"),aa.insert(s," ",{style:Ft,mode:"text"})),e.snapshot(),s.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0)),e.dirty=!0,s.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function _0(e,t,r){const{model:n}=e;if(!e.isSelectionEditable){n.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 i=_s(t);const s=window.mathVirtualKeyboard;if(s!=null&&s.isShifted&&(i=typeof i=="string"?i.toUpperCase():i.map(z=>z.toUpperCase())),r.simulateKeystroke){let z=!0;for(const q of i)dh(e,new KeyboardEvent("keypress",{key:q}))&&(z=!1);if(z)return}const A=n.at(n.position),L=h(h({},A.computedStyle),e.defaultStyle);if(n.selectionIsCollapsed||(n.deleteAtoms(Is(n.selection)),e.snapshot("delete")),n.mode==="latex")n.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{iu(e);for(const z of i)aa.insert(n,z);e.snapshot("insert-latex"),aA(e)});else if(n.mode==="text"){for(const z of i)aa.insert(n,z,{style:L});e.snapshot("insert-text")}else if(n.mode==="math")for(const z of i)im(e,z,L,A);e.dirty=!0,e.scrollIntoView()}function nm(e){const t=e.model,r=[];let n=t.at(Math.min(t.position,t.anchor));for(;n.type!=="first";)r.push(n),n=n.leftSibling;return r}function im(e,t,r,n){const i=e.model;let s={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(t===" "&&e.options.mathModeSpace&&(s=["insert",e.options.mathModeSpace]),s){e.executeCommand(s);return}if(/\d/.test(t)&&e.options.smartSuperscript&&n.parentBranch==="superscript"&&n.parent.type!=="mop"&&n.parent.type!=="operator"&&n.parent.type!=="extensible-symbol"&&n.hasNoSiblings){am(i),aa.insert(i,t,{style:r}),e.snapshot(),sh(i),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const A=e.adoptStyle==="left"?n:n.parent?n.rightSibling:null;(A==null?void 0:A.type)==="mord"&&/[a-zA-Z0-9]/.test(A.value)&&(r=h({},r),A.style.variant&&(r.variant=A.style.variant),A.style.variantStyle&&(r.variantStyle=A.style.variantStyle))}aa.insert(i,t,{style:r}),e.snapshot(`insert-${i.at(i.position).type}`)}function am(e){e.selectionIsCollapsed||(e.deleteAtoms(Is(e.selection)),e.mathfield.snapshot("delete"))}function F0(e,t,r){if(!t||e.mode!=="math")return!1;const n=e.at(e.position),{parent:i}=n,s={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!s)return!1;const A=cl[s],L=Yl[s];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[z,q]=Is(e.selection),Ae=e.extractAtoms([z,q]),Qe=i.addChildrenAfter([new ko("left...right",Ae,{leftDelim:s,rightDelim:L})],e.at(z));return e.setSelection(e.offsetOf(Qe.firstChild),e.offsetOf(Qe.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:s,inputType:"insertText"}),!0}if(s==="|"){const z=i instanceof ko?i.leftDelim+i.rightDelim:"";if(z==="\\lbrace\\rbrace"||z==="\\{\\}"||z==="\\lbrace?")return e.mathfield.snapshot(),aa.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:r}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:s,inputType:"insertText"}),!0}if(L){if(i instanceof ko&&i.firstChild===n&&(i.leftDelim==="?"||i.leftDelim==="."))return i.leftDelim=s,i.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(i instanceof ko)){let Qe=n;for(;Qe&&!(Qe.type==="mclose"&&Qe.value===L);)Qe=Qe.rightSibling;if(Qe){e.mathfield.snapshot();const At=e.extractAtoms([e.offsetOf(n),e.offsetOf(Qe)]);return At.pop(),i.addChildrenAfter([new ko("left...right",At,{leftDelim:s,rightDelim:L})],n),e.position=e.offsetOf(i.firstChild)+1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const z=e.offsetOf(n.lastSibling);let q;for(q=e.position;q<=z;q++){const Qe=e.at(q);if(Qe instanceof ko&&(Qe.leftDelim==="?"||Qe.leftDelim===".")&&fh(s,Qe.rightDelim))break}const Ae=e.at(q);if(q<=z&&Ae instanceof ko){Ae.leftDelim=s,e.mathfield.snapshot();let Qe=e.extractAtoms([e.position,q-1]);return Qe=Qe.filter(At=>At.type!=="first"),Ae.addChildren(Qe,Ae.parentBranch),e.position+=1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(i instanceof ko&&(i.leftDelim==="?"||i.leftDelim===".")&&fh(s,i.rightDelim)){i.isDirty=!0,i.leftDelim=s,e.mathfield.snapshot();const Qe=e.extractAtoms([e.offsetOf(n.firstSibling),e.position]);for(const At of Qe)i.parent.addChildBefore(At,i);return e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(i instanceof ko&&i.leftDelim==="|")){if(e.mathfield.snapshot(),aa.insert(e,`\\left${s}\\right?`,{format:"latex",style:r}),n.lastSibling.type!=="first"){const Qe=e.offsetOf(n.lastSibling),At=e.extractAtoms([e.position,Qe]);e.at(e.position).body=At,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(A){let z=n;for(;z;){if(z.type==="mopen"&&z.value===A){e.mathfield.snapshot();const Ft=z.leftSibling,Ot=e.extractAtoms([e.offsetOf(z.leftSibling),e.offsetOf(n)]);Ot.shift();const Fr=new ko("left...right",Ot,{leftDelim:A,rightDelim:s});return i.addChildrenAfter([Fr],Ft),e.position=e.offsetOf(Fr),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}z=z.leftSibling}if(i instanceof ko&&n.isLastSibling&&I0(i.leftDelim,s))return e.mathfield.snapshot(),i.isDirty=!0,i.rightDelim=s,e.position+=1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const q=e.offsetOf(n.firstSibling);let Ae;for(Ae=e.position;Ae>=q;Ae--){const Ft=e.at(Ae);if(Ft instanceof ko&&(Ft.rightDelim==="?"||Ft.rightDelim===".")&&I0(Ft.leftDelim,s))break}const Qe=e.at(Ae);if(Ae>=q&&Qe instanceof ko)return e.mathfield.snapshot(),Qe.rightDelim=s,Qe.addChildren(e.extractAtoms([Ae,e.position]),Qe.parentBranch),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(i instanceof ko&&(i.rightDelim==="?"||i.rightDelim===".")&&I0(i.leftDelim,s))return e.mathfield.snapshot(),i.isDirty=!0,i.rightDelim=s,i.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(n.lastSibling)]),i.parentBranch),e.position=e.offsetOf(i),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const At=i.parent;return At instanceof ko&&(At.rightDelim==="?"||At.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(At),F0(e,s,r)):!1}return!1}function I0(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Yl[e]===t:!0}function fh(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):cl[t]===e:!0}_l({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:tm,toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,r,n)=>(e.switchMode(t,r,n),!0),insert:(e,t,r)=>e.insert(t,r),typedText:(e,t,r)=>(_0(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 n=e.getPrompts();let i="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),s=0;for(;n.includes(i)&&s<100;){if(s===99)return console.error("could not find a unique ID after 100 tries"),!1;i="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),s++}return e.insert(`\\placeholder[${t!=null?t:i}]{}`,r),!0}}),_l({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"}),_l({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})&&(aA(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),xs(e))):e.model.announce("plonk"),e.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function om(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=M0(e,t),{model:n}=e;return n.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=h(h({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{n.selection.ranges.forEach(i=>x0(n,i,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}_l({applyStyle:om},{target:"mathfield",canUndo:!0,changeContent:!0});function M0(e,t){var r,n,i,s,A,L,z,q,Ae,Qe;const At={};if(typeof t.color=="string"){const Ot=(n=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?n:"none";Ot!==t.color&&(At.verbatimColor=(i=t.verbatimColor)!=null?i:t.color),At.color=Ot}if(typeof t.backgroundColor=="string"){const Ot=(A=e.backgroundColorMap((s=t.backgroundColor)!=null?s:t.verbatimBackgroundColor))!=null?A:"none";Ot!==t.backgroundColor&&(At.verbatimBackgroundColor=(L=t.verbatimBackgroundColor)!=null?L:t.backgroundColor),At.backgroundColor=Ot}typeof t.fontFamily=="string"&&(At.fontFamily=t.fontFamily),typeof t.series=="string"&&(At.fontSeries=t.series),typeof t.fontSeries=="string"&&(At.fontSeries=t.fontSeries.toLowerCase()),At.fontSeries&&(At.fontSeries=(z={bold:"b",medium:"m",normal:"m"}[At.fontSeries])!=null?z:At.fontSeries),typeof t.shape=="string"&&(At.fontShape=t.shape),typeof t.fontShape=="string"&&(At.fontShape=t.fontShape.toLowerCase()),At.fontShape&&(At.fontShape=(q={italic:"it",up:"n",upright:"n",normal:"n"}[At.fontShape])!=null?q:At.fontShape),t.variant&&(At.variant=t.variant.toLowerCase()),t.variantStyle&&(At.variantStyle=t.variantStyle.toLowerCase());const Ft=(Ae=t.size)!=null?Ae:t.fontSize;return typeof Ft=="number"?At.fontSize=Math.max(1,Math.min(10,Ft)):typeof Ft=="string"&&(At.fontSize=(Qe={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Ft.toLowerCase()])!=null?Qe:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Ft]),At}function L0(e){let[t,r]=Is(e.selection);if(t=hh(e,t,"backward"),r=hh(e,r,"forward"),t===r){const n=e.at(t);if(n.type==="leftright")return e.setSelection(e.offsetOf(n.firstChild)-1,r);if(n.type==="first"&&(n.parent.type==="leftright"||n.parent.type==="surd"))return e.setSelection(t-1,e.offsetOf(n.parent.lastChild)+1);e.setSelection(t-1,r)}else e.setSelection(t,r);return!0}function hh(e,t,r){var n,i,s;let A=e.at(t);if(!A)return t;const L=r==="forward"?1:-1;if(A.mode==="text"){for(;A&&!(A.mode!=="text"||!u.test(A.value));)t+=L,A=e.at(t);return r==="backward"?t-1:t}if(A.mode==="latex"){if(/[a-zA-Z\*]/.test(A.value))if(r==="backward")for(;A&&A.mode==="latex"&&A.value!=="\\"&&/[a-zA-Z]/.test(A.value);)t+=L,A=e.at(t);else for(;A&&A.mode==="latex"&&/[a-zA-Z\*]/.test(A.value);)t+=L,A=e.at(t);else if(A.value==="{"){if(r==="forward"){for(;A&&A.mode==="latex"&&A.value!=="}";)t+=L,A=e.at(t);return t}return t-1}else if(A.value==="}"){if(r==="backward"){for(;A&&A.mode==="latex"&&A.value!=="{";)t+=L,A=e.at(t);return t-1}return t}return t-1}if(A.mode==="math"){if(A.isDigit()){for(;(n=e.at(t+L))!=null&&n.isDigit();)t+=L;return r==="backward"?t-1:t}if(A.style.variant||A.style.variantStyle){let z=(i=e.at(t))==null?void 0:i.style;for(;z&&z.variant===A.style.variant&&z.variantStyle===A.style.variantStyle;)z=(s=e.at(t+L))==null?void 0:s.style,t+=L;return r==="backward"?t-1:t}return t}return t}_l({selectGroup:e=>{const t=L0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>Fu(e,"forward",{extend:!0}),extendSelectionBackward:e=>Fu(e,"backward",{extend:!0}),extendToNextWord:e=>of(e,"forward",{extend:!0}),extendToPreviousWord:e=>of(e,"backward",{extend:!0}),extendSelectionUpward:e=>Fu(e,"upward",{extend:!0}),extendSelectionDownward:e=>Fu(e,"downward",{extend:!0}),extendToNextBoundary:e=>of(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>of(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 Hd=null,kf=0,a0=class QA{static start(t,r,n,i){var s;QA.element=t,(s=QA.controller)==null||s.abort(),QA.controller=new AbortController;const A={signal:QA.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",n,A),t.addEventListener("pointerup",i,A),t.addEventListener("pointercancel",i,A),k0(r)&&(QA.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",n,A),window.addEventListener("blur",i,A),window.addEventListener("mouseup",i,A))}static stop(){var t;(t=QA.controller)==null||t.abort(),QA.controller=void 0,typeof QA.pointerId=="number"&&(QA.element.releasePointerCapture(QA.pointerId),QA.pointerId=void 0)}};function k0(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function ph(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const n=e;let i,s=!1,A=!1,L="none",z=!1,q=!1;const Ae=t.clientX,Qe=t.clientY,At=Date.now(),Ft=n.field,Ot=setInterval(()=>{z?Ft.scroll({top:0,left:Ft.scrollLeft-16}):q&&Ft.scroll({top:0,left:Ft.scrollLeft+16})},32);function Fr(){a0.stop(),s=!1,clearInterval(Ot),e.element.classList.remove("tracking"),t&&t.preventDefault()}function In(an){if(!n.hasFocus()){Fr();return}const Rn=an.clientX,pn=an.clientY,Ci=k0(an)&&an.pointerType==="touch"?20:5;if(Date.now()<At+500&&Math.abs(Ae-Rn)<Ci&&Math.abs(Qe-pn)<Ci){an.preventDefault(),an.stopPropagation();return}const ji=Ft.getBoundingClientRect();q=Rn>ji.right,z=Rn<ji.left;let Ni=i;k0(an)&&(an.isPrimary||(Ni=Df(n,an.clientX,an.clientY,{bias:0})));const io=Df(n,Rn,pn,{bias:Rn<=Ae?Rn===Ae?0:-1:1});Ni>=0&&io>=0&&(n.model.extendSelectionTo(Ni,io),xs(e)),A&&L0(n.model)}Hd&&Math.abs(Hd.x-Ae)<5&&Math.abs(Hd.y-Qe)<5&&Date.now()<Hd.time+500?(kf+=1,Hd.time=At):(Hd={x:Ae,y:Qe,time:At},kf=1);const Br=Ft.getBoundingClientRect();if(Ae>=Br.left&&Ae<=Br.right&&Qe>=Br.top&&Qe<=Br.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",i=Df(e,Ae,Qe,{bias:0}),i>=0){if(e.element.classList.add("tracking"),t.shiftKey){const an=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,i),Ks(e.model)||an?L="all":L="selection"}else e.model.at(i).type==="placeholder"?(e.model.setSelection(i-1,i),L="selection"):((r=e.model.at(i).rightSibling)==null?void 0:r.type)==="placeholder"?(e.model.setSelection(i,i+1),L="selection"):(e.model.position=i,Ks(e.model)?L="all":L="selection");e.defaultStyle={},t.detail===3||kf>2?(Fr(),(t.detail===3||kf===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},L="all")):s||(s=!0,a0.start(Ft,t,In,Fr),(t.detail===2||kf===2)&&(A=!0,L0(e.model),L="all"))}e.hasFocus()||(L="none",e.focus({preventScroll:!0}))}else Hd=null;e.stopCoalescingUndo(),L!=="none"&&(e.model.selectionIsCollapsed&&(L="all"),xs(e)),t.preventDefault()}function sm(e,t,r){if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)return 0;const n=e-(r.left+r.right)/2,i=t-(r.top+r.bottom)/2;return n*n+i*i}function mh(e,t,r,n,i){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const s=qc(e,r);if(!s)return[1/0,null];let A=[1/0,null];if(r.hasChildren&&!r.captureSelection&&n>=s.left&&n<=s.right)for(const L of r.children){const z=mh(e,t,L,n,i);z[0]<=A[0]&&(A=z)}return A[1]||(A=[sm(n,i,s),r]),t.set(r.id,A),A}function lm(e,t,r){const[,n]=mh(e,new Map,e.model.root,t,r);return n}function Df(e,t,r,n){var i;const s=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!s)return 0;if(t>s.right||r>s.bottom+8)return e.model.lastOffset;if(t<s.left||r<s.top-8)return 0;n=n!=null?n:{},n.bias=(i=n.bias)!=null?i:0;let A=lm(e,t,r);const L=[];let z=A;for(;z;)L.unshift(z),z=z.parent;for(const Ae of L)if(Ae.captureSelection){A=Ae;break}let q=e.model.offsetOf(A);if(q<0)return-1;if(A.leftSibling)if(n.bias===0&&A.type!=="placeholder"){const Ae=qc(e,A);Ae&&t<(Ae.left+Ae.right)/2&&(q=e.model.offsetOf(A.leftSibling))}else n.bias<0&&(q=e.model.offsetOf(A.leftSibling));return q}var cm=class extends aa{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="",n="auto",i=typeof t!="string"?t.getData("application/json+mathlive"):"";if(i)try{const s=JSON.parse(i);if(s&&Array.isArray(s)){e.snapshot();const A=mA(s),{model:L}=e;L.selectionIsCollapsed||L.deleteAtoms(Is(L.selection));const z=L.at(L.position);if(z.parent instanceof Ua){console.assert(z.parentBranch!==void 0);const q=[];let Ae=[];A[0].type==="first"&&A.shift(),A[A.length-1].type==="first"&&A.pop();for(const Ot of A)Ot.type==="first"&&Ae.length>0?(q.push(Ae),Ae=[Ot]):Ae.push(Ot);Ae.length>0&&q.push(Ae);let Qe=Number(z.parentBranch[0]),At=Number(z.parentBranch[1]);const Ft=z.parent.maxColumns;for(;z.parent.colCount-At<q.length&&z.parent.colCount<Ft;)z.parent.addColumn();z.parent.addChildrenAfter(q[0],z);for(let Ot=1;Ot<q.length;Ot++)At++,At>=Ft&&(At=0,z.parent.addRowAfter(Qe),Qe++),z.parent.setCell(Qe,At,q[Ot])}else z.parent.addChildrenAfter(A.filter(q=>q.type!=="first"),z);return L.position=L.offsetOf(A[A.length-1]),L.contentDidChange({inputType:"insertFromPaste"}),xs(e),!0}}catch(s){}if(i=typeof t!="string"?t.getData("application/json"):"",i&&window.MathfieldElement.computeEngine)try{const s=JSON.parse(i);if(typeof s=="object"&&"latex"in s&&s.latex&&(r=s.latex),!r){const A=window.MathfieldElement.computeEngine.box(s);A&&!A.has("Error")&&(r=A.latex)}r||(n="latex")}catch(s){}if(!r&&typeof t!="string"&&(r=t.getData("application/x-latex"),r&&(n="latex")),r||(r=typeof t=="string"?t:t.getData("text/plain")),r){let s;return[s,r]=En(r),n==="auto"&&s&&(n="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:n})&&(e.startRecording(),e.snapshot("paste"),xs(e)),e.startRecording(),!0}return!1}insert(e,t,r){var n,i;const s=typeof t=="string"?t:(i=(n=window.MathfieldElement.computeEngine)==null?void 0:n.box(t).latex)!=null?i:"";if(!r.silenceNotifications&&!e.contentWillChange({data:s,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:A}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const L=e.silenceNotifications;e.silenceNotifications=!0;const z={"?":"\\placeholder{}","@":"\\placeholder{}"};z[0]=r.insertionMode==="replaceAll"?"":e.getValue(e.selection,"latex-unstyled"),r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(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 q=-1;z[0]?z["@"]=z[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(q=um(e),q>=0&&(z["@"]=e.getValue(q,e.position,"latex"))),z[0]||(z[0]=z["?"]);let Ae=!1;const Qe=Rn=>(Ae=!0,z[Rn]);let[At,Ft]=gh(e,t,Qe,r);if(!Ft)return!1;const Ot=Ft.length===1&&Ft[0].type==="genfrac";Ot&&q>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(z["@"]=z["?"],Ae=!1,[At,Ft]=gh(e,t,Qe,r)):q>=0&&e.deleteAtoms([q,e.position]);const{parent:Fr}=e.at(e.position),In=Fr.hasEmptyBranch("body");if(Ot&&At!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Fr instanceof ko&&Fr.leftDelim==="("&&In){const Rn=Fr.parent,pn=Fr.parentBranch;Rn.removeChild(Fr),Rn.setChildren(Ft,pn)}const Br=e.at(e.position);Br.parent.addChildrenAfter(Ft,Br),At==="latex"&&typeof t=="string"&&(Fr==null?void 0:Fr.type)==="root"&&In&&!Ae&&(Fr.verbatimLatex=t),e.silenceNotifications=L;const an=Ft[Ft.length-1];if(r.selectionMode==="placeholder"){const Rn=Ft.flatMap(pn=>[pn,...pn.children]).find(pn=>pn.type==="placeholder");if(Rn){const pn=e.offsetOf(Rn);e.setSelection(pn-1,pn),e.announce("move")}else an&&(e.position=e.offsetOf(an))}else r.selectionMode==="before"||(r.selectionMode==="after"?an&&(e.position=e.offsetOf(an)):r.selectionMode==="item"&&e.setSelection(e.anchor,e.offsetOf(an)));return e.contentDidChange({data:s,inputType:"insertText"}),e.silenceNotifications=A,!0}};function gh(e,t,r,n){var i;let s,A=[];if(typeof t!="string"||n.format==="math-json"){const L=window.MathfieldElement.computeEngine;if(!L)return["math-json",[]];[s,t]=["latex",L.box(t).latex],A=Al(t,{context:e.mathfield.context})}else typeof t=="string"&&n.format==="ascii-math"?([s,t]=Ge(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),A=Al(t,{context:e.mathfield.context}),s!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&o0(A)):(n.format==="auto"||(i=n.format)!=null&&i.startsWith("latex"))&&(n.format==="auto"&&([s,t]=Ge(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),n.format==="latex"&&([,t]=En(t)),A=Al(t,{context:e.mathfield.context,args:r}),n.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&o0(A));return hd(A,n.style),[s!=null?s:"latex",A]}function Am(e){if(!e||(console.assert(e[0].type==="first"),e.length>1))return null;const t=e[0];return t instanceof ko&&t.leftDelim==="("&&t.rightDelim===")"?t.removeBranch("body"):null}function o0(e){if(e){for(let t=0;e[t];t++){const r=e[t];if(r instanceof ko&&r.leftDelim==="("){let n=0,i=0,s=0;for(let A=0;r.body[A];A++)r.body[A].type==="genfrac"&&(n++,i=A),s++;s===0&&n===1&&(e[t]=r.body[i])}}for(const t of e){for(const r of t.branches)if(!t.hasEmptyBranch(r)){o0(t.branch(r));const n=Am(t.branch(r));n&&t.setChildren(n,r)}if(t instanceof Ua)for(const r of t.cells)o0(r)}}}function um(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 n=!1;if(t.type==="mclose"){const i=cl[t.value];for(;!t.isFirstSibling&&!(t.type==="mopen"&&t.value===i);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),n=!0}else t.type==="leftright"&&(t=t.leftSibling,n=!0);if(n)for(;!t.isFirstSibling&&(t.isFunction||vh(t));)t=t.leftSibling;else{const i=[];for(;!t.isFirstSibling&&(vh(t)||i.length>0);)t.type==="mclose"&&i.unshift(t.value),t.type==="mopen"&&i.length>0&&t.value===cl[i[0]]&&i.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function vh(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new cm;var dm=class extends aa{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"),xs(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:n}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const i=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(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 s=fm(t,e.mathfield.context);if(hd(s,r.style),!s)return!1;const A=e.at(e.position),L=A.parent.addChildrenAfter(s,A);return e.silenceNotifications=i,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(L)):L&&(e.position=e.offsetOf(L))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=n,!0}};function fm(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 "),Al(e,{context:t,parseMode:"text"})}new dm;function Iu(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var ls=4,Zc=20,ul=2*(Zc+ls),s0=(e,t)=>`
<line x1="${e+Zc}" y1="${t+Zc}"
x2="${e>t?e+Zc:7*Zc+10*ls}"
y2="${e<t?t+Zc:7*Zc+10*ls}"/>
<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>`,yh=(e,t)=>`
<line x1="${e+Zc}" y1="${t+Zc}"
x2="${e>t?e+Zc:7*Zc+10*ls}"
y2="${e<t?t+Zc:7*Zc+10*ls}"/>
<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>`,l0=(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>`,hm=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*Zc+10*ls+5} ${8*Zc+10*ls+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${ul+ls}"
height="${3*ul}"
width="${ul}"
rx="${ul/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${ul+ls}"
y="0"
height="${ul}"
width="${3*ul}"
rx="${ul/2}"/>
<g data-command='"moveDown"'>
${l0(2*(ls+ul),2*ls+3*ul,0)}
</g>
<g data-command='"moveUp"'>
${l0(2*(ls+ul),2*ls+ul,180)}
</g>
<g data-command='"moveToNextWord"'>
${l0(2*ls+3*ul,2*(ls+ul),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${l0(2*ls+ul,2*(ls+ul),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${s0(2*ls+ul,ls)}
</g>
<g data-command='"removeColumn"'>
${yh(2*ls+2*ul,ls)}
</g>
<g data-command='"addColumnAfter"'>
${s0(2*ls+3*ul,ls)}
</g>
<g data-command='"addRowBefore"'>
${s0(ls,2*ls+ul)}
</g>
<g data-command='"removeRow"'>
${yh(ls,2*ls+2*ul)}
</g>
<g data-command='"addRowAfter"'>
${s0(ls,2*ls+3*ul)}
</g>
</svg>`,pm=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>`,mm=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>`,bh=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>`,gm=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>`,vm=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>`,ym=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>`,bm=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>`,wm=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>`,D0={matrix:pm,pmatrix:mm,bmatrix:gm,Bmatrix:bh,vmatrix:vm,Vmatrix:ym},P0={cases:bm,rcases:wm,Bmatrix:bh};function xm(e){var t,r;const n=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!n)return;let i=0;n.forEach(Ot=>{(!i||Ot.length>i)&&(i=Ot.length)});let s=document.getElementById("mathlive-environment-popover");s||(s=Sd("mathlive-environment-popover"),lc("environment-popover"),lc("core"),s.setAttribute("aria-hidden","true"));let A;const L=s.querySelector(".MLEP__environment-controls");L?A=L:(A=document.createElement("div"),s.innerHTML="",s.appendChild(A)),A.className="MLEP__environment-controls",A.style.display="flex",A.style.width="100%",A.style.height="100%",A.style.boxSizing="border-box",A.innerHTML=hm;let z=[],q="";const Ae=e.model.parentEnvironment.environmentName;if(Jo(Ae)){const Ot=Bm(Ae);q=D0[Ot]("active");const Fr=D0,{[Ot]:In}=Fr,Br=j(Fr,[p(Ot)]);z=Object.values(Br).map(an=>an("inactive"))}else if(Ho(Ae)){const Ot=Sm(Ae);q=P0[Ot]("active");const Fr=P0,{[Ot]:In}=Fr,Br=j(Fr,[p(Ot)]);z=Object.values(Br).map(an=>an("inactive"))}else Us(Ae)&&(q=D0.matrix("active"),z=Object.values(P0).map(Ot=>Ot("inactive")));const Qe=document.createElement("div");Qe.className="MLEP__environment-delimiter-controls",Qe.style.display="flex",Qe.style.flexDirection="column",Qe.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${q}
${z.join("")}
</div>`,q&&A.appendChild(Qe),A.querySelectorAll("[data-command]").forEach(Ot=>{const Fr=Ot.dataset.command;let In=Fr;try{In=JSON.parse(Fr)}catch(Br){}Ot.addEventListener("mousedown",Br=>Br.preventDefault()),In&&Ot.addEventListener("click",()=>e.executeCommand(In))});const Ft=(r=e.field)==null?void 0:r.getBoundingClientRect();Ft&&(s.style.top=`${window.scrollY+(Ft.top-s.clientHeight-15)}px`,s.style.left=`${Ft.left+20}px`,s.classList.add("is-visible"))}function O0(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function Cm(){document.getElementById("mathlive-environment-popover")&&(Gd("mathlive-environment-popover"),wc("environment-popover"),wc("core"))}function c0(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&Ec(r.environmentName)){const n=e.options.environmentPopoverPolicy;t=n==="auto"||n==="on"}}t?xm(e):O0()}function Bm(e){return e.replace("*","")}function Sm(e){return e==="dcases"?"cases":e}function wh(e){const t=getComputedStyle(e).direction;return t==="ltr"||t==="rtl"?t:"ltr"}function xh(e,t,r){return t==="left"||t==="leading"&&r==="ltr"||t==="trailing"&&r==="rtl"?e.left:e.right}function N0(e,t,r,n){return r==="middle"?e-t/2:r==="start"&&n==="rtl"||r==="end"&&n==="ltr"||r==="top"||r==="right"?Math.max(0,e-t):e}function Em(e,t,r,n){return r==="middle"?e-t/2:r==="start"&&n==="ltr"||r==="end"&&n==="rtl"||r==="top"||r==="right"?e:e-t}function _m(e,t){var r,n,i;const s=(r=wh(e))!=null?r:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const A=e.getBoundingClientRect(),L=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let z=Math.min(L,(n=t.height)!=null?n:A.height),q=N0(t.location.y,z,t.verticalPos,s);q+z>window.innerHeight-8&&(t.alternateLocation?(q=N0(t.alternateLocation.y,z,t.verticalPos,s),q+z>window.innerHeight-8&&(q=void 0)):q=void 0),Number.isFinite(q)||(q=Math.max(8,window.innerHeight-8-z),8+z>window.innerHeight-8&&(e.style.bottom="8px")),z=Math.min(q+z,window.innerHeight-8)-q;const Ae=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Qe=Math.min(Ae,(i=t.width)!=null?i:A.width),At=N0(t.location.x,Qe,t.horizontalPos,s);At+Qe>window.innerWidth-8&&(t.alternateLocation?(At=Em(t.alternateLocation.x,Qe,t.verticalPos,s),At+Qe>window.innerWidth-8&&(At=void 0)):At=void 0),Number.isFinite(At)||(At=Math.max(8,window.innerWidth-8-Qe),8+Qe>window.innerWidth-8&&(e.style.right="8px")),Qe=Math.min(At+Qe,window.innerWidth-8)-At,s==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-At-Qe).toString()}px`:e.style.left=`${Math.ceil(At).toString()}px`,e.style.top=`${Math.ceil(q).toString()}px`,z!==A.height&&(e.style.height=`${Math.ceil(z).toString()}px`),Qe!==A.width&&(e.style.width=`${Math.ceil(Qe).toString()}px`)}function Fm(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function sf(e){return"submenu"in e}function Mu(e){return"type"in e&&e.type==="command"||"onMenuSelect"in e||"id"in e}function T0(e){return"type"in e&&e.type==="divider"}function U0(e){return"type"in e&&e.type==="heading"}var Ch={};function R0(e){let t=Ch[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 n=document.createElement("template");n.innerHTML=r,Ch[e]=n,t=n}}if(t){if("content"in t)return t.content.cloneNode(!0);const r=document.createElement("svg");return r.innerHTML=t.innerHTML,r}}var Bh=80,Sh=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,sf(e)?(this.type="submenu",this.submenu=new Eh(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=Mu(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,n;const i=this._declaration;if(T0(i)){this.enabled=!1,this.checked=!1;return}U0(i)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Mu(i)&&(this.checked=Mu(i)&&((t=lf(i.checked,e))!=null?t:!1)),(Mu(i)||sf(i))&&(this.enabled=(r=lf(i.enabled,e))!=null?r:!0,this.visible=(n=lf(i.visible,e))!=null?n:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(Mu(i)||U0(i)||sf(i))&&(this.label=lf(i.label,e),this.tooltip=lf(i.tooltip,e),this.ariaLabel=lf(i.ariaLabel,e)),this._element&&this.updateElement()}set dirty(e){console.assert(e===!0),e&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const e=this.element;e.textContent="",this.enabled?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"),this.checked===!0?(e.setAttribute("aria-checked","true"),e.append(R0("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(R0("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),Mu(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=Ka(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(R0("trailing-chevron"))}get element(){if(this._element)return this._element;if(T0(this._declaration)){const r=document.createElement("li");return r.setAttribute("part","menu-divider"),r.setAttribute("role","divider"),this._element=r,r}const e=document.createElement("li");this._element=e,(Mu(this._declaration)||U0(this._declaration)||sf(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(!Mu(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()},Bh)},Bh)}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(),n=wh(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:xh(r,"trailing",n),y:r.top-4},alternateLocation:{x:xh(r,"leading",n),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 n=e.clientX-t.clientX;if(Im(n,t.clientY-e.clientY,r)<=.2)return!1;let s="right";if(this.submenu.element){const A=this.submenu.element.getBoundingClientRect(),L=this.element.getBoundingClientRect();A.left<L.left+L.width/2&&(s="left")}return s==="right"?n>0:n<0}};function Im(e,t,r){return Math.hypot(e,t)/r}function lf(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var Eh=class mf{constructor(t,r){this._element=null,this._activeMenuItem=null,this._dirty=!0;var n,i;this.parentMenu=(n=r==null?void 0:r.parentMenu)!=null?n:null,this._submenuClass=r==null?void 0:r.submenuClass,this.columnCount=(i=r==null?void 0:r.columnCount)!=null?i: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(n=>n.onCreate?n.onCreate(n,this):new Sh(n,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,n,i;this._menuItems.forEach(q=>q.updateState(t));const s=this.hasCheck;this.hasCheck=this._menuItems.some(q=>q.visible&&q.hasCheck),this.hasCheck!==s&&this._menuItems.forEach(q=>q.updateState(t));let A,L=0;for(const q of this._menuItems)q.type==="heading"?(A&&L===0&&(A.visible=!1),A=q,L=0):q.type==="divider"&&A?(A.visible=L>0,A=void 0,L=0):A&&q.visible&&(L+=1);A&&(A.visible=L>0);let z=!0;for(const q of this._menuItems)q.type==="divider"?(q.visible=!z,z=!0):q.visible&&(z=!1);(r=this.activeMenuItem)!=null&&r.visible||(this.activeMenuItem=null),!((n=this.activeMenuItem)!=null&&n.enabled)&&((i=this.activeMenuItem)==null?void 0:i.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:n}of this._menuItems)r&&n&&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,n,i,s;if(this.rootMenu.cancelDelayedOperation(),t!==this._activeMenuItem){if(this.activeMenuItem){const A=this.activeMenuItem;A.active=!1,(r=A.submenu)==null||r.hide()}if(!((n=t==null?void 0:t.visible)==null||n)){this._activeMenuItem=null;return}this._activeMenuItem=t,t&&(t.active=!0)}t?(i=t.element)==null||i.focus({preventScroll:!0}):(s=this._element)==null||s.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let t=0,r=!1;const n=this._menuItems;for(;!r&&t<=n.length-1;){const i=n[t];r=i.type!=="divider"&&i.visible&&i.enabled,t+=1}return r?n[t-1]:null}get lastMenuItem(){this.updateIfDirty();const t=this._menuItems;let r=t.length-1,n=!1;for(;!n&&r>=0;){const i=t[r];n=i.type!=="divider"&&i.visible&&i.enabled,r-=1}return n?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),n=this._menuItems.indexOf(this.lastMenuItem);let i=this._menuItems.indexOf(this._activeMenuItem),s=1;for(;i>=r&&i<=n;){i+=t>0?1:-1;const A=this._menuItems[i];if(!A)break;if(A.visible&&A.enabled){if(s===Math.abs(t))return this._menuItems[i];s+=1}}return t>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(t){this.updateIfDirty();const n=this._menuItems.filter(i=>i.visible&&i.enabled).indexOf(t);return n<0?-1:n%this.columnCount}static get collator(){return mf._collator||(mf._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),mf._collator}findMenuItem(t){var r;this.updateIfDirty();const n=this._menuItems.filter(L=>L.type!=="divider"&&L.visible&&L.enabled);if(n.length===0)return null;const i=Math.max(...n.map(L=>L.label.length))-t.length;if(i<0)return null;let s=null,A=0;for(;A<i&&!s;)s=(r=n.find(L=>mf.collator.compare(t,L.label.substring(A,t.length))===0))!=null?r:null,A++;return s}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),ce()&&(this.element.popover="manual",this.element.showPopover()),t.location&&_m(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,n,i,s;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),ce()&&((t=this._element)!=null&&t.popover)&&this.element.hidePopover(),(n=(r=this.parentMenu)==null?void 0:r.element)==null||n.focus(),(s=(i=this._element)==null?void 0:i.parentNode)==null||s.removeChild(this._element)}set openSubmenu(t){var r,n,i,s;const A=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((n=this.activeMenuItem.element)==null||n.setAttribute("aria-expanded",A.toString())),(s=(i=this.activeMenuItem)==null?void 0:i.element)==null||s.classList.toggle("is-submenu-open",A),this.isSubmenuOpen=A}},_h=class Fp extends Eh{constructor(t,r){var n;super(t),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(n=r==null?void 0:r.host)!=null?n:null,this.isDynamic=t.some(Fh),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(t){Ia(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=Sa(t)),t.stopImmediatePropagation()}handleKeydownEvent(t){var r,n,i;if(t.key==="Tab"||t.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Sa(t));let s=!0;const A=this.activeSubmenu,L=A.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":L==null||L.select(Sa(t));break;case"ArrowRight":if((L==null?void 0:L.type)==="submenu")L.select(Sa(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!L)A.activeMenuItem=A.firstMenuItem;else{const z=(r=A.getMenuItemColumn(L))!=null?r:-1;if(z>=0&&z<((n=A.columnCount)!=null?n:1)-1){const q=A.nextMenuItem(1);q&&(A.activeMenuItem=q)}}break;case"ArrowLeft":if(A===this.rootMenu)L||(A.activeMenuItem=A.firstMenuItem);else if((L&&(i=A.getMenuItemColumn(L))!=null?i:-1)<=0||!L){A.hide();const q=A.parentMenu.activeMenuItem;if(q){const{element:Ae}=q;Ae==null||Ae.focus(),Ae==null||Ae.classList.remove("is-submenu-open")}}else{const q=A.nextMenuItem(-1);q&&(A.activeMenuItem=q)}break;case"ArrowDown":A.activeMenuItem=A.nextMenuItem(A.columnCount);break;case"ArrowUp":A.activeMenuItem=A.nextMenuItem(-A.columnCount);break;case"Home":case"PageUp":A.activeMenuItem=A.firstMenuItem;break;case"End":case"PageDown":A.activeMenuItem=A.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const z=A.findMenuItem(this.typingBuffer);z&&(A.activeMenuItem=z),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Wa(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const z=A.findMenuItem(this.typingBuffer);z&&(A.activeMenuItem=z),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else s=!1}s&&(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 Co.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),Co.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),Co.state==="open"&&Co.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(E(h({},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,Co.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const r=Fp.SUBMENU_DELAY;if(r<=0){t();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,t()},r)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};_h.SUBMENU_DELAY=120;var Mm=_h;function Fh(e){return T0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(Mu(e)||sf(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||Mu(e)&&typeof e.checked=="function"?!0:sf(e)?e.submenu.some(Fh):!1}var A0=class{};A0.DELAY=300,A0.MAX_DISTANCE=10;function Lm(e){return new Promise((t,r)=>{const n=qa(e);n||t(!1);let i=n;const s=setTimeout(()=>{A.abort(),t(Fm(i,n)<A0.MAX_DISTANCE)},A0.DELAY),A=new AbortController,L=A.signal;for(const z of["pointermove","pointerup","pointercancel"])window.addEventListener(z,q=>{if(q.type==="pointerup"||q.type==="pointercancel")clearTimeout(s),A.abort(),t(!1);else if(q.type==="pointermove"){const Ae=qa(q);Ae&&(i=Ae)}},{passive:!0,signal:L})})}function Ih(e,t,r){return gd(this,null,function*(){if(e.type==="contextmenu"){const n=e;if(r.show({target:t,location:qa(n),modifiers:Sa(n)}))return e.preventDefault(),e.stopPropagation(),!0}if(e.type==="keydown"){const n=e;if(n.code==="ContextMenu"||n.code==="F10"&&n.shiftKey){const i=t==null?void 0:t.getBoundingClientRect();if(i&&r.show({target:t,location:{x:Math.ceil(i.left+i.width/2),y:Math.ceil(i.top+i.height/2)},modifiers:Sa(n)}))return e.preventDefault(),e.stopPropagation(),!0}}if(e.type==="pointerdown"&&e.pointerType!=="mouse"&&e.button===0){let n=e.target;for(;n&&t!==n;)n=n.parentNode;if(!n||!r.visible)return!1;const i=qa(e);if(yield Lm(e))return r.state!=="closed"?!1:(r.show({target:t,location:i}),!0)}return!1})}var Mh={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};me(Object.keys(Mh),"{body:auto}",{createAtom:e=>new cc(E(h({},e),{body:st(e.args[0]),accentChar:Mh[e.command.slice(1)]}))}),me(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=ve(st(e.args[0]));return new cc(E(h({},e),{body:st(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),me(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new cc(E(h({},e),{body:st(e.args[0]),svgAccent:"overarc"}))}),me(["underarc","underparen"],"{body:auto}",{createAtom:e=>new gl(E(h({},e),{body:st(e.args[0]),svgBelow:"underarc"}))}),me("utilde","{body:auto}",{createAtom:e=>{const t=st(e.args[0]),r=ve(t),n="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new gl(E(h({},e),{body:t,svgBelow:n,boxType:vc(t)}))}}),me("^","{:string}",{createAtom:e=>{var t;return new zr(E(h({},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:"^"}))}}),me("`","{:string}",{createAtom:e=>{var t;return new zr(E(h({},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:"`"}))}}),me("'","{:string}",{createAtom:e=>{var t;return new zr(E(h({},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:"'"}))}}),me('"',"{:string}",{createAtom:e=>{var t,r;return new zr(E(h({},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]:'"'}))}}),me(".","{:string}",{createAtom:e=>{var t,r;return new zr(E(h({},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]:"."}))}}),me("=","{:string}",{createAtom:e=>{var t,r;return new zr(E(h({},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]:"="}))}}),me("~","{:string}",{createAtom:e=>{var t;return new zr(E(h({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"}))}}),me("c","{:string}",{createAtom:e=>{var t;return new zr(E(h({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),me("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const n=e.args,i={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(n[1]){const A=n[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const L of A){const z=L.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(z)i.strokeWidth=z[1],i.strokeStyle=z[2],i.strokeColor=z[3];else{const q=L.match(/\s*([a-z]*)\s*=\s*"(.*)"/);q&&(q[1]==="mathbackground"?i.backgroundcolor=q[2]:q[1]==="mathcolor"?i.strokeColor=q[2]:q[1]==="padding"?i.padding=q[2]:q[1]==="shadow"&&(i.shadow=q[2]))}}i.strokeStyle==="dashed"?i.svgStrokeStyle="5,5":i.strokeStyle==="dotted"&&(i.svgStrokeStyle="1,5")}i.borderStyle=`${i.strokeWidth} ${i.strokeStyle} ${i.strokeColor}`;const s={};return((r=n[0])!=null?r:"").split(/[, ]/).filter(A=>A.length>0).forEach(A=>{s[A.toLowerCase()]=!0}),new Vu(e.command,st(n[2]),s,i)}}),me("cancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,st(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:{}})}}),me("bcancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,st(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:{}})}}),me("xcancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,st(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:{}})}}),me(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new gl(E(h({},e),{body:st((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),me("overbrace","{:auto}",{createAtom:e=>new gl(E(h({},e),{body:st(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),me(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new gl(E(h({},e),{body:st(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),me(["underbrace"],"{:auto}",{createAtom:e=>new gl(E(h({},e),{body:st(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),me(["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,n,i,s;return new gl(E(h({},e),{svgBody:e.command.slice(1),above:((r=st((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:st((n=e.args)==null?void 0:n[1]),below:(s=st((i=e.args)==null?void 0:i[0]))!=null?s: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)}`}),me(["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 OA(e.command.slice(1),E(h({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),me(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new OA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],E(h({},e),{limits:"over-under",variant:"main"}))}),me(["lim","mod"],"",{ifMode:"math",createAtom:e=>new OA(e.command.slice(1),E(h({},e),{limits:"over-under",variant:"main"}))}),me(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new OA(e.command.slice(1),E(h({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),me(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new zr(E(h({},e),{body:st(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const r=e.createBox(t),n=r.caret;r.caret=void 0;const i=new fn("\xB0",{style:E(h({},e.style),{variant:"normal",variantStyle:"up"})});return new fn([r,i],{type:"inner",isSelected:e.isSelected,caret:n})}}),me("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new nA(E(h({},e),{body:st(e.args[1]),index:e.args[0]?st(e.args[0]):void 0}))}),me(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=h({},e),r=e.command,n=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 nu(n[0]?st(n[0]):[new ql],n[1]?st(n[1]):[new ql],t)},serialize:(e,t)=>{const r=e.aboveToLatex(t),n=e.belowToLatex(t);return/^[0-9]$/.test(r)&&/^[0-9]$/.test(n)?`${e.command}${r}${n}`:So(e.command,r,n)}}),me(["brace","brack"],"",{infix:!0,createAtom:e=>new nu(st(e.args[0]),st(e.args[1]),E(h({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>Ca([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),me(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const n=e.args;return e.command==="\\choose"&&(t="(",r=")"),new nu(st(n[0]),st(n[1]),E(h({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>Ca([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),me(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,r;const n=e.args;return new nu(st(n[0]),st(n[1]),E(h({},e),{leftDelim:(t=n[2])!=null?t:".",rightDelim:(r=n[3])!=null?r:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),me("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new nu(st(e.args[0]),st(e.args[1]),E(h({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),me(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new Cd({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)],E(h({},e),{limits:"auto",variant:"main"}))}),me("smallint","",{ifMode:"math",createAtom:e=>new OA("\u222B",E(h({},e),{limits:"adjacent",variant:"main"}))});var Lh={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"};me(Object.keys(Lh),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=Lh[t.slice(1)];return new Cd(r,E(h({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),me(["Re","Im"],"",{ifMode:"math",createAtom:e=>new OA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],E(h({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),me("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Zd(E(h({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),me("the","{:value}",{createAtom:e=>new zr(E(h({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const n=new la({parent:t},e.style);let i="";e.isSelected&&(i+=" ML__selected");const s=n.evaluate(e.args[0]);return new fn(((r=os(s))!=null?r:"").split("").map(A=>new fn(A,{type:"ord",classes:i,mode:e.mode,isSelected:e.isSelected,style:h({variant:"main"},e.style)})),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:i}).wrap(n)},serialize:e=>{var t;return`\\the${(t=os(e.args[0]))!=null?t:"\\relax"}`}}),me("mathtip","{:auto}{:math}",{createAtom:e=>new sd(E(h({},e),{body:st(e.args[0]),tooltip:st(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${zr.serialize([e.tooltip],E(h({},t),{defaultMode:"math"}))}}`}),me("texttip","{:auto}{:text}",{createAtom:e=>new sd(E(h({},e),{body:st(e.args[0]),tooltip:st(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${zr.serialize([e.tooltip],E(h({},t),{defaultMode:"text"}))}}`}),me("error","{:math}",{createAtom:e=>new zr(E(h({},e),{body:st(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),me("ensuremath","{:math}",{createAtom:e=>new zr(E(h({},e),{body:st(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(E(h({},t),{defaultMode:"math"}))}}`}),me("color","{:value}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimColor:(n=os(t[0]))!=null?n:void 0,color:r.toColor((i=t[0])!=null?i:{string:"red"})}}}),me("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimColor:(n=os(t[0]))!=null?n:void 0,color:r.toColor((i=t[0])!=null?i:{string:"red"})}}}),me("boxed","{content:math}",{createAtom:e=>new Qs(E(h({},e),{body:st(e.args[0]),framecolor:{string:"black"}}))}),me("colorbox","{:value}{:text*}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimBackgroundColor:(n=os(t[0]))!=null?n:void 0,backgroundColor:r.toBackgroundColor((i=t[0])!=null?i:{string:"yellow"})}}}),me("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new Qs(E(h({},e),{body:st(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,n;return t.skipStyles?e.bodyToLatex(E(h({},t),{defaultMode:"text"})):So(e.command,(r=os(e.framecolor))!=null?r:"",(n=os(e.backgroundcolor))!=null?n:"",e.bodyToLatex(E(h({},t),{defaultMode:"text"})))}}),me("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],n=st(e.args[1]);return r?new Qs(E(h({},e),{body:n,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new Qs(E(h({},e),{body:n}))},serialize:(e,t)=>{var r,n;if(t.skipStyles)return e.bodyToLatex(t);let i=e.command;if(Number.isFinite(e.padding)||e.border!==void 0||e.backgroundcolor!==void 0){const s=[];e.padding&&s.push((r=os(e.padding))!=null?r:""),e.border&&s.push(`border: ${e.border}`),e.backgroundcolor&&s.push((n=os(e.backgroundcolor))!=null?n:""),i+=`[${s.join(",")}]`}return So(i,e.bodyToLatex(t))}}),me(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new zr(E(h({},e),{body:st(e.args[0])})),render:(e,t)=>{const r=new la({parent:t,mathstyle:e.command.slice(1)},e.style),n=zr.createBox(r,e.body,{type:"lift"});return e.caret&&(n.caret=e.caret),e.bind(t,n)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${Ca([e.command,e.bodyToLatex(t)])}}`}),me(["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]})}),me("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),me("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),me("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),me("selectfont","",{ifMode:"text",applyStyle:()=>({})}),me("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),me(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new zr(E(h({},e),{body:st(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),me("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),me("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),me("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),me("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),me("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),me("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),me("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),me("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),me("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),me("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),me("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),me("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),me("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),me("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),me("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),me("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),me("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),me("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),me("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),me("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),me("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),me("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),me("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),me("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),me("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),me("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),me("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),me(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),me(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),me("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),me("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),me("mbox","{:text}",{ifMode:"math",createAtom:e=>new zr(E(h({},e),{type:"mord",body:st(e.args[0]),mode:"math"})),serialize:(e,t)=>So("\\mbox",e.bodyToLatex(E(h({},t),{defaultMode:"text"})))}),me("text","{:text}",{ifMode:"math",applyMode:"text"}),me(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new zr(E(h({},e),{body:st(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:""})}}),me(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new zr(E(h({},e),{body:st(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 n=e.createBox(t);return n.cssId=(r=e.args[0])!=null?r:"",n}}),me("htmlData","{data:string}{content:auto}",{createAtom:e=>new zr(E(h({},e),{body:st(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 n=e.createBox(t);return n.htmlData=(r=e.args[0])!=null?r:"",n}}),me(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new zr(E(h({},e),{body:st(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 n=e.createBox(t);return n.htmlStyle=(r=e.args[0])!=null?r:"",n}}),me("em","{:rest}",{createAtom:e=>new zr(E(h({},e),{body:st(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"})}),me("emph","{:auto}",{createAtom:e=>new zr(E(h({},e),{body:st(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 kh={"\\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}};me(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new wd(E(h({},e),{delim:(t=e.args[0])!=null?t:".",size:kh[e.command].size,delimType:kh[e.command].mclass}))}}),me(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new Vs(E(h({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),me(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new Vs(E(h({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),me("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new zr(e),render:(e,t)=>{let r=0;const n=t.mathstyle.id;(n===_A||n===Vl)&&(r=1),(n===ic||n===lo)&&(r=2),(n===Ns||n===ts)&&(r=3);const i=st(e.args[r]);return zr.createBox(t,i)},serialize:(e,t)=>`\\mathchoice{${zr.serialize(e.args[0],t)}}{${zr.serialize(e.args[1],t)}}{${zr.serialize(e.args[2],t)}}{${zr.serialize(e.args[3],t)}}`}),me("mathop","{:auto}",{createAtom:e=>new zr(E(h({},e),{type:"mop",body:st(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let n=zr.createBox(t,e.body);if(e.superscript||e.subscript){const i=(r=e.subsupPlacement)!=null?r:"auto";n=i==="over-under"||i==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:n}):e.attachSupsub(t,{base:n})}return new fn(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[So(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)),Ca(r)}}),me(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new zr(E(h({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:st(e.args[0])}))}),me(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=st(e.args[0]).map(r=>{var n;return r.type!=="first"&&(r.type="mord",r.value=(n={"\u2217":"*","\u2212":"-"}[r.value])!=null?n:r.value,r.isFunction=!1,!r.style.variant&&!r.style.variantStyle&&(r.style.variant="main",r.style.variantStyle="up")),r});return new zr(E(h({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let n=zr.createBox(t,e.body);if(e.superscript||e.subscript){const i=(r=e.subsupPlacement)!=null?r:"auto";n=i==="over-under"||i==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:n}):e.attachSupsub(t,{base:n})}return e.caret&&(n.caret=e.caret),new fn(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[So(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)),Ca(r)}}),me(["char","unicode"],"{charcode:value}",{createAtom:e=>new zr(E(h({},e),{type:e.mode==="text"?"text":"mord"})),serialize:e=>{var t;return`${e.command}${os((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)}}),me("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new zr(e),render:(e,t)=>{var r,n,i;const s=new la({parent:t,mathstyle:"textstyle"},e.style),A=s.toEm((r=e.args[0])!=null?r:{dimension:0}),L=s.toEm((n=e.args[1])!=null?n:{dimension:10}),z=s.toEm((i=e.args[2])!=null?i:{dimension:10}),q=new fn(null,{classes:"rule",type:"ord"});return q.width=L,q.height=z+A,q.depth=-A,q.setStyle("border-right-width",L,"em"),q.setStyle("border-top-width",z,"em"),q.setStyle("border-color",e.style.color),q.setStyle("vertical-align",A,"em"),e.isSelected&&q.setStyle("opacity","50%"),e.bind(s,q),e.caret&&(q.caret=e.caret),q.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${os(e.args[0])}]`:""}{${os(e.args[1])}}{${os(e.args[2])}}`}),me(["overline","underline"],"{:auto}",{createAtom:e=>new zr(E(h({},e),{body:st(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),n=new la({parent:t,mathstyle:"cramp"},e.style),i=zr.createBox(n,e.body);if(!i)return null;const s=n.metrics.defaultRuleThickness/n.scalingFactor,A=new fn(null,{classes:r+"-line"});A.height=s,A.maxFontSize=s*1.125*n.scalingFactor;let L;return r==="overline"?L=new Xo({shift:0,children:[{box:i},3*s,{box:A},s]}):L=new Xo({top:i.height,children:[s,{box:A},3*s,{box:i}]}),e.caret&&(L.caret=e.caret),new fn(L,{classes:r,type:"ignore"})}}),me("overset","{:auto}{base:auto}",{createAtom:e=>{const t=st(e.args[1]);return new gl(E(h({},e),{above:st(e.args[0]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),me("underset","{:auto}{base:auto}",{createAtom:e=>{const t=st(e.args[1]);return new gl(E(h({},e),{below:st(e.args[0]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),me("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=st(e.args[2]);return new gl(E(h({},e),{above:st(e.args[0]),below:st(e.args[1]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),me(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new gl(E(h({},e),{body:st(e.args[2]),above:st(e.args[1]),below:st(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>So(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),me("smash","[:string]{:auto}",{createAtom:e=>{var t,r,n,i;return new _c(E(h({},e),{body:st(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(i=(n=e.args[0])==null?void 0:n.includes("b"))!=null?i:!0}))}}),me(["vphantom"],"{:auto}",{createAtom:e=>new _c(E(h({},e),{body:st(e.args[0]),isInvisible:!0,smashWidth:!0}))}),me(["hphantom"],"{:auto}",{createAtom:e=>new _c(E(h({},e),{body:st(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),me(["phantom"],"{:auto}",{createAtom:e=>new _c(E(h({},e),{body:st(e.args[0]),isInvisible:!0}))}),me("not","{:math}",{createAtom:e=>{const t=st(e.args[0]);return t.length===0?new zr(E(h({},e),{type:"mrel",value:"\uE020"})):new zr(E(h({},e),{body:[new pA(E(h({},e),{body:"\uE020",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const r=e.args[0],n=r&&typeof r=="object"&&"group"in r;return e.value!=="\uE020"?n?`\\not{${zr.serialize(r.group,t)}}`:`\\not${zr.serialize(r,t)}`:n?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const n=e.args[0]&&typeof e.args[0]=="object"&&"group"in e.args[0]?"ord":vc(st(e.args[0])),i=zr.createBox(t,e.body,{type:n});return e.caret&&(i.caret=e.caret),e.bind(t,i)}}),me(["ne","neq"],"",{createAtom:e=>new zr(E(h({},e),{type:"mrel",body:[new pA(E(h({},e),{body:"\uE020",align:"right",boxType:"rel"})),new zr(E(h({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),me("rlap","{:auto}",{createAtom:e=>new pA(E(h({},e),{body:st(e.args[0]),align:"right"}))}),me("llap","{:auto}",{createAtom:e=>new pA(E(h({},e),{body:st(e.args[0]),align:"left"}))}),me("mathrlap","{:math}",{createAtom:e=>new pA(E(h({},e),{body:st(e.args[0]),align:"left"}))}),me("mathllap","{:math}",{createAtom:e=>new pA(E(h({},e),{body:st(e.args[0]),align:"left"}))}),me("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new Qs(E(h({},e),{body:st(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return So("\\raisebox",(r=os(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),me("raise","{:value}{:auto}",{createAtom:e=>{var t;return new Qs(E(h({},e),{body:st(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return So("\\raise",(r=os(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),me("lower","{:value}{:auto}",{createAtom:e=>{var t;return new Qs(E(h({},e),{body:st(e.args[1]),padding:{dimension:0},offset:(t=ys(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,n;return So("\\lower",(n=os(ys((r=e.offset)!=null?r:{dimension:0},-1)))!=null?n:"0pt",e.bodyToLatex(t))}}),ee("0123456789/@.?!"),Ce(65,90),Ce(97,122),ee([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),ee([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),ee([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),ee([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),ee([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),ee([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),ee([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),ee([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),ee([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),ee([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),ee([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),ee([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),ee([["\\wp",8472],["\\aleph",8501]]),ee([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),ee([["\\ ",160],["~",160]],"space"),me(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new Vs(e)}),me("space","",{createAtom:e=>new Vs(e)}),ee([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),ee([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),ee([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var Dh="<mo>&#x2061;</mo>",u0="<mo>&#8290;</mo>";function d0(e){return e.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qo(e,t){return!e||!t.generateID?"":` extid="${e}"`}function km(e,t,r){var n,i,s,A,L,z,q,Ae,Qe,At,Ft;let Ot=!1;t=t!=null?t:e.atoms.length;let Fr="",In="",Br=e.atoms[e.index];const an=(i=(n=Br.style)==null?void 0:n.variant)!=null?i:"",Rn=(A=(s=Br.style)==null?void 0:s.variantStyle)!=null?A:"";let pn="";if(an||Rn){const ji=ct(Br.value,(L=Br.style)==null?void 0:L.variant,(z=Br.style)==null?void 0:z.variantStyle);if(ji!==Br.value)return e.index+=1,Fr=`<mi${qo(Br.id,r)}>${ji}</mi>`,Xu(Fr,e,r)||(e.mathML+=Fr,e.lastType="mi"),!0;pn=(q={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"}[Rn+an])!=null?q:"",pn=` mathvariant="${pn}"`}const Ci={"\\exponentialE":"&#x02147;","\\imaginaryI":"&#x2148;","\\differentialD":"&#x2146;","\\capitalDifferentialD":"&#x2145;","\\alpha":"&#x03b1;","\\pi":"&#x03c0;","\\infty":"&#x221e;","\\forall":"&#x2200;","\\nexists":"&#x2204;","\\exists":"&#x2203;","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Br.command==="!")return e.index+=1,Fr="<mo>!</mo>",Xu(Fr,e,r)||(e.mathML+=Fr,e.lastType="mo"),!0;if(Ci[Br.command]){e.index+=1;let ji=`<mi${qo(Br.id,r)}${pn}>${Ci[Br.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(ji=u0+ji),Xu(ji,e,r)||(e.mathML+=ji,e.lastType="mi"),!0}if(Br.command==="\\operatorname")In=cf(Br.body),e.index+=1;else if(an||Rn)for(;e.index<t&&(Br.type==="mord"||Br.type==="macro")&&!Br.isDigit()&&an===((Qe=(Ae=Br.style)==null?void 0:Ae.variant)!=null?Qe:"")&&Rn===((Ft=(At=Br.style)==null?void 0:At.variantStyle)!=null?Ft:"");)In+=cf([Br]),e.index+=1,Br=e.atoms[e.index];else(Br.type==="mord"||Br.type==="macro")&&!Br.isDigit()&&(In+=cf([Br]),e.index+=1);if(In.length>0){Ot=!0,Fr=`<mi${pn}>${In}</mi>`;const ji=e.lastType;Fr.endsWith(">f</mi>")||Fr.endsWith(">g</mi>")?(Fr+=Dh,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Fr)?"mo":"mi",Xu(Fr,e,r)||((ji==="mi"||ji==="mn"||ji==="mtext"||ji==="fence")&&(Fr=u0+Fr),e.mathML+=Fr)}return Ot}function Dm(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function Pm(e){let t=-1,r=e.index,n=!1,i=!1;for(;r<e.atoms.length&&!n&&!i;){const s=e.atoms[r];n=!s.isDigit(),i=!n&&s.superscript!==void 0,r++}return i&&(t=r-1),t}function Xu(e,t,r){var n;let i=t.atoms[t.index-1];if(!i)return!1;if(!i.superscript&&!i.subscript)if(((n=t.atoms[t.index])==null?void 0:n.type)==="subsup")i=t.atoms[t.index],t.index+=1;else return!1;const s=t.lastType;t.lastType="";const A=Eo(i.superscript,r);t.lastType="";const L=Eo(i.subscript,r);if(t.lastType=s,!A&&!L)return!1;let z="";return A&&L?z=`<msubsup>${e}${L}${A}</msubsup>`:A?z=`<msup>${e}${A}</msup>`:L&&(z=`<msub>${e}${L}</msub>`),t.mathML+=z,t.lastType="",!0}function Om(e,t,r){t=t!=null?t:e.atoms.length;const n=e.index;let i="";for(;e.index<t&&e.atoms[e.index].mode==="text";)i+=e.atoms[e.index].value?e.atoms[e.index].value:" ",e.index+=1;return i.length>0?(e.mathML+=`<mtext ${qo(e.atoms[n].id,r)}>${i}</mtext>`,e.lastType="mtext",!0):!1}function Nm(e,t,r){t=t!=null?t:e.atoms.length;const n=e.index;let i="",s=Pm(e);for(s>=0&&s<t&&(t=s);e.index<t&&e.atoms[e.index].isDigit();)i+=e.atoms[e.index].asDigit(),e.index+=1;return i.length<=0?!1:(i="<mn"+qo(e.atoms[n].id,r)+">"+i+"</mn>",s<0&&Dm(e)&&(s=e.index,e.index+=1),Xu(i,e,r)||(e.mathML+=i,e.lastType="mn"),!0)}function Tm(e,t,r){let n=!1;t=t!=null?t:e.atoms.length;let i="",s="";if(e.index<t&&e.atoms[e.index].type==="mopen"){let A=!1,L=0;const z=e.index;let q=-1,Ae=z+1;for(;Ae<t&&!A;)e.atoms[Ae].type==="mopen"?L+=1:e.atoms[Ae].type==="mclose"&&(L-=1),L===-1&&(A=!0,q=Ae),Ae+=1;A&&(i="<mrow>",i+=jd(e.atoms[z],r),i+=Eo(e.atoms,r,z+1,q),i+=jd(e.atoms[q],r),i+="</mrow>",e.index=q+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=u0),Xu(i,e,r)&&(n=!0,e.lastType="",i=""),s="fence")}return i.length>0&&(n=!0,e.mathML+=i,e.lastType=s),n}function Um(e,t,r){let n=!1;t=t!=null?t:e.atoms.length;let i="",s="";const A=e.atoms[e.index];if(!A)return!1;const L={"\\ne":"&ne;","\\neq":"&neq;","\\pm":"&#177;","\\times":"&#215;","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(L[A.command]){e.index+=1;const z=`<mo${qo(A.id,r)}>${L[A.command]}</mo>`;return Xu(z,e,r)||(e.mathML+=z,e.lastType="mo"),!0}if(e.index<t&&(A.type==="mbin"||A.type==="mrel"))i+=Q0(e.atoms[e.index],r),e.index+=1,s="mo";else if(e.index<t&&(A.type==="mop"||A.type==="operator"||A.type==="extensible-symbol")){if(A.subsupPlacement==="over-under"&&(A.superscript||A.subscript)){const z=jd(A,r);return A.superscript&&A.subscript?(i+="<munderover>"+z,i+=Eo(A.subscript,r),i+=Eo(A.superscript,r),i+="</munderover>"):A.superscript?(i+="<mover>"+z,i+=Eo(A.superscript,r),i+="</mover>"):A.subscript&&(i+="<munder>"+z,i+=Eo(A.subscript,r),i+="</munder>"),e.mathML+=i,e.lastType="mo",e.index+=1,!0}{const z=e.atoms[e.index],q=z.value==="\\operatorname",Ae=q?'<mi class="MathML-Unit"'+qo(z.id,r)+">"+cf(z.value)+"</mi>":jd(z,r);i+=Ae,!q&&!/^<mo>(.*)<\/mo>$/.test(Ae)?(i+=Dh,s="applyfunction"):s=q?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(i)&&(i=u0+i),e.index+=1}return i.length>0&&(n=!0,Xu(i,e,r)||(e.mathML+=i,e.lastType=s)),n}function Eo(e,t,r,n){t!=null||(t={});const i={atoms:[],index:r!=null?r:0,mathML:"",lastType:""};if(typeof e=="number"||typeof e=="boolean")i.mathML=e.toString();else if(typeof e=="string")i.mathML=e;else if(e instanceof zr)i.mathML=Q0(e,t);else if(Array.isArray(e)){i.atoms=e;let s=0;for(n=n||(e?e.length:0);i.index<n;)if(Om(i,n,t)||Nm(i,n,t)||km(i,n,t)||Um(i,n,t)||Tm(i,n,t))s+=1;else if(i.index<n){let A=Q0(i.atoms[i.index],t);i.lastType==="mn"&&A.length>0&&i.atoms[i.index].type==="genfrac"&&(A="<mo>&#x2064;</mo>"+A),i.atoms[i.index].type==="genfrac"?i.lastType="mfrac":i.lastType="",i.index+=1,Xu(A,i,t)?s+=1:A.length>0&&(i.mathML+=A,s+=1)}s>1&&(i.mathML="<mrow>"+i.mathML+"</mrow>")}return i.mathML}function jd(e,t){let r="";const n=cf(e.value);return n&&(r="<mo"+qo(e.id,t)+">"+n+"</mo>"),r}function cf(e){if(!e)return"";if(typeof e=="string")return d0(e);if(!Array.isArray(e)&&typeof e.body=="string")return d0(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return d0(t)}function Q0(e,t){var r,n,i,s,A,L,z,q,Ae,Qe,At,Ft,Ot,Fr,In,Br,an,Rn,pn,Ci,ji,Ni;if(e.mode==="text")return`<mi${qo(e.id,t)}>${e.value}</mi>`;const io={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"},zo={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Vn="",yA="",ku,RA,Il,bA,Vc,es;const{command:Gs}=e;if(e.command==="\\error")return`<merror${qo(e.id,t)}>${Eo(e.body,t)}</merror>`;const Ml={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Du={"\\vec":"&#x20d7;","\\acute":"&#x00b4;","\\grave":"&#x0060;","\\dot":"&#x02d9;","\\ddot":"&#x00a8;","\\tilde":"&#x007e;","\\bar":"&#x00af;","\\breve":"&#x02d8;","\\check":"&#x02c7;","\\hat":"&#x005e;"};switch(e.type){case"first":break;case"group":case"root":Vn=Eo(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(Vn+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(Vn+="<mo>"+(Ml[e.leftDelim]||e.leftDelim)+"</mo>")),Vn+="<mtable",e.colFormat){for(Vn+=' columnalign="',Il=0;Il<e.colFormat.length;Il++)e.colFormat[Il].align&&(Vn+={l:"left",c:"center",r:"right"}[e.colFormat[Il].align]+" ");Vn+='"'}for(Vn+=">",RA=0;RA<e.array.length;RA++){for(Vn+="<mtr>",ku=0;ku<e.array[RA].length;ku++)Vn+="<mtd>"+Eo(e.array[RA][ku],t)+"</mtd>";Vn+="</mtr>"}Vn+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(Vn+="<mo>"+(Ml[e.leftDelim]||e.rightDelim)+"</mo>"),Vn+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(Vn+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(Vn+="<mo"+qo(e.id,t)+">"+(Ml[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(Vn+="<mfrac>",Vn+=Eo(e.above,t)||"<mi>&nbsp;</mi>",Vn+=Eo(e.below,t)||"<mi>&nbsp;</mi>",Vn+="</mfrac>"):(Vn+="<mtable"+qo(e.id,t)+">",Vn+="<mtr>"+Eo(e.above,t)+"</mtr>",Vn+="<mtr>"+Eo(e.below,t)+"</mtr>",Vn+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(Vn+="<mo"+qo(e.id,t)+">"+(Ml[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(Vn+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(Vn+="<msqrt"+qo(e.id,t)+">",Vn+=Eo(e.body,t),Vn+="</msqrt>"):(Vn+="<mroot"+qo(e.id,t)+">",Vn+=Eo(e.body,t),Vn+=Eo(e.above,t),Vn+="</mroot>");break;case"leftright":const Pu=e,Ou=Pu.leftDelim;Vn="<mrow>",Ou&&Ou!=="."&&(Vn+=`<mo${qo(e.id,t)}>${(r=Ml[Ou])!=null?r:Ou}</mo>`),e.body&&(Vn+=Eo(e.body,t));const Nu=Pu.matchingRightDelim();Nu&&Nu!=="."&&(Vn+=`<mo${qo(e.id,t)}>${(n=Ml[Nu])!=null?n:Nu}</mo>`),Vn+="</mrow>";break;case"sizeddelim":case"delim":Vn+=`<mo${qo(e.id,t)}>${Ml[e.value]||e.value}</mo>`;break;case"accent":Vn+='<mover accent="true"'+qo(e.id,t)+">",Vn+=Eo(e.body,t),Vn+="<mo>"+(Du[Gs]||e.accent)+"</mo>",Vn+="</mover>";break;case"line":case"overlap":break;case"overunder":Vc=e.above,bA=e.below,(e.svgAbove||Vc)&&(e.svgBelow||bA)?es=e.body:Vc&&Vc.length>0?(es=e.body,(s=(i=e.body)==null?void 0:i[0])!=null&&s.below?(bA=e.body[0].below,es=e.body[0].body):((L=(A=e.body)==null?void 0:A[0])==null?void 0:L.type)==="first"&&((q=(z=e.body)==null?void 0:z[1])!=null&&q.below)&&(bA=e.body[1].below,es=e.body[1].body)):bA&&bA.length>0&&(es=e.body,(Qe=(Ae=e.body)==null?void 0:Ae[0])!=null&&Qe.above?(Vc=e.body[0].above,es=e.body[0].body):((Ft=(At=e.body)==null?void 0:At[0])==null?void 0:Ft.type)==="first"&&((Fr=(Ot=e.body)==null?void 0:Ot[1])!=null&&Fr.above)&&(Vc=e.body[1].overscript,es=e.body[1].body)),(e.svgAbove||Vc)&&(e.svgBelow||bA)?(Vn+=`<munderover ${qo(e.id,t)}>`,Vn+=(In=io[e.svgBody])!=null?In:Eo(es,t),Vn+=(Br=io[e.svgBelow])!=null?Br:Eo(bA,t),Vn+=(an=io[e.svgAbove])!=null?an:Eo(Vc,t),Vn+="</munderover>"):e.svgAbove||Vc?(Vn+=`<mover ${qo(e.id,t)}>`+((Rn=io[e.svgBody])!=null?Rn:Eo(es,t)),Vn+=(pn=io[e.svgAbove])!=null?pn:Eo(Vc,t),Vn+="</mover>"):(e.svgBelow||bA)&&(Vn+=`<munder ${qo(e.id,t)}>`+((Ci=io[e.svgBody])!=null?Ci:Eo(es,t)),Vn+=(ji=io[e.svgBelow])!=null?ji:Eo(bA,t),Vn+="</munder>");break;case"placeholder":Vn+="?";break;case"mord":{Vn=typeof e.value=="string"?e.value:Gs,Gs==="\\char"?Vn="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":Vn.length>0&&Vn.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?Vn="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?Vn=e.value.charAt(0):(console.error("Did not expect this"),Vn=""));const su=/\d/.test(Vn)?"mn":"mi";Vn=`<${su}${qo(e.id,t)}>${d0(Vn)}</${su}>`;break}case"mbin":case"mrel":case"minner":Vn=jd(e,t);break;case"mpunct":Vn='<mo separator="true"'+qo(e.id,t)+">"+Gs+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(Vn="<mo"+qo(e.id,t)+">",Vn+=Gs==="\\operatorname"?e.body:Gs||e.body,Vn+="</mo>");break;case"box":Vn='<menclose notation="box"',e.backgroundcolor&&(Vn+=' mathbackground="'+e.backgroundcolor+'"'),Vn+=qo(e.id,t)+">"+Eo(e.body,t)+"</menclose>";break;case"spacing":Vn+='<mspace width="'+((Ni=zo[Gs])!=null?Ni:0)+'em"/>';break;case"enclose":Vn='<menclose notation="';for(const su in e.notation)Object.prototype.hasOwnProperty.call(e.notation,su)&&e.notation[su]&&(Vn+=yA+su,yA=" ");Vn+=qo(e.id,t)+'">'+Eo(e.body,t)+"</menclose>";break;case"prompt":Vn='<menclose notation="roundexbox""">'+Eo(e.body,t)+"</menclose>";break;case"space":Vn+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Vn+=jd(e,t);break;case"mclose":Vn+=jd(e,t);break;case"macro":{const su=e.command+cf(e.macroArgs);su&&(Vn+=`<mo ${qo(e.id,t)}>${su}</mo>`)}break;case"latexgroup":Vn+=Eo(e.body,t);break;case"latex":Vn+="<mtext"+qo(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":Vn+=Eo(e.body,t);break;case"text":Vn+=`<mtext ${qo(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${qo(e.id,t)} displaystyle="true">${Eo(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${qo(e.id,t)} displaystyle="false">${Eo(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return Vn}var Af={"\\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"},K0={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 Rm(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}function Pf(e){let t=0;if(S(e))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function Qm(e){if(S(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function Ph(e){let t="";if(S(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function Km(e){return e?e.map(t=>t.value).join(""):""}function Ga(e,t){var r,n,i,s,A;function L(Ae){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Ae)?` <say-as interpret-as="character">${Ae}</say-as>`:/[A-Z]/.test(Ae)?`capital <say-as interpret-as="character">${Ae.toLowerCase()}</say-as>`:Ae:/[a-z]/.test(Ae)?" '"+Ae.toUpperCase()+"'":/[A-Z]/.test(Ae)?" 'capital "+Ae.toUpperCase()+"'":Ae}function z(Ae){return"<emphasis>"+Ae+"</emphasis>"}if(!t)return"";let q="";if(S(t)){let Ae=!1,Qe=!1;for(let At=0;At<t.length;At++)t[At].type!=="first"&&(t[At].mode!=="text"&&(Qe=!1),At<t.length-2&&t[At].type==="mopen"&&t[At+2].type==="mclose"&&t[At+1].type==="mord"?(q+=" of ",q+=z(Ga(e,t[At+1])),At+=2):t[At].mode==="text"?Qe?q+=(r=t[At].value)!=null?r:" ":(Qe=!0,q+=Ga("text",t[At])):t[At].isDigit()?Ae?q+=t[At].asDigit():(Ae=!0,q+=Ga(e,t[At])):(Ae=!1,q+=Ga(e,t[At])))}else if(t.mode==="text")t.id&&e==="math"&&(q+='<mark name="'+t.id.toString()+'"/>'),q+=t.value;else{t.id&&e==="math"&&(q+='<mark name="'+t.id.toString()+'"/>');let Ae="",Qe="",At="",Ft=!1;const{command:Ot}=t;switch(Ot){case"\\vec":return"vector "+Ga(e,t.body);case"\\acute":return Ga(e,t.body)+" acute";case"\\grave":return Ga(e,t.body)+" grave";case"\\dot":return"dot over"+Ga(e,t.body);case"\\ddot":return"double dot over"+Ga(e,t.body);case"\\mathring":return"ring over"+Ga(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+Ga(e,t.body);case"\\bar":return Ga(e,t.body)+" bar";case"\\breve":return Ga(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Ga(e,t.body);case"\\hat":case"\\widehat":return"hat over"+Ga(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Ga(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+Ga(e,t.body)}switch(t.type){case"prompt":const Fr=t.body.length>1?'start input . <break time="500ms"/> '+Ga(e,t.body)+'. <break time="500ms"/> end input':"blank";q+=' <break time="300ms"/> '+Fr+'. <break time="700ms"/>'+((n=t.correctness)!=null?n:"")+' . <break time="700ms"/> ';break;case"array":const In=t.array,Br=t.environmentName;if(Object.keys(K0).includes(Br)){q+=` begin ${K0[Br]} `;for(let pn=0;pn<In.length;pn++){pn>0&&(q+=","),q+=` row ${pn+1} `;for(let Ci=0;Ci<In[pn].length;Ci++)Ci>0&&(q+=","),q+=` column ${Ci+1}: `,q+=Ga("math",In[pn][Ci])}q+=` end ${K0[Br]} `}break;case"group":Ot==="\\ne"?q+=" not equal ":(Ot==="\\not"&&(q+=" not "),q+=Ga("math",t.body));break;case"root":q+=Ga("math",t.body);break;case"genfrac":if(Ae=Ga("math",t.above),Qe=Ga("math",t.below),Pf(t.above)&&Pf(t.below)){const Ci={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[Ph(t.above)+"/"+Ph(t.below)];Ci?q=Ci:q+=Ae+" over "+Qe}else q+=' the fraction <break time="150ms"/>'+Ae+' over <break time="150ms"/>'+Qe+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(At=Ga("math",t.body),t.hasEmptyBranch("above"))q+=Pf(t.body)?" the square root of "+At+" , ":' the square root of <break time="200ms"/>'+At+'. <break time="200ms"/> End square root';else{let pn=Ga("math",t.above);pn=pn.trim();const Ci=pn.replace(/<mark([^/]*)\/>/g,"");Ci==="3"?q+=' the cube root of <break time="200ms"/>'+At+'. <break time="200ms"/> End cube root':Ci==="n"?q+=' the nth root of <break time="200ms"/>'+At+'. <break time="200ms"/> End root':q+=' the root with index: <break time="200ms"/>'+pn+', of <break time="200ms"/>'+At+'. <break time="200ms"/> End root'}break;case"leftright":{const pn=t;q+=(i=pn.leftDelim?Af[pn.leftDelim]:void 0)!=null?i:pn.leftDelim,q+=Ga("math",t.body),q+=(s=pn.rightDelim?Af[pn.rightDelim]:void 0)!=null?s:pn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const an=Ot.replace(/^\\/g,""),Rn=lt()[an];Rn&&(Rn!=null&&Rn.expand?q+=Ga("math",t.body):q+=`${an} `);break;case"placeholder":q+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Ot==="\\mathbin"||Ot==="\\mathrel"||Ot==="\\mathopen"||Ot==="\\mathclose"||Ot==="\\mathpunct"||Ot==="\\mathord"||Ot==="\\mathinner"){q=Ga(e,t.body);break}let pn=t.isDigit()?t.asDigit():t.value,Ci=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Ci=t.value,pn=Ci),e==="text")q+=pn;else{if(t.type==="mbin"&&(q+='<break time="150ms"/>'),pn){const ji=Af[pn]||(Ci?Af[Ci.trim()]:"");if(ji)q+=" "+ji;else{const Ni=Ci?Rm(Ci.trim()):"";q+=Ni||L(pn)}}else q+=Ga("math",t.body);t.type==="mbin"&&(q+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const pn=t.command;if(pn==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=Ga("math",t.superscript);Ci=Ci.trim();let ji=Ga("math",t.subscript);ji=ji.trim(),q+=' the summation from <break time="200ms"/>'+ji+'<break time="200ms"/> to <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))q+=" the summation of";else{let Ci=Ga("math",t.subscript);Ci=Ci.trim(),q+=' the summation from <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=Ga("math",t.superscript);Ci=Ci.trim();let ji=Ga("math",t.subscript);ji=ji.trim(),q+=' the product from <break time="200ms"/>'+ji+'<break time="200ms"/> to <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))q+=" the product of ";else{let Ci=Ga("math",t.subscript);Ci=Ci.trim(),q+=' the product from <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=Ga("math",t.superscript);Ci=Ci.trim();let ji=Ga("math",t.subscript);ji=ji.trim(),q+=' the integral from <break time="200ms"/>'+z(ji)+'<break time="200ms"/> to <break time="200ms"/>'+z(Ci)+' <break time="200ms"/> of ',Ft=!0}else q+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Ci=(A=Af[t.value])!=null?A:t.command?Af[t.command]:void 0;q+=Ci||" "+t.value}else t.command&&(t.command==="\\mathop"?q+=Ga("math",t.body):t.command==="\\operatorname"?q+=Km(t.body):q+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":At=Ga("math",t.body),q+=" crossed out "+At+". End crossed out.";break;case"space":case"spacing":break}if(!Ft&&!t.hasEmptyBranch("superscript")){let Fr=Ga(e,t.superscript);Fr=Fr.trim();const In=Fr.replace(/<[^>]*>/g,"");if(Pf(t.superscript)){if(e==="math"){const Br=Qm(t.superscript);Br&&(q+='<mark name="'+Br+'"/>')}In==="\u2032"?q+=" prime ":In==="2"?q+=" squared ":In==="3"?q+=" cubed ":Number.isNaN(Number.parseInt(In))?q+=" to the "+Fr+"; ":q+=' to the <say-as interpret-as="ordinal">'+In+"</say-as> power; "}else Number.isNaN(Number.parseInt(In))?q+=" raised to the "+Fr+"; ":q+=' raised to the <say-as interpret-as="ordinal">'+In+"</say-as> power; "}if(!Ft&&!t.hasEmptyBranch("subscript")){let Fr=Ga("math",t.subscript);Fr=Fr.trim(),q+=Pf(t.subscript)?" sub "+Fr:" subscript "+Fr+". End subscript. "}}return q}function uf(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const i=Eo(e);if(i){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=E(h({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=E(h({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=E(h({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const s=(r=window.SRE)!=null?r:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&s.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let A="";try{A=s.toSpeech(i)}catch(L){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",L)}return A}return""}let n=Ga("math",e);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let i="";window.MathfieldElement.speechEngineRate&&(i='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),n='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+i+"<p><s>"+n+"</s></p>"+(i?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Y()==="macos"?n=n.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,""):n=n.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return n}var Of={"\\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 Hm(e){let t="";for(const r of e){const n=t[t.length-1];n!==void 0&&/\d/.test(n)&&/^\d/.test(r)&&(t+=" "),t+=r}return t}function Ws(e){var t,r,n,i,s,A,L,z,q,Ae,Qe,At,Ft;if(!e)return"";if(S(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map(Ws).join("");if(e[0].mode==="text"){let Rn=0,pn="";for(;((t=e[Rn])==null?void 0:t.mode)==="text";)pn+=e[Rn].body?Ws(e[Rn].body):e[Rn].value,Rn++;return`"${pn}" ${Ws(e.slice(Rn))}`}let Br=0;const an=[];for(;e[Br]&&e[Br].mode==="math";){let Rn="";for(;e[Br]&&e[Br].type==="mord"&&/\d/.test(e[Br].value);)Rn+=e[Br++].value;Rn?an.push(Rn):an.push(Ws(e[Br++]))}return an.push(Ws(e.slice(Br))),Hm(an)}if(e.mode==="text")return`"${e.value}"`;let Ot="";const{command:Fr}=e;let In;if(Fr==="\\placeholder")return`(${Ws(e.body)})`;switch(e.type){case"accent":const Br={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Fr];Ot=`${Br!=null?Br:""} ${Ws(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Ni=>Ni.value).join("");case"group":case"root":Ot=(r=Of[Fr])!=null?r:Ws(e.body);break;case"genfrac":{const Ni=e;(Ni.leftDelim||Ni.rightDelim)&&(Ot=Ni.leftDelim==="."||!Ni.leftDelim?"{:":Ni.leftDelim),Ni.hasBarLine?(Ot+="(",Ot+=Ws(Ni.above),Ot+=")/(",Ot+=Ws(Ni.below),Ot+=")"):(Ot+="("+Ws(Ni.above)+"),",Ot+="("+Ws(Ni.below)+")"),(Ni.leftDelim||Ni.rightDelim)&&(Ot+=Ni.rightDelim==="."||!Ni.rightDelim?"{:":Ni.rightDelim)}break;case"surd":Ot+=e.hasEmptyBranch("above")?"sqrt("+Ws(e.body)+")":"root("+Ws(e.above)+")("+Ws(e.body)+")";break;case"latex":Ot=e.value;break;case"leftright":{const Ni=e,io=Ni.leftDelim;Ot+=io==="."||!io?"{:":io,Ot+=Ws(Ni.body);const zo=Ni.matchingRightDelim();Ot+=zo==="."||!zo?":}":zo}break;case"sizeddelim":case"delim":Ot=e.value;break;case"overlap":break;case"overunder":break;case"mord":Ot=(i=(n=Of[Fr])!=null?n:Fr)!=null?i:typeof e.value=="string"?e.value:"",Ot.startsWith("\\")&&(Ot+=" "),In=Fr?Fr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,In?Ot=String.fromCodePoint(Number.parseInt("0x"+In[1])):Ot.length>0&&Ot.startsWith("\\")&&(Ot=typeof e.value=="string"?e.value.charAt(0):e.command),Ot=jm(Ot,e.style);break;case"mbin":case"mrel":case"minner":Ot=(A=(s=Of[Fr])!=null?s:Nf[Fr])!=null?A:e.value;break;case"mopen":case"mclose":Ot=e.value;break;case"mpunct":Ot=(L=Nf[Fr])!=null?L:Fr;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(Nf[Fr]?Ot=Nf[Fr]:Ot=Fr==="\\operatorname"?Ws(e.body):(z=e.value)!=null?z:Fr,Ot+=" ");break;case"array":const an=e.array,Rn=e.environmentName,pn=(q={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Rn])!=null?q:["(",")"],Ci=[];for(const Ni of an){const io=[];for(const zo of Ni)io.push(pn[0]+Ws(zo)+pn[1]);Ci.push(io.join(","))}const ji=(Ae={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Rn])!=null?Ae:["(",")"];Ot=ji[0]+Ci.join(",")+ji[1];break;case"box":break;case"spacing":Ot=(Qe=Of[Fr])!=null?Qe:" ";break;case"enclose":Ot="("+Ws(e.body)+")";break;case"space":Ot=" ";break;case"subsup":Ot="";break;case"macro":Ot=(Ft=(At=Of[Fr])!=null?At:Nf[Fr])!=null?Ft:Ws(e.body);break}if(!e.hasEmptyBranch("subscript")){Ot+="_";const Br=Ws(e.subscript);Ot+=Br.length!==1?`(${Br})`:Br}if(!e.hasEmptyBranch("superscript")){Ot+="^";const Br=Ws(e.superscript);Ot+=Br.length!==1?`(${Br})`:Br}return Ot}function jm(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 Fl(e,t){var r,n;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const i=new la({from:E(h({},Oc()),{renderPlaceholder:()=>new fn(160,{maxFontSize:1}),letterShapeStyle:(n=t==null?void 0:t.letterShapeStyle)!=null?n:"tex"}),mathstyle:t.mathstyle}),A=new zr({mode:"math",type:"root",body:Al(e,{context:i,parseMode:"math",mathstyle:t.mathstyle})}).render(i);return A?(SA(Wu(A,i)),AA(A,{classes:"ML__latex"}).toMarkup()):""}function Dg(e){return gu(e,{context:Oc()})}function zm(e,t={}){return Eo(Al(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function $m(e){const t=Al(e,{parseMode:"math",mathstyle:"displaystyle"});return uf(t)}var f0;function Zm(e){var t,r;if(!f0){const n=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;n?f0=new n: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=f0==null?void 0:f0.box(e).latex)!=null?r:""}function Pg(e,t="math"){return Ws(new zr({type:"root",body:Al(e,{parseMode:t})}))}function Og(e){return Ge(e,{format:"ascii-math"})[1]}function H0(e){if(typeof e=="string"){const t=Vm(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Gm(e):"a"in e?Oh(e):e}function df(e){return e<0?0:e>255?255:Math.round(e)}function Vm(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 j0(e){const[t,r,n]=[e.L,e.C,e.H],i=n*Math.PI/180,s={L:t,a:r*Math.cos(i),b:r*Math.sin(i)};return e.alpha!==void 0&&(s.alpha=e.alpha),s}function Wm(e){const[t,r,n]=[e.L,e.a,e.b],i=Math.sqrt(r*r+n*n),A=Math.atan2(n,r)*180/Math.PI,L={L:t,C:i,H:A};return e.alpha!==void 0&&(L.alpha=e.alpha),L}function z0(e){const[t,r,n]=[e.L,e.a,e.b],i=Math.pow(.9999999984505198*t+.39633779217376786*r+.2158037580607588*n,3),s=Math.pow(1.00000000888176*t-.10556134232365635*r-.0638541747717059*n,3),A=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*n,3),L=4.076741661347994*i-3.307711590408193*s+.230969928729428*A,z=-1.2684380040921763*i+2.6097574006633715*s-.3413193963102197*A,q=-.004196086541837188*i-.7034186144594493*s+1.7076147009309444*A,Ae=Qe=>{const At=Math.abs(Qe);return At<=.0031308?Qe*12.92:(Math.sign(Qe)||1)*(1.055*Math.pow(At,1/2.4)-.055)};return[Ae(L),Ae(z),Ae(q)]}function $0(e){const[t,r,n]=e;return t>=0&&t<=1&&r>=0&&r<=1&&n>=0&&n<=1}function Z0(e,t){let[r,n,i]=e;return r=df(r*255),n=df(n*255),i=df(i*255),t!==void 0?{r,g:n,b:i,alpha:t}:{r,g:n,b:i}}function Oh(e){let[t,r,n]=z0(e);if($0([t,r,n]))return Z0([t,r,n],e.alpha);const i=Wm(e);if(i.C=0,[t,r,n]=z0(j0(i)),!$0([t,r,n]))return Z0([t,r,n],e.alpha);let s=0,A=e.L,L=(s+A)/2;i.C=L;const z=.36/Math.pow(2,12);for(;A-s>z;)L=(s+A)/2,i.C=L,[t,r,n]=z0(j0(i)),$0([t,r,n])?s=L:A=L;return Z0([t,r,n],e.alpha)}function Gm(e){return Oh(j0(e))}function Nh(e,t){const r=H0(e),n=H0(t),i=.56,s=.57,A=.62,L=.65,z=.022,q=1.414,Ae=.1,Qe=5e-4,At=1.14,Ft=.027,Ot=1.14,Fr=.027;function In(Ni){return Ni>=z?Ni:Ni+Tu(z-Ni,q)}function Br(Ni){return(Ni<0?-1:1)*Math.pow(Math.abs(Ni),2.4)}const an=In(Br(n.r/255)*.2126729+Br(n.g/255)*.7151522+Br(n.b/255)*.072175),Rn=In(Br(r.r/255)*.2126729+Br(r.g/255)*.7151522+Br(r.b/255)*.072175);let pn,Ci,ji;return Math.abs(Rn-an)<Qe?Ci=0:Rn>an?(pn=Tu(Rn,i)-Tu(an,s),Ci=pn*At):(pn=Tu(Rn,L)-Tu(an,A),Ci=pn*Ot),Math.abs(Ci)<Ae?ji=0:Ci>0?ji=Ci-Fr:ji=Ci+Ft,ji*100}function Th(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const n=Nh(e,r),i=Nh(e,t);return Math.abs(n)>Math.abs(i)?r:t}function Xm(e){const t=H0(e);let r=((1<<24)+(df(t.r)<<16)+(df(t.g)<<8)+df(t.b)).toString(16).slice(1);return t.alpha!==void 0&&t.alpha<1&&(r+=("00"+Math.round(t.alpha*255).toString(16)).slice(-2)),r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]&&(r=r[0]+r[2]+r[4]+(t.alpha!==void 0&&t.alpha<1?r[6]:"")),"#"+r}function ps(e){const t=Uh(e);let r="";for(const n of t){if(typeof n.value!="string")return"";r+=n.value}return r}function Uh(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function Jm(e,t){const r=Uh(e);if(r.length!==1)return!1;const n=xu[t];return n?!!n.test(r[0].value):!1}function Ym(e,t){return ps(e).length>0}function qm(e){return[V0(e,"double-struck","mathbb","tooltip.blackboard"),V0(e,"fraktur","mathfrak","tooltip.fraktur"),V0(e,"calligraphic","mathcal","tooltip.caligraphic"),W0(e,"up","mathrm","tooltip.roman-upright"),W0(e,"bold","mathbf","tooltip.bold"),W0(e,"italic","mathit","tooltip.italic")]}function eg(e){return[{label:()=>Fl(`\\vec{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overrightarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overleftarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\dot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\ddot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bar{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overgroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\underline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\undergroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\underbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function tg(e){return[{label:()=>Fl(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function rg(e){const t=[];for(const r of Object.keys(se))t.push({class:(Xm(Th(se[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${se[r]} "></span>`,ariaLabel:()=>{var n;return(n=J(r))!=null?n:r},checked:()=>{var n;return{some:"mixed",all:!0}[(n=e.queryStyle({backgroundColor:r}))!=null?n:!1]},onMenuSelect:()=>{e.applyStyle({backgroundColor:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}function ng(e){const t=[];for(const r of Object.keys(he))t.push({class:(Th(he[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${he[r]} "></span>`,ariaLabel:()=>{var n;return(n=J(r))!=null?n:r},checked:()=>{var n;return{some:"mixed",all:!0}[(n=e.queryStyle({color:r}))!=null?n:!1]},onMenuSelect:()=>{e.applyStyle({color:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}var ig=class extends Sh{constructor(e,t,r,n){super(e,t),this.row=r,this.col=n}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 ag(e){const t=[];for(let r=1;r<=5;r++)for(let n=1;n<=5;n++)t.push({onCreate:(i,s)=>new ig(i,s,r,n),label:"\u2610",tooltip:()=>J("tooltip.row-by-col",r,n),data:{row:r,col:n},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(r).fill(Array(n).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function og(e){return[{label:()=>J("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>zd(e)},{label:()=>J("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>zd(e)},{label:()=>J("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>zd(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[r,n]=lg(e);return r<t.maxColumns}},{label:()=>J("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>zd(e)},{type:"divider"},{label:()=>J("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>zd(e)},{label:()=>J("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>zd(e)},{type:"divider"},{label:()=>J("menu.borders"),visible:()=>(sg(e)||zd(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Tf(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Tf(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Tf(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Tf(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Tf(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>J("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:ag(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:()=>{Su(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>J("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Su(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:qm(e),submenuClass:"variant-submenu"},{label:()=>J("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:ng(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:rg(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:eg(e),submenuClass:"variant-submenu"},{label:()=>J("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&ps(e).length>0,submenu:tg(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>J("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const t=cg(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 n=(t=e.expression)==null?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!n){e.model.announce("plonk");return}e.insert(`=${n.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const n=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection)).simplify();if(!n){e.model.announce("plonk");return}e.insert(n.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",Fl(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,n=r==null?void 0:r.unknowns[0],i=(t=r.solve(n))==null?void 0:t.map(s=>{var A;return(A=s.simplify().latex)!=null?A:""});if(!i){e.model.announce("plonk");return}e.insert(`${n}=${i.length===1?i[0]:"\\left\\lbrace"+(i==null?void 0:i.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:()=>aa.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>J("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>aa.copyToClipboard(e,"ascii-math")},{label:()=>J("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>aa.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 zd(e){var t;return!!((t=e.model.parentEnvironment)!=null&&t.array)}function sg(e){return e.model.at(e.model.position).type==="array"}function lg(e){var t;const r=(t=e.model.parentEnvironment)==null?void 0:t.array;return r?[r.length,r.reduce((n,i)=>Math.max(n,i.length),0)]:[0,0]}function Tf(e,t){iu(e),e.flushInlineShortcutBuffer(),nh(e.model,t),xs(e)}function cg(e){var t,r;let n;if(e.model.selectionIsCollapsed?n=(t=window.MathfieldElement.computeEngine)==null?void 0:t.parse(e.getValue(),{canonical:!1}):n=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection),{canonical:!1}),!n)return"";let i=n.evaluate();return i.isSame(n)&&(i=n.N()),i.latex}function V0(e,t,r,n){return{label:()=>Fl(`\\${r}{${ps(e)}}`),tooltip:()=>{var i;return(i=J(n))!=null?i:n},visible:()=>Jm(e,t),checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({variant:t}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function W0(e,t,r,n){return{label:()=>Fl(`\\${r}{${ps(e)}}`),tooltip:()=>{var i;return(i=J(n))!=null?i:n},visible:()=>Ym(e,t),checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({variantStyle:t}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function ff(e,t){return e+uf(t)}_l({speak:(e,t,r)=>Ag(e,t,r)},{target:"mathfield"});function Ag(e,t,r){var n,i;r=r!=null?r:{withHighlighting:!1};const{model:s}=e;function A(Ae){let Qe=null;switch(Ae){case"all":Qe=s.root;break;case"selection":Qe=s.getAtoms(s.selection);break;case"left":{Qe=s.getAtoms(s.offsetOf(s.at(s.position).leftSibling),s.position);break}case"right":{Qe=s.getAtoms(s.position,s.offsetOf(s.at(s.position).rightSibling));break}case"group":Qe=s.getAtoms(s.getSiblingsRange(s.position));break;case"parent":{const{parent:At}=s.at(s.position);At!=null&&At.parent?Qe=At:Qe=s.root;break}default:Qe=s.root}return Qe}function L(Ae){let Qe="";switch(Ae){case"all":console.log("Internal failure: speak all failed");break;case"selection":Qe="no selection";break;case"left":Qe="at start";break;case"right":Qe="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Qe="no parent";break;default:console.log('unknown speak_ param value: "'+Ae+'"');break}return Qe}const z=A(t);if(z===null)return(i=(n=window.MathfieldElement).speakHook)==null||i.call(n,L(t)),!1;(r.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const q=uf(z);return P()&&r.withHighlighting?(md().readAloudMathfield=e,TA(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,q)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(q),!1}function ug(e){var t,r;if(!P()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const n=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(n)}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 n=new window.AWS.Polly({apiVersion:"2016-06-10"}),i={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"};n.synthesizeSpeech(i,(s,A)=>{if(s)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${s}`);else if(A!=null&&A.AudioStream){const L=new Uint8Array(A.AudioStream),z=new Blob([L.buffer],{type:"audio/mpeg"}),q=URL.createObjectURL(z);new Audio(q).play().catch(Qe=>console.log(Qe))}else console.log("polly.synthesizeSpeech():",A)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function Rh(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 dg(e,t,r,n){let i="";if(t==="plonk")window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if(t==="delete")i=ff("deleted: ",n);else if(t==="focus"||t.includes("move"))i=fg(e.model,r)+(e.model.selectionIsCollapsed?"":"selected: ")+hg(e.model);else if(t==="replacement")i=ff("",e.model.at(e.model.position));else if(t==="line"){const s=ff("",e.model.root);e.keyboardDelegate.setAriaLabel(s)}else i=n?ff(t+" ",n):t;if(i){const s=e.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";e.ariaLiveText.textContent=i+s}}function fg(e,t){if(Number.isNaN(t))return"";const r=e.at(t);if(!r||r.treeDepth<=e.at(e.position).treeDepth)return"";let n="",i=r.parent;const s=e.at(e.position).parent;for(;i!==e.root&&i!==s;)n+=`out of ${Rh(i)};`,i=i.parent;return n}function hg(e){if(!e.selectionIsCollapsed)return ff("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),n=Rh(r);return r.isFirstSibling&&(t=(n?"start of "+n:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=n?"end of "+n:"unknown"):t+=ff("",r),t}var pg=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 n=this.silenceNotifications;this.silenceNotifications=(r=t==null?void 0:t.silenceNotifications)!=null?r:!0;let i={};if((t==null?void 0:t.type)==="undo"&&(i={inputType:"historyUndo"}),(t==null?void 0:t.type)==="redo"&&(i={inputType:"historyRedo"}),this.contentWillChange(i)){const s=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=mA(e.content),this.selection=e.selection,this.silenceNotifications=s,this.contentDidChange(i)}this.silenceNotifications=n}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,n,i;const s=this.normalizeSelection(e,t);if(s===void 0)throw new TypeError("Invalid selection");if(s.ranges.length===1&&s.ranges[0][0]===s.ranges[0][1]){const Ae=s.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(Ae))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((n=this.at(Ae-1))!=null&&n.parentPrompt){this._anchor=this.normalizeOffset(Ae-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((i=this.at(Ae+1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(Ae+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=Ae,this._position=Ae,this._selection=s;return}const A=Is(s);s.direction==="backward"?[this._position,this._anchor]=A:[this._anchor,this._position]=A;const L=this.at(A[0]+1),z=this.at(A[1]),q=zr.commonAncestor(L,z);(q==null?void 0:q.type)==="array"&&L.parent===q&&z.parent===q?this._selection={ranges:[A],direction:s.direction}:this._selection={ranges:[A],direction:s.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 Ls&&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 n=t.parent.branch(t.parentBranch);return[this.offsetOf(n[0]),this.offsetOf(n[n.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 n=r!=null?r:{};if(Uc(e)){if(n=t!=null?t:{},e.ranges.length>1)return e.ranges.reduce((q,Ae)=>[...q,...this.getAtoms(Ae,n)],[]);e=e.ranges[0]}let i,s;if(Tc(e)){if(i=e,!Tc(t))return[];s=t}else[i,s]=e,n=t!=null?t:{};if(!Number.isFinite(i))return[];n.includeChildren===void 0&&(n.includeChildren=!1),i<0&&(i=this.lastOffset-i+1),s<0&&(s=this.lastOffset-s+1);const A=Math.min(i,s)+1,L=Math.max(i,s);if(!n.includeChildren&&A===1&&L===this.lastOffset)return[this.root];let z=[];for(let q=A;q<=L;q++){const Ae=this.atoms[q];Qh(this,Ae,A,L)&&z.push(Ae)}return n.includeChildren||(z=z.filter(q=>{let Ae=!1,{parent:Qe}=q;for(;Qe&&!Ae;)Ae=Qh(this,Qe,A,L),Qe=Qe.parent;return!Ae})),z}getAllAtoms(e=0){const t=[],r=this.lastOffset;for(let n=e;n<=r;n++)t.push(this.atoms[n]);for(let n=0;n<e;n++)t.push(this.atoms[n]);return t}findAtom(e,t=0,r="forward"){let n;const i=this.lastOffset;if(r==="forward"){for(let s=t;s<=i;s++)if(n=this.atoms[s],e(n))return n;for(let s=0;s<t;s++)if(n=this.atoms[s],e(n))return n;return}for(let s=t;s>=0;s--)if(n=this.atoms[s],e(n))return n;for(let s=i;s>t;s--)if(n=this.atoms[s],e(n))return n}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 zr({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 zr.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 Eo(e);if(r==="spoken")return uf(e);if(r==="spoken-text"){const n=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const i=uf(e);return window.MathfieldElement.textToSpeechMarkup=n,i}if(r==="spoken-ssml"||r==="spoken-ssml-with-highlighting"){const n=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const i=uf(e);return window.MathfieldElement.textToSpeechMarkup=n,i}return r==="ascii-math"?Ws(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 n,i;if(Tc(e)&&Tc(t)?(n=[this.normalizeRange([e,t])],i=r):Yc(e)?(n=[this.normalizeRange(e)],i=t):Uc(e)?(n=e.ranges,i=t):(n=[this.normalizeRange([0,-1])],i=e),i!=null||(i="latex"),i==="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 s=this.getValue({ranges:n},"latex-unstyled");try{const A=window.MathfieldElement.computeEngine.parse(s);return JSON.stringify(A.json)}catch(A){return JSON.stringify(["Error",`'${A.toString()}'`])}}if(i.startsWith("latex")){const s={expandMacro:i==="latex-expanded",skipStyles:i==="latex-unstyled",skipPlaceholders:i==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Ca(n.map(A=>zr.serialize(this.getAtoms(A),s)))}return n.map(s=>this.getAtoms(s).map(A=>this.atomToString(A,i)).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[n,i]=r,{parent:s}=this.at(i);if(s&&(s.type==="genfrac"||s.type==="subsup"))for(;s!==this.root&&G0(this,s,[n,i]);)i=this.offsetOf(s),s=s.parent;for(s=this.at(n).parent;s!==this.root&&G0(this,s,[n,i]);)n=this.offsetOf(s.leftSibling),s=s.parent;if(s=this.at(i).parent,(s==null?void 0:s.type)==="genfrac")for(;s!==this.root&&G0(this,s,[n,i]);)i=this.offsetOf(s),console.assert(i>=0),s=s.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[n,i]],direction:"none"}})}announce(e,t,r=[]){var n,i;((i=(n=this.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:r},cancelable:!0,bubbles:!0,composed:!0})))!=null?i:!0)&&dg(this.mathfield,e,t,r)}deferNotifications(e,t){const r=this._selection,n=this._anchor,i=this._position,s=this.silenceNotifications;this.silenceNotifications=!0;const A=this.root.changeCounter;t();const L=this.root.changeCounter!==A,z=n!==this._anchor||i!==this._position||Ku(this._selection,r)==="different";return this.silenceNotifications=s,e.content&&L&&this.contentDidChange({inputType:e.type}),e.selection&&z&&this.selectionDidChange(),L||z}normalizeOffset(e){return e>0?e=Math.min(e,this.lastOffset):e<0&&(e=this.lastOffset+e+1),e}normalizeRange(e){let[t,r]=e;return t=this.normalizeOffset(t),r=this.normalizeOffset(r),t<r?[t,r]:[r,t]}normalizeSelection(e,t){var r;let n;if(Tc(e)){const i=this.normalizeOffset(e);if(Tc(t)){const s=this.normalizeOffset(t);n=i<=s?{ranges:[[i,s]],direction:"none"}:{ranges:[[s,i]],direction:"backward"}}else n={ranges:[[i,i]],direction:"none"}}else if(Yc(e)){const i=this.normalizeOffset(e[0]),s=this.normalizeOffset(e[1]);n=i<=s?{ranges:[[i,s]],direction:"none"}:{ranges:[[s,i]],direction:"backward"}}else Uc(e)&&(n={ranges:e.ranges.map(i=>this.normalizeRange(i)),direction:(r=e.direction)!=null?r:"none"});return console.assert(n!==void 0),n}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(Iu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",E(h({},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(Iu(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function Qh(e,t,r,n){const i=e.offsetOf(t);if(i<r||i>n)return!1;if(!t.hasChildren)return!0;const s=e.offsetOf(t.firstChild);if(s>=r&&s<=n){const A=e.offsetOf(t.lastChild);if(A>=r&&A<=n)return!0}return!1}function G0(e,t,r){if(!(t!=null&&t.hasChildren))return!1;const[n,i]=r,s=e.offsetOf(t.firstChild),A=e.offsetOf(t.lastChild);return s>=n&&s<=i&&A>=s&&A<=i}function Uf(e,t,r,n){var i,s,A,L,z,q;const Ae=r.parent;if(Ae&&r instanceof ko){const Qe=!n&&t==="forward"||n==="body"&&t==="backward";let At=Qe?e.offsetOf(r.firstChild):e.offsetOf(r.lastChild);return Qe?r.rightDelim!=="?"&&r.rightDelim!=="."?(r.leftDelim=".",r.isDirty=!0):(Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),At--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),At--),e.position=At,!0}if(Ae&&r.type==="surd"){if(t==="forward"&&!n||t==="backward"&&n==="body"){const Qe=r.leftSibling;r.hasChildren&&Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),e.position=e.offsetOf(Qe)}else t==="forward"&&n==="body"?e.position=e.offsetOf(r):!n&&t==="backward"?r.hasChildren?e.position=e.offsetOf(r.lastChild):(e.position=Math.max(0,e.offsetOf(r)-1),Ae.removeChild(r)):n==="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(Ae&&(r.type==="box"||r.type==="enclose")){const Qe=n&&t==="backward"||!n&&t==="forward"?r.leftSibling:r.lastChild;return Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),e.position=e.offsetOf(Qe),!0}if(r.type==="genfrac"||r.type==="overunder"){if(!n)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 Qe=Rf.fractionNavigationOrder==="numerator-denominator"?"above":"below",At=Qe==="above"?"below":"above";if(Ae&&(t==="forward"&&n===Qe||t==="backward"&&n===At)){const Ft=r.removeBranch(Qe),Ot=r.removeBranch(At);return Ae.addChildrenAfter([...Ft,...Ot],r),Ae.removeChild(r),e.position=e.offsetOf(Ft.length>0?Ft[Ft.length-1]:Ot[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!n&&t==="forward")return!1;if(!n){if(r.subscript||r.superscript){const Qe=t==="forward"?(A=(i=r.superscript)==null?void 0:i[0])!=null?A:(s=r.subscript)==null?void 0:s[0]:(q=(L=r.subscript)==null?void 0:L[0].lastSibling)!=null?q:(z=r.superscript)==null?void 0:z[0].lastSibling;return Qe&&(e.position=e.offsetOf(Qe)),!0}return!1}if(!r.hasChildren&&r.type==="subsup"){const Qe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);return r.parent.removeChild(r),e.position=Qe,!0}if(n==="superscript")if(t==="backward"){const Qe=e.offsetOf(r.firstChild)-1;console.assert(Qe>=0),e.position=Qe}else r.subscript?e.position=e.offsetOf(r.subscript[0]):e.position=e.offsetOf(r);else n==="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(n&&r.hasEmptyBranch(n)&&(r.removeBranch(n),r.type==="subsup"&&!r.subscript&&!r.superscript)){const Qe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);r.parent.removeChild(r),e.position=Qe}return!0}if((Ae==null?void 0:Ae.type)==="genfrac"&&!n&&r.type!=="first"){let Qe=e.offsetOf(r.leftSibling);return Ae.removeChild(r),Ae.hasEmptyBranch("above")&&Ae.hasEmptyBranch("below")?(Qe=e.offsetOf(Ae.leftSibling),Ae.parent.removeChild(Ae),e.announce("delete",void 0,[Ae]),e.position=Qe,!0):(e.announce("delete",void 0,[r]),e.position=Qe,!0)}if(t==="backward"&&((Ae==null?void 0:Ae.command)==="\\ln"||(Ae==null?void 0:Ae.command)==="\\log")&&r.parentBranch!=="body"){const Qe=e.offsetOf(Ae.leftSibling);return Ae.parent.removeChild(Ae),e.announce("delete",void 0,[Ae]),e.position=Qe,!0}return!1}function mg(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&&Uf(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(Uf(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])}}):Lu(e,Is(e.selection),"deleteContentBackward")}function gg(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentForward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var t,r;let n=e.at(e.position).rightSibling;if(n&&Uf(e,"forward",n))return;if(n){if(e.at(e.position).isLastSibling&&Uf(e,"forward",n.parent,n.parentBranch))return}else{if(n=e.at(e.position),n.isLastSibling&&Uf(e,"forward",n.parent,n.parentBranch))return;n=void 0}if(e.position===e.lastOffset||!n){e.announce("plonk");return}n.parent.removeChild(n);let i=(t=e.at(e.position))==null?void 0:t.rightSibling;for(;(i==null?void 0:i.type)==="subsup";)i.parent.removeChild(i),i=(r=e.at(e.position))==null?void 0:r.rightSibling;e.announce("delete",void 0,[n])}):Lu(e,Is(e.selection),"deleteContentForward")}function Lu(e,t,r){const n=e.getAtoms(t);if(n.length>0&&n[0].parent){let i=n[0].parent.firstChild;i.type==="first"&&(i=i.rightSibling);const s=n[n.length-1].parent.lastChild;let A=n[0];A.type==="first"&&(A=A.rightSibling);const L=n[n.length-1];if(A===i&&L===s){const z=n[0].parent;z.parent&&z.type!=="prompt"&&(t=[e.offsetOf(z.leftSibling),e.offsetOf(z)])}if(n.length===1&&n[0].type==="placeholder"&&n[0].parent.type==="genfrac"){const z=n[0].parent,q=n[0].parentBranch==="below"?"above":"below",Ae=e.offsetOf(z.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Qe,At;const Ft=z.removeBranch(q);if(Ft.length===1&&Ft[0].type==="placeholder")(At=z.parent)==null||At.removeChild(z),e.position=Math.max(0,Ae);else{const Ot=z.parent.addChildrenAfter(Ft,z);(Qe=z.parent)==null||Qe.removeChild(z),e.position=e.offsetOf(Ot)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}_l({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&Lu(e,[0,-1],"deleteContent"),deleteForward:e=>gg(e),deleteBackward:e=>mg(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&Lu(e,[e.anchor,B0(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&Lu(e,[e.anchor,B0(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&Lu(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&Lu(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&Lu(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&Lu(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var vg=`<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>`,yg=`<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>`,bg=class{constructor(e,t){this.focusBlurInProgress=!1;var r,n,i;this.options=h(E(h({},Jf()),{macros:lt(),registers:FA()}),Xf(t)),this.eventController=new AbortController;const s=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let A=(n=(r=t.value)!=null?r:this.element.textContent)!=null?n:"";A=A.trim();const L=eh(this.options),z=new zr({type:"root",mode:L,body:Al(A,{context:this.context})});this.model=new pg(this,L,z),this.undoManager=new $p(this.model);const q=[];if(q.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>"),q.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),q.push("<span part=content class=ML__content>"),q.push(Cf(this)),q.push("</span>"),window.mathVirtualKeyboard&&(q.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">`),q.push(vg),q.push("</div>")),q.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),q.push(yg),q.push("</div>"),q.push("</span>"),q.push("<span class=ML__sr-only>"),q.push("<span role=status aria-live=assertive aria-atomic=true></span>"),q.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(q.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=W.subscribe(()=>W.update(this.element)),W.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Qe=>Qe.stopImmediatePropagation(),{capture:!1,signal:s}),this.field.addEventListener("wheel",this,{passive:!1,signal:s}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:s}):this.field.addEventListener("mousedown",this,{signal:s}),(i=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||i.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(Iu(this)))},{signal:s}),this._menu=new Mm(og(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:s});const Ae=this.element.querySelector("[part=menu-toggle]");Ae==null||Ae.addEventListener("pointerdown",Qe=>{if(Qe.currentTarget!==Ae||this._menu.state!=="closed")return;this.element.classList.add("tracking");const At=Ae.getBoundingClientRect();this._menu.modifiers=Sa(Qe),this._menu.show({target:Ae,location:{x:At.left,y:At.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Qe.preventDefault(),Qe.stopPropagation()},{signal:s}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Ae.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Fc(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:s}),document.addEventListener("scroll",this,{signal:s}),this.resizeObserver=new ResizeObserver(()=>xs(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:s}),Xt&&!W.locale.startsWith(Xt.locale)&&Wn(W.locale),zc!=="ready"&&document.fonts.ready.then(()=>Id(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(Iu(this)),c0(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,O0())}showMenu(e){var t,r;const n=(r=(t=e==null?void 0:e.location)!=null?t:Bl(this.field))!=null?r:void 0,i=e==null?void 0:e.modifiers,s=this.element.querySelector("[part=container]");return this._menu.show({target:s,location:n,modifiers:i})}get colorMap(){return e=>{var t,r,n;return(n=(r=(t=this.options).colorMap)==null?void 0:r.call(t,e))!=null?n:je(e)}}get backgroundColorMap(){return e=>{var t,r,n,i,s,A;return(A=(s=(r=(t=this.options).backgroundColorMap)==null?void 0:r.call(t,e))!=null?s:(i=(n=this.options).colorMap)==null?void 0:i.call(n,e))!=null?A:X(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=zr.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=h({},e[0].style);for(const r of e)for(const[n,i]of Object.entries(r.style))t[n]!==i&&delete t[n];return t}queryStyle(e){const t=M0(this,e);"verbatimColor"in t&&delete t.verbatimColor,"verbatimBackgroundColor"in t&&delete t.verbatimBackgroundColor;const r=Object.keys(t).length;if(r===0)return"all";if(r>1){for(const z of Object.keys(t)){const q=this.queryStyle({[z]:t[z]});if(q==="none")return"none";if(q==="some")return"some"}return"all"}const n=Object.keys(t)[0],i=t[n];if(this.model.selectionIsCollapsed)return this.effectiveStyle[n]===i?"all":"none";const s=this.model.getAtoms(this.model.selection,{includeChildren:!0});let A=s.length;if(A===0)return"none";let L=0;for(const z of s){if(z.type==="first"){A-=1;continue}z.style[n]===i&&(L+=1)}return L===0?"none":L===A?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,n]=iA(this.options.keybindings,(e=zi())!=null?e:ni());return((t=zi())==null?void 0:t.score)>0&&(this._keybindings=r,n.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",n)),r}get menu(){return this._menu}setOptions(e){var t;this.options=h(h({},this.options),Xf(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 n=zr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==n)&&aa.insert(this.model,n,{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)&&xs(this)}getOptions(e){return Td(this.options,e)}getOption(e){return Td(this.options,e)}handleEvent(e){return gd(this,null,function*(){var t;if(hs(this)){if(tf(e)){if(!kA(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 n=e.data.command;if(dd(n)==="virtual-keyboard")return;this.executeCommand(n)}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"&&ph(this,e);break;case"pointerdown":this.userSelect!=="none"&&(ph(this,e),e.shiftKey===!1&&(yield Ih(e,this.element.querySelector("[part=container]"),this._menu))&&a0.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield Ih(e,this.element.querySelector("[part=container]"),this._menu))&&a0.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&c0(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>hs(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>hs(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}})}dispose(){if(!hs(this))return;W.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,rm(),Hf(),Cm()}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 dd(e)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Iu(this))),!1):ef(this,e)}get errors(){return gu(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=Hu(this.model,this.model.position))!=null?r:"math");const n=this.undoManager.canUndo();aa.insert(this.model,e,t)&&(xs(this),n||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 n=window.mathVirtualKeyboard.boundingRect,i=this.host.getBoundingClientRect();i.bottom>n.top&&((e=window.document.scrollingElement)==null||e.scrollBy(0,i.bottom-n.top+8))}}this.dirty&&TA(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=Bl(this.field);else{const n=XA(this);if(n.length>0){let i=-1/0,s=-1/0;for(const A of n)A.right>i&&(i=A.right),A.top<s&&(s=A.top);r={x:i+t.left-this.field.scrollLeft,y:s+t.top-this.field.scrollTop,height:0}}}if(this.host&&r){const n=this.host.getBoundingClientRect(),i=r.y;let s=this.host.scrollTop;i<n.top?s=i-n.top+this.host.scrollTop:i>n.bottom&&(s=i-n.bottom+this.host.scrollTop+r.height),this.host.scroll({top:s,left:0})}if(r){const n=r.x-window.scrollX;let i=this.field.scrollLeft;n<t.left?i=n-t.left+this.field.scrollLeft-20:n>t.right&&(i=n-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:i})}}insert(e,t){return typeof e!="string"||e.length===0&&((t==null?void 0:t.insertionMode)==="insertBefore"||(t==null?void 0:t.insertionMode)==="insertAfter")||e.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),t=t!=null?t:{mode:"math"},t.focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&M()&&navigator.vibrate(Md),window.MathfieldElement.playSound("keypress")),e==="\\\\"?th(this.model):e==="&"?rh(this.model):this.model.selectionIsCollapsed?aa.insert(this.model,e,h({style:this.model.at(this.model.position).computedStyle},t)):aa.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),xs(this),t.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(e,t="",r=""){var n;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const i=this.model.mode;if(this.model.mode=e,!((n=this.host)!=null&&n.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=i;return}const s=this.model.mode,{model:A}=this;A.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let L=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const z=Al(t,{context:this.context,parseMode:e});A.collapseSelection("forward");const q=A.at(A.position);A.position=A.offsetOf(q.parent.addChildrenAfter(z,q)),L=!0}if(this.model.mode=e,e==="latex"){let z=A.selectionIsCollapsed;Su(this,"accept");let q,Ae=A.at(A.position);if(z)q="\\";else{const At=Is(A.selection);q=this.model.getValue(At,"latex");const Ft=this.model.extractAtoms(At);Ft.length===1&&Ft[0].type==="placeholder"&&(q=t,z=!0),Ae=A.at(At[0])}const Qe=new yu(q);Ae.parent.addChildAfter(Qe,Ae),z?A.position=A.offsetOf(Qe.lastChild):A.setSelection(A.offsetOf(Qe.firstChild),A.offsetOf(Qe.lastChild))}else jc(A).forEach(z=>{z.isError=!1});if(r){const z=Al(r,{context:this.context,parseMode:s});A.collapseSelection("forward");const q=A.at(A.position);A.position=A.offsetOf(q.parent.addChildrenAfter(z,q)),L=!0}return xs(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),L}),this.model.mode=e,window.mathVirtualKeyboard.update(Iu(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,n;const i={operation:"set",silenceNotifications:!1};Yc(t)?i.range=t:(t.operation==="toggle"&&(i.operation="toggle"),i.range=t.range,i.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const s=M0(this,e),A=(n=i.operation)!=null?n:"set";if(i.range===void 0&&this.model.selectionIsCollapsed){if(A==="set"){this.defaultStyle=h(h({},this.defaultStyle),s);return}const L=h({},this.defaultStyle);for(const z of Object.keys(s))L[z]===s[z]?(z==="color"&&delete L.verbatimColor,z==="backgroundColor"&&delete L.verbatimBackgroundColor,delete L[z]):L[z]=s[z];this.defaultStyle=L;return}this.model.deferNotifications({content:!i.silenceNotifications,type:"insertText"},()=>{if(i.range===void 0)for(const L of this.model.selection.ranges)x0(this.model,L,s,{operation:A});else x0(this.model,i.range,s,{operation:A})}),xs(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=Bl(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=Df(this,e,t,{bias:0});if(r<0)return!1;const n=this.model.position;return this.model.position=r,this.model.announce("move",n),xs(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 n=this.model.offsetOf(r.firstChild),i=this.model.offsetOf(r.lastChild);return this.model.getValue(n,i,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 n=this.getPrompt(e);if(!n){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}const i=this.model.getBranchRange(this.model.offsetOf(n),"body");this.model.setSelection(i),this.insert(t,E(h({},r),{insertionMode:"replaceSelection"}))}r!=null&&r.silenceNotifications&&(this.valueOnFocus=this.getValue()),xs(this)}setPromptState(e,t,r){const n=this.getPrompt(e);if(!n){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}t==="undefined"?n.correctness=void 0:typeof t=="string"&&(n.correctness=t),typeof r=="boolean"&&(n.locked=r,n.captureSelection=r),xs(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(Iu(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(Iu(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(Iu(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 n=r.at(r.position),i=(e=n.mode)!=null?e:eh(this.options);this.model.mode!==i&&(this.model.mode==="latex"?(Su(this,"accept",{mode:i}),r.position=r.offsetOf(n)):this.switchMode(i))}(t=this.host)==null||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),c0(this)}onContentWillChange(e){var t,r,n;return(n=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",E(h({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?n:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),TA(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="",gA(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})),xs(this),this.focusBlurInProgress=!1,O0();const n=new AbortController,i=n.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{hs(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:i})},{once:!0,signal:i}),setTimeout(()=>n.abort(),100)}onInput(e){_0(this,e)}onKeystroke(e){return dh(this,e)}onCompositionStart(e){this.model.deleteAtoms(Is(this.model.selection));const t=Bl(this.field);t&&requestAnimationFrame(()=>{TA(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){Np(this.model,e),xs(this)}onCompositionEnd(e){Tp(this.model),_0(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),aa.onCopy(this,e),Lu(this.model,Is(this.model.selection),"deleteByCut"),this.snapshot("cut"),xs(this))}onCopy(e){aa.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=aa.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(),Mc(this),c0(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=>zt(r,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function Kh(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)Kh(t)}function X0(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(n=>{n instanceof HTMLElement&&X0(n)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(n=>{n instanceof HTMLElement&&X0(n,t)})))}function wg(e,t){var r;if(!P())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(t);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const n=new window.AWS.Polly({apiVersion:"2016-06-10"}),i={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};md().readAloudElement=e,n.synthesizeSpeech(i,(s,A)=>{if(s){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${s}`);return}if(!(A!=null&&A.AudioStream)){console.log("polly.synthesizeSpeech():",A);return}const L=new TextDecoder("utf-8").decode(new Uint8Array(A.AudioStream));md().readAloudMarks=L.split(`
`).map(z=>z?JSON.parse(z):{}),md().readAloudTokens=[];for(const z of md().readAloudMarks)z.value&&md().readAloudTokens.push(z.value);md().readAloudCurrentMark="",i.OutputFormat="mp3",i.SpeechMarkTypes=[],n.synthesizeSpeech(i,(z,q)=>{if(z){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${z}`);return}if(!(q!=null&&q.AudioStream))return;const Ae=new Uint8Array(q.AudioStream),Qe=new Blob([Ae.buffer],{type:"audio/mpeg"}),At=URL.createObjectURL(Qe),Ft=md();Ft.readAloudAudio?Ft.readAloudAudio.pause():(Ft.readAloudAudio=new Audio,Ft.readAloudAudio.addEventListener("ended",()=>{const Ot=Ft.readAloudMathfield;Ft.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ot?(TA(Ot),Ft.readAloudElement=null,Ft.readAloudMathfield=null,Ft.readAloudTokens=[],Ft.readAloudMarks=[],Ft.readAloudCurrentMark=""):Kh(Ft.readAloudElement)}),Ft.readAloudAudio.addEventListener("timeupdate",()=>{let Ot="";const Fr=Ft.readAloudAudio.currentTime*1e3+100;for(const In of Ft.readAloudMarks)In.time<Fr&&(Ot=In.value);Ft.readAloudCurrentMark!==Ot&&(Ft.readAloudCurrentToken=Ot,Ot&&Ot===Ft.readAloudFinalToken?Ft.readAloudAudio.pause():(Ft.readAloudCurrentMark=Ot,X0(Ft.readAloudElement,Ft.readAloudCurrentMark)))})),Ft.readAloudAudio.src=At,Ft.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ft.readAloudAudio.play()})})}P()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var yo=new WeakMap,xg=.5,pd={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 = ..."},Kl=class $d extends HTMLElement{static get formAssociated(){return hf()}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,xf())}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,n,i;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:(n=t.return)!=null?n:t.default,delete:(i=t.delete)!=null?i: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 W.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),W.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 W.strings}static set strings(t){W.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 n=(t=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;if(!n)return null;this._computeEngine=new n,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 gd(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 n=this.soundsDirectory;if(!(n==null||n==="null"||r==="none"||r==="null"))try{const s=yield(yield fetch(yield ud(`${n}/${r}`))).arrayBuffer(),A=yield this.audioContext.decodeAudioData(s);this.audioBuffers[t]=A}catch(i){}})}static playSound(t){return gd(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 n=this.audioContext.createGain();n.gain.value=xg,r.connect(n).connect(this.audioContext.destination),r.start()})}constructor(t){if(super(),t){const r=[];for(const n of Object.keys(t))if(pd[n])if(pd[n].startsWith("mf."))if(pd[n].startsWith(`mf.${n}`))r.push(`Option \`${n}\` cannot be used as a constructor option. Use ${pd[n]}`);else{const i=pd[n].match(/([a-zA-Z]+) =/);r.push(`Option \`${n}\` has been renamed \`${i[1]}\``)}else r.push(`Option \`${n}\` cannot be used as a constructor option. Use ${pd[n]}`);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 n of r)console.warn(n);console.groupEnd()}}if(hf()&&(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=[ss("core"),ss("mathfield"),ss("mathfield-element"),ss("ui"),ss("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>"+Jl("core")+Jl("mathfield")+Jl("mathfield-element")+Jl("ui")+Jl("menu")+'</style><span></span><slot style="display:none"></slot>';t&&this._setOptions(t),this.shadowRoot.addEventListener("slotchange",()=>{var r;const n=this.shadowRoot.querySelector("slot:not([name])");this.value=(r=n==null?void 0:n.assignedNodes().map(i=>i.nodeType===3?i.textContent:"").join("").trim())!=null?r:""})}showMenu(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.showMenu(t))!=null?n:!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 n,i;return(i=(n=this._mathfield)==null?void 0:n.getPromptValue(t,r))!=null?i:""}setPromptValue(t,r,n){var i;(i=this._mathfield)==null||i.setPromptValue(t,r,n)}getPromptRange(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPromptRange(t))!=null?n:null}getPrompts(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPrompts(t))!=null?n:[]}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,n;if(!this._mathfield)return;const i=(n=(r=$d.computeEngine)==null?void 0:r.box(t).latex)!=null?n:null;i!==null&&this._mathfield.setValue(i),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?Td(this._mathfield.options,t):yo.has(this)?h({},Td(h(h({},Jf()),Xf(yo.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?Td(this._mathfield.options,t):yo.has(this)?Td(h(h({},Jf()),Xf(yo.get(this).options)),t):null}reflectAttributes(){const t=Jf(),r=this._getOptions();Object.keys($d.optionsAttributes).forEach(n=>{const i=Ju(n);$d.optionsAttributes[n]==="on/off"?t[i]!==r[i]?this.setAttribute(n,r[i]?"on":"off"):this.removeAttribute(n):t[i]!==r[i]&&($d.optionsAttributes[n]==="boolean"?r[i]?this.setAttribute(n,""):this.removeAttribute(n):(typeof r[i]=="string"||typeof r[i]=="number")&&this.setAttribute(n,r[i].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(yo.has(this)){const r=h(h({},yo.get(this).options),t);yo.set(this,E(h({},yo.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else yo.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))pd[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${pd[r]}`);console.groupEnd(),this._setOptions(t)}executeCommand(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.executeCommand(t))!=null?n:!1}getValue(t,r,n){var i,s;if(this._mathfield)return this._mathfield.model.getValue(t,r,n);if(yo.has(this)){let A,L,z;if(Uc(t)?([A,L]=t.ranges[0],z=r):Yc(t)?([A,L]=t,z=r):Tc(t)&&Tc(r)?(A=t,L=r,z=n):(A=0,L=-1,z=t),(z===void 0||z==="latex")&&A===0&&L===-1)return(s=(i=yo.get(this).value)!=null?i:this.textContent)!=null?s:""}return""}setValue(t,r){if(this._mathfield&&t!==void 0){r!=null||(r={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(t,r);return}if(yo.has(this)){const i=yo.get(this).options;yo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:i,menuItems:void 0});return}const n=Qf(this);yo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:n,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 n,i;return(i=(n=this._mathfield)==null?void 0:n.insert(t,r))!=null?i:!1}applyStyle(t,r){var n;return(n=this._mathfield)==null?void 0:n.applyStyle(t,r)}queryStyle(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.queryStyle(t))!=null?n:"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 n,i;return(i=(n=this._mathfield)==null?void 0:n.setCaretPoint(t,r))!=null?i:!1}offsetFromPoint(t,r,n){return this._mathfield?Df(this._mathfield,t,r,n):-1}hitboxFromOffset(t){if(!this._mathfield)return null;const r=this._mathfield.model.at(t);if(!r)return null;const n=qc(this._mathfield,r);return n?new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.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,n,i,s;Co.state==="closed"&&((n=(r=this._mathfield)==null?void 0:r.menu)==null?void 0:n.state)==="closed"&&(t.type==="pointerdown"&&this.onPointerDown(),t.type==="focus"&&((i=this._mathfield)==null||i.focus()),t.type==="blur"&&((s=this._mathfield)==null||s.blur()))}connectedCallback(){var t,r,n,i;const s=window.getComputedStyle(this),A=this.shadowRoot,L=s.userSelect!=="none";if(L)A.host.addEventListener("pointerdown",this,!0);else{const Ae=A.querySelector("span");Ae.style.pointerEvents="none"}A.host.addEventListener("focus",this,!0),A.host.addEventListener("blur",this,!0),hf()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),L&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const z=A.querySelector("slot:not([name])");if(z)try{this._style=z.assignedElements().filter(Ae=>Ae.tagName.toLowerCase()==="style").map(Ae=>Ae.textContent).join("")}catch(Ae){console.error(Ae)}if(this._style){const Ae=document.createElement("style");Ae.textContent=this._style,A.appendChild(Ae)}let q="";if(this.hasAttribute("value")?q=this.getAttribute("value"):q=(t=z==null?void 0:z.assignedNodes().map(Ae=>Ae.nodeType===3?Ae.textContent:"").join("").trim())!=null?t:"",this._mathfield=new bg(A.querySelector(":host > span"),E(h({},(n=(r=yo.get(this))==null?void 0:r.options)!=null?n:Qf(this)),{eventSink:this,value:q})),!yo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Ae of Object.keys($d.optionsAttributes))this.upgradeProperty(Ju(Ae))}if(!((i=this._mathfield)!=null&&i.model)){this._mathfield=null;return}if(yo.has(this)){const Ae=this._mathfield,Qe=yo.get(this),At=Qe.menuItems;Ae.model.deferNotifications({content:!1,selection:!1},()=>{const Ft=Qe.value;Ft!==void 0&&Ae.setValue(Ft),Ae.model.selection=Qe.selection,yo.delete(this)}),At&&(this.menuItems=At)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),vA()}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 n=Td(this._mathfield.options,Object.keys($d.optionsAttributes).map(i=>Ju(i)));yo.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:n}),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,n){if(r===n)return;const i=n!==null;switch(t){case"contenteditable":xs(this._mathfield);break;case"disabled":this.disabled=i;break;case"read-only":case"readonly":this.readOnly=i;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(t){const r=!!t;r?(this.setAttribute("readonly",""),hf()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(hf()?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 n=!!t;n?this.setAttribute("disabled",""):this.removeAttribute("disabled"),hf()?this._internals.ariaDisabled=n?"true":"false":this.setAttribute("aria-disabled",n?"true":"false"),n&&((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,n)=>{if(typeof n=="string")return t._getOption("registers")[n]},set(r,n,i){return typeof n!="string"?!1:(t._setOptions({registers:E(h({},t._getOption("registers")),{[n]:i})}),!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,n;return this._mathfield?(t=this._mathfield.menu._menuItems.map(i=>i.menuItem))!=null?t:[]:(n=(r=yo.get(this))==null?void 0:r.menuItems)!=null?n:[]}set menuItems(t){var r;if(this._mathfield){const n=(r=this._mathfield.element)==null?void 0:r.querySelector("[part=menu-toggle]");n&&(n.style.display=t.length===0?"none":""),this._mathfield.menu.menuItems=t}yo.has(this)?yo.set(this,E(h({},yo.get(this)),{menuItems:t})):yo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Qf(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,n){var i;(i=this._mathfield)==null||i.setPromptState(t,r,n)}getPromptState(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPromptState(t))!=null?n:[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:yo.has(this)?yo.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,xs(this._mathfield);return}if(yo.has(this)){yo.set(this,E(h({},yo.get(this)),{selection:t}));return}yo.set(this,{value:void 0,selection:t,options:Qf(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:yo.has(this)?yo.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,xs(this._mathfield)),yo.has(this)){yo.set(this,E(h({},yo.get(this)),{selection:{ranges:[[t,t]]}}));return}yo.set(this,{value:void 0,selection:{ranges:[[t,t]]},options:Qf(this),menuItems:void 0})}getOffsetDepth(t){var r,n;return this._mathfield?((n=(r=this._mathfield.model.at(t))==null?void 0:r.treeDepth)!=null?n:2)-2:0}get lastOffset(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.lastOffset)!=null?r:-1}};Kl.version="0.98.5",Kl._fontsDirectory="./fonts",Kl._soundsDirectory="./sounds",Kl.keypressVibration=!0,Kl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Kl._plonkSound="plonk.wav",Kl.audioBuffers={},Kl.createHTML=e=>e,Kl._speechEngineRate="100%",Kl._speechEngineVoice="Joanna",Kl._textToSpeechMarkup="",Kl._textToSpeechRules="mathlive",Kl._textToSpeechRulesOptions={},Kl.speakHook=ug,Kl.readAloudHook=wg,Kl._decimalSeparator=".",Kl.fractionNavigationOrder="numerator-denominator",Kl._isFunction=e=>{var t,r;const n=window.MathfieldElement.computeEngine;return(r=(t=n==null?void 0:n.parse(e).domain)==null?void 0:t.isFunction)!=null?r:!1};var Rf=Kl;function Ju(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function Qf(e){const t={readOnly:!1},r=Rf.optionsAttributes;return Object.keys(r).forEach(n=>{if(e.hasAttribute(n)){const i=e.getAttribute(n);n==="placeholder"?t.contentPlaceholder=i!=null?i:"":r[n]==="boolean"?t[Ju(n)]=!0:r[n]==="on/off"?i==="on"?t[Ju(n)]=!0:i==="off"?t[Ju(n)]=!1:t[Ju(n)]=void 0:r[n]==="number"?t[Ju(n)]=Number.parseFloat(i!=null?i:"0"):t[Ju(n)]=i}}),t}function hf(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Hh=Rf,jh,zh,$h,Zh;if(P()&&!((jh=window.customElements)!=null&&jh.get("math-field"))){($h=window[zh=Symbol.for("io.cortexjs.mathlive")])!=null||(window[zh]={});const e=window[Symbol.for("io.cortexjs.mathlive")];e.version="0.98.5",window.MathfieldElement=Rf,(Zh=window.customElements)==null||Zh.define("math-field",Rf)}function Cg(e,t,r){let n=r,i=0;const s=e.length;for(;n<t.length;){const A=t[n];if(i<=0&&t.slice(n,n+s)===e)return n;A==="\\"?n++:A==="{"?i++:A==="}"&&i--,n++}return-1}function h0(e,t,r,n,i="latex"){const s=[];for(const A of e)if(A.type==="text"){const L=A.data;let z=!0,q=0,Ae;Ae=L.indexOf(t),Ae!==-1&&(q=Ae,q>0&&s.push({type:"text",data:L.slice(0,q)}),z=!1);let Qe=!1;for(;!Qe;){if(z){if(Ae=L.indexOf(t,q),Ae===-1){Qe=!0;break}q!==Ae&&s.push({type:"text",data:L.slice(q,Ae)}),q=Ae}else{if(Ae=Cg(r,L,q+t.length),Ae===-1){Qe=!0;break}let At=L.slice(q+t.length,Ae);i==="ascii-math"&&([,At]=Ge(At,{format:"ascii-math"})),s.push({type:"math",data:At,rawData:L.slice(q,Ae+r.length),mathstyle:n}),q=Ae+r.length}z=!z}q<L.length&&s.push({type:"text",data:L.slice(q)})}else s.push(A);return s}function Vh(e,t,r){let n=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([i,s])=>{n=h0(n,i,s,"textstyle")}),t!=null&&t.display&&t.display.forEach(([i,s])=>{n=h0(n,i,s,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([i,s])=>{n=h0(n,i,s,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([i,s])=>{n=h0(n,i,s,"displaystyle","ascii-math")}),n}function Bg(e,t){const r=document.createElement("span");r.setAttribute("translate","no");try{const n="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+t.renderToMathML(e)+"</math>";r.innerHTML=window.MathfieldElement.createHTML(n)}catch(n){console.error(`MathLive 0.98.5: Could not convert "${e}"' to MathML with ${n}`),r.textContent=e}return r.className="ML__sr-only",r}function Sg(e,t,r,n){try{const i=t.renderToMarkup(e,{mathstyle:r,format:"html"}),s=document.createElement("span");return s.dataset.latex=e,s.style.display=r==="displaystyle"?"flex":"inline-flex",s.setAttribute("aria-hidden","true"),s.setAttribute("translate","no"),s.innerHTML=window.MathfieldElement.createHTML(i),s}catch(i){if(console.error("Could not parse'"+e+"' with ",i),n)return document.createTextNode(e)}return null}function pf(e,t,r,n){var i;const s=Sg(e,r,t||"textstyle",n),A=(i=r.renderAccessibleContent)!=null?i:"";if(s&&/\b(mathml|speakable-text)\b/i.test(A)){const L=document.createElement("span");if(/\bmathml\b/i.test(A)&&r.renderToMathML&&L.append(Bg(e,r)),/\bspeakable-text\b/i.test(A)&&r.renderToSpeakableText){const z=document.createElement("span");z.setAttribute("translate","no");const q=r.renderToSpeakableText(e);z.innerHTML=window.MathfieldElement.createHTML(q),z.className="ML__sr-only",L.append(z)}return L.append(s),L}return s}function Eg(e,t){var r,n,i;let s=null;if((r=t.TeX)!=null&&r.processEnvironments&&/^\s*\\begin/.test(e)){s=document.createDocumentFragment();const A=pf(e,"",t,!0);A&&s.appendChild(A)}else{if(!e.trim())return null;const A=Vh(e,(n=t.TeX)==null?void 0:n.delimiters,(i=t.asciiMath)==null?void 0:i.delimiters);if(A.length===1&&A[0].type==="text")return null;s=document.createDocumentFragment();for(const L of A)if(L.type==="text")s.appendChild(document.createTextNode(L.data));else{const z=pf(L.data,L.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);z&&s.appendChild(z)}}return s}function Wh(e,t){var r,n,i,s,A,L,z,q,Ae,Qe,At,Ft,Ot,Fr,In,Br;if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const an=(r=e.childNodes[0].textContent)!=null?r:"";if((n=t.TeX)!=null&&n.processEnvironments&&/^\s*\\begin/.test(an)){e.textContent="";const pn=pf(an,"",t,!0);pn&&e.append(pn);return}const Rn=Vh(an,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(Rn.length===1&&Rn[0].type==="math"){e.textContent="";const pn=pf(Rn[0].data,Rn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);pn&&e.append(pn);return}if(Rn.length===1&&Rn[0].type==="text")return}for(let an=e.childNodes.length-1;an>=0;an--){const Rn=e.childNodes[an];if(Rn.nodeType===3){const pn=Eg((A=Rn.textContent)!=null?A:"",t);pn&&(an+=pn.childNodes.length-1,Rn.replaceWith(pn))}else if(Rn.nodeType===1){const pn=Rn,Ci=Rn.nodeName.toLowerCase();if(Ci==="script"){const ji=Rn;let Ni;if((L=t.processScriptTypePattern)!=null&&L.test(ji.type))Ni=(z=ji.textContent)!=null?z:"";else if((q=t.processMathJSONScriptTypePattern)!=null&&q.test(ji.type))try{Ni=(Qe=t.serializeToLatex)==null?void 0:Qe.call(t,JSON.parse((Ae=ji.textContent)!=null?Ae:""))}catch(io){console.error(io)}if(Ni){let io="textstyle";for(const Vn of ji.type.split(";")){const[yA,ku]=Vn.toLowerCase().split("=");yA.trim()==="mode"&&(io=ku.trim()==="display"?"displaystyle":"textstyle")}const zo=pf(Ni,io,t,!0);zo&&ji.parentNode.replaceChild(zo,ji)}}else if(((Ft=(At=t.processClassPattern)==null?void 0:At.test(pn.className))!=null?Ft:!1)||!((Fr=(Ot=t.skipTags)==null?void 0:Ot.includes(Ci))!=null&&Fr||(Br=(In=t.ignoreClassPattern)==null?void 0:In.test(pn.className))!=null&&Br))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Ni=e.textContent;e.textContent="";const io=pf(Ni!=null?Ni:"","displaystyle",t,!0);io&&e.append(io)}else Wh(pn,t)}}}var _g={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 Fg(e,t){var r,n,i,s;try{const A=h(h({},_g),t);A.ignoreClassPattern=new RegExp((r=A.ignoreClass)!=null?r:""),A.processClassPattern=new RegExp((n=A.processClass)!=null?n:""),A.processScriptTypePattern=new RegExp((i=A.processScriptType)!=null?i:""),A.processMathJSONScriptTypePattern=new RegExp((s=A.processMathJSONScriptType)!=null?s:""),vA(),lc("core"),Wh(e,A)}catch(A){A instanceof Error?console.error("renderMathInElement(): "+A.message):console.error("renderMathInElement(): Could not render math for element",e)}}function Ig(e,t){const r=fd.singleton;return r?(r.show(),Dd(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function Mg(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}_l({switchKeyboardLayer:Ig,toggleVirtualKeyboard:Mg,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function md(){var e,t;return(t=globalThis[e=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Ng(){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 Tg(e){kg(document.body,e)}function Lg(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 kg(e,t){var r,n,i,s;const A=Lg(e);if(!A)return;const L=t!=null?t:{};(r=L.renderToMarkup)!=null||(L.renderToMarkup=Fl),(n=L.renderToMathML)!=null||(L.renderToMathML=zm),(i=L.renderToSpeakableText)!=null||(L.renderToSpeakableText=$m),(s=L.serializeToLatex)!=null||(L.serializeToLatex=Zm),Fg(A,L)}var Ug={mathlive:"0.98.5"}}}]);
}());